lib/views/action.rb in royw-git_shoes-0.0.0 vs lib/views/action.rb in royw-git_shoes-0.0.1

- old
+ new

@@ -1,10 +1,29 @@ # From Matt Payne's slimtimeronshoes class Action attr_accessor :app + def initialize + @command_widget = CommandWidget.new + @title_widget = TitleWidget.new + @page_widget = PageWidget.new + end + def execute(obj=nil) + end + + def page_layout(&blk) + @page_widget.app = app + @page_widget.show + + app.flow(:width => '100%') do + @title_widget.app = app + @title_widget.show + @command_widget.app = app + @command_widget.show(:width => 100) + blk.call unless blk.nil? + end end end