summaryrefslogtreecommitdiffstats
path: root/kcpuload/kcpuload/kcpudock.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kcpuload/kcpuload/kcpudock.cpp')
-rw-r--r--kcpuload/kcpuload/kcpudock.cpp32
1 files changed, 32 insertions, 0 deletions
diff --git a/kcpuload/kcpuload/kcpudock.cpp b/kcpuload/kcpuload/kcpudock.cpp
new file mode 100644
index 0000000..32352c3
--- /dev/null
+++ b/kcpuload/kcpuload/kcpudock.cpp
@@ -0,0 +1,32 @@
+
+/***************************************************************************
+ * *
+ * 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"
+
+#include <klocale.h>
+
+KCPUDock::KCPUDock(int whichCPU, StatPopup *parent, const char *name) :
+ StatDock(whichCPU, i18n("C"), parent, name) {
+}
+
+void KCPUDock::setCPULabel(int set) {
+ if (set == 1)
+ setLabel(i18n("C 0"));
+ else if (set == 2)
+ setLabel(i18n("C 1"));
+ else
+ setLabel(i18n("C"));
+
+ repaint();
+}
+