diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2004-07-18 19:47:03 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2004-07-18 19:47:03 (GMT) |
commit | 46361b7017fbbbc5f560eea54aac2be86abaf90e (patch) | |
tree | 6409d19be4f75548825a856ab0a7bd9921ad4996 /addon/doxywizard/doxywizard.cpp | |
parent | e6e861e83b8a05b894b84775f0fc115614d6f229 (diff) | |
download | Doxygen-46361b7017fbbbc5f560eea54aac2be86abaf90e.zip Doxygen-46361b7017fbbbc5f560eea54aac2be86abaf90e.tar.gz Doxygen-46361b7017fbbbc5f560eea54aac2be86abaf90e.tar.bz2 |
Release-1.3.7-20040718
Diffstat (limited to 'addon/doxywizard/doxywizard.cpp')
-rw-r--r-- | addon/doxywizard/doxywizard.cpp | 40 |
1 files changed, 19 insertions, 21 deletions
diff --git a/addon/doxywizard/doxywizard.cpp b/addon/doxywizard/doxywizard.cpp index 9c9737d..9462296 100644 --- a/addon/doxywizard/doxywizard.cpp +++ b/addon/doxywizard/doxywizard.cpp @@ -308,24 +308,6 @@ Step3::Step3(QWidget *parent) : QWidget(parent,"Step3") bg->setButton(0); layout->addWidget(bg); - //w = new QWidget( this ); - //bl = new QHBoxLayout(w); - //bl->addWidget(new QLabel("Select the output language:",w)); - //m_outputLang = new QComboBox(w); - //m_outputLang->setMinimumSize(m_outputLang->sizeHint()); - //bl->setSpacing(10); - //bl->addWidget(m_outputLang); - //bl->addStretch(1); - //m_outputLang->insertItem("English"); - //m_outputLang->insertItem("Dutch"); - //m_outputLang->insertItem("German"); - //m_outputLang->insertItem("Spanish"); - //m_outputLang->insertItem("French"); - //m_outputLang->insertItem("Chinese"); - //m_outputLang->insertItem("Japanese"); - //m_outputLang->insertItem("Korean"); - //layout->addWidget(w); - layout->addStretch(1); connect(m_latexEnabled,SIGNAL(stateChanged(int)), @@ -558,9 +540,9 @@ void Step4::setDiagramMode(DiagramMode mode) { switch(mode) { - case DM_None: m_diagramMode->setButton(0); break; - case DM_Builtin: m_diagramMode->setButton(1); break; - case DM_Dot: m_diagramMode->setButton(2); break; + case DM_None: m_diagramMode->setButton(0); diagramModeChanged(0); break; + case DM_Builtin: m_diagramMode->setButton(1); diagramModeChanged(1); break; + case DM_Dot: m_diagramMode->setButton(2); diagramModeChanged(2); break; } } @@ -654,6 +636,12 @@ MainWidget::MainWidget(QWidget *parent) // initialize config settings Config::instance()->init(); Config::instance()->check(); +#if defined(Q_OS_MACX) + // we bundle dot with doxywizard on the Mac so we can safely enable + // it here + Config_getString("DOT_PATH")=getResourcePath(); + Config_getBool("HAVE_DOT")=TRUE; +#endif QWidget *w = new QWidget(this); setCentralWidget(w); @@ -1130,7 +1118,10 @@ void MainWidget::launchExpert() expert.init(); expert.exec(); #if defined(Q_OS_MACX) + // we bundle dot with doxywizard on the Mac so we can safely enable + // it here Config_getString("DOT_PATH")=getResourcePath(); + Config_getBool("HAVE_DOT")=TRUE; #endif setConfigSaved(FALSE); } @@ -1183,6 +1174,13 @@ void MainWidget::resetConfig() { // initialize config settings Config::instance()->init(); +#if defined(Q_OS_MACX) + // we bundle dot with doxywizard on the Mac so we can safely enable + // it here + Config_getString("DOT_PATH")=getResourcePath(); + Config_getBool("HAVE_DOT")=TRUE; +#endif + m_configFileName = ""; setConfigSaved(FALSE); statusBar()->message("Configuration settings reset to their defaults",messageTimeout); |