Class: TT::GUI::Toolbar Deprecated

Inherits:
ToolWindow show all
Defined in:
TT_Lib2/toolbarwindow.rb

Overview

Deprecated.

Not in use

(i) Alpha stage. Very likely to be subject to change!

Examples:

w = TT::GUI::Toolbar.new
w.show_window

Since:

  • 2.5.0

Constant Summary

Constants inherited from Window

Window::EVENT_CALLBACK, Window::EVENT_OPEN_URL, Window::EVENT_WINDOW_READY, Window::THEME_DEFAULT, Window::THEME_GRAPHITE

Instance Attribute Summary

Attributes inherited from Window

#parent, #theme, #window

Attributes included from ContainerElement

#controls

Instance Method Summary collapse

Methods inherited from ToolWindow

#show_window

Methods inherited from Window

#add_script, #add_style, #call_script, #get_checkbox_state, #get_checked_state, #get_client_size, #get_control_value, #get_html, #get_text, #get_value, #inspect, #local_path, #on_ready, #set_client_size, #show_window, #title

Methods included from ContainerElement

#get_control_by_name, #get_control_by_ui_id, #release!, #remove_control

Methods inherited from WebDialogPatch

#set_file, #set_html, #set_url

Constructor Details

#initialize(*args) ⇒ Nil

Since:

  • 2.5.0



26
27
28
29
# File 'TT_Lib2/toolbarwindow.rb', line 26

def initialize(*args)
  super
  self.add_style( File.join(TT::Lib.path, 'webdialog', 'css', 'wnd_toolbar.css') )
end

Instance Method Details

#add_control(control) ⇒ Object

Raises:

  • (ArgumentError)

Since:

  • 2.5.0



31
32
33
# File 'TT_Lib2/toolbarwindow.rb', line 31

def add_control( control )
  raise ArgumentError unless button.is_a?( TT::GUI::Button )
end