Main Page | Class List | File List | Class Members | File Members | Related Pages

WSysTray Class Reference

Declares the WSysTray class, which inherits from KSystemTray class for custom funtionality. More...

#include <wsystray.h>

List of all members.

Public Slots

void setNumber (int n)
void setText (const QString &text)
void drawFlash ()
void drawSave ()
void drawSend ()
void drawPixmap (const QPixmap &pic)
void drawImage (const QImage &image)
void blendOverlay (const QPixmap &overlay, const QPixmap &sourcePixmap)
void resetIcon ()
void disableMenues ()
void enableMenues ()

Public Member Functions

 WSysTray (QWidget *parent=0, const char *name=0)
 ~WSysTray ()


Detailed Description

Declares the WSysTray class, which inherits from KSystemTray class for custom funtionality.

It adds the functionality of drawing text or pixmaps over the tray icon's pixmap.

Author:
Bojan D.

Definition at line 45 of file wsystray.h.


Constructor & Destructor Documentation

WSysTray::WSysTray QWidget *  parent = 0,
const char *  name = 0
 

Default constructor.

Parameters:
parent parent widget
name the name of the widget

Definition at line 45 of file wsystray.cpp.

WSysTray::~WSysTray  ) 
 

Default destructor.

Definition at line 78 of file wsystray.cpp.


Member Function Documentation

void WSysTray::blendOverlay const QPixmap &  overlay,
const QPixmap &  sourcePixmap
[slot]
 

Blend an overlay icon over sourcePixmap and repaint trayIcon

Parameters:
overlay pixmap to be drawn over the system tray's icon.
sourcePixmap the "background" icon.

Definition at line 156 of file wsystray.cpp.

Referenced by drawPixmap().

void WSysTray::disableMenues  )  [slot]
 

Disables the Start, and Config menu items, and enables the Stop menu item.

Definition at line 207 of file wsystray.cpp.

void WSysTray::drawFlash  )  [slot]
 

Draws a "flash" type thing over the icon pixmap.

Definition at line 125 of file wsystray.cpp.

References drawPixmap().

void WSysTray::drawImage const QImage &  image  )  [slot]
 

Draws the image image over the icon

Parameters:
image image to be drawn over the system tray's icon.

Definition at line 195 of file wsystray.cpp.

References drawPixmap().

Referenced by setText().

void WSysTray::drawPixmap const QPixmap &  pic  )  [slot]
 

Draws the pixmap pic over the icon

Parameters:
pic pixmap to be drawn over the system tray's icon.

Definition at line 150 of file wsystray.cpp.

References blendOverlay().

Referenced by drawFlash(), drawImage(), drawSave(), and drawSend().

void WSysTray::drawSave  )  [slot]
 

Draws a "save" icon over the icon pixmap.

Definition at line 133 of file wsystray.cpp.

References drawPixmap().

void WSysTray::drawSend  )  [slot]
 

Draws a "send" type pixmap over the icon pixmap

Definition at line 141 of file wsystray.cpp.

References drawPixmap().

void WSysTray::enableMenues  )  [slot]
 

Enables the Start, and Config menu items, and disables the Stop menu item.

Definition at line 212 of file wsystray.cpp.

void WSysTray::resetIcon  )  [slot]
 

Restores the icon's pixmap to the original one

Definition at line 201 of file wsystray.cpp.

void WSysTray::setNumber int  n  )  [slot]
 

Writes the integer n over the system tray's icon

Parameters:
n integer to be written onto the system tray's icon

Definition at line 85 of file wsystray.cpp.

References setText().

void WSysTray::setText const QString &  text  )  [slot]
 

Writes the string text over the system tray's icon

Parameters:
text the string to be written onto the system tray's icon

Definition at line 95 of file wsystray.cpp.

References drawImage().

Referenced by setNumber().


The documentation for this class was generated from the following files:
Generated on Mon Sep 5 12:52:34 2005 for kwebsnap.kdevelop by  doxygen 1.3.9.1