summaryrefslogtreecommitdiffstats
path: root/ksirc/KSTicker/kspainter.h
diff options
context:
space:
mode:
Diffstat (limited to 'ksirc/KSTicker/kspainter.h')
-rw-r--r--ksirc/KSTicker/kspainter.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/ksirc/KSTicker/kspainter.h b/ksirc/KSTicker/kspainter.h
new file mode 100644
index 00000000..21f9495d
--- /dev/null
+++ b/ksirc/KSTicker/kspainter.h
@@ -0,0 +1,25 @@
+#ifndef KSPAINTER_H
+#define KSPAINTER_H
+
+#include <qpainter.h>
+#include <qobject.h>
+
+class KSPainter
+{
+public:
+ static void initOptColours();
+ static void colourDrawText(QPainter *p, int startx, int starty, char *str, int length = -1);
+ static const int startspecial;
+ static const int maxcolour;
+ static const int optcolours;
+ static QColor num2colour[16+8];
+ static int colour2num(const QColor &colour);
+
+ static const QColor brown;
+ static const QColor orange;
+ static const QColor lightCyan;
+ static const QColor lightBlue;
+ static const QColor pink;
+};
+
+#endif