You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
73 lines
1.9 KiB
73 lines
1.9 KiB
15 years ago
|
|
||
|
/***************************************************************************
|
||
|
* *
|
||
|
* KCPULoad is copyright (c) 1999-2000, Markus Gustavsson *
|
||
|
* (c) 2002, Ben Burton *
|
||
|
* *
|
||
|
* This program is free software; you can redistribute it and/or modify *
|
||
|
* it under the terms of the GNU General Public License as published by *
|
||
|
* the Free Software Foundation; either version 2 of the License, or *
|
||
|
* (at your option) any later version. *
|
||
|
* *
|
||
|
***************************************************************************/
|
||
|
|
||
|
#ifndef __KCPULOAD_H
|
||
|
#define __KCPULOAD_H
|
||
|
|
||
|
#include "statpopup.h"
|
||
|
|
||
|
class KCPUProc;
|
||
12 years ago
|
class TDEToggleAction;
|
||
15 years ago
|
|
||
|
/**
|
||
|
* The specific pop-up window used by KCPULoad.
|
||
|
*/
|
||
|
class KCPULoad : public StatPopup {
|
||
|
Q_OBJECT
|
||
13 years ago
|
|
||
15 years ago
|
|
||
|
public:
|
||
|
/**
|
||
|
* Constructor and destructor.
|
||
|
*/
|
||
13 years ago
|
KCPULoad(TQWidget *parent = 0, const char *name = 0);
|
||
15 years ago
|
~KCPULoad();
|
||
|
|
||
|
public slots:
|
||
|
/**
|
||
|
* Slots for menu items.
|
||
|
*/
|
||
|
void setSMP(bool);
|
||
|
|
||
|
protected:
|
||
|
/**
|
||
|
* Overrides from StatPopup.
|
||
|
*/
|
||
14 years ago
|
virtual TQString dockName(int which) const;
|
||
|
virtual TQColor defaultDockColor(int which) const;
|
||
15 years ago
|
virtual void setupCustomActions();
|
||
12 years ago
|
virtual void insertCustomItems(TDEPopupMenu* menu);
|
||
15 years ago
|
virtual void takeReadingInternal();
|
||
|
|
||
|
private:
|
||
|
/**
|
||
|
* Changes the number of readings.
|
||
|
*/
|
||
|
void resizeReadings(int n);
|
||
|
|
||
|
/**
|
||
|
* Reading raw CPU information.
|
||
|
*/
|
||
|
KCPUProc* proc;
|
||
|
/**< Used to obtain the raw information. */
|
||
|
bool supportSMP;
|
||
|
/**< Does this system support SMP at all? */
|
||
|
|
||
|
/**
|
||
|
* Actions.
|
||
|
*/
|
||
12 years ago
|
TDEToggleAction* actSMP;
|
||
15 years ago
|
};
|
||
|
|
||
|
#endif
|