Public Types | |
| enum | ToolBarArea { Left = 0x1, Right = 0x2, Top = 0x4, Bottom = 0x8, None = 0, All = 0xf } |
ToolBar Dock Identifier. More... | |
Public Member Functions | |
| uiToolBar (uiParent *, const char *nm, ToolBarArea d=Top, bool newline=false) | |
| ~uiToolBar () | |
| int | addButton (const uiToolButtonSetup &) |
| int | addButton (const char *fnm, const char *tooltip, const CallBack &, bool toggle=false) |
| int | addButton (const MenuItem &) |
| void | addButton (uiToolButton *) |
| void | addObject (uiObject *) |
| void | setLabel (const char *) |
| void | setPixmap (int, const char *) |
| void | setPixmap (int, const ioPixmap &) |
| void | setToolTip (int, const char *) |
| void | setShortcut (int, const char *) |
| void | turnOn (int idx, bool yn) |
| bool | isOn (int idx) const |
| void | setSensitive (int idx, bool yn) |
| void | setSensitive (bool yn) |
| bool | isSensitive () const |
| void | setButtonMenu (int, uiPopupMenu *) |
| Menu will be owned by uiToolButton. | |
| virtual void | display (bool yn=true, bool s=false, bool m=false) |
| bool | isHidden () const |
| bool | isVisible () const |
| void | addSeparator () |
| void | reLoadPixMaps () |
| void | clear () |
| virtual uiMainWin * | mainwin () |
| ToolBarArea | prefArea () const |
| QToolBar * | qwidget () |
| const ObjectSet< uiObject > & | objectList () const |
Static Public Member Functions | |
| static ToolBarArea | pluginArea () |
| static ObjectSet< uiToolBar > & | toolBars () |
Public Attributes | |
| CNotifier< uiToolBar, int > | buttonClicked |
Protected Member Functions | |
| uiToolBarBody & | mkbody (const char *, QToolBar &) |
| int | getButtonID (QAction *) |
Protected Attributes | |
| QToolBar * | qtoolbar_ |
| i_ToolBarMessenger * | msgr_ |
| uiToolBarBody * | body_ |
| uiParent * | parent_ |
| ToolBarArea | tbarea_ |
Friends | |
| class | i_ToolBarMessenger |
| uiToolBar::uiToolBar | ( | uiParent * | , | |
| const char * | nm, | |||
| ToolBarArea | d = Top, |
|||
| bool | newline = false | |||
| ) |
| uiToolBar::~uiToolBar | ( | ) |
| int uiToolBar::addButton | ( | const uiToolButtonSetup & | ) |
| int uiToolBar::addButton | ( | const char * | fnm, | |
| const char * | tooltip, | |||
| const CallBack & | , | |||
| bool | toggle = false | |||
| ) |
| void uiToolBar::addButton | ( | uiToolButton * | ) |
| int uiToolBar::addButton | ( | const MenuItem & | ) |
| void uiToolBar::addObject | ( | uiObject * | ) |
| void uiToolBar::addSeparator | ( | ) |
| void uiToolBar::clear | ( | ) |
Reimplemented from uiBaseObject.
| virtual void uiToolBar::display | ( | bool | yn = true, |
|
| bool | s = false, |
|||
| bool | m = false | |||
| ) | [virtual] |
you must call this after all buttons are added s and m are not used.
Reimplemented from uiParent.
| int uiToolBar::getButtonID | ( | QAction * | ) | [protected] |
| bool uiToolBar::isHidden | ( | ) | const |
| bool uiToolBar::isOn | ( | int | idx | ) | const |
Does only work on toggle-buttons
| bool uiToolBar::isSensitive | ( | ) | const |
| bool uiToolBar::isVisible | ( | ) | const |
| uiToolBarBody& uiToolBar::mkbody | ( | const char * | , | |
| QToolBar & | ||||
| ) | [protected] |
| static ToolBarArea uiToolBar::pluginArea | ( | ) | [inline, static] |
| ToolBarArea uiToolBar::prefArea | ( | ) | const [inline] |
| QToolBar* uiToolBar::qwidget | ( | ) | [inline] |
| void uiToolBar::reLoadPixMaps | ( | ) |
| void uiToolBar::setButtonMenu | ( | int | , | |
| uiPopupMenu * | ||||
| ) |
Menu will be owned by uiToolButton.
| void uiToolBar::setLabel | ( | const char * | ) |
| void uiToolBar::setPixmap | ( | int | , | |
| const ioPixmap & | ||||
| ) |
| void uiToolBar::setPixmap | ( | int | , | |
| const char * | ||||
| ) |
| void uiToolBar::setSensitive | ( | bool | yn | ) |
Works on complete toolbar
Reimplemented from uiParent.
| void uiToolBar::setSensitive | ( | int | idx, | |
| bool | yn | |||
| ) |
Does only work on buttons
| void uiToolBar::setShortcut | ( | int | , | |
| const char * | ||||
| ) |
| void uiToolBar::setToolTip | ( | int | , | |
| const char * | ||||
| ) |
| void uiToolBar::turnOn | ( | int | idx, | |
| bool | yn | |||
| ) |
Does only work on toggle-buttons
friend class i_ToolBarMessenger [friend] |
uiToolBarBody* uiToolBar::body_ [protected] |
Reimplemented from uiBaseObject.
i_ToolBarMessenger* uiToolBar::msgr_ [protected] |
uiParent* uiToolBar::parent_ [protected] |
QToolBar* uiToolBar::qtoolbar_ [protected] |
ToolBarArea uiToolBar::tbarea_ [protected] |
1.7.1