13
* Provides a system tray icon for a normal window.
15
* @author Richard Moore, rich@kde.org
18
class KSysTrayCmd : public QLabel
25
void setCommand( const QString &cmd ) { command = cmd; }
26
void setPattern( const QString ®exp ) { window = regexp; }
27
void setStartOnShow( bool enable ) { lazyStart = enable; }
28
void setNoQuit( bool enable ) { noquit = enable; }
29
void setDefaultTip( const QString &tip ) { tooltip = tip; }
30
bool hasTargetWindow() const { return (win != 0); }
31
bool hasRunningClient() const { return (client != 0); }
32
const QString &errorMsg() const { return errStr; }
41
void toggleWindow() { if ( isVisible ) hideWindow(); else showWindow(); }
43
void setTargetWindow( WId w );
44
void execContextMenu( const QPoint &pos );
51
void windowAdded(WId w);
52
void windowChanged(WId w);
56
void checkExistingWindows();
57
void setTargetWindow( const KWin::Info &info );
59
void mousePressEvent( QMouseEvent *e );
60
void enterEvent( QEvent* );
71
KShellProcess *client;
72
KWinModule *kwinmodule;
76
#endif // KSYSTRAYCMD_H