|
51 | 51 |
|
52 | 52 | // globally accessible variables |
53 | 53 | bool DoxygenWizard::debugFlag = false; |
| 54 | +bool DoxygenWizard::hideDocumentation = false; |
54 | 55 | QString DoxygenWizard::langCode; |
55 | 56 | static QList<QString> newArgs; |
56 | 57 |
|
@@ -148,6 +149,10 @@ MainWindow::MainWindow() |
148 | 149 | this,SLOT(resetToDefaults())); |
149 | 150 | settings->addAction(tr("Use current settings at startup"), |
150 | 151 | this,SLOT(makeDefaults())); |
| 152 | + m_hideDocumentation = settings->addAction(tr("Hide documentation"), |
| 153 | + this,SLOT(hideDocumentation())); |
| 154 | + m_hideDocumentation->setCheckable(true); |
| 155 | + m_hideDocumentation->setChecked(DoxygenWizard::hideDocumentation); |
151 | 156 | settings->addAction(tr("Switch language..."), |
152 | 157 | this,SLOT(switchLanguage())); |
153 | 158 | m_clearRecent = settings->addAction(tr("Clear recent list"), |
@@ -456,6 +461,15 @@ void MainWindow::makeDefaults() |
456 | 461 | } |
457 | 462 | } |
458 | 463 |
|
| 464 | +void MainWindow::hideDocumentation() |
| 465 | +{ |
| 466 | + // New state |
| 467 | + DoxygenWizard::hideDocumentation = m_hideDocumentation->isChecked(); |
| 468 | + m_settings.setValue(QString::fromLatin1("documentation/hide"), DoxygenWizard::hideDocumentation); |
| 469 | + m_settings.sync(); |
| 470 | + m_expert-> hideDocumentation(); |
| 471 | +} |
| 472 | + |
459 | 473 | void MainWindow::switchLanguage() |
460 | 474 | { |
461 | 475 | LanguageDialog languageDialog(DoxygenWizard::langCode,this); |
@@ -1041,6 +1055,9 @@ int main(int argc,char **argv) |
1041 | 1055 | { |
1042 | 1056 | qDebug() << "Starting doxywizard..."; |
1043 | 1057 |
|
| 1058 | + QSettings settings(QString::fromLatin1("Doxygen.org"), QString::fromLatin1("Doxywizard")); |
| 1059 | + DoxygenWizard::hideDocumentation = settings.value(QString::fromLatin1("documentation/hide")).toBool(); |
| 1060 | + |
1044 | 1061 | if (langSet) |
1045 | 1062 | { |
1046 | 1063 | DoxygenWizard::langCode = langSel; |
|
0 commit comments