Sha256: ef6bb61ba79f294d69150cd02152e66ac2c1dfc57777e20d6adac12ad84ce9fc

Contents?: true

Size: 959 Bytes

Versions: 1

Compression:

Stored size: 959 Bytes

Contents

# encoding: utf-8
require 'Context/Gtk/Widget'
require 'Context/Views/Gtk/Widgets/MainWindow'
require 'Context/Views/Gtk/Widgets/VBox'
require 'jldrill/contexts/MainContext'
require 'jldrill/views/gtk/widgets/Icon'
require 'jldrill/model/Config'
require 'gtk2'

module JLDrill::Gtk

	class MainWindowView < JLDrill::MainContext::MainWindowView
        
        attr_reader :icon, :mainWindow

		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

		def getWidget
			@vbox
		end

		def destroy
		    @mainWindow.explicitDestroy
		end

		def emitDestroyEvent
			@mainWindow.signal_emit("destroy")
		end
    
        def showBusy(bool)
            @mainWindow.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/MainWindowView.rb