summaryrefslogtreecommitdiff
path: root/noncore/graphics/drawpad/colorpanel.h
Unidiff
Diffstat (limited to 'noncore/graphics/drawpad/colorpanel.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/graphics/drawpad/colorpanel.h62
1 files changed, 0 insertions, 62 deletions
diff --git a/noncore/graphics/drawpad/colorpanel.h b/noncore/graphics/drawpad/colorpanel.h
deleted file mode 100644
index 4664879..0000000
--- a/noncore/graphics/drawpad/colorpanel.h
+++ b/dev/null
@@ -1,62 +0,0 @@
1/***************************************************************************
2 * *
3 * DrawPad - a drawing program for Opie Environment *
4 * *
5 * (C) 2002 by S. Prud'homme <prudhomme@laposte.net> *
6 * *
7 * This program is free software; you can redistribute it and/or modify *
8 * it under the terms of the GNU General Public License as published by *
9 * the Free Software Foundation; either version 2 of the License, or *
10 * (at your option) any later version. *
11 * *
12 ***************************************************************************/
13
14#ifndef COLORPANEL_H
15#define COLORPANEL_H
16
17#include <qframe.h>
18#include <qwidget.h>
19
20class QGridLayout;
21
22class ColorPanelButton : public QFrame
23{
24 Q_OBJECT
25
26public:
27 ColorPanelButton(const QColor& color, QWidget* parent = 0, const char* name = 0);
28 ~ColorPanelButton();
29
30 void enterEvent(QEvent* e);
31 void leaveEvent(QEvent* e);
32 void paintEvent(QPaintEvent* e);
33 void mouseReleaseEvent(QMouseEvent* e);
34
35signals:
36 void selected(const QColor&);
37
38private:
39 QColor m_color;
40};
41
42class ColorPanel : public QWidget
43{
44 Q_OBJECT
45
46public:
47 ColorPanel(QWidget* parent = 0, const char* name = 0);
48 ~ColorPanel();
49
50 void addColor(const QColor& color, int row, int col);
51
52public slots:
53 void buttonSelected(const QColor& color);
54
55signals:
56 void colorSelected(const QColor&);
57
58private:
59 QGridLayout* m_pGridLayout;
60};
61
62#endif // COLORPANEL_H