diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2014-05-03 14:33:42 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2014-05-03 14:33:42 (GMT) |
commit | fbc60af2298c2668893e2f7045f66765f8e0c63f (patch) | |
tree | f87cd621d215703cd5a54b8c20f56d68034034af /addon/doxywizard/doxywizard.cpp | |
parent | f4f3e381dba1bc5d46feea3c39e8f076e27463d1 (diff) | |
download | Doxygen-fbc60af2298c2668893e2f7045f66765f8e0c63f.zip Doxygen-fbc60af2298c2668893e2f7045f66765f8e0c63f.tar.gz Doxygen-fbc60af2298c2668893e2f7045f66765f8e0c63f.tar.bz2 |
Doxywizard: make the Next button on the last page of the wizard switch to the run tab
Diffstat (limited to 'addon/doxywizard/doxywizard.cpp')
-rw-r--r-- | addon/doxywizard/doxywizard.cpp | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/addon/doxywizard/doxywizard.cpp b/addon/doxywizard/doxywizard.cpp index fb6e115..d69cf73 100644 --- a/addon/doxywizard/doxywizard.cpp +++ b/addon/doxywizard/doxywizard.cpp @@ -97,15 +97,15 @@ MainWindow::MainWindow() grid->addLayout(launchLayout,1,0); runTabLayout->addLayout(grid); - QTabWidget *tabs = new QTabWidget; - tabs->addTab(m_wizard,tr("Wizard")); - tabs->addTab(m_expert,tr("Expert")); - tabs->addTab(runTab,tr("Run")); + m_tabs = new QTabWidget; + m_tabs->addTab(m_wizard,tr("Wizard")); + m_tabs->addTab(m_expert,tr("Expert")); + m_tabs->addTab(runTab,tr("Run")); rowLayout->addWidget(new QLabel(tr("Step 1: Specify the working directory from which doxygen will run"))); rowLayout->addLayout(dirLayout); rowLayout->addWidget(new QLabel(tr("Step 2: Configure doxygen using the Wizard and/or Expert tab, then switch to the Run tab to generate the documentation"))); - rowLayout->addWidget(tabs); + rowLayout->addWidget(m_tabs); setCentralWidget(topPart); statusBar()->showMessage(tr("Welcome to Doxygen"),messageTimeout); @@ -115,7 +115,7 @@ MainWindow::MainWindow() m_timer = new QTimer; // connect signals and slots - connect(tabs,SIGNAL(currentChanged(int)),SLOT(selectTab(int))); + connect(m_tabs,SIGNAL(currentChanged(int)),SLOT(selectTab(int))); connect(m_selWorkingDir,SIGNAL(clicked()),SLOT(selectWorkingDir())); connect(m_recentMenu,SIGNAL(triggered(QAction*)),SLOT(openRecent(QAction*))); connect(m_workingDir,SIGNAL(returnPressed()),SLOT(updateWorkingDir())); @@ -127,6 +127,7 @@ MainWindow::MainWindow() connect(m_saveLog,SIGNAL(clicked()),SLOT(saveLog())); connect(showSettings,SIGNAL(clicked()),SLOT(showSettings())); connect(m_expert,SIGNAL(changed()),SLOT(configChanged())); + connect(m_wizard,SIGNAL(done()),SLOT(selectRunTab())); loadSettings(); updateLaunchButtonState(); @@ -373,6 +374,11 @@ void MainWindow::selectTab(int id) if (id==0) m_wizard->refresh(); } +void MainWindow::selectRunTab() +{ + m_tabs->setCurrentIndex(2); +} + void MainWindow::addRecentFile(const QString &fileName) { int i=m_recentFiles.indexOf(fileName); |