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

StatDock::StatDock ( int  whichDock,
const QString &  useLabel,
StatPopup parent,
const char *  name = 0 
)

Constructor and destructor.

Note that the constructor will call parent->initDock().

Parameter whichDock must be 0 or 1 to specify whether this dock will become dock[0] or dock[1] in the given StatPopup parent. Parameter useLabel should contain the label that will be drawn on the diagram if labelling is enabled.

Definition at line 34 of file statdock.cpp.

References bufLower, bufUpper, i, and StatPopup::initDock().

                                             :
        KSystemTray(parent,name),
        label(useLabel),
        bufUpper(new int[DOCK_SIZE]),
        bufLower(new int[DOCK_SIZE]),
        pos(0) {
    // Initialise the stored readings.
    for (i = 0; i < DOCK_SIZE; i++)
        bufUpper[i] = bufLower[i] = 0;

    // Initialise the display.
    parent->initDock(this, contextMenu(), whichDock);
    setBackgroundColor(colorBlack);
    resize(24, 24);
    show();
}


Generated by  Doxygen 1.6.0   Back to index