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.
33 lines
1.2 KiB
33 lines
1.2 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. *
|
||
|
* *
|
||
|
***************************************************************************/
|
||
|
|
||
|
#include "kcpudock.h"
|
||
|
|
||
12 years ago
|
#include <tdelocale.h>
|
||
15 years ago
|
|
||
13 years ago
|
KCPUDock::KCPUDock(int whichCPU, StatPopup *parent, const char *name) :
|
||
|
StatDock(whichCPU, i18n("C"), parent, name) {
|
||
15 years ago
|
}
|
||
|
|
||
|
void KCPUDock::setCPULabel(int set) {
|
||
|
if (set == 1)
|
||
|
setLabel(i18n("C 0"));
|
||
|
else if (set == 2)
|
||
|
setLabel(i18n("C 1"));
|
||
|
else
|
||
|
setLabel(i18n("C"));
|
||
|
|
||
13 years ago
|
repaint();
|
||
15 years ago
|
}
|
||
|
|