Class: JLDrill::Gtk::OptionsView

Inherits:
SetOptionsContext::OptionsView show all
Defined in:
lib/jldrill/views/gtk/OptionsView.rb

Instance Attribute Summary collapse

Attributes inherited from SetOptionsContext::OptionsView

#options

Attributes inherited from Context::View

#context

Instance Method Summary collapse

Methods inherited from SetOptionsContext::OptionsView

#exit, #optionsSet=, #optionsSet?

Methods inherited from Context::View

#addView, #removeView, #removingViewFrom, #viewAddedTo

Constructor Details

#initialize(context) ⇒ OptionsView

Returns a new instance of OptionsView.



12
13
14
15
# File 'lib/jldrill/views/gtk/OptionsView.rb', line 12

def initialize(context)
	super(context)
	@optionsWindow = OptionsWindow.new(self)
end

Instance Attribute Details

#optionsWindowObject (readonly)

Returns the value of attribute optionsWindow.



10
11
12
# File 'lib/jldrill/views/gtk/OptionsView.rb', line 10

def optionsWindow
  @optionsWindow
end

Instance Method Details

#destroyObject



21
22
23
# File 'lib/jldrill/views/gtk/OptionsView.rb', line 21

def destroy
    @optionsWindow.destroy
end

#getWidgetObject



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

def getWidget
	@optionsWindow
end

#runObject



17
18
19
# File 'lib/jldrill/views/gtk/OptionsView.rb', line 17

def run
    @optionsWindow.execute
end

#setDictionaryFilename(filename) ⇒ Object



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

def setDictionaryFilename(filename)
    super(filename)
    @optionsWindow.dictionaryName = filename
end

#update(options) ⇒ Object



25
26
27
28
# File 'lib/jldrill/views/gtk/OptionsView.rb', line 25

def update(options)
    super(options)
    @optionsWindow.updateFromViewData
end