00001 #ifndef __GRADIENTDIALOG_HPP__
00002 #define __GRADIENTDIALOG_HPP__
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #include <QDialog>
00027 #include <QColor>
00028
00029 class FrameColored;
00030
00031 class QWidget;
00032 class QGridLayout;
00033 class QPushButton;
00034
00038 class GradientDialog : public QDialog
00039 {
00040 Q_OBJECT
00041
00042 private:
00043
00044 QColor startingColor;
00045 QColor endingColor;
00047 QGridLayout* pMainLayout;
00049 QPushButton* pColorButton1;
00050 QPushButton* pColorButton2;
00052 FrameColored* pFrameColor1;
00053 FrameColored* pFrameColor2;
00055 QPushButton* pValidateButton;
00056 QPushButton* pCancelButton;
00058 public slots:
00059
00064 void setColor1(void);
00065
00070 void setColor2(void);
00071
00075 void validate(void);
00076
00080 void cancel(void);
00081
00082 public:
00083
00091 GradientDialog(const QColor color1, const QColor color2, QWidget* parent = 0);
00092
00096 ~GradientDialog(void);
00097
00102 QColor getStartingColor(void)const { return startingColor; };
00103
00108 QColor getEndingColor(void)const { return endingColor; };
00109 };
00110
00111 #endif