summaryrefslogtreecommitdiffstats
path: root/addon
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2010-12-24 16:12:24 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2010-12-24 16:12:24 (GMT)
commitfe6ff0cfd058b1b09bf389dd2c20be317183e094 (patch)
tree2e3f5d0757e53645fc902d0a87aa44dfd31d2d4d /addon
parent0014470c309dccbc2ac72c527391039900b8cf3d (diff)
downloadDoxygen-fe6ff0cfd058b1b09bf389dd2c20be317183e094.zip
Doxygen-fe6ff0cfd058b1b09bf389dd2c20be317183e094.tar.gz
Doxygen-fe6ff0cfd058b1b09bf389dd2c20be317183e094.tar.bz2
Release-1.7.2-20101224
Diffstat (limited to 'addon')
-rw-r--r--addon/doxywizard/doxywizard.qrc1
-rw-r--r--addon/doxywizard/wizard.cpp40
-rw-r--r--addon/doxywizard/wizard.h17
3 files changed, 57 insertions, 1 deletions
diff --git a/addon/doxywizard/doxywizard.qrc b/addon/doxywizard/doxywizard.qrc
index dd23c5d..88316ed 100644
--- a/addon/doxywizard/doxywizard.qrc
+++ b/addon/doxywizard/doxywizard.qrc
@@ -6,5 +6,6 @@
<file>images/file.png</file>
<file>images/folder.png</file>
<file>images/refresh.png</file>
+ <file>images/tunecolor.png</file>
</qresource>
</RCC>
diff --git a/addon/doxywizard/wizard.cpp b/addon/doxywizard/wizard.cpp
index b756d0f..bdccd81 100644
--- a/addon/doxywizard/wizard.cpp
+++ b/addon/doxywizard/wizard.cpp
@@ -117,6 +117,32 @@ static void updateStringOption(
//==========================================================================
+TuneColorDialog::TuneColorDialog(QWidget *parent) : QDialog(parent)
+{
+ setWindowTitle(tr("Tune the color of the HTML output"));
+ QGridLayout *layout = new QGridLayout(this);
+ m_image = new QImage(QString::fromAscii(":/images/tunecolor.png"));
+ m_imageLab = new QLabel;
+ m_imageLab->setPixmap(QPixmap::fromImage(*m_image));
+ layout->addWidget(new QLabel(tr("Example output: use the sliders to change")),0,0);
+ layout->addWidget(m_imageLab,1,0);
+ QHBoxLayout *buttonsLayout = new QHBoxLayout;
+
+ QPushButton *okButton = new QPushButton(tr("Ok"));
+ connect(okButton,SIGNAL(clicked()),SLOT(accept()));
+ okButton->setDefault(true);
+ QPushButton *cancelButton = new QPushButton(tr("Cancel"));
+ connect(cancelButton,SIGNAL(clicked()),SLOT(reject()));
+
+ buttonsLayout->addStretch();
+ buttonsLayout->addWidget(okButton);
+ buttonsLayout->addWidget(cancelButton);
+ layout->addLayout(buttonsLayout,5,0);
+
+}
+
+//==========================================================================
+
Step1::Step1(Wizard *wizard,const QHash<QString,Input*> &modelData) : m_wizard(wizard), m_modelData(modelData)
{
QVBoxLayout *layout = new QVBoxLayout(this);
@@ -477,9 +503,14 @@ Step3::Step3(Wizard *wizard,const QHash<QString,Input*> &modelData)
m_htmlOptionsGroup->addButton(r, 2);
// GENERATE_HTMLHELP
vbox->addWidget(r);
- m_searchEnabled=new QCheckBox(tr("With search function (requires PHP enabled web server)"));
+ m_searchEnabled=new QCheckBox(tr("With search function"));
vbox->addWidget(m_searchEnabled);
// SEARCH_ENGINE
+ QHBoxLayout *hbox = new QHBoxLayout;
+ m_tuneColor=new QPushButton(tr("Change color..."));
+ hbox->addWidget(m_tuneColor);
+ hbox->addStretch(1);
+ vbox->addLayout(hbox);
m_htmlOptions->setLayout(vbox);
m_htmlOptions->setChecked(true);
}
@@ -531,6 +562,13 @@ Step3::Step3(Wizard *wizard,const QHash<QString,Input*> &modelData)
SLOT(setHtmlOptions(int)));
connect(m_texOptionsGroup,SIGNAL(buttonClicked(int)),
SLOT(setLatexOptions(int)));
+ connect(m_tuneColor,SIGNAL(clicked()),SLOT(tuneColorDialog()));
+}
+
+void Step3::tuneColorDialog()
+{
+ TuneColorDialog tuneColor(this);
+ tuneColor.exec();
}
void Step3::setHtmlEnabled(bool b)
diff --git a/addon/doxywizard/wizard.h b/addon/doxywizard/wizard.h
index d482db9..94cccc2 100644
--- a/addon/doxywizard/wizard.h
+++ b/addon/doxywizard/wizard.h
@@ -17,6 +17,7 @@
#include <QSplitter>
#include <QHash>
+#include <QDialog>
class Input;
class QTreeWidget;
@@ -29,12 +30,26 @@ class QRadioButton;
class QGroupBox;
class QButtonGroup;
class Wizard;
+class QImage;
+class QLabel;
enum OptLang { Lang_Cpp, Lang_C, Lang_Java, Lang_CS };
enum HtmlStyle { HS_Plain, HS_TreeView, HS_CHM };
enum TexStyle { TS_PDFHyper, TS_PDF, TS_PS };
enum DiagramMode { DM_None, DM_Builtin, DM_Dot };
+class TuneColorDialog : public QDialog
+{
+ Q_OBJECT
+
+ public:
+ TuneColorDialog(QWidget *parent=0);
+
+ private:
+ QImage *m_image;
+ QLabel *m_imageLab;
+};
+
class Step1 : public QWidget
{
Q_OBJECT
@@ -103,6 +118,7 @@ class Step3 : public QWidget
void setSearchEnabled(int);
void setHtmlOptions(int);
void setLatexOptions(int);
+ void tuneColorDialog();
private:
QGroupBox *m_texOptions;
@@ -115,6 +131,7 @@ class Step3 : public QWidget
QCheckBox *m_rtfEnabled;
QCheckBox *m_xmlEnabled;
QCheckBox *m_searchEnabled;
+ QPushButton *m_tuneColor;
Wizard *m_wizard;
const QHash<QString,Input *> &m_modelData;
};