23 #ifndef _TDETOOLBARBUTTON_H
24 #define _TDETOOLBARBUTTON_H
27 #include <tqtoolbutton.h>
28 #include <tqintdict.h>
30 #include <tdeglobal.h>
33 class TDEToolBarButtonPrivate;
63 const char *name=0L,
const TQString &txt=TQString::null,
78 const char *name=0L,
const TQString &txt=TQString::null);
104 virtual void setPixmap(
const TQPixmap &pixmap) TDE_DEPRECATED;
113 void setDefaultPixmap(
const TQPixmap& pixmap) TDE_DEPRECATED;
122 void setDisabledPixmap(
const TQPixmap& pixmap) TDE_DEPRECATED;
131 virtual void setText(
const TQString &text);
139 virtual void setIcon(
const TQString &icon);
142 virtual void setIcon(
const TQPixmap &pixmap )
143 { TQToolButton::setIcon( pixmap ); }
151 virtual void setIconSet(
const TQIconSet &iconset );
153 #ifndef KDE_NO_COMPAT
165 TDE_DEPRECATED
void setIcon(
const TQString &icon,
bool generate ) { Q_UNUSED(generate);
setIcon( icon ); }
174 void setDefaultIcon(
const TQString& icon) TDE_DEPRECATED;
183 void setDisabledIcon(
const TQString& icon) TDE_DEPRECATED;
191 void on(
bool flag =
true);
205 void setToggle(
bool toggle =
true);
210 TQPopupMenu *popup();
226 void setPopup (TQPopupMenu *p,
bool unused =
false);
238 void setDelayedPopup(TQPopupMenu *p,
bool unused =
false);
245 void setRadio(
bool f =
true);
254 void setNoStyle(
bool no_style =
true);
268 void doubleClicked(
int);
272 void highlighted(
int,
bool);
281 virtual void setTextLabel(
const TQString&,
bool tipToo);
284 bool event(TQEvent *e);
285 void paletteChange(
const TQPalette &);
286 void leaveEvent(TQEvent *e);
287 void enterEvent(TQEvent *e);
288 void drawButton(TQPainter *p);
289 bool eventFilter (TQObject *o, TQEvent *e);
291 void mousePressEvent( TQMouseEvent * );
293 void mouseReleaseEvent( TQMouseEvent * );
295 TQSize sizeHint()
const;
296 TQSize minimumSizeHint()
const;
297 TQSize minimumSize()
const;
300 bool isRaised()
const;
302 bool isActive()
const;
304 int iconTextMode()
const;
311 void slotDelayTimeout();
314 virtual void virtual_hook(
int id,
void* data );
316 TDEToolBarButtonPrivate *d;
static TDEInstance * instance()