Sha256: bf2742760a1d1f12db10731812eacc702d4681090ae68007156bac711aa7abaf

Contents?: true

Size: 873 Bytes

Versions: 1

Compression:

Stored size: 873 Bytes

Contents

# encoding: utf-8
require 'Context/Gtk/Widget'
require 'Context/Views/Gtk/Widgets/VBox'
require 'jldrill/contexts/RunCommandContext'
require 'jldrill/views/gtk/widgets/MenuWidget'
require 'jldrill/views/gtk/widgets/ToolBarWidget'
require 'gtk2'

module JLDrill::Gtk

    class CommandView < JLDrill::RunCommandContext::CommandView

        def initialize(context)
            super(context)
            @vbox = Context::Gtk::VBox.new
            @menu = Menu.new(self)
            @toolbar = ToolBar.new(self)
            @vbox.pack_start(@menu, false, false)
            @vbox.pack_start(@toolbar, false, false)
			@vbox.afterWidgetIsAdded do |container|
			    container.gtkWidgetMainWindow.add_accel_group(@menu.accelGroup)
			end
			@vbox.expandWidgetWidth
		end
		
		def getWidget
			@vbox
		end

        def update
            @toolbar.update
        end
    end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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