Logo Search packages:      
Sourcecode: kcpuload version File versions  Download package

StatPopup Class Reference

#include <statpopup.h>

Inheritance diagram for StatPopup:


List of all members.

Detailed Description

A small pop-up window that contains a continually updating display of statistics.

This pop-up will be sticky and stay-on-top by default.

Up to two windows docked in the system tray (of class StatDock) can be maintained by this pop-up. There should only be one StatPopup per application.

Note that initDock() and cleanUpDock() must be called when a system tray window is created or closed respectively, though initDock() is generally called automatically from the StatDock constructor.

Note also that the constructor for this class does not call setupActions(), readPopupState() or startUpdates(); these must all be called by other routines (such as subclass constructors), since they require either subclass initialisation or an existing system tray window.

Definition at line 50 of file statpopup.h.

Public Slots

void clearHistory ()
void selectColor0 ()
void selectColor1 ()
void selectSpeed ()
void setActive (bool)
void setFillBars ()
void setFillLines ()
void setFillShaded ()
void setGrid (bool)
void setLabelled (bool)
void setSoft (bool)
void setSplit (bool)

Public Member Functions

virtual void cleanUpDock (int whichDock)
int getSpeed () const
virtual void initDock (StatDock *target, KPopupMenu *menu, int whichDock)
bool isActive () const
bool isSplit () const
void readPopupState ()
void savePopupState ()
 StatPopup (bool useSupportSplit, QWidget *parent=0, const char *name=0)

Static Public Attributes

static const QColor colorBorder

Protected Slots

void takeReading ()

Protected Member Functions

void closeEvent (QCloseEvent *)
virtual QColor defaultDockColor (int which) const =0
virtual QString dockName (int which) const =0
StatDockfirstDock ()
void hideEvent (QHideEvent *)
virtual void insertCustomItems (KPopupMenu *)
void mouseMoveEvent (QMouseEvent *)
void mousePressEvent (QMouseEvent *)
void mouseReleaseEvent (QMouseEvent *)
void paintEvent (QPaintEvent *)
void requestResize ()
virtual void setCustomProperties (StatDock *)
virtual void setupActions ()
virtual void setupCustomActions ()
void showEvent (QShowEvent *)
void startUpdates ()
void stopUpdates ()
virtual void takeReadingInternal ()=0

Protected Attributes

KActionCollection * coll
KConfig * config
StatDockdock [2]
QString fullReading
int lower [2]
int upper [2]

Private Member Functions

void resizeToText ()

Private Attributes

KToggleAction * actActive
KAction * actClearHistory
KAction * actColor0
KAction * actColor1
KToggleAction * actFillBars
KToggleAction * actFillLines
KToggleAction * actFillShaded
KToggleAction * actGrid
KToggleAction * actLabelled
KToggleAction * actSoft
KAction * actSpeed
KToggleAction * actSplit
bool closing
QColor color [2]
int fillStyle
bool isDragged
int relX
int relY
bool resizeRequested
int speed
bool supportSplit
QTimer * timer

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index