org.kde.koala
public class KSystemTray extends QLabel
UNKNOWN: \brief %KDE System Tray Window class
Constructor Summary | |
---|---|
protected | KSystemTray(Class dummy) |
KSystemTray(QWidget parent, String name)
Construct a KSystemTray widget just like any other widget.
| |
KSystemTray(QWidget parent) | |
KSystemTray() |
Method Summary | |
---|---|
KActionCollection | actionCollection()
Easy access to the actions in the context menu
Currently includes KStdAction.Quit and minimizeRestore |
String | className() |
KPopupMenu | contextMenu()
Access to the context menu. |
protected void | contextMenuAboutToShow(KPopupMenu menu)
Makes it easy to adjust some menu items right before the
context menu becomes visible. |
void | dispose() Delete the wrapped C++ instance ahead of finalize() |
protected void | enterEvent(QEvent arg1)
Reimplemented for internal reasons. |
protected void | finalize() Deletes the wrapped C++ instance |
boolean | isDisposed() Has the wrapped C++ instance been deleted? |
static QPixmap | loadIcon(String icon, KInstanceInterface instance)
Loads an icon icon using the icon loader class of the given instance instance.
The icon is applied the panel effect as it should only be used to be shown in the
system tray.
|
static QPixmap | loadIcon(String icon) |
QMetaObject | metaObject() |
protected void | mousePressEvent(QMouseEvent arg1)
Reimplemented to provide the standard show/raise behavior
for the parentWidget() and the context menu.
|
protected void | mouseReleaseEvent(QMouseEvent arg1)
Reimplemented to provide the standard show/raise behavior
for the parentWidget() and the context menu.
|
void | setActive()
Activates the window associated with this system tray icon, regardless of its current state. |
void | setCaption(String title)
Changes the tray's text description (which can be seen e.g. in the systray
configuration dialog). |
void | setInactive()
Hides the window associated with this system tray icon, regardless of its current state. |
void | setPixmap(QPixmap icon)
Changes the tray's icon. |
void | showEvent(QShowEvent arg1)
Reimplemented for internal reasons. |
void | toggleActive()
Toggles the state of the window associated with this system tray icon (hides it,
shows it or activates it depending on the window state). |
parent
has a special meaning:
Besides owning the tray window, the parent widget will
dissappear from taskbars when it is iconified while the tray
window is visible. This is the desired behavior. After all,
the tray window is
the parent's taskbar icon.
Furthermore, the parent widget is shown or raised respectively
when the user clicks on the trray window with the left mouse
button.UNKNOWN: Construct a KSystemTray widget just like any other widget.
UNKNOWN: Easy access to the actions in the context menu Currently includes KStdAction.Quit and minimizeRestore
UNKNOWN: Access to the context menu.
UNKNOWN: Makes it easy to adjust some menu items right before the context menu becomes visible.
UNKNOWN: Reimplemented for internal reasons.
icon
using the icon loader class of the given instance instance.
The icon is applied the panel effect as it should only be used to be shown in the
system tray.
It's commonly used in the form : systray.setPixmap( systray.loadIcon( "mysystray" ) );UNKNOWN: Loads an icon icon
using the icon loader class of the given instance instance.
UNKNOWN: Reimplemented to provide the standard show/raise behavior for the parentWidget() and the context menu.
UNKNOWN: Reimplemented to provide the standard show/raise behavior for the parentWidget() and the context menu.
UNKNOWN: Activates the window associated with this system tray icon, regardless of its current state.
UNKNOWN: Changes the tray's text description (which can be seen e.
UNKNOWN: Hides the window associated with this system tray icon, regardless of its current state.
UNKNOWN: Changes the tray's icon.
UNKNOWN: Reimplemented for internal reasons.
UNKNOWN: Toggles the state of the window associated with this system tray icon (hides it, shows it or activates it depending on the window state).