#include <BtGuiWidget.h>
Inheritance diagram for BtGuiWidget::

Public Methods | |
| BtGuiWidget (const BtGuiTkInterpreter &interf, const String &name="") | |
| BtGuiWidget (const BtGuiTkInterpreter &interf, const BtGuiWidget &parent, const String &name="") | |
| ~BtGuiWidget () | |
| String | widgetName () const |
| virtual void | attachToTkWidget (const String &name) |
| virtual bool | create ()=0 |
| virtual bool | widgetOption (const String &option, const String &value) |
| virtual bool | widgetOption (const String &option, int value) |
| virtual bool | widgetOption (const String &option, real value) |
| virtual String | getWidgetOption (const String &option) |
| virtual String | widgetCommand (const String &cmd) |
| virtual String | widgetCommand (const String &cmd, const String &args) |
| virtual String | widgetCommand (const String &cmd, const String &widgetName, const String &args) |
| virtual bool | pack () |
| virtual bool | place () |
| virtual bool | packOption (const String &option, const String &value) |
| virtual bool | packOption (const String &option, int value) |
| virtual bool | packOption (const String &option, real value) |
| virtual bool | placeOption (const String &option, const String &value) |
| virtual bool | placeOption (const String &option, int value) |
| virtual bool | placeOption (const String &option, real value) |
| virtual void | destroy () |
Protected Methods | |
| bool | setOptions () |
| String | subwidget (const String &name) |
Protected Attributes | |
| bool | is_created_ |
NAME: BtGuiWidget - Base class for GUI widgets
DESCRIPTION:
This class implements a base class widget wrapper for a Tcl/Tk/Tix-based GUI. Specialized widget classes are derived from this base class.
|
|
In order to create an instance of this class one must provide an interpreter object to the constructor. In addition two optional arguments may be given, a parent widget and a name for the widget. It is important that the parent's "create" command is called before the "create" command of a child. |
|
|
See documentation of one of the overloaded constructor. |
|
|
|
|
|
apply the stored options to the widget indicated by the input "name". |
|
|
create the widget and display it. This is a pure virtual function that needs to be defined in derived classes. Reimplemented in BtGuiBalloon, BtGuiButton, BtGuiButtonBox, BtGuiCanvas, BtGuiCheckButton, BtGuiCheckList, BtGuiComboBox, BtGuiControl, BtGuiDirList, BtGuiDirSelectDialog, BtGuiDirTree, BtGuiEntry, BtGuiExFileSelectBox, BtGuiExFileSelectDialog, BtGuiFileEntry, BtGuiFileSelectBox, BtGuiFileSelectDialog, BtGuiFrame, BtGuiGrid, BtGuiHList, BtGuiInputOnly, BtGuiLabel, BtGuiLabelEntry, BtGuiLabelFrame, BtGuiListBox, BtGuiListNoteBook, BtGuiMenu, BtGuiMenuButton, BtGuiMenuSystem, BtGuiMessage, BtGuiMeter, BtGuiNoteBook, BtGuiOptionMenu, BtGuiPanedWindow, BtGuiPopupMenu, BtGuiRadioButton, BtGuiScale, BtGuiScrollbar, BtGuiScrolledGrid, BtGuiScrolledTList, BtGuiScrollHList, BtGuiScrollListBox, BtGuiScrollText, BtGuiScrollWindow, BtGuiSelect, BtGuiStdButtonBox, BtGuiText, BtGuiTList, BtGuiTopLevel, BtGuiTree, and BtGuiWidgetGen. |
|
|
destroy the widget and remove it from the display.. |
|
|
get the value of a specific option for the current widget. |
|
|
let Tcl/Tk pack the widget using the pack options set by "packOption". Reimplemented in BtGuiLabelEntry. |
|
|
See documentation of one of the overloaded functions. |
|
|
See documentation of one of the overloaded functions. |
|
|
set pack options and call "pack". |
|
|
let Tcl/Tk place the widget using the place options set by "placeOption". Reimplemented in BtGuiLabelEntry. |
|
|
See documentation of one of the overloaded functions. |
|
|
See documentation of one of the overloaded functions. |
|
|
set place options and call "place". |
|
|
set options collected so far (normally used by "create"). |
|
|
returns the Tk-path of a subwidget (relevant for TiX meta widgets). Reimplemented in BtGuiLabelEntry, BtGuiOptionMenu, and BtGuiScrollWindow. |
|
|
See documentation of one of the overloaded functions. |
|
|
See documentation of one of the overloaded functions. |
|
|
execute a Tcl/Tk command affecting this widget. |
|
|
return the name of the widget as set in the constructor. |
|
|
See documentation of one of the overloaded functions. |
|
|
See documentation of one of the overloaded functions. |
|
|
set and apply a widget option. |
|
|
|