ksystemtray.cpp
72 KWin::setSystemTrayWindowFor( winId(), parent?parent->topLevelWidget()->winId(): tqt_xrootwin() );
101 // Handle the possibility that the requested system tray size is something other than 22x22 pixels, per the Free Desktop specifications
323 TQPixmap KSystemTray::loadSizedIcon( const TQString &icon, int iconWidth, TDEInstance *instance )
332 TQImage correctedImage = KImageEffect::convertToPremultipliedAlpha( iconPixmapToSet.convertToImage() );
static TQImage convertToPremultipliedAlpha(TQImage input)
static int warningContinueCancel(TQWidget *parent, const TQString &text, const TQString &caption=TQString::null, const KGuiItem &buttonContinue=KStdGuiItem::cont(), const TQString &dontAskAgainName=TQString::null, int options=Notify)
Display a "warning" dialog.
Definition: tdemessagebox.cpp:585
static TQPixmap loadSizedIcon(const TQString &icon, int iconWidth, TDEInstance *instance=TDEGlobal::instance())
Loads an icon icon using the icon loader class of the given instance instance.
Definition: ksystemtray.cpp:323
KSystemTray(TQWidget *parent=0, const char *name=0)
Construct a KSystemTray widget just like any other widget.
Definition: ksystemtray.cpp:61
void toggleActive()
Toggles the state of the window associated with this system tray icon (hides it, shows it or activate...
Definition: ksystemtray.cpp:222
void setInactive()
Hides the window associated with this system tray icon, regardless of its current state.
Definition: ksystemtray.cpp:232
virtual void contextMenuAboutToShow(TDEPopupMenu *menu)
Makes it easy to adjust some menu items right before the context menu becomes visible.
Definition: ksystemtray.cpp:178
TDEActionCollection * actionCollection()
Easy access to the actions in the context menu Currently includes KStdAction::Quit and minimizeRestor...
Definition: ksystemtray.cpp:310
void mouseReleaseEvent(TQMouseEvent *)
Reimplemented to provide the standard show/raise behavior for the parentWidget() and the context menu...
Definition: ksystemtray.cpp:173
static TQPixmap loadIcon(const TQString &icon, TDEInstance *instance=TDEGlobal::instance())
Loads an icon icon using the icon loader class of the given instance instance.
Definition: ksystemtray.cpp:315
void mousePressEvent(TQMouseEvent *)
Reimplemented to provide the standard show/raise behavior for the parentWidget() and the context menu...
Definition: ksystemtray.cpp:145
virtual void setCaption(const TQString &title)
Changes the tray's text description (which can be seen e.g.
Definition: ksystemtray.cpp:341
void setActive()
Activates the window associated with this system tray icon, regardless of its current state.
Definition: ksystemtray.cpp:227
const TQValueList< WId > & stackingOrder() const
NET::WindowType windowType(int supported_types) const
bool isMinimized() const
NET::MappingState mappingState() const
bool hasState(unsigned long s) const
TQRect geometry() const
int desktop() const
bool onAllDesktops() const
static void setCurrentDesktop(int desktop)
static void activateWindow(WId win, long time=0)
static void setOnAllDesktops(WId win, bool b)
static WindowInfo windowInfo(WId win, unsigned long properties=0, unsigned long properties2=0)
static void setSystemTrayWindowFor(WId trayWin, WId forWin)
static void setIcons(WId win, const TQPixmap &icon, const TQPixmap &miniIcon)
KeepAbove
WindowType
int readNumEntry(const TQString &pKey, int nDefault=0) const
static TDEInstance * instance()
TQPixmap loadIcon(const TQString &name, TDEIcon::Group group, int size=0, int state=TDEIcon::DefaultState, TQString *path_store=0L, bool canReturnNull=false) const
Panel
TDEIconLoader * iconLoader() const
int insertTitle(const TQString &text, int id=-1, int index=-1)
Inserts a title item with no icon.
Definition: tdepopupmenu.cpp:181
TDEAction * quit(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Quit the program.
Definition: kstdaction.cpp:162
const char * name(StdAction id)
This will return the internal name of a given standard action.
Definition: kstdaction.cpp:136