#include <ktoolbarbutton.h>
Public Slots | |
| void | modeChange () |
Public Methods | |
| KToolBarButton (const QString &icon, int id, QWidget *parent, const char *name=0L, const QString &txt=QString::null, KInstance *_instance=KGlobal::instance()) | |
| KToolBarButton (const QPixmap &pixmap, int id, QWidget *parent, const char *name=0L, const QString &txt=QString::null) | |
| KToolBarButton (QWidget *parent=0L, const char *name=0L) | |
| ~KToolBarButton () | |
| virtual void | setPixmap (const QPixmap &pixmap) |
| void | setDefaultPixmap (const QPixmap &pixmap) |
| void | setDisabledPixmap (const QPixmap &pixmap) |
| virtual void | setText (const QString &text) |
| virtual void | setIcon (const QString &icon) |
| virtual void | setIcon (const QPixmap &pixmap) |
| |
| virtual void | setIconSet (const QIconSet &iconset) |
| void | setIcon (const QString &icon, bool) |
| void | setDefaultIcon (const QString &icon) |
| void | setDisabledIcon (const QString &icon) |
| void | on (bool flag=true) |
| void | toggle () |
| void | setToggle (bool toggle=true) |
| QPopupMenu * | popup () |
| void | setPopup (QPopupMenu *p, bool toggle=false) |
| void | setDelayedPopup (QPopupMenu *p, bool toggle=false) |
| void | setRadio (bool f=true) |
| void | setNoStyle (bool no_style=true) |
Protected Methods | |
| bool | isRaised () const |
| |
| bool | isActive () const |
| |
| int | iconTextMode () const |
| |
Definition at line 45 of file ktoolbarbutton.h.
|
||||||||||||||||||||||||||||
|
Construct a button with an icon loaded by the button itself. This will trust the button to load the correct icon with the correct size.
|
|
||||||||||||||||||||||||
|
Construct a button with an existing pixmap. It is not recommended that you use this as the internal icon loading code will almost always get it "right".
|
|
||||||||||||
|
Construct a separator button
|
|
|
Standard destructor |
|
|
This slot should be called whenever the toolbar mode has potentially changed. This includes such events as text changing, orientation changing, etc. |
|
|
Turn this button on or off
|
|
|
Return a pointer to this button's popup menu (if it exists) |
|
|
|
|
|
|
|
||||||||||||
|
Gives this button a delayed popup menu. This function allows you to add a delayed popup menu to the button. The popup menu is then only displayed when the button is pressed and held down for about half a second. You can also make the popup-menu "sticky", i.e. visible until a selection is made or the mouse is clikced elsewhere, by simply setting the second argument to true. This "sticky" button feature allows you to make a selection without having to press and hold down the mouse while making a selection.
|
|
|
|
|
|
|
|
||||||||||||
|
Definition at line 164 of file ktoolbarbutton.h. References setIcon(). |
|
|
Set the icon for this button. The icon will be loaded internally with the correct size. This function is preferred over setIconSet
Referenced by setIcon(). |
|
|
Set the pixmaps for this toolbar button from a QIconSet. If you call this you don't need to call any of the other methods that set icons or pixmaps.
|
|
|
Toolbar buttons naturally will assume the global styles concerning icons, icons sizes, etc. You can use this function to explicitely turn this off, if you like.
|
|
|
|
|
||||||||||||
|
Give this button a popup menu. There will not be a delay when you press the button. Use setDelayedPopup if you want that behavior. You can also make the popup-menu "sticky", i.e. visible until a selection is made or the mouse is clikced elsewhere, by simply setting the second argument to true. This "sticky" button feature allows you to make a selection without having to press and hold down the mouse while making a selection.
|
|
|
Turn this button into a radio button
|
|
|
Set the text for this button. The text will be either used as a tooltip (IconOnly) or will be along side the icon
|
|
|
Turn this button into a toggle button or disable the toggle aspects of it. This does not toggle the button itself. Use toggle() for that.
|
|
|
Toggle this button |
1.2.18