Sha256: 0fda4444c453bbd0b9db538b2ee84bf91758bd0c6b86413a7517cbe285313aed

Contents?: true

Size: 743 Bytes

Versions: 1

Compression:

Stored size: 743 Bytes

Contents

# encoding: utf-8
require 'jldrill/views/gtk/widgets/OptionsWindow'
require 'jldrill/contexts/SetOptionsContext'
require 'gtk2'

module JLDrill::Gtk

	class OptionsView < JLDrill::SetOptionsContext::OptionsView
	
        attr_reader :optionsWindow
        	
		def initialize(context)
			super(context)
			@optionsWindow = OptionsWindow.new(self)
		end
		
		def run
		    @optionsWindow.execute
		end
		
		def destroy
		    @optionsWindow.destroy
		end
		
		def update(options)
		    super(options)
		    @optionsWindow.updateFromViewData
		end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jldrill-0.6.0.1 lib/jldrill/views/gtk/OptionsView.rb