Sha256: 78c0f2ba1b155e0846660155b7dd07e1022ec3a445540c1d75f48c38319f784c

Contents?: true

Size: 722 Bytes

Versions: 1

Compression:

Stored size: 722 Bytes

Contents

require 'jldrill/views/gtk/widgets/ExampleWindow'
require 'jldrill/contexts/ShowExamplesContext'
require 'gtk2'

module JLDrill::Gtk
	class ExampleView < JLDrill::ShowExamplesContext::ExampleView
        attr_reader :exampleWindow
        	
		def initialize(context)
			super(context)
			@exampleWindow = ExampleWindow.new(self)
		end
		
		def getWidget
			@exampleWindow
		end

        def mainWindow
            getWidget.gtkWidgetMainWindow
        end
		
        def destroy
            @exampleWindow.explicitDestroy
        end
		
		def emitDestroyEvent
			@exampleWindow.signal_emit("destroy")
		end
		
		def update(examples)
		    super(examples)
		    @exampleWindow.updateContents(examples)
		end
    end   
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jldrill-0.5.1.7 lib/jldrill/views/gtk/ExampleView.rb