Class: JLDrill::Gtk::MainWindowView

Inherits:
MainContext::MainWindowView show all
Defined in:
lib/jldrill/views/gtk/MainWindowView.rb

Instance Attribute Summary collapse

Attributes inherited from Context::View

#context

Instance Method Summary collapse

Methods inherited from MainContext::MainWindowView

#close, #inititalize

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

#iconObject (readonly)

Returns the value of attribute icon.



14
15
16
# File 'lib/jldrill/views/gtk/MainWindowView.rb', line 14

def icon
  @icon
end

#mainWindowObject (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

#destroyObject



31
32
33
# File 'lib/jldrill/views/gtk/MainWindowView.rb', line 31

def destroy
    @mainWindow.explicitDestroy
end

#emitDestroyEventObject



35
36
37
# File 'lib/jldrill/views/gtk/MainWindowView.rb', line 35

def emitDestroyEvent
	@mainWindow.signal_emit("destroy")
end

#getWidgetObject



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