Skip to content

Commit

Permalink
Adding possibility to add command line options when running doxygen f…
Browse files Browse the repository at this point in the history
…rom doxygen wizard

For debugging support questions it is necessary / very useful to be able to give (extra) command line options to the invoked doxygen version.
  • Loading branch information
albert-github committed Oct 7, 2020
1 parent 4193389 commit 70e5213
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions addon/doxywizard/doxywizard.cpp
Expand Up @@ -108,6 +108,12 @@ MainWindow::MainWindow()
m_saveLog->setEnabled(false);
QPushButton *showSettings = new QPushButton(tr("Show configuration"));
QPushButton *showCondensedSettings = new QPushButton(tr("Show condensed configuration"));
// select extra run options
m_runOptions = new QLineEdit;

runTabLayout->addWidget(new QLabel(tr("Step 3: Specify (optional) options for running doxygen")));
runTabLayout->addWidget(m_runOptions);

runLayout->addWidget(m_run);
runLayout->addWidget(m_runStatus);
runLayout->addStretch(1);
Expand Down Expand Up @@ -501,6 +507,9 @@ void MainWindow::runDoxygen()
m_runProcess->setEnvironment(env);

QStringList args;
QStringList runOptions = m_runOptions->text().split(QLatin1Char(' '),Qt::SkipEmptyParts);

args << runOptions;
args << QString::fromLatin1("-b"); // make stdout unbuffered
args << QString::fromLatin1("-"); // read config from stdin

Expand Down
1 change: 1 addition & 0 deletions addon/doxywizard/doxywizard.h
Expand Up @@ -79,6 +79,7 @@ class MainWindow : public QMainWindow
bool discardUnsavedChanges(bool saveOption=true);

QLineEdit *m_workingDir;
QLineEdit *m_runOptions;
QPushButton *m_selWorkingDir;
QPushButton *m_run;
QPushButton *m_saveLog;
Expand Down

0 comments on commit 70e5213

Please sign in to comment.