15 #include "uibasemod.h" 33 friend class i_ToolBarMessenger;
53 uiParent*
parent() {
return parent_; }
56 int addButton(
const char* fnm,
const uiString& tooltip,
58 bool toggle=
false,
int id=-1);
59 int addButton(
const MenuItem&);
60 void addObject(uiObject*);
64 void setToggle(
int id,
bool);
65 void setIcon(
int id,
const char*);
66 void setIcon(
int id,
const uiIcon&);
67 void setToolTip(
int id,
const uiString&);
68 void setShortcut(
int id,
const char*);
69 void turnOn(
int id,
bool yn);
71 bool isOn(
int id)
const;
73 void setSensitive(
int id,
bool yn);
75 void setSensitive(
bool yn);
77 bool isSensitive()
const;
80 void setButtonMenu(
int,
uiMenu*,
84 virtual void display(
bool yn=
true,
bool s=
false,
bool m=
false);
88 void setToolBarMenuAction(uiAction*);
95 bool isVisible()
const;
105 mQtclass(QToolBar*) qwidget() {
return qtoolbar_; }
116 void doInsertAction(
mQtclass(QAction)*,
118 void doInsertSeparator(
mQtclass(QAction)* before);
119 void doRemoveAction(
mQtclass(QAction)*);
121 void handleFinalise(
bool pre);
126 i_ToolBarMessenger* msgr_;
132 int getButtonID(
mQtclass(QAction*));
135 friend class uiMainWinBody;
141 void addButton(uiButton*);
#define mExpClass(module)
Definition: commondefs.h:160
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
void turnOn(int flag)
Overrides the envirnonment variable.
#define mQtclass(cls)
Definition: commondefs.h:229
bool isHidden(const char *)
The base class for most UI elements.
Definition: uiobj.h:38
Definition: uistring.h:89
Definition: uiparent.h:26
FixedString None()
Definition: keystrs.h:90
bool isOn(int flag=0xffff)
FixedString All()
Definition: keystrs.h:36
CallBacks object-oriented (object + method).
Definition: callback.h:57
Definition: uiaction.h:152
Orientation
Fundamental orientation in 2D UIs.
Definition: oduicommon.h:23