ff7tk  0.02
Toolkit for making FF7 Tools
DialogPreview.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // copyright 2012 - 2016 Chris Rizzitello <sithlord48@gmail.com> //
3 // //
4 // This file is part of FF7tk //
5 // //
6 // FF7tk is free software: you can redistribute it and/or modify //
7 // it under the terms of the GNU General Public License as published by //
8 // the Free Software Foundation, either version 3 of the License, or //
9 // (at your option) any later version. //
10 // //
11 // FF7tk is distributed in the hope that it will be useful, //
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of //
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
14 // GNU General Public License for more details. //
15 /****************************************************************************/
16 
17 #ifndef DIALOGPREVIEW_H
18 #define DIALOGPREVIEW_H
19 
20 #include "qglobal.h"
21 #if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
22  #include <QtWidgets>
23 #else
24  #include <QtGui>
25 #endif
26 
27 class DialogPreview : public QLabel
28 {
29  Q_OBJECT
30 public:
31  DialogPreview(QWidget *parent = 0);
32  void SetLLeft(QColor);
33  void SetULeft(QColor);
34  void SetLRight(QColor);
35  void SetURight(QColor);
36  QColor ll();
37  QColor lr();
38  QColor ul();
39  QColor ur();
40  QPushButton *btn_ul;
41  QPushButton *btn_ur;
42  QPushButton *btn_ll;
43  QPushButton *btn_lr;
44 private:
45  void draw();
46  QColor upper_left;
47  QColor upper_right;
48  QColor lower_left;
49  QColor lower_right;
50 
51 
52 protected:
53  void resizeEvent(QResizeEvent*);
54 private slots:
55  void btn_ul_clicked();
56  void btn_ur_clicked();
57  void btn_ll_clicked();
58  void btn_lr_clicked();
59 signals:
60  void LL_ColorChanged(QColor color);
61  void LR_ColorChanged(QColor color);
62  void UL_ColorChanged(QColor color);
63  void UR_ColorChanged(QColor color);
64 
65 };
66 
67 #endif
QColor upper_right
Definition: DialogPreview.h:47
void btn_ur_clicked()
QPushButton * btn_ur
Definition: DialogPreview.h:41
void btn_ul_clicked()
void SetURight(QColor)
QPushButton * btn_lr
Definition: DialogPreview.h:43
QColor lower_right
Definition: DialogPreview.h:49
void LR_ColorChanged(QColor color)
QColor lower_left
Definition: DialogPreview.h:48
void SetLLeft(QColor)
void btn_ll_clicked()
void LL_ColorChanged(QColor color)
QPushButton * btn_ll
Definition: DialogPreview.h:42
DialogPreview(QWidget *parent=0)
void UL_ColorChanged(QColor color)
QPushButton * btn_ul
Definition: DialogPreview.h:40
void resizeEvent(QResizeEvent *)
void UR_ColorChanged(QColor color)
void btn_lr_clicked()
QColor upper_left
Definition: DialogPreview.h:46
void SetULeft(QColor)
void SetLRight(QColor)