diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2010-12-24 16:12:24 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2010-12-24 16:12:24 (GMT) |
commit | fe6ff0cfd058b1b09bf389dd2c20be317183e094 (patch) | |
tree | 2e3f5d0757e53645fc902d0a87aa44dfd31d2d4d /addon/doxywizard/wizard.cpp | |
parent | 0014470c309dccbc2ac72c527391039900b8cf3d (diff) | |
download | Doxygen-fe6ff0cfd058b1b09bf389dd2c20be317183e094.zip Doxygen-fe6ff0cfd058b1b09bf389dd2c20be317183e094.tar.gz Doxygen-fe6ff0cfd058b1b09bf389dd2c20be317183e094.tar.bz2 |
Release-1.7.2-20101224
Diffstat (limited to 'addon/doxywizard/wizard.cpp')
-rw-r--r-- | addon/doxywizard/wizard.cpp | 40 |
1 files changed, 39 insertions, 1 deletions
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) |