summaryrefslogtreecommitdiffstats
path: root/addon/doxywizard/wizard.h
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2011-01-03 18:43:15 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2011-01-03 18:43:15 (GMT)
commit2149c9cb1315b6a42457dd991171bf4fcf7d7015 (patch)
treec44fd80159115f91bacbc05dd72e77e5a6788e84 /addon/doxywizard/wizard.h
parent48f4fd9c2d9ba8b374e3c052f888df9bc220df92 (diff)
downloadDoxygen-2149c9cb1315b6a42457dd991171bf4fcf7d7015.zip
Doxygen-2149c9cb1315b6a42457dd991171bf4fcf7d7015.tar.gz
Doxygen-2149c9cb1315b6a42457dd991171bf4fcf7d7015.tar.bz2
Release-1.7.3
Diffstat (limited to 'addon/doxywizard/wizard.h')
-rw-r--r--addon/doxywizard/wizard.h56
1 files changed, 55 insertions, 1 deletions
diff --git a/addon/doxywizard/wizard.h b/addon/doxywizard/wizard.h
index 94cccc2..01f8c8b 100644
--- a/addon/doxywizard/wizard.h
+++ b/addon/doxywizard/wizard.h
@@ -43,13 +43,63 @@ class TuneColorDialog : public QDialog
Q_OBJECT
public:
- TuneColorDialog(QWidget *parent=0);
+ TuneColorDialog(int hue,int sat,int gamma,QWidget *parent=0);
+ int getHue() const;
+ int getSaturation() const;
+ int getGamma() const;
+
+ private slots:
+ void updateImage(int hue,int sat,int val);
private:
QImage *m_image;
QLabel *m_imageLab;
+ int m_hue;
+ int m_sat;
+ int m_gam;
+};
+
+class ColorPicker : public QWidget
+{
+ Q_OBJECT
+public:
+ enum Mode { Hue, Saturation, Gamma };
+ ColorPicker(Mode m);
+ ~ColorPicker();
+
+public slots:
+ void setCol(int h, int s, int g);
+ //void setCol(int h, int s);
+
+signals:
+ void newHsv(int h, int s, int g);
+
+protected:
+ void paintEvent(QPaintEvent*);
+ void mouseMoveEvent(QMouseEvent *);
+ void mousePressEvent(QMouseEvent *);
+
+private:
+ enum { foff = 3, coff = 4 }; //frame and contents offset
+ int y2hue(int y);
+ int y2sat(int y);
+ int y2gam(int y);
+ int hue2y(int hue);
+ int sat2y(int sat);
+ int gam2y(int gamma);
+ void setHue(int v);
+ void setSat(int v);
+ void setGam(int v);
+
+ QPixmap *m_pix;
+ Mode m_mode;
+ int m_gam;
+ int m_hue;
+ int m_sat;
+
};
+
class Step1 : public QWidget
{
Q_OBJECT
@@ -61,7 +111,9 @@ class Step1 : public QWidget
private slots:
void selectSourceDir();
void selectDestinationDir();
+ void selectProjectIcon();
void setProjectName(const QString &name);
+ void setProjectBrief(const QString &desc);
void setProjectNumber(const QString &num);
void setSourceDir(const QString &dir);
void setDestinationDir(const QString &dir);
@@ -69,9 +121,11 @@ class Step1 : public QWidget
private:
QLineEdit *m_projName;
+ QLineEdit *m_projBrief;
QLineEdit *m_projNumber;
QLineEdit *m_sourceDir;
QLineEdit *m_destDir;
+ QLabel *m_projIconLab;
QCheckBox *m_recursive;
QPushButton *m_srcSelectDir;
QPushButton *m_dstSelectDir;