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

StatDock Class Reference

#include <statdock.h>

Inheritance diagram for StatDock:


List of all members.

Detailed Description

A system tray window that displays a recent history of readings. A single application might have many of these windows.

Two simultaneous sets of readings are supported; these will be referred to as upper and lower readings. When diagram splitting is switched on, these readings will be displayed together on the diagram with the upper readings shown above the lower readings. When diagram splitting is switched off, only the upper readings will be displayed.

The parent window of a StatDock must be a StatPopup, which provides all of the actions in this window's context menu.

Definition at line 35 of file statdock.h.

Public Slots

void addPercentReading (int upper, int lower)
void clearHistory ()

Public Member Functions

void setActive (bool)
void setColor (const QColor &)
void setFill (int)
void setGrid (bool)
void setLabel (const QString &)
void setLabelled (bool)
void setSoft (bool)
void setSplit (bool)
 StatDock (int whichDock, const QString &useLabel, StatPopup *parent, const char *name=0)

Static Public Attributes

static const QColor colorBlack
static const QColor colorGrid
static const QColor colorGridInactive
static const QColor colorLabel
static const QColor colorLabelInactive
static const QColor colorLower
static const QColor colorLowerInactive
static const int fillBars = 1
static const int fillLines = 0
static const int fillShaded = 2

Private Member Functions

void paintEvent (QPaintEvent *)

Private Attributes

bool active
int * bufLower
int * bufUpper
QColor colorUpper
QColor colorUpperInactive
int fill
bool grid
int i
int j
QString label
bool labelled
int oldLower
int oldUpper
int pos
bool soft
bool split
int tmpPos

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

Generated by  Doxygen 1.6.0   Back to index