14 * |
14 * |
15 * You should have received a copy of the GNU General Public License |
15 * You should have received a copy of the GNU General Public License |
16 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
16 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 */ |
17 */ |
18 |
18 |
|
19 #ifndef COLORSELECTOR_H |
|
20 #define COLORSELECTOR_H |
|
21 |
19 #include <qdialog.h> |
22 #include <qdialog.h> |
20 #include <qdialogbuttonbox.h> |
23 #include <qdialogbuttonbox.h> |
21 #include <qgraphicsscene.h> |
24 #include <qgraphicsscene.h> |
22 #include <qlabel.h> |
25 #include <qlabel.h> |
23 #include "common.h" |
26 #include "common.h" |
27 |
30 |
28 public: |
31 public: |
29 explicit ColorSelectDialog (short dDefault = -1, QWidget* parent = null); |
32 explicit ColorSelectDialog (short dDefault = -1, QWidget* parent = null); |
30 static bool staticDialog (short& dValue, short dDefault = -1, QWidget* parent = null); |
33 static bool staticDialog (short& dValue, short dDefault = -1, QWidget* parent = null); |
31 |
34 |
32 QGraphicsScene* qScene; |
35 QGraphicsScene* gs_scene; |
33 QGraphicsView* qView; |
36 QGraphicsView* gv_view; |
34 QLabel* qColorInfo; |
37 QLabel* lb_colorInfo; |
35 QDialogButtonBox* qButtons; |
38 QDialogButtonBox* bbx_buttons; |
36 short dSelColor; |
39 short selColor; |
37 |
40 |
38 private: |
41 private: |
39 void drawScene (); |
42 void drawScene (); |
40 void drawColorInfo (); |
43 void drawColorInfo (); |
41 |
44 |
42 private slots: |
45 private slots: |
43 void mousePressEvent (QMouseEvent* event); |
46 void mousePressEvent (QMouseEvent* event); |
44 }; |
47 }; |
|
48 |
|
49 #endif // COLORSELECTOR_H |