Sha256: 4e87350e815468d4c25bc4299c82b9d4d22fc10d1686b73a0204320046010c93

Contents?: true

Size: 1.07 KB

Versions: 1

Compression:

Stored size: 1.07 KB

Contents

# encoding: utf-8
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 updateNativeOnly(examples)
            super(examples)
            @exampleWindow.updateNativeOnly(examples)
        end
		
        def updateTargetOnly(examples)
            super(examples)
            @exampleWindow.updateTargetOnly(examples)
        end
		
		def update(examples)
		    super(examples)
		    @exampleWindow.updateContents(examples)
		end

        def showBusy(bool)
            @exampleWindow.showBusy(bool)
        end
    end   
end

Version data entries

1 entries across 1 versions & 1 rubygems

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