Class: CryptopunksGui
- Inherits:
-
Object
- Object
- CryptopunksGui
- Includes:
- View::ImageFrame, View::MenuBar, View::StyleOptionsFrame, Glimmer
- Defined in:
- app/model/image.rb,
app/view/menu_bar.rb,
app/cryptopunks_gui.rb,
app/view/help_dialog.rb,
app/view/image_frame.rb,
app/view/preferences_dialog.rb,
app/view/style_options_frame.rb
Defined Under Namespace
Constant Summary
Constants included from View::MenuBar
View::MenuBar::HELP, View::MenuBar::LICENSE
Instance Method Summary collapse
- #create_gui ⇒ Object
-
#initialize ⇒ CryptopunksGui
constructor
A new instance of CryptopunksGui.
- #launch ⇒ Object
Methods included from View::StyleOptionsFrame
#led_style_options_frame, #no_style_options_frame, #sketch_style_options_frame
Methods included from View::ImageFrame
#add_style_options, #change_output_location, #image_frame, #register_image_frame_observers
Methods included from View::MenuBar
#cryptopunks_gui_menu_bar, #help, #license, #show_about_dialog
Methods included from View::HelpDialog
Constructor Details
#initialize ⇒ CryptopunksGui
Returns a new instance of CryptopunksGui.
22 23 24 25 26 |
# File 'app/cryptopunks_gui.rb', line 22 def initialize @image = Model::Image.new create_gui @image.image_index = 0 end |
Instance Method Details
#create_gui ⇒ Object
32 33 34 35 36 37 38 39 40 41 |
# File 'app/cryptopunks_gui.rb', line 32 def create_gui @root = root { |root_proxy| title 'CryptoPunks GUI' iconphoto File.('../icons/cryptopunks-gui.png', __dir__) (root: root_proxy, image: @image) image_frame(root: root_proxy, image: @image) } end |
#launch ⇒ Object
28 29 30 |
# File 'app/cryptopunks_gui.rb', line 28 def launch @root.open end |