org.kde.koala
public class KToolBarButton extends QToolButton
UNKNOWN: A toolbar button.
Constructor Summary | |
---|---|
protected | KToolBarButton(Class dummy) |
KToolBarButton(String icon, int id, QWidget parent, String name, String txt, KInstanceInterface _instance)
Construct a button with an icon loaded by the button itself.
| |
KToolBarButton(String icon, int id, QWidget parent, String name, String txt) | |
KToolBarButton(String icon, int id, QWidget parent, String name) | |
KToolBarButton(String icon, int id, QWidget parent) | |
KToolBarButton(QPixmap pixmap, int id, QWidget parent, String name, String txt)
Construct a button with an existing pixmap. | |
KToolBarButton(QPixmap pixmap, int id, QWidget parent, String name) | |
KToolBarButton(QPixmap pixmap, int id, QWidget parent) | |
KToolBarButton(QWidget parent, String name)
Construct a separator button | |
KToolBarButton(QWidget parent) | |
KToolBarButton() |
Method Summary | |
---|---|
String | className() |
void | dispose() Delete the wrapped C++ instance ahead of finalize() |
protected void | drawButton(QPainter p) |
protected void | enterEvent(QEvent e) |
boolean | event(QEvent e) |
boolean | eventFilter(QObject o, QEvent e) |
protected void | finalize() Deletes the wrapped C++ instance |
protected int | iconTextMode() |
int | id()
Returns the button's id. |
protected boolean | isActive() |
boolean | isDisposed() Has the wrapped C++ instance been deleted? |
protected boolean | isRaised() |
protected void | leaveEvent(QEvent e) |
QMetaObject | metaObject() |
QSize | minimumSize() |
QSize | minimumSizeHint() |
void | modeChange()
This slot should be called whenever the toolbar mode has
potentially changed. |
protected void | mousePressEvent(QMouseEvent arg1) |
protected void | mouseReleaseEvent(QMouseEvent arg1) |
void | on(boolean flag)
Turn this button on or off |
void | on() |
protected void | paletteChange(QPalette arg1) |
QPopupMenu | popup()
Return a pointer to this button's popup menu (if it exists) |
void | setDelayedPopup(QPopupMenu p, boolean unused)
Gives this button a delayed popup menu.
|
void | setDelayedPopup(QPopupMenu p) |
void | setIcon(String icon)
Set the icon for this button. |
void | setIcon(QPixmap pixmap) |
void | setIconSet(QIconSet iconset)
Set the pixmaps for this toolbar button from a QIconSet.
|
void | setNoStyle(boolean no_style)
Toolbar buttons naturally will assume the global styles
concerning icons, icons sizes, etc. |
void | setNoStyle() |
void | setPopup(QPopupMenu p, boolean unused)
Give this button a popup menu. |
void | setPopup(QPopupMenu p) |
void | setRadio(boolean f)
Turn this button into a radio button |
void | setRadio() |
void | setText(String text)
Set the text for this button. |
void | setTextLabel(String arg1, boolean tipToo) |
void | setToggle(boolean toggle)
Turn this button into a toggle button or disable the toggle
aspects of it. |
void | setToggle() |
protected void | showMenu() |
QSize | sizeHint() |
protected void | slotClicked() |
protected void | slotDelayTimeout() |
protected void | slotPressed() |
protected void | slotReleased() |
protected void | slotToggled() |
void | toggle()
Toggle this button |
Parameters: icon Name of icon to load (may be absolute or relative) id Id of this button parent This button's parent name This button's internal name txt This button's text (in a tooltip or otherwise) _instance the instance to use for this button
UNKNOWN: Construct a button with an icon loaded by the button itself.
Parameters: pixmap Name of icon to load (may be absolute or relative) id Id of this button parent This button's parent name This button's internal name txt This button's text (in a tooltip or otherwise)
UNKNOWN: Construct a button with an existing pixmap.
Parameters: parent This button's parent name This button's internal name
UNKNOWN: Construct a separator button
UNKNOWN: Returns the button's id.
UNKNOWN: This slot should be called whenever the toolbar mode has potentially changed.
Parameters: flag true or false
UNKNOWN: Turn this button on or off
UNKNOWN: Return a pointer to this button's popup menu (if it exists)
Parameters: p the new popup menu unused Has no effect - ignore it.
UNKNOWN: Gives this button a delayed popup menu.
Parameters: icon The name of the icon
UNKNOWN: Set the icon for this button.
Parameters: iconset The iconset to use
UNKNOWN: Set the pixmaps for this toolbar button from a QIconSet.
Parameters: no_style Will disable styles if true
UNKNOWN: Toolbar buttons naturally will assume the global styles concerning icons, icons sizes, etc.
Parameters: p The new popup menu unused Has no effect - ignore it.
UNKNOWN: Give this button a popup menu.
Parameters: f true or false
UNKNOWN: Turn this button into a radio button
Parameters: text The button (or tooltip) text
UNKNOWN: Set the text for this button.
Parameters: toggle true or false
UNKNOWN: Turn this button into a toggle button or disable the toggle aspects of it.
UNKNOWN: Toggle this button