Class: JLDrill::Gtk::MainWindowView
- Inherits:
-
MainContext::MainWindowView
- Object
- Context::View
- MainContext::MainWindowView
- JLDrill::Gtk::MainWindowView
- Defined in:
- lib/jldrill/views/gtk/MainWindowView.rb
Instance Attribute Summary collapse
-
#icon ⇒ Object
readonly
Returns the value of attribute icon.
-
#mainWindow ⇒ Object
readonly
Returns the value of attribute mainWindow.
Attributes inherited from Context::View
Instance Method Summary collapse
- #destroy ⇒ Object
- #emitDestroyEvent ⇒ Object
- #getWidget ⇒ Object
-
#initialize(context) ⇒ MainWindowView
constructor
A new instance of MainWindowView.
- #showBusy(bool) ⇒ Object
Methods inherited from MainContext::MainWindowView
Methods inherited from Context::View
#addView, #removeView, #removingViewFrom, #viewAddedTo
Constructor Details
#initialize(context) ⇒ MainWindowView
Returns a new instance of MainWindowView.
16 17 18 19 20 21 22 23 24 25 |
# File 'lib/jldrill/views/gtk/MainWindowView.rb', line 16 def initialize(context) super(context) @mainWindow = Context::Gtk::MainWindow.new("JLDrill", self) @icon = Icon.new @mainWindow.icon_list=([@icon.icon]) @mainWindow.set_default_size(600, 400) @vbox = Context::Gtk::VBox.new @mainWindow.addToThisWidget(@vbox) end |
Instance Attribute Details
#icon ⇒ Object (readonly)
Returns the value of attribute icon.
14 15 16 |
# File 'lib/jldrill/views/gtk/MainWindowView.rb', line 14 def icon @icon end |
#mainWindow ⇒ Object (readonly)
Returns the value of attribute mainWindow.
14 15 16 |
# File 'lib/jldrill/views/gtk/MainWindowView.rb', line 14 def mainWindow @mainWindow end |
Instance Method Details
#destroy ⇒ Object
31 32 33 |
# File 'lib/jldrill/views/gtk/MainWindowView.rb', line 31 def destroy @mainWindow.explicitDestroy end |
#emitDestroyEvent ⇒ Object
35 36 37 |
# File 'lib/jldrill/views/gtk/MainWindowView.rb', line 35 def emitDestroyEvent @mainWindow.signal_emit("destroy") end |
#getWidget ⇒ Object
27 28 29 |
# File 'lib/jldrill/views/gtk/MainWindowView.rb', line 27 def getWidget @vbox end |
#showBusy(bool) ⇒ Object
39 40 41 |
# File 'lib/jldrill/views/gtk/MainWindowView.rb', line 39 def showBusy(bool) @mainWindow.showBusy(bool) end |