Commit 752d21c1 authored by dimitri's avatar dimitri

Release-1.5.7.1-20081206

parent b35a84b3
DOXYGEN Version 1.5.7.1-20081103 DOXYGEN Version 1.5.7.1-20081206
Please read the installation section of the manual Please read the installation section of the manual
(http://www.doxygen.org/install.html) for instructions. (http://www.doxygen.org/install.html) for instructions.
-------- --------
Dimitri van Heesch (03 November 2008) Dimitri van Heesch (06 December 2008)
...@@ -41,12 +41,7 @@ distclean: clean ...@@ -41,12 +41,7 @@ distclean: clean
-rm -f src/doxygen.pro src/libdoxygen.pro src/doxytag.pro qtools/qtools.pro src/libdoxycfg.pro libpng/libpng.pro libmd5/libmd5.pro -rm -f src/doxygen.pro src/libdoxygen.pro src/doxytag.pro qtools/qtools.pro src/libdoxycfg.pro libpng/libpng.pro libmd5/libmd5.pro
-rm -f src/version.cpp -rm -f src/version.cpp
-rm -r addon/doxywizard/Makefile -rm -r addon/doxywizard/Makefile
-rm -f addon/doxywizard/Makefile.doxywizard
-rm -f addon/doxywizard/doxywizard.pro -rm -f addon/doxywizard/doxywizard.pro
-rm -f addon/doxywizard/moc/moc_*
-rm -f addon/doxywizard/config.cpp
-rm -f addon/doxywizard/lib
-rm -f addon/doxywizard/objects
-rm -f VERSION -rm -f VERSION
-rm -f packages/rpm/doxygen.spec -rm -f packages/rpm/doxygen.spec
......
DOXYGEN Version 1.5.7.1_20081103 DOXYGEN Version 1.5.7.1_20081206
Please read INSTALL for compilation instructions. Please read INSTALL for compilation instructions.
...@@ -17,4 +17,4 @@ to subscribe to the lists or to visit the archives. ...@@ -17,4 +17,4 @@ to subscribe to the lists or to visit the archives.
Enjoy, Enjoy,
Dimitri van Heesch (dimitri@stack.nl) (03 November 2008) Dimitri van Heesch (dimitri@stack.nl) (06 December 2008)
...@@ -10,38 +10,23 @@ ...@@ -10,38 +10,23 @@
# See the GNU General Public License for more details. # See the GNU General Public License for more details.
# #
all: version.cpp config.h config.l portable.h portable.cpp Makefile.doxywizard QMAKE = qmake
$(MAKE) -f Makefile.doxywizard QTDIR=$(QTDIR) $@
version.cpp: ../../src/version.cpp all: Makefile.doxywizard
$(CP) ../../src/version.cpp version.cpp $(MAKE) -f Makefile.doxywizard
portable.cpp: ../../src/portable.cpp
$(CP) ../../src/portable.cpp portable.cpp
portable.h: ../../src/portable.h
$(CP) ../../src/portable.h portable.h
config.h: ../../src/config.h
$(CP) ../../src/config.h config.h
config.l: ../../src/config.l
$(CP) ../../src/config.l config.l
Makefile.doxywizard: doxywizard.pro Makefile.doxywizard: doxywizard.pro
$(ENV) $(PERL) $(TMAKE) doxywizard.pro >Makefile.doxywizard $(QTDIR)/bin/qmake doxywizard.pro -o Makefile.doxywizard
tmake: qmake:
$(ENV) $(PERL) $(TMAKE) doxywizard.pro >Makefile.doxywizard $(QTDIR)/bin/qmake doxywizard.pro -o Makefile.doxywizard
clean: Makefile.doxywizard clean: Makefile.doxywizard
$(MAKE) -f Makefile.doxywizard clean $(MAKE) -f Makefile.doxywizard clean
$(RM) config.cpp
distclean: clean
$(RM) Makefile.doxywizard version.cpp config.l config.h portable.h portable.cpp
MAN1DIR = man/man1 distclean: Makefile.doxywizard
$(MAKE) -f Makefile.doxywizard distclean
$(RM) Makefile.doxywizard
install: install:
$(INSTTOOL) -d $(INSTALL)/bin $(INSTTOOL) -d $(INSTALL)/bin
......
#
#
#
# Copyright (C) 1997-2008 by Dimitri van Heesch.
#
# Permission to use, copy, modify, and distribute this software and its
# documentation under the terms of the GNU General Public License is hereby
# granted. No representations are made about the suitability of this software
# for any purpose. It is provided "as is" without express or implied warranty.
# See the GNU General Public License for more details.
#
all: config.h config.l unistd.h Makefile.doxywizard
$(MAKE) -f Makefile.doxywizard $@
unistd.h: ..\..\src\unistd.h
$(CP) ..\..\src\unistd.h unistd.h
config.h: ..\..\src\config.l
$(CP) ..\..\src\config.h config.h
config.l: ..\..\src\config.l
$(CP) ..\..\src\config.l config.l
version.cpp: ..\..\src\version.cpp
$(CP) ..\..\src\version.cpp version.cpp
Makefile.doxywizard: doxywizard.pro
$(ENV) $(PERL) $(TMAKE) doxywizard.pro >Makefile.doxywizard
tmake:
$(ENV) $(PERL) $(TMAKE) doxywizard.pro >Makefile.doxywizard
clean: Makefile.doxywizard
$(MAKE) -f Makefile.doxywizard clean
$(RM) config.cpp
distclean: clean
$(RM) Makefile.doxywizard config.l config.h
FORCE:
Doxywizard is a graphical front-end to read/edit/write doxygen configuration Doxywizard is a graphical front-end to read/edit/write doxygen configuration
files. It requires Qt version 3.x or higher. files and to launch doxygen. It requires Qt version 4.3 or higher.
#include <qlabel.h> #include <QtGui>
#include <qhbox.h>
#include <qvbox.h>
#include <qlineedit.h>
#include <qapplication.h>
#include <qcheckbox.h>
#include <qpushbutton.h>
#include <qbuttongroup.h>
#include <qradiobutton.h>
#include <qlayout.h>
#include <qcombobox.h>
#include <qfiledialog.h>
#include <qmessagebox.h>
#include <qtextedit.h>
#include <qprocess.h>
#include <qtimer.h>
#include <qstatusbar.h>
#include <qfileinfo.h>
#include <qpopupmenu.h>
#include <qmenubar.h>
#include <qtooltip.h>
#include <stdlib.h>
#if defined(Q_OS_MACX)
#include <CoreFoundation/CFBundle.h>
#include <ApplicationServices/ApplicationServices.h>
#undef check
#endif
#include "doxywizard.h" #include "doxywizard.h"
#include "expert.h"
#include "config.h"
#include "version.h" #include "version.h"
#include "expert.h"
#include "wizard.h"
const int messageTimeout = 5000; //!< status bar message timeout in millisec. const int messageTimeout = 5000; //!< status bar message timeout in millisec.
#if defined(Q_OS_MACX) MainWindow &MainWindow::instance()
QCString getResourcePath() {
{ static MainWindow theInstance;
// todo: use qApp->applicationDirPath() return theInstance;
QCString result; }
CFURLRef pluginRef = CFBundleCopyBundleURL(CFBundleGetMainBundle());
CFStringRef macPath = CFURLCopyFileSystemPath(pluginRef, kCFURLPOSIXPathStyle); MainWindow::MainWindow()
result = CFStringGetCStringPtr(macPath, CFStringGetSystemEncoding()); : m_settings(QString::fromAscii("Doxygen.org"), QString::fromAscii("Doxywizard"))
result+="/Contents/Resources/"; {
return result; QMenu *file = menuBar()->addMenu(tr("File"));
} file->addAction(tr("Open..."),
this, SLOT(openConfig()), Qt::CTRL+Qt::Key_O);
void setDotPath() m_recentMenu = file->addMenu(tr("Open recent"));
{ file->addAction(tr("Save"),
// TODO: enable this if we ship dot with doxygen again... this, SLOT(saveConfig()), Qt::CTRL+Qt::Key_S);
// Config_getString("DOT_PATH")=getResourcePath(); file->addAction(tr("Save as..."),
} this, SLOT(saveConfigAs()), Qt::SHIFT+Qt::CTRL+Qt::Key_S);
file->addAction(tr("Quit"),
bool setMscgenPath() this, SLOT(quit()), Qt::CTRL+Qt::Key_Q);
{
if (Config_getString("MSCGEN_PATH")!=getResourcePath()) QMenu *settings = menuBar()->addMenu(tr("Settings"));
{ settings->addAction(tr("Reset to factory defaults"),
Config_getString("MSCGEN_PATH")=getResourcePath(); this,SLOT(resetToDefaults()));
return TRUE; settings->addAction(tr("Use current settings at startup"),
} this,SLOT(makeDefaults()));
return FALSE;
} QMenu *help = menuBar()->addMenu(tr("Help"));
help->addAction(tr("Online manual"),
this, SLOT(manual()), Qt::Key_F1);
help->addAction(tr("About"),
this, SLOT(about()) );
m_expert = new Expert;
m_wizard = new Wizard(m_expert->modelData());
// ----------- top part ------------------
QWidget *topPart = new QWidget;
QVBoxLayout *rowLayout = new QVBoxLayout(topPart);
// select working directory
QHBoxLayout *dirLayout = new QHBoxLayout;
m_workingDir = new QLineEdit;
m_selWorkingDir = new QPushButton(tr("Select..."));
dirLayout->addWidget(m_workingDir);
dirLayout->addWidget(m_selWorkingDir);
//------------- bottom part --------------
QWidget *runTab = new QWidget;
QVBoxLayout *runTabLayout = new QVBoxLayout(runTab);
// run doxygen
QHBoxLayout *runLayout = new QHBoxLayout;
m_run = new QPushButton(tr("Run doxygen"));
m_run->setEnabled(false);
m_runStatus = new QLabel(tr("Status: not running"));
m_saveLog = new QPushButton(tr("Save log..."));
m_saveLog->setEnabled(false);
QPushButton *showSettings = new QPushButton(tr("Show configuration"));
runLayout->addWidget(m_run);
runLayout->addWidget(m_runStatus);
runLayout->addStretch(1);
runLayout->addWidget(showSettings);
runLayout->addWidget(m_saveLog);
// output produced by doxygen
runTabLayout->addLayout(runLayout);
runTabLayout->addWidget(new QLabel(tr("Output produced by doxygen")));
QGridLayout *grid = new QGridLayout;
m_outputLog = new QTextEdit;
m_outputLog->setReadOnly(true);
m_outputLog->setFontFamily(QString::fromAscii("courier"));
m_outputLog->setMinimumWidth(600);
grid->addWidget(m_outputLog,0,0);
grid->setColumnStretch(0,1);
grid->setRowStretch(0,1);
QHBoxLayout *launchLayout = new QHBoxLayout;
m_launchHtml = new QPushButton(tr("Show HTML output"));
launchLayout->addWidget(m_launchHtml);
#if 0
m_launchPdf = new QPushButton(tr("Show PDF output"));
launchLayout->addWidget(m_launchPdf);
#endif #endif
launchLayout->addStretch(1);
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"));
//========================================================================== rowLayout->addWidget(new QLabel(tr("Step 1: Specify the working directory from which doxygen will run")));
rowLayout->addLayout(dirLayout);
Step1::Step1(QWidget *parent) : QWidget(parent,"Step1") 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);
QVBoxLayout *layout = new QVBoxLayout(this);
layout->setMargin(4);
layout->setSpacing(8);
layout->addWidget(new QLabel( "Provide some information "
"about the project you are documenting",this));
QWidget *w = new QWidget( this );
QHBoxLayout *bl = new QHBoxLayout(w,10);
QVBox *col1 = new QVBox( w );
col1->setSpacing(8);
(new QLabel("Project name:",col1))->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
(new QLabel("Project version or id:",col1))->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
QVBox *col2 = new QVBox( w );
col2->setSpacing(8);
m_projName = new QLineEdit(col2);
m_projNumber = new QLineEdit(col2);
bl->addWidget(col1);
bl->addWidget(col2);
layout->addWidget(w);
//---------------------------------------------------
QFrame *f = new QFrame( this );
f->setFrameStyle( QFrame::HLine | QFrame::Sunken );
layout->addWidget(f);
layout->addWidget(new QLabel( "Specify the directory to "
"scan for source code", this));
QHBox *row = new QHBox( this );
row->setSpacing(10);
new QLabel("Source code directory:",row);
m_sourceDir = new QLineEdit(row);
m_srcSelectDir = new QPushButton("Select...",row);
layout->addWidget(row);
m_recursive = new QCheckBox("Scan recursively",this);
m_recursive->setChecked(TRUE);
layout->addWidget(m_recursive);
//---------------------------------------------------
f = new QFrame( this );
f->setFrameStyle( QFrame::HLine | QFrame::Sunken );
layout->addWidget(f);
layout->addWidget(new QLabel(
"Specify the directory where doxygen should "
"put the generated documentation",this
));
row = new QHBox( this );
row->setSpacing(10);
new QLabel("Destination directory:",row);
m_destDir = new QLineEdit(row);
m_dstSelectDir = new QPushButton("Select...",row);
layout->addWidget(row);
layout->addStretch(1);
connect(m_srcSelectDir,SIGNAL(clicked()),
this,SLOT(selectSourceDir()));
connect(m_dstSelectDir,SIGNAL(clicked()),
this,SLOT(selectDestinationDir()));
}
void Step1::selectSourceDir()
{
m_sourceDir->setText(QFileDialog::getExistingDirectory(m_sourceDir->text(),this));
}
void Step1::selectDestinationDir()
{
m_destDir->setText(QFileDialog::getExistingDirectory(m_destDir->text(),this));
}
QString Step1::getProjectName() const
{
return m_projName->text();
}
QString Step1::getProjectNumber() const
{
return m_projNumber->text();
}
QString Step1::getSourceDir() const
{
return m_sourceDir->text();
}
bool Step1::scanRecursively() const
{
return m_recursive->isChecked();
}
QString Step1::getDestinationDir() const
{
return m_destDir->text();
}
void Step1::setProjectName(const QString &name)
{
m_projName->setText(name);
}
void Step1::setProjectNumber(const QString &num)
{
m_projNumber->setText(num);
}
void Step1::setSourceDir(const QString &dir)
{
m_sourceDir->setText(dir);
}
void Step1::setRecursiveScan(bool enable)
{
m_recursive->setChecked(enable);
}
void Step1::setDestinationDir(const QString &dir)
{
m_destDir->setText(dir);
}
//==========================================================================
Step2::Step2(QWidget *parent) : QWidget(parent,"Step2")
{
QVBoxLayout *layout = new QVBoxLayout(this);
layout->setSpacing(8);
m_extractMode = new QButtonGroup("Select the desired extraction mode:",this);
QGridLayout *gbox = new QGridLayout( m_extractMode, 4, 1, 8, 0 );
gbox->addRowSpacing( 0, fontMetrics().lineSpacing()+2 );
gbox->addWidget(new QRadioButton("Documented entities only",m_extractMode),1,0);
gbox->addWidget(new QRadioButton("All entities",m_extractMode),2,0);
gbox->addWidget(m_crossRef = new QCheckBox("Include cross-referenced source code in the output",m_extractMode),3,0);
m_extractMode->setButton(0);
layout->addWidget(m_extractMode);
//---------------------------------------------------
QFrame *f = new QFrame( this );
f->setFrameStyle( QFrame::HLine | QFrame::Sunken );
layout->addWidget(f);
m_optimizeLang = new QButtonGroup("Select programming language to optimize the results for",this);
gbox = new QGridLayout( m_optimizeLang, 5, 1, 8, 0 );
gbox->addRowSpacing( 0, fontMetrics().lineSpacing()+2 );
gbox->addWidget(new QRadioButton("Optimize for C++ output",m_optimizeLang),1,0);
gbox->addWidget(new QRadioButton("Optimize for Java output",m_optimizeLang),2,0);
gbox->addWidget(new QRadioButton("Optimize for C output",m_optimizeLang),3,0);
gbox->addWidget(new QRadioButton("Optimize for C# output",m_optimizeLang),4,0);
m_optimizeLang->setButton(0);
layout->addWidget(m_optimizeLang);
layout->addStretch(1);
}
bool Step2::crossReferencingEnabled() const
{
//printf("Step2::crossReferencingEnabled()=%d\n",m_crossRef->isOn());
return m_crossRef->isOn();
}
void Step2::enableCrossReferencing()
{
//printf("Step2::enableCrossReferencing()\n");
m_crossRef->setChecked(TRUE);
}
bool Step2::extractAll() const
{
//printf("Step2::extractAll()=%d\n",m_extractMode->find(1)->isOn());
return m_extractMode->find(1)->isOn();
}
bool Step2::crossReferencing() const
{
return m_crossRef->isChecked();
}
OptLang Step2::optimizeFor() const
{
switch (m_optimizeLang->selectedId())
{
case 0: return Lang_Cpp;
case 1: return Lang_Java;
case 2: return Lang_C;
case 3: return Lang_CS;
}
return Lang_Cpp;
}
void Step2::setExtractAll(bool enable)
{
//printf("Step2::setExtractAll(%d)\n",enable);
m_extractMode->setButton(enable?1:0);
}
void Step2::setCrossReferencing(bool enable)
{
//printf("Step2::setCrossReferencing(%d)\n",enable);
m_crossRef->setChecked(enable);
}
void Step2::setOptimizeFor(OptLang lang)
{
switch (lang)
{
case Lang_Cpp: m_optimizeLang->setButton(0); break;
case Lang_Java: m_optimizeLang->setButton(1); break;
case Lang_C: m_optimizeLang->setButton(2); break;
case Lang_CS: m_optimizeLang->setButton(3); break;
}
}
//==========================================================================
Step3::Step3(QWidget *parent) : QWidget(parent,"Step3") setCentralWidget(topPart);
{ statusBar()->showMessage(tr("Welcome to Doxygen"),messageTimeout);
QVBoxLayout *layout = new QVBoxLayout(this); loadSettings();
QButtonGroup *bg = new QButtonGroup("Output format(s) to generate",this);
QGridLayout *gbox = new QGridLayout( bg, 8, 1, 8, 0 );
gbox->addRowSpacing( 0, fontMetrics().lineSpacing()+2 );
gbox->addWidget(m_htmlEnabled=new QCheckBox("HTML",bg),1,0);
QWidget *w = new QWidget(bg);
QHBoxLayout *bl = new QHBoxLayout(w);
m_htmlOptions = new QButtonGroup(w);
m_htmlOptions->hide();
m_htmlOptionBox = new QVBox(w);
m_htmlOptions->insert(new QRadioButton("plain HTML",m_htmlOptionBox));
m_htmlOptions->insert(new QRadioButton("with frames and a navigation tree",m_htmlOptionBox));
m_htmlOptions->insert(new QRadioButton("prepare for compressed HTML (.chm)",m_htmlOptionBox));
m_htmlOptions->insert(m_searchEnabled=new QCheckBox("With search function (requires PHP enabled web server)",m_htmlOptionBox));
bl->addSpacing(30);
bl->addWidget(m_htmlOptionBox);
m_htmlOptions->setButton(0);
m_htmlOptionBox->setEnabled(TRUE);
gbox->addWidget(w,2,0);
gbox->addWidget(m_latexEnabled=new QCheckBox("LaTeX",bg),3,0); m_runProcess = new QProcess;
w = new QWidget(bg); m_running = false;
bl = new QHBoxLayout(w); m_timer = new QTimer;
m_texOptions = new QButtonGroup(w); updateLaunchButtonState();
m_texOptions->hide(); m_modified = false;
m_texOptionBox = new QVBox(w); updateTitle();
m_texOptions->insert(new QRadioButton("as intermediate format for hyperlinked PDF",m_texOptionBox));
m_texOptions->insert(new QRadioButton("as intermediate format for PDF",m_texOptionBox));
m_texOptions->insert(new QRadioButton("as intermediate format for PostScript",m_texOptionBox));
bl->addSpacing(30);
bl->addWidget(m_texOptionBox);
m_texOptions->setButton(0);
m_texOptionBox->setEnabled(FALSE);
gbox->addWidget(w,4,0);
gbox->addWidget(m_manEnabled=new QCheckBox("Man pages",bg),5,0);
gbox->addWidget(m_rtfEnabled=new QCheckBox("Rich Text Format (RTF)",bg),6,0);
gbox->addWidget(m_xmlEnabled=new QCheckBox("XML",bg),7,0);
bg->setButton(0);
layout->addWidget(bg);
layout->addStretch(1);
connect(m_latexEnabled,SIGNAL(stateChanged(int)), // connect signals and slots
this,SLOT(latexStateChange(int))); connect(tabs,SIGNAL(currentChanged(int)),SLOT(selectTab(int)));
connect(m_htmlEnabled,SIGNAL(stateChanged(int)), connect(m_selWorkingDir,SIGNAL(clicked()),SLOT(selectWorkingDir()));
this,SLOT(htmlStateChange(int))); connect(m_recentMenu,SIGNAL(triggered(QAction*)),SLOT(openRecent(QAction*)));
connect(m_workingDir,SIGNAL(returnPressed()),SLOT(updateWorkingDir()));
connect(m_runProcess,SIGNAL(readyReadStandardOutput()),SLOT(readStdout()));
connect(m_runProcess,SIGNAL(finished(int, QProcess::ExitStatus)),SLOT(runComplete()));
connect(m_timer,SIGNAL(timeout()),SLOT(readStdout()));
connect(m_run,SIGNAL(clicked()),SLOT(runDoxygen()));
connect(m_launchHtml,SIGNAL(clicked()),SLOT(showHtmlOutput()));
connect(m_saveLog,SIGNAL(clicked()),SLOT(saveLog()));
connect(showSettings,SIGNAL(clicked()),SLOT(showSettings()));
connect(m_expert,SIGNAL(changed()),SLOT(configChanged()));
} }
void Step3::latexStateChange(int state) void MainWindow::closeEvent(QCloseEvent *event)
{ {
if (state==QButton::On) if (discardUnsavedChanges())
{ {
m_texOptionBox->setEnabled(TRUE); saveSettings();
event->accept();
} }
else if (state==QButton::Off) else
{ {
m_texOptionBox->setEnabled(FALSE); event->ignore();
} }
} }
void Step3::htmlStateChange(int state) void MainWindow::quit()
{ {
if (state==QButton::On) if (discardUnsavedChanges())
{
m_htmlOptionBox->setEnabled(TRUE);
}
else if (state==QButton::Off)
{ {
m_htmlOptionBox->setEnabled(FALSE); saveSettings();
} }
QApplication::exit(0);
} }
bool Step3::htmlEnabled() const void MainWindow::setWorkingDir(const QString &dirName)
{
return m_htmlEnabled->isChecked();
}
bool Step3::latexEnabled() const
{ {
return m_latexEnabled->isChecked(); QDir::setCurrent(dirName);
m_workingDir->setText(dirName);
m_run->setEnabled(!dirName.isEmpty());
} }
bool Step3::manEnabled() const void MainWindow::selectWorkingDir()
{ {
return m_manEnabled->isChecked(); QString dirName = QFileDialog::getExistingDirectory(this,
tr("Select working directory"),m_workingDir->text());
if (!dirName.isEmpty())
{
setWorkingDir(dirName);
}
} }
bool Step3::rtfEnabled() const void MainWindow::updateWorkingDir()
{ {
return m_rtfEnabled->isChecked(); setWorkingDir(m_workingDir->text());
} }
bool Step3::xmlEnabled() const void MainWindow::manual()
{ {
return m_xmlEnabled->isChecked(); QDesktopServices::openUrl(QUrl(QString::fromAscii("http://www.doxygen.org/manual.html")));
} }
bool Step3::searchEnabled() const void MainWindow::about()
{ {
return m_searchEnabled->isChecked(); QString msg;
QTextStream t(&msg,QIODevice::WriteOnly);
t << QString::fromAscii("<qt><center>A tool to configure and run doxygen version ")+
QString::fromAscii(versionString)+
QString::fromAscii(" on your source files.</center><p><br>"
"<center>Written by<br> Dimitri van Heesch<br>&copy; 2000-2008</center><p>"
"</qt>");
QMessageBox::about(this,tr("Doxygen GUI"),msg);
} }
HtmlStyle Step3::htmlStyle() const void MainWindow::openConfig()
{ {
if (m_htmlOptions->find(0)->isOn()) if (discardUnsavedChanges(false))
{ {
return HS_Plain; QString fn = QFileDialog::getOpenFileName(this,
} tr("Open configuration file"),
else if (m_htmlOptions->find(1)->isOn()) m_workingDir->text());
if (!fn.isEmpty())
{ {
return HS_TreeView; loadConfigFromFile(fn);
} }
else if (m_htmlOptions->find(2)->isOn())
{
return HS_CHM;
} }
// broken radio button logic
return HS_Plain;
} }
TexStyle Step3::texStyle() const void MainWindow::updateConfigFileName(const QString &fileName)
{ {
switch (m_texOptions->selectedId()) if (m_fileName!=fileName)
{ {
case 0: return TS_PDFHyper; m_fileName = fileName;
case 1: return TS_PDF; QString curPath = QFileInfo(fileName).path();
case 2: return TS_PS; setWorkingDir(curPath);
addRecentFile(fileName);
updateTitle();
} }
return TS_PDFHyper;
} }
void Step3::setHtmlEnabled(bool enable) void MainWindow::loadConfigFromFile(const QString & fileName)
{ {
m_htmlEnabled->setChecked(enable); m_expert->loadConfig(fileName);
m_wizard->refresh();
updateConfigFileName(fileName);
updateLaunchButtonState();
m_modified = false;
updateTitle();
} }
void Step3::setLatexEnabled(bool enable) void MainWindow::saveConfig(const QString &fileName)
{ {
m_latexEnabled->setChecked(enable); if (fileName.isEmpty()) return;
} QFile f(fileName);
if (!f.open(QIODevice::WriteOnly)) return;
void Step3::setManEnabled(bool enable) QTextStream t(&f);
{ m_expert->writeConfig(t,false);
m_manEnabled->setChecked(enable); updateConfigFileName(fileName);
} m_modified = false;
updateTitle();
void Step3::setRtfEnabled(bool enable)
{
m_rtfEnabled->setChecked(enable);
}
void Step3::setXmlEnabled(bool enable)
{
m_xmlEnabled->setChecked(enable);
}
void Step3::setSearchEnabled(bool enable)
{
m_searchEnabled->setChecked(enable);
} }
void Step3::setHtmlStyle(HtmlStyle style) bool MainWindow::saveConfig()
{ {
switch(style) if (m_fileName.isEmpty())
{ {
case HS_Plain: m_htmlOptions->setButton(0); break; return saveConfigAs();
case HS_TreeView: m_htmlOptions->setButton(1); break;
case HS_CHM: m_htmlOptions->setButton(2); break;
} }
} else
void Step3::setTexStyle(TexStyle style)
{
switch(style)
{ {
case TS_PDFHyper: m_texOptions->setButton(0); break; saveConfig(m_fileName);
case TS_PDF: m_texOptions->setButton(1); break; return true;
case TS_PS: m_texOptions->setButton(2); break;
} }
} }
bool MainWindow::saveConfigAs()
//==========================================================================
Step4::Step4(QWidget *parent) : QWidget(parent,"Step4")
{
QVBoxLayout *layout = new QVBoxLayout(this);
m_diagramMode = new QButtonGroup("Diagrams to generate",this);
QGridLayout *gbox = new QGridLayout( m_diagramMode, 5, 1, 8, 0 );
gbox->addRowSpacing( 0, fontMetrics().lineSpacing()+2 );
gbox->addWidget(new QRadioButton("No diagrams",m_diagramMode),1,0);
gbox->addWidget(new QRadioButton("Use built-in class diagram generator",m_diagramMode),2,0);
gbox->addWidget(new QRadioButton("Use dot tool from the GraphViz package to generate",m_diagramMode),3,0);
QWidget *w = new QWidget(m_diagramMode);
QHBoxLayout *bl = new QHBoxLayout(w);
QButtonGroup *dotGroup = new QButtonGroup(w);
dotGroup->hide();
m_dotOptions = new QVBox(w);
dotGroup->insert(m_dotClass=new QCheckBox("Class diagrams",m_dotOptions));
dotGroup->insert(m_dotCollaboration=new QCheckBox("Collaboration diagrams",m_dotOptions));
dotGroup->insert(m_dotInclude=new QCheckBox("Include dependency graphs",m_dotOptions));
dotGroup->insert(m_dotIncludedBy=new QCheckBox("Included by dependency graphs",m_dotOptions));
dotGroup->insert(m_dotInheritance=new QCheckBox("Overall Class hierarchy",m_dotOptions));
dotGroup->insert(m_dotCall=new QCheckBox("Call graphs",m_dotOptions));
bl->addSpacing(30);
bl->addWidget(m_dotOptions);
dotGroup->setButton(0);
m_dotOptions->setEnabled(FALSE);
gbox->addWidget(w,4,0);
//#if defined(Q_OS_MACX) // we bundle dot with the mac package
// m_diagramMode->setButton(2);
//#else
m_diagramMode->setButton(1);
//#endif
layout->addWidget(m_diagramMode);
layout->addStretch(1);
connect(m_diagramMode,SIGNAL(clicked(int)),
this,SLOT(diagramModeChanged(int)));
//connect(m_dotCall,SIGNAL(stateChanged(int)),
// parent,SLOT(changeCallGraphState(int)));
}
void Step4::diagramModeChanged(int buttonId)
{ {
m_dotOptions->setEnabled(buttonId==2); QString fileName = QFileDialog::getSaveFileName(this, QString(),
m_workingDir->text()+QString::fromAscii("/Doxyfile"));
if (fileName.isEmpty()) return false;
saveConfig(fileName);
return true;
} }
//void Step4::disableCallGraphs() void MainWindow::makeDefaults()
//{
// m_dotCall->setChecked(FALSE);
//}
//bool Step4::callGraphEnabled() const
//{
// return m_dotCall->isOn();
//}
DiagramMode Step4::diagramMode() const
{ {
switch(m_diagramMode->selectedId()) if (QMessageBox::question(this,tr("Use current setting at startup?"),
tr("Do you want to save the current settings "
"and use them next time Doxywizard starts?"),
QMessageBox::Save|
QMessageBox::Cancel)==QMessageBox::Save)
{ {
case 0: return DM_None; //printf("MainWindow:makeDefaults()\n");
case 1: return DM_Builtin; m_expert->saveSettings(&m_settings);
case 2: return DM_Dot; m_settings.setValue(QString::fromAscii("wizard/loadsettings"), true);
} }
return DM_None;
} }
bool Step4::classDiagram() const void MainWindow::resetToDefaults()
{ {
return m_dotClass->isChecked(); if (QMessageBox::question(this,tr("Reset settings to their default values?"),
} tr("Do you want to revert all settings back "
"to their original values?"),
bool Step4::collaborationDiagram() const QMessageBox::Reset|
{ QMessageBox::Cancel)==QMessageBox::Reset)
return m_dotCollaboration->isChecked();
}
bool Step4::includeGraph() const
{
return m_dotInclude->isChecked();
}
bool Step4::includedByGraph() const
{
return m_dotIncludedBy->isChecked();
}
bool Step4::inheritanceGraph() const
{
return m_dotInheritance->isChecked();
}
bool Step4::callGraph() const
{
return m_dotCall->isChecked();
}
void Step4::setDiagramMode(DiagramMode mode)
{
switch(mode)
{ {
case DM_None: m_diagramMode->setButton(0); diagramModeChanged(0); break; //printf("MainWindow:resetToDefaults()\n");
case DM_Builtin: m_diagramMode->setButton(1); diagramModeChanged(1); break; m_expert->resetToDefaults();
case DM_Dot: m_diagramMode->setButton(2); diagramModeChanged(2); break; m_settings.setValue(QString::fromAscii("wizard/loadsettings"), false);
m_wizard->refresh();
} }
} }
void Step4::setClassDiagram(bool enable) void MainWindow::loadSettings()
{ {
m_dotClass->setChecked(enable); QVariant geometry = m_settings.value(QString::fromAscii("main/geometry"), QVariant::Invalid);
} QVariant state = m_settings.value(QString::fromAscii("main/state"), QVariant::Invalid);
QVariant expState = m_settings.value(QString::fromAscii("expert/state"), QVariant::Invalid);
void Step4::setCollaborationDiagram(bool enable) QVariant expState2 = m_settings.value(QString::fromAscii("expert/state2"), QVariant::Invalid);
{ QVariant wizState = m_settings.value(QString::fromAscii("wizard/state"), QVariant::Invalid);
m_dotCollaboration->setChecked(enable); QVariant loadSettings = m_settings.value(QString::fromAscii("wizard/loadsettings"), QVariant::Invalid);
} //QVariant workingDir = m_settings.value(QString::fromAscii("main/defdir"), QVariant::Invalid);
void Step4::setIncludeGraph(bool enable)
{
m_dotInclude->setChecked(enable);
}
void Step4::setIncludedByGraph(bool enable)
{
m_dotIncludedBy->setChecked(enable);
}
void Step4::setInheritanceGraph(bool enable)
{
m_dotInheritance->setChecked(enable);
}
void Step4::setCallGraph(bool enable)
{
m_dotCall->setChecked(enable);
}
//==========================================================================
Wizard::Wizard(QWidget *parent=0) : QTabDialog(parent)
{
addTab( m_step1 = new Step1(this),"Project");
addTab( m_step2 = new Step2(this),"Mode");
addTab( m_step3 = new Step3(this),"Output");
addTab( m_step4 = new Step4(this),"Diagrams");
setCancelButton();
}
//==========================================================================
MainWidget::MainWidget(QWidget *parent)
: QMainWindow(parent,"MainWidget")
{
setCaption("Doxygen GUI frontend");
// initialize config settings
Config::instance()->init();
Config::instance()->check();
Config_getBool("HAVE_DOT")=TRUE;
#if defined(Q_OS_MACX)
setDotPath();
setMscgenPath();
#endif
QWidget *w = new QWidget(this);
setCentralWidget(w);
QVBoxLayout *layout = new QVBoxLayout(w);
layout->setMargin(10);
QPopupMenu *file = new QPopupMenu(this);
file->insertItem("Open...", this, SLOT(loadConfigFile()), CTRL+Key_O);
file->insertItem("Save As...", this, SLOT(saveConfigFile()), CTRL+Key_S);
m_recentMenu = new QPopupMenu;
file->insertItem( "&Recent configurations", m_recentMenu );
connect(m_recentMenu,SIGNAL(activated(int)),this,SLOT(openRecent(int)));
file->insertItem("Set as default...",this,SLOT(saveDefaults()) );
file->insertItem("Reset...",this,SLOT(resetConfig()) );
file->insertItem("Quit", this, SLOT(quit()), CTRL+Key_Q);
QPopupMenu *help = new QPopupMenu(this);
#if defined(Q_OS_MACX)
help->insertItem("Online manual", this, SLOT(manual()), Key_F1);
#endif
help->insertItem("About", this, SLOT(about()) );
menuBar()->insertItem("File",file);
menuBar()->insertItem("Help",help);
//---------------------------------------------------
QVBox *heading = new QVBox(w);
QLabel *l = new QLabel("Step 1: Configure doxygen",heading);
QFrame *f = new QFrame( heading );
f->setFrameStyle( QFrame::HLine | QFrame::Sunken );
//f->setFixedSize(l->sizeHint().width(),f->sizeHint().height());
layout->addWidget(heading);
layout->addSpacing(10);
l = new QLabel("Choose one of the following ways to configure doxygen",w);
layout->addWidget(l);
layout->addSpacing(5);
QHBoxLayout *hbl = new QHBoxLayout(layout);
hbl->setSpacing(8);
m_wizard = new QPushButton("Wizard...",w); if (geometry !=QVariant::Invalid) restoreGeometry(geometry.toByteArray());
QToolTip::add(m_wizard,"Quickly configure the most important settings"); if (state !=QVariant::Invalid) restoreState (state.toByteArray());
hbl->addWidget(m_wizard); if (expState !=QVariant::Invalid) m_expert->restoreState(expState.toByteArray());
if (expState2 !=QVariant::Invalid) m_expert->restoreInnerState(expState2.toByteArray());
m_expert = new QPushButton("Expert...",w); if (wizState !=QVariant::Invalid) m_wizard->restoreState(wizState.toByteArray());
QToolTip::add(m_expert,"Determine all configuration settings in detail"); //if (workingDir!=QVariant::Invalid)
hbl->addWidget(m_expert); //{
// QString dir = workingDir.toString();
m_load = new QPushButton("Load...",w); // m_workingDir->setText(dir);
QToolTip::add(m_load,"Load the configuration settings from file"); // QDir::setCurrent(dir);
hbl->addWidget(m_load); // m_run->setEnabled(!dir.isEmpty());
//}
hbl->addStretch(1); if (loadSettings!=QVariant::Invalid && loadSettings.toBool())
//---------------------------------------------------
heading = new QVBox(w);
l = new QLabel("Step 2: Save the configuration file",heading);
f = new QFrame( heading );
f->setFrameStyle( QFrame::HLine | QFrame::Sunken );
//f->setFixedSize(l->sizeHint().width(),f->sizeHint().height());
layout->addSpacing(15);
layout->addWidget(heading);
layout->addSpacing(5);
QGridLayout *grid = new QGridLayout(layout,1,2,10);
m_save = new QPushButton("Save...",w);
m_save->setFixedSize(m_save->sizeHint());
grid->addWidget(m_save,0,0);
grid->addWidget(m_saveStatus=new QLabel(w),0,1);
m_saveStatus->setTextFormat(Qt::RichText);
//---------------------------------------------------
heading = new QVBox(w);
l = new QLabel("Step 3: Specify the directory from which to run doxygen",heading);
f = new QFrame( heading );
f->setFrameStyle( QFrame::HLine | QFrame::Sunken );
//f->setFixedSize(l->sizeHint().width(),f->sizeHint().height());
layout->addSpacing(15);
layout->addWidget(heading);
layout->addSpacing(5);
QHBoxLayout *row = new QHBoxLayout( layout );
row->setSpacing(10);
row->addWidget(new QLabel("Working directory:",w));
m_workingDir = new QLineEdit(w);
m_selWorkingDir = new QPushButton("Select...",w);
row->addWidget(m_workingDir,1);
row->addWidget(m_selWorkingDir);
//---------------------------------------------------
heading = new QVBox(w);
l = new QLabel("Step 4: Run doxygen",heading);
f = new QFrame( heading );
f->setFrameStyle( QFrame::HLine | QFrame::Sunken );
//f->setFixedSize(l->sizeHint().width(),f->sizeHint().height());
layout->addSpacing(15);
layout->addWidget(heading);
layout->addSpacing(5);
row = new QHBoxLayout( layout );
row->setSpacing(10);
m_run = new QPushButton("Start",w);
row->addWidget(m_run);
row->addWidget(m_runStatus = new QLabel("Status: not running",w));
row->addStretch(1);
m_run->setEnabled(FALSE);
m_runStatus->setEnabled(FALSE);
m_saveLog = new QPushButton("Save log...",w);
m_saveLog->setEnabled(FALSE);
row->addWidget(m_saveLog);
layout->addSpacing(8);
layout->addWidget(m_outputHeading=new QLabel("Output produced by doxygen",w));
grid = new QGridLayout(layout,1,1,3);
m_outputLog = new QTextEdit(w);
m_outputLog->setReadOnly(TRUE);
m_outputLog->setMinimumWidth(600);
grid->addWidget(m_outputLog,0,0);
grid->setColStretch(0,1);
grid->setRowStretch(0,1);
m_outputLog->setEnabled(FALSE);
m_outputHeading->setEnabled(FALSE);
// make connections
connect(m_wizard,SIGNAL(clicked()),
this,SLOT(launchWizard()));
connect(m_expert,SIGNAL(clicked()),
this,SLOT(launchExpert()));
connect(m_load,SIGNAL(clicked()),
this,SLOT(loadConfigFile()));
connect(m_save,SIGNAL(clicked()),
this,SLOT(saveConfigFile()));
connect(m_selWorkingDir,SIGNAL(clicked()),
this,SLOT(selectWorkingDir()));
connect(m_workingDir,SIGNAL(textChanged(const QString&)),
this,SLOT(updateRunnable(const QString&)));
connect(m_run,SIGNAL(clicked()),
this,SLOT(runDoxygen()));
connect(m_saveLog,SIGNAL(clicked()),
this,SLOT(saveLog()));
// load default settings
m_settings.setPath("www.doxygen.org","Doxygen GUI");
bool ok;
QString config = m_settings.readEntry("/doxywizard/config/default",QString::null,&ok);
if (ok && !config.isEmpty())
{
Config::instance()->parseString("default settings",config);
}
QString workingDir = m_settings.readEntry("/doxywizard/config/workingdir",QString::null,&ok);
if (ok && !workingDir.isEmpty())
{ {
m_workingDir->setText(workingDir); m_expert->loadSettings(&m_settings);
} }
setConfigSaved(FALSE);
for (int i=0;i<10;i++) for (int i=0;i<10;i++)
{ {
QString entry = m_settings.readEntry(QString().sprintf("/doxywizard/recent/config%d",i)); QString entry = m_settings.value(QString().sprintf("recent/config%d",i)).toString();
if (!entry.isEmpty()) if (!entry.isEmpty()) addRecentFile(entry);
{
addRecentFile(entry);
}
} }
m_runProcess = new QProcess;
connect(m_runProcess,SIGNAL(readyReadStdout()),this,SLOT(readStdout()));
connect(m_runProcess,SIGNAL(processExited()),this,SLOT(runComplete()));
m_running = FALSE;
m_timer = new QTimer;
connect(m_timer,SIGNAL(timeout()),this,SLOT(readStdout()));
statusBar()->message("Welcome to Doxygen",messageTimeout);
} }
MainWidget::~MainWidget() void MainWindow::saveSettings()
{ {
delete m_runProcess; QSettings settings(QString::fromAscii("Doxygen.org"), QString::fromAscii("Doxywizard"));
}
void MainWidget::selectWorkingDir() m_settings.setValue(QString::fromAscii("main/geometry"), saveGeometry());
{ m_settings.setValue(QString::fromAscii("main/state"), saveState());
QString selectedDir = QFileDialog::getExistingDirectory(m_workingDir->text()); m_settings.setValue(QString::fromAscii("expert/state"), m_expert->saveState());
if (!selectedDir.isEmpty()) m_settings.setValue(QString::fromAscii("expert/state2"), m_expert->saveInnerState());
{ m_settings.setValue(QString::fromAscii("wizard/state"), m_wizard->saveState());
m_workingDir->setText(selectedDir);
}
} }
void MainWidget::updateRunnable(const QString &newDirName) void MainWindow::selectTab(int id)
{ {
if (m_running) return; if (id==0) m_wizard->refresh();
QFileInfo fi(newDirName);
bool isRunnable = fi.exists() && fi.isDir() && m_configSaved;
m_run->setEnabled(isRunnable);
m_runStatus->setEnabled(isRunnable);
m_outputHeading->setEnabled(isRunnable);
m_outputLog->setEnabled(isRunnable);
m_saveLog->setEnabled(isRunnable && !m_outputLog->text().isEmpty());
} }
void MainWidget::launchWizard() void MainWindow::addRecentFile(const QString &fileName)
{ {
Wizard wizard(this); int i=m_recentFiles.indexOf(fileName);
if (i!=-1) m_recentFiles.removeAt(i);
// -------- Initialize the dialog ---------------- // not found
if (m_recentFiles.count() < 10) // append
// step1
wizard.setProjectName(QString::fromLocal8Bit(Config_getString("PROJECT_NAME")));
wizard.setProjectNumber(QString::fromLocal8Bit(Config_getString("PROJECT_NUMBER")));
if (Config_getList("INPUT").count()>0)
{
QString dirName=Config_getList("INPUT").getFirst();
QFileInfo fi(dirName);
if (fi.exists() && fi.isDir())
{
wizard.setSourceDir(dirName);
}
}
wizard.setRecursiveScan(Config_getBool("RECURSIVE"));
wizard.setDestinationDir(QString::fromLocal8Bit(Config_getString("OUTPUT_DIRECTORY")));
// step2
wizard.setExtractAll(Config_getBool("EXTRACT_ALL"));
wizard.setCrossReferencing(Config_getBool("SOURCE_BROWSER"));
if (Config_getBool("OPTIMIZE_OUTPUT_JAVA"))
{ {
wizard.setOptimizeFor(Lang_Java); m_recentFiles.prepend(fileName);
} }
else if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) else // add + drop last item
{ {
wizard.setOptimizeFor(Lang_C); m_recentFiles.removeLast();
m_recentFiles.prepend(fileName);
} }
else m_recentMenu->clear();
i=0;
foreach( QString str, m_recentFiles )
{ {
wizard.setOptimizeFor(Lang_Cpp); m_recentMenu->addAction(str);
m_settings.setValue(QString().sprintf("recent/config%d",i++),str);
} }
}
// step3 void MainWindow::openRecent(QAction *action)
wizard.setHtmlEnabled(Config_getBool("GENERATE_HTML")); {
wizard.setLatexEnabled(Config_getBool("GENERATE_LATEX")); if (discardUnsavedChanges(false))
wizard.setManEnabled(Config_getBool("GENERATE_MAN"));
wizard.setRtfEnabled(Config_getBool("GENERATE_RTF"));
wizard.setXmlEnabled(Config_getBool("GENERATE_XML"));
wizard.setSearchEnabled(Config_getBool("SEARCHENGINE"));
if (Config_getBool("GENERATE_HTMLHELP"))
{
wizard.setHtmlStyle(HS_CHM);
}
else if (Config_getEnum("GENERATE_TREEVIEW")!="NONE")
{
wizard.setHtmlStyle(HS_TreeView);
}
else
{
wizard.setHtmlStyle(HS_Plain);
}
if (Config_getBool("USE_PDFLATEX"))
{
if (Config_getBool("PDF_HYPERLINKS"))
{
wizard.setTexStyle(TS_PDFHyper);
}
else
{
wizard.setTexStyle(TS_PDF);
}
}
else
{ {
wizard.setTexStyle(TS_PS); loadConfigFromFile(action->text());
} }
}
// step4 void MainWindow::runDoxygen()
if (Config_getBool("HAVE_DOT")) {
{ if (!m_running)
wizard.setDiagramMode(DM_Dot);
}
else if (Config_getBool("CLASS_DIAGRAMS"))
{
wizard.setDiagramMode(DM_Builtin);
}
else
{ {
wizard.setDiagramMode(DM_None); QString doxygenPath;
} #if defined(Q_OS_MACX)
wizard.setClassDiagram(Config_getBool("CLASS_GRAPH")); doxygenPath = qApp->applicationDirPath()+QString::fromAscii("/../Resources/");
wizard.setCollaborationDiagram(Config_getBool("COLLABORATION_GRAPH")); qDebug() << tr("Doxygen path: ") << doxygenPath;
wizard.setIncludeGraph(Config_getBool("INCLUDE_GRAPH")); if ( !QFile(doxygenPath + QString::fromAscii("doxygen")).exists() ) {
wizard.setIncludedByGraph(Config_getBool("INCLUDED_BY_GRAPH")); // No doygen binary in the resources, if there is a system doxygen binary, use that instead
wizard.setInheritanceGraph(Config_getBool("GRAPHICAL_HIERARCHY")); if ( QFile(QString::fromAscii("/usr/local/bin/doxygen")).exists() )
wizard.setCallGraph(Config_getBool("CALL_GRAPH")); doxygenPath = QString::fromAscii("/usr/local/bin/");
else {
qDebug() << tr("Can't find the doxygen command, make sure it's in your $$PATH");
doxygenPath = QString::fromAscii("");
}
}
qDebug() << tr("Getting doxygen from: ") << doxygenPath;
#endif
// -------- Run the dialog ---------------- m_runProcess->setReadChannel(QProcess::StandardOutput);
m_runProcess->setProcessChannelMode(QProcess::MergedChannels);
m_runProcess->setWorkingDirectory(m_workingDir->text());
QStringList env=QProcess::systemEnvironment();
// set PWD environment variable to m_workingDir
env.replaceInStrings(QRegExp(QString::fromAscii("^PWD=(.*)"),Qt::CaseInsensitive),
QString::fromAscii("PWD=")+m_workingDir->text());
m_runProcess->setEnvironment(env);
if (wizard.exec()==QDialog::Accepted) QStringList args;
{ args << QString::fromAscii("-b"); // make stdout unbuffered
// -------- Store the results ---------------- args << QString::fromAscii("-"); // read config from stdin
// step1 m_outputLog->clear();
Config_getString("PROJECT_NAME")=wizard.getProjectName().local8Bit(); m_runProcess->start(doxygenPath + QString::fromAscii("doxygen"), args);
Config_getString("PROJECT_NUMBER")=wizard.getProjectNumber();
Config_getList("INPUT").clear();
Config_getList("INPUT").append(wizard.getSourceDir());
Config_getBool("RECURSIVE")=wizard.scanRecursively();
Config_getString("OUTPUT_DIRECTORY")=wizard.getDestinationDir().local8Bit();
// step2 if (!m_runProcess->waitForStarted())
if (wizard.extractAll())
{
Config_getBool("EXTRACT_ALL")=TRUE;
Config_getBool("EXTRACT_PRIVATE")=TRUE;
Config_getBool("EXTRACT_STATIC")=TRUE;
Config_getBool("EXTRACT_LOCAL_CLASSES")=TRUE;
Config_getBool("HIDE_UNDOC_MEMBERS")=FALSE;
Config_getBool("HIDE_UNDOC_CLASSES")=FALSE;
}
else
{ {
Config_getBool("EXTRACT_ALL")=FALSE; m_outputLog->append(QString::fromAscii("*** Failed to run doxygen\n"));
Config_getBool("EXTRACT_PRIVATE")=FALSE; return;
Config_getBool("EXTRACT_STATIC")=FALSE;
Config_getBool("EXTRACT_LOCAL_CLASSES")=TRUE;
Config_getBool("HIDE_UNDOC_MEMBERS")=TRUE;
Config_getBool("HIDE_UNDOC_CLASSES")=TRUE;
} }
QTextStream t(m_runProcess);
m_expert->writeConfig(t,false);
m_runProcess->closeWriteChannel();
if (wizard.crossReferencing()) if (m_runProcess->state() == QProcess::NotRunning)
{ {
Config_getBool("SOURCE_BROWSER")=TRUE; m_outputLog->append(QString::fromAscii("*** Failed to run doxygen\n"));
Config_getBool("REFERENCED_BY_RELATION")=TRUE;
Config_getBool("REFERENCES_RELATION")=TRUE;
Config_getBool("VERBATIM_HEADERS")=TRUE;
} }
else else
{ {
Config_getBool("SOURCE_BROWSER")=FALSE; m_saveLog->setEnabled(false);
Config_getBool("REFERENCED_BY_RELATION")=FALSE; m_running=true;
Config_getBool("REFERENCES_RELATION")=FALSE; m_run->setText(tr("Stop doxygen"));
Config_getBool("VERBATIM_HEADERS")=FALSE; m_runStatus->setText(tr("Status: running"));
} m_timer->start(1000);
switch(wizard.optimizeFor())
{
case Lang_Cpp:
Config_getBool("OPTIMIZE_OUTPUT_FOR_C")=FALSE;
Config_getBool("OPTIMIZE_OUTPUT_JAVA")=FALSE;
break;
case Lang_Java:
Config_getBool("OPTIMIZE_OUTPUT_FOR_C")=FALSE;
Config_getBool("OPTIMIZE_OUTPUT_JAVA")=TRUE;
break;
case Lang_C:
Config_getBool("OPTIMIZE_OUTPUT_FOR_C")=TRUE;
Config_getBool("OPTIMIZE_OUTPUT_JAVA")=FALSE;
break;
case Lang_CS:
Config_getBool("OPTIMIZE_OUTPUT_FOR_C")=FALSE;
Config_getBool("OPTIMIZE_OUTPUT_JAVA")=TRUE;
Config_getBool("EXTRACT_STATIC")=TRUE;
Config_getBool("EXTRACT_LOCAL_CLASSES")=TRUE;
break;
}
// step3
Config_getBool("GENERATE_HTML")=wizard.htmlEnabled();
Config_getBool("GENERATE_LATEX")=wizard.latexEnabled();
Config_getBool("GENERATE_MAN")=wizard.manEnabled();
Config_getBool("GENERATE_RTF")=wizard.rtfEnabled();
Config_getBool("GENERATE_XML")=wizard.xmlEnabled();
Config_getBool("SEARCHENGINE")=wizard.searchEnabled();
if (wizard.htmlEnabled())
{
switch (wizard.htmlStyle())
{
case HS_Plain:
Config_getBool("GENERATE_HTMLHELP")=FALSE;
Config_getEnum("GENERATE_TREEVIEW")="NONE";
break;
case HS_TreeView:
Config_getBool("GENERATE_HTMLHELP")=FALSE;
Config_getEnum("GENERATE_TREEVIEW")="ALL";
break;
case HS_CHM:
Config_getBool("GENERATE_HTMLHELP")=TRUE;
Config_getEnum("GENERATE_TREEVIEW")="NONE";
break;
} }
} }
if (wizard.latexEnabled()) else
{
switch (wizard.texStyle())
{ {
case TS_PDFHyper: m_running=false;
Config_getBool("USE_PDFLATEX")=TRUE; m_run->setText(tr("Run doxygen"));
Config_getBool("PDF_HYPERLINKS")=TRUE; m_runStatus->setText(tr("Status: not running"));
break; m_runProcess->kill();
case TS_PDF: m_timer->stop();
Config_getBool("USE_PDFLATEX")=TRUE; //updateRunnable(m_workingDir->text());
Config_getBool("PDF_HYPERLINKS")=FALSE;
break;
case TS_PS:
Config_getBool("USE_PDFLATEX")=FALSE;
Config_getBool("PDF_HYPERLINKS")=FALSE;
break;
}
} }
}
// step4 void MainWindow::readStdout()
switch (wizard.diagramMode()) {
{ if (m_running)
case DM_None:
Config_getBool("CLASS_DIAGRAMS")=FALSE;
Config_getBool("HAVE_DOT")=FALSE;
break;
case DM_Builtin:
Config_getBool("CLASS_DIAGRAMS")=TRUE;
Config_getBool("HAVE_DOT")=FALSE;
break;
case DM_Dot:
Config_getBool("CLASS_DIAGRAMS")=FALSE;
Config_getBool("HAVE_DOT")=TRUE;
Config_getBool("CLASS_GRAPH")=wizard.classDiagram();
Config_getBool("COLLABORATION_GRAPH")=wizard.collaborationDiagram();
Config_getBool("INCLUDE_GRAPH")=wizard.includeGraph();
Config_getBool("INCLUDED_BY_GRAPH")=wizard.includedByGraph();
Config_getBool("GRAPHICAL_HIERARCHY")=wizard.inheritanceGraph();
Config_getBool("CALL_GRAPH")=wizard.callGraph();
break;
}
#if defined(Q_OS_MACX)
if (Config_getString("DOT_PATH").isEmpty())
{ {
setDotPath(); QByteArray data = m_runProcess->readAllStandardOutput();
} QString text = QString::fromLocal8Bit(data);
if (Config_getString("MSCGEN_PATH").isEmpty()) if (!text.isEmpty())
{ {
setMscgenPath(); m_outputLog->append(text.trimmed());
} }
#endif
setConfigSaved(FALSE);
} }
} }
void MainWidget::loadConfigFromFile(const QString &fn) void MainWindow::runComplete()
{ {
if (!Config::instance()->parse(fn)) if (m_running)
{
QMessageBox::warning(0,"Warning",
"Could not open or read config file "+fn+"!",
"abort"
);
}
else
{
Config::instance()->convertStrToVal();
#if 0 //defined(Q_OS_MACX)
if (checkIfDotInstalled() &&
qstricmp(Config_getString("DOT_PATH"),DOT_PATH)!=0
)
{ {
Config_getString("DOT_PATH")=DOT_PATH; m_outputLog->append(tr("*** Doxygen has finished\n"));
setConfigSaved(FALSE);
} }
else else
{ {
setConfigSaved(TRUE); m_outputLog->append(tr("*** Cancelled by user\n"));
}
#else
setConfigSaved(TRUE);
#endif
addRecentFile(fn);
m_workingDir->setText(QFileInfo(fn).dirPath(TRUE));
m_configFileName = fn;
#if defined(Q_OS_MACX)
//if (Config_getString("DOT_PATH").isEmpty())
//{
// setDotPath();
// setConfigSaved(FALSE);
//}
if (Config_getString("MSCGEN_PATH").isEmpty())
{
setMscgenPath();
setConfigSaved(FALSE);
}
#endif
statusBar()->message("New configuration loaded",messageTimeout);
}
}
void MainWidget::loadConfigFile()
{
QString fn = QFileDialog::getOpenFileName(m_workingDir->text(),QString::null,this);
if (!fn.isEmpty())
{
loadConfigFromFile(fn);
// set current dir to where the config file is located
QDir::setCurrent(QFileInfo(fn).dirPath(TRUE));
} }
m_outputLog->ensureCursorVisible();
m_run->setText(tr("Run doxygen"));
m_runStatus->setText(tr("Status: not running"));
m_running=false;
updateLaunchButtonState();
//updateRunnable(m_workingDir->text());
m_saveLog->setEnabled(true);
} }
void MainWidget::launchExpert() void MainWindow::updateLaunchButtonState()
{ {
Expert expert(this); m_launchHtml->setEnabled(m_expert->htmlOutputPresent(m_workingDir->text()));
expert.init(); #if 0
expert.exec(); m_launchPdf->setEnabled(m_expert->pdfOutputPresent(m_workingDir->text()));
//#if defined(Q_OS_MACX) #endif
// setDotPath();
//#endif
if (expert.hasChanged()) setConfigSaved(FALSE);
} }
void MainWidget::saveDefaults() void MainWindow::showHtmlOutput()
{ {
if (QMessageBox::question(this,"Store settings as defaults", QString indexFile = m_expert->getHtmlOutputIndex(m_workingDir->text());
"Do you wish to use the " QFileInfo fi(indexFile);
"current configuration settings as the default settings?", QString indexUrl(QString::fromAscii("file://")+fi.absoluteFilePath());
QMessageBox::Yes, QMessageBox::No)==QMessageBox::Yes) QDesktopServices::openUrl(QUrl(indexUrl));
{
QString newConfig;
QTextStream t(&newConfig,IO_WriteOnly);
Config::instance()->writeTemplate(t,TRUE,FALSE);
m_settings.writeEntry("/doxywizard/config/default",newConfig);
m_settings.writeEntry("/doxywizard/config/workingdir",m_workingDir->text());
statusBar()->message("Current configuration saved as default",messageTimeout);
}
} }
void MainWidget::saveConfigFile() void MainWindow::saveLog()
{ {
QString fn = QFileDialog::getSaveFileName(m_workingDir->text()+"/Doxyfile",QString::null,this); QString fn = QFileDialog::getSaveFileName(this, tr("Save log file"),
m_workingDir->text()+
QString::fromAscii("/doxygen_log.txt"));
if (!fn.isEmpty()) if (!fn.isEmpty())
{ {
QFile f(fn); QFile f(fn);
if (f.exists() && QMessageBox::question(this, if (f.open(QIODevice::WriteOnly))
"Overwrite file? -- Doxywizard",
"A file called "+fn+" already exists. Do you want to overwrite it?",
"&Yes","&no",
QString::null, 0, 1)
)
{
statusBar()->message("Save request aborted",messageTimeout);
return;
}
if (f.open(IO_WriteOnly))
{ {
QTextStream t(&f); QTextStream t(&f);
Config::instance()->writeTemplate(t,TRUE,FALSE); t << m_outputLog->toPlainText();
m_configFileName = fn; statusBar()->showMessage(tr("Output log saved"),messageTimeout);
setConfigSaved(TRUE);
addRecentFile(fn);
statusBar()->message("Configuration saved",messageTimeout);
} }
else else
{ {
QMessageBox::warning(0,"Warning", QMessageBox::warning(0,tr("Warning"),
"Cannot open file "+fn+" for writing. Nothing saved!","ok"); tr("Cannot open file ")+fn+tr(" for writing. Nothing saved!"),tr("ok"));
} }
} }
} }
void MainWidget::resetConfig() void MainWindow::showSettings()
{ {
if (QMessageBox::question(this,"Reset settings to their defaults", QString text;
"Do you wish to reset the " QTextStream t(&text);
"current configuration settings to their factory defaults?", m_expert->writeConfig(t,true);
QMessageBox::Yes, QMessageBox::No)==QMessageBox::Yes)
{
// initialize config settings
Config::instance()->init();
#if defined(Q_OS_MACX)
setDotPath();
setMscgenPath();
#endif
m_configFileName = "";
setConfigSaved(FALSE);
statusBar()->message("Configuration settings reset to their defaults",messageTimeout);
}
}
void MainWidget::setConfigSaved(bool enable)
{
m_configSaved=enable;
if (m_configSaved)
{
m_saveStatus->setText("Status: saved");
}
else
{
m_saveStatus->setText("Status: <font color=\"red\">not saved</font>");
}
updateRunnable(m_workingDir->text());
}
void MainWidget::runDoxygen()
{
if (!m_running)
{
QString doxygenPath;
#if defined(Q_OS_MACX)
doxygenPath = getResourcePath();
#else
// TODO: get the right value if not in the search path
#endif
//printf("Trying to run doxygen from path %s\n",doxygenPath.data());
m_runProcess->setCommunication(QProcess::Stdout|
QProcess::Stderr|
QProcess::DupStderr
);
m_runProcess->setWorkingDirectory(QDir(m_workingDir->text()));
m_runProcess->clearArguments();
m_runProcess->addArgument(doxygenPath+"doxygen");
m_runProcess->addArgument("-b");
m_runProcess->addArgument(m_configFileName);
m_outputLog->clear(); m_outputLog->clear();
if (!m_runProcess->start()) m_outputLog->append(text);
{ m_outputLog->ensureCursorVisible();
m_outputLog->append(QString("*** Failed to run doxygen\n")); m_saveLog->setEnabled(true);
}
else
{
m_running=TRUE;
m_run->setText("Cancel");
m_runStatus->setText("Status: running");
m_timer->start(1000);
}
}
else
{
m_running=FALSE;
m_run->setText("Start");
m_runStatus->setText("Status: not running");
m_runProcess->kill();
m_timer->stop();
updateRunnable(m_workingDir->text());
}
} }
void MainWidget::readStdout() void MainWindow::configChanged()
{ {
m_outputLog->append(QString(m_runProcess->readStdout())); m_modified = true;
updateTitle();
} }
void MainWidget::runComplete() void MainWindow::updateTitle()
{ {
if (m_running) QString title = tr("Doxygen GUI frontend");
if (m_modified)
{ {
m_outputLog->append(QString("*** Doxygen has finished\n")); title+=QString::fromAscii(" +");
} }
else if (!m_fileName.isEmpty())
{ {
m_outputLog->append(QString("*** Cancelled by user\n")); title+=QString::fromAscii(" (")+m_fileName+QString::fromAscii(")");
} }
m_run->setText("Start"); setWindowTitle(title);
m_runStatus->setText("Status: not running");
m_running=FALSE;
updateRunnable(m_workingDir->text());
}
void MainWidget::about()
{
QString msg;
QTextStream t(&msg,IO_WriteOnly);
t << QString("<qt><center>A tool to configure and run doxygen version ")+versionString+
" on your source files.</center><p><br>"
"<center>Written by<br> Dimitri van Heesch<br>&copy; 2000-2008</center><p>"
"</qt>";
QMessageBox::about(this,"Doxygen GUI",msg);
} }
void MainWidget::manual() bool MainWindow::discardUnsavedChanges(bool saveOption)
{ {
#if defined(Q_OS_MACX) if (m_modified)
const char *urlBytes = "http://www.doxygen.org/manual.html";
CFURLRef url = CFURLCreateWithBytes (
NULL, // allocator
(UInt8*)urlBytes, // bytes
strlen(urlBytes), // length
kCFStringEncodingASCII, // encoding
NULL // baseURL
);
LSOpenCFURLRef(url,0);
CFRelease(url);
#endif
}
void MainWidget::addRecentFile(const QString &file)
{
QStringList::Iterator it = m_recentFiles.find(file);
if (it!=m_recentFiles.end())
{
// already found => move to top
m_recentFiles.remove(it);
m_recentFiles.prepend(file);
}
else
{
// not found
if (m_recentFiles.count() < 10) // append
{ {
m_recentFiles.prepend(file); QMessageBox::StandardButton button;
} if (saveOption)
else // add + drop last item
{ {
m_recentFiles.remove(m_recentFiles.last()); button = QMessageBox::question(this,
m_recentFiles.prepend(file); tr("Unsaved changes"),
} tr("Unsaved changes will be lost! Do you want to save the configuration file?"),
} QMessageBox::Save |
QMessageBox::Discard |
m_recentMenu->clear(); QMessageBox::Cancel
int i=0; );
for ( it = m_recentFiles.begin(); it != m_recentFiles.end(); ++it, ++i ) if (button==QMessageBox::Save)
{ {
m_recentMenu->insertItem(*it); return saveConfig();
m_settings.writeEntry(QString().sprintf("/doxywizard/recent/config%d",i),*it);
} }
}
void MainWidget::openRecent(int id)
{
loadConfigFromFile(m_recentMenu->text(id));
}
void MainWidget::quit()
{
if (!m_configSaved &&
QMessageBox::warning( this, "DoxyWizard", "Quit and lose changes?",
QMessageBox::Yes, QMessageBox::No)==QMessageBox::No
) return; // Quit cancelled by user
qApp->quit();
}
void MainWidget::saveLog()
{
QString fn = QFileDialog::getSaveFileName(m_workingDir->text()+"/doxygen_log.txt",QString::null,this);
if (!fn.isEmpty())
{
QFile f(fn);
if (f.open(IO_WriteOnly))
{
QTextStream t(&f);
t << m_outputLog->text();
statusBar()->message("Output log saved",messageTimeout);
} }
else else
{ {
QMessageBox::warning(0,"Warning", button = QMessageBox::question(this,
"Cannot open file "+fn+" for writing. Nothing saved!","ok"); tr("Unsaved changes"),
tr("Unsaved changes will be lost! Do you want to continue?"),
QMessageBox::Discard |
QMessageBox::Cancel
);
} }
return button==QMessageBox::Discard;
} }
return true;
} }
//========================================================================== //-----------------------------------------------------------------------
int main(int argc,char **argv) int main(int argc,char **argv)
{ {
QApplication a(argc,argv); QApplication a(argc,argv);
MainWidget main; MainWindow &main = MainWindow::instance();
if (argc==2 && argv[1][0]!='-') // name of config file as an argument if (argc==2 && argv[1][0]!='-') // name of config file as an argument
{ {
main.loadConfigFromFile(argv[1]); main.loadConfigFromFile(QString::fromLocal8Bit(argv[1]));
} }
else if (argc>1) else if (argc>1)
{ {
printf("Usage: %s [config file]\n",argv[0]); printf("Usage: %s [config file]\n",argv[0]);
exit(1); exit(1);
} }
a.setMainWidget(&main);
main.show(); main.show();
return a.exec(); return a.exec();
} }
#ifndef DOXYWIZARD_H #ifndef DOXYWIZARD_H
#define DOXYWIZARD_H #define DOXYWIZARD_H
#include <qvbox.h> #include <QMainWindow>
#include <qtabdialog.h> #include <QSettings>
#include <qmainwindow.h> #include <QStringList>
#include <qsettings.h>
#include <qstringlist.h>
class Expert;
class Wizard;
class QLabel;
class QLineEdit; class QLineEdit;
class QCheckBox;
class QPushButton; class QPushButton;
class QComboBox;
class QButtonGroup;
class QTextEdit; class QTextEdit;
class QLabel; class QMenu;
class QProcess; class QProcess;
class QTimer; class QTimer;
class QPopupMenu;
enum OptLang { Lang_Cpp, Lang_C, Lang_Java, Lang_CS };
enum HtmlStyle { HS_Plain, HS_TreeView, HS_CHM };
enum TexStyle { TS_PDFHyper, TS_PDF, TS_PS };
enum DiagramMode { DM_None, DM_Builtin, DM_Dot };
class Step1 : public QWidget
{
Q_OBJECT
public:
Step1(QWidget *parent);
QString getProjectName() const;
QString getProjectNumber() const;
QString getSourceDir() const;
bool scanRecursively() const;
QString getDestinationDir() const;
void setProjectName(const QString &name);
void setProjectNumber(const QString &num);
void setSourceDir(const QString &dir);
void setRecursiveScan(bool enable);
void setDestinationDir(const QString &dir);
private slots:
void selectSourceDir();
void selectDestinationDir();
private:
QLineEdit *m_projName;
QLineEdit *m_projNumber;
QLineEdit *m_sourceDir;
QLineEdit *m_destDir;
QCheckBox *m_recursive;
QPushButton *m_srcSelectDir;
QPushButton *m_dstSelectDir;
};
class Step2 : public QWidget
{
public:
Step2(QWidget *parent);
bool crossReferencingEnabled() const;
void enableCrossReferencing();
bool extractAll() const;
bool crossReferencing() const;
OptLang optimizeFor() const;
void setExtractAll(bool enable); class MainWindow : public QMainWindow
void setCrossReferencing(bool enable);
void setOptimizeFor(OptLang lang);
private:
QButtonGroup *m_extractMode;
QButtonGroup *m_optimizeLang;
QCheckBox *m_crossRef;
};
class Step3 : public QWidget
{ {
Q_OBJECT Q_OBJECT
public: public:
Step3(QWidget *parent); static MainWindow &instance();
void loadConfigFromFile(const QString &fileName);
bool htmlEnabled() const; void loadSettings();
bool latexEnabled() const; void saveSettings();
bool manEnabled() const; void closeEvent(QCloseEvent *event);
bool rtfEnabled() const; QString configFileName() const { return m_fileName; }
bool xmlEnabled() const; void updateTitle();
bool searchEnabled() const;
HtmlStyle htmlStyle() const; public slots:
TexStyle texStyle() const; void manual();
void about();
void setHtmlEnabled(bool); void openConfig();
void setLatexEnabled(bool); bool saveConfig();
void setManEnabled(bool); bool saveConfigAs();
void setRtfEnabled(bool); void makeDefaults();
void setXmlEnabled(bool); void resetToDefaults();
void setSearchEnabled(bool); void selectTab(int);
void setHtmlStyle(HtmlStyle); void quit();
void setTexStyle(TexStyle);
private slots:
void latexStateChange(int state);
void htmlStateChange(int state);
private:
QButtonGroup *m_texOptions;
QVBox *m_texOptionBox;
QButtonGroup *m_htmlOptions;
QVBox *m_htmlOptionBox;
QCheckBox *m_htmlEnabled;
QCheckBox *m_latexEnabled;
QCheckBox *m_manEnabled;
QCheckBox *m_rtfEnabled;
QCheckBox *m_xmlEnabled;
QCheckBox *m_searchEnabled;
};
class Step4 : public QWidget
{
Q_OBJECT
public:
Step4(QWidget *parent);
//void disableCallGraphs();
//bool callGraphEnabled() const;
DiagramMode diagramMode() const;
bool classDiagram() const;
bool collaborationDiagram() const;
bool includeGraph() const;
bool includedByGraph() const;
bool inheritanceGraph() const;
bool callGraph() const;
void setDiagramMode(DiagramMode mode);
void setClassDiagram(bool enable);
void setCollaborationDiagram(bool enable);
void setIncludeGraph(bool enable);
void setIncludedByGraph(bool enable);
void setInheritanceGraph(bool enable);
void setCallGraph(bool enable);
private slots:
void diagramModeChanged(int);
private:
QButtonGroup *m_diagramMode;
QVBox *m_dotOptions;
QCheckBox *m_dotClass;
QCheckBox *m_dotCollaboration;
QCheckBox *m_dotInclude;
QCheckBox *m_dotIncludedBy;
QCheckBox *m_dotInheritance;
QCheckBox *m_dotCall;
};
class Wizard : public QTabDialog
{
Q_OBJECT
public:
Wizard(QWidget *parent);
//void disableCallGraphs();
// step1
QString getProjectName() const { return m_step1->getProjectName(); }
QString getProjectNumber() const { return m_step1->getProjectNumber(); }
QString getSourceDir() const { return m_step1->getSourceDir(); }
bool scanRecursively() const { return m_step1->scanRecursively(); }
QString getDestinationDir() const { return m_step1->getDestinationDir(); }
void setProjectName(const QString &name) { m_step1->setProjectName(name); }
void setProjectNumber(const QString &num) { m_step1->setProjectNumber(num); }
void setSourceDir(const QString &dir) { m_step1->setSourceDir(dir); }
void setRecursiveScan(bool enable) { m_step1->setRecursiveScan(enable); }
void setDestinationDir(const QString &dir) { m_step1->setDestinationDir(dir); }
// step2
bool extractAll() const { return m_step2->extractAll(); }
bool crossReferencing() const { return m_step2->crossReferencing(); }
OptLang optimizeFor() const { return m_step2->optimizeFor(); }
void setExtractAll(bool enable) { m_step2->setExtractAll(enable); }
void setCrossReferencing(bool enable) { m_step2->setCrossReferencing(enable); }
void setOptimizeFor(OptLang lang) { m_step2->setOptimizeFor(lang); }
// step3
bool htmlEnabled() const { return m_step3->htmlEnabled(); }
bool latexEnabled() const { return m_step3->latexEnabled(); }
bool manEnabled() const { return m_step3->manEnabled(); }
bool rtfEnabled() const { return m_step3->rtfEnabled(); }
bool xmlEnabled() const { return m_step3->xmlEnabled(); }
bool searchEnabled() const { return m_step3->searchEnabled(); }
HtmlStyle htmlStyle() const { return m_step3->htmlStyle(); }
TexStyle texStyle() const { return m_step3->texStyle(); }
void setHtmlEnabled(bool enable) { m_step3->setHtmlEnabled(enable); }
void setLatexEnabled(bool enable) { m_step3->setLatexEnabled(enable); }
void setManEnabled(bool enable) { m_step3->setManEnabled(enable); }
void setRtfEnabled(bool enable) { m_step3->setRtfEnabled(enable); }
void setXmlEnabled(bool enable) { m_step3->setXmlEnabled(enable); }
void setSearchEnabled(bool enable) { m_step3->setSearchEnabled(enable); }
void setHtmlStyle(HtmlStyle style) { m_step3->setHtmlStyle(style); }
void setTexStyle(TexStyle style) { m_step3->setTexStyle(style); }
// step4
DiagramMode diagramMode() const { return m_step4->diagramMode(); }
bool classDiagram() const { return m_step4->classDiagram(); }
bool collaborationDiagram() const { return m_step4->collaborationDiagram(); }
bool includeGraph() const { return m_step4->includeGraph(); }
bool includedByGraph() const { return m_step4->includedByGraph(); }
bool inheritanceGraph() const { return m_step4->inheritanceGraph(); }
bool callGraph() const { return m_step4->callGraph(); }
void setDiagramMode(DiagramMode mode) { m_step4->setDiagramMode(mode); }
void setClassDiagram(bool enable) { m_step4->setClassDiagram(enable); }
void setCollaborationDiagram(bool enable) { m_step4->setCollaborationDiagram(enable); }
void setIncludeGraph(bool enable) { m_step4->setIncludeGraph(enable); }
void setIncludedByGraph(bool enable) { m_step4->setIncludedByGraph(enable); }
void setInheritanceGraph(bool enable) { m_step4->setInheritanceGraph(enable); }
void setCallGraph(bool enable) { m_step4->setCallGraph(enable); }
private:
Step1 *m_step1;
Step2 *m_step2;
Step3 *m_step3;
Step4 *m_step4;
};
class MainWidget : public QMainWindow
{
Q_OBJECT
public:
MainWidget(QWidget *parent=0);
~MainWidget();
void loadConfigFromFile(const QString &);
private slots: private slots:
void launchWizard(); void openRecent(QAction *action);
void launchExpert();
void loadConfigFile();
void selectWorkingDir(); void selectWorkingDir();
void updateRunnable(const QString &newDirName); void updateWorkingDir();
void saveDefaults();
void saveConfigFile();
void runDoxygen(); void runDoxygen();
void readStdout(); void readStdout();
void runComplete(); void runComplete();
void about(); void showHtmlOutput();
void manual();
void resetConfig();
void openRecent(int);
void quit();
void saveLog(); void saveLog();
void showSettings();
void configChanged();
private: private:
void setConfigSaved(bool); MainWindow();
void addRecentFile(const QString &); void saveConfig(const QString &fileName);
void addRecentFile(const QString &fileName);
void updateConfigFileName(const QString &fileName);
void setWorkingDir(const QString &dirName);
void updateLaunchButtonState();
bool discardUnsavedChanges(bool saveOption=true);
QPushButton *m_wizard;
QPushButton *m_expert;
QPushButton *m_load;
QPushButton *m_save;
QPushButton *m_defaults;
QLineEdit *m_workingDir; QLineEdit *m_workingDir;
QPushButton *m_selWorkingDir; QPushButton *m_selWorkingDir;
QPushButton *m_run; QPushButton *m_run;
QPushButton *m_saveLog; QPushButton *m_saveLog;
QPushButton *m_launchHtml;
QPushButton *m_launchPdf;
QTextEdit *m_outputLog;
QLabel *m_runStatus; QLabel *m_runStatus;
Expert *m_expert;
Wizard *m_wizard;
QString m_fileName;
QSettings m_settings;
QMenu *m_recentMenu;
QStringList m_recentFiles;
QProcess *m_runProcess; QProcess *m_runProcess;
QLabel *m_saveStatus;
QLabel *m_outputHeading;
QTextEdit *m_outputLog;
QTimer *m_timer; QTimer *m_timer;
QSettings m_settings;
QPopupMenu *m_recentMenu;
bool m_configSaved;
bool m_running; bool m_running;
QString m_configFileName; bool m_modified;
QStringList m_recentFiles;
}; };
#endif #endif
# ######################################################################
# # Automatically generated by qmake (2.01a) zo okt 19 12:50:02 2008
# ######################################################################
# Copyright (C) 1997-2008 by Dimitri van Heesch.
# TEMPLATE = app
# Permission to use, copy, modify, and distribute this software and its DESTDIR = ../../bin
# documentation under the terms of the GNU General Public License is hereby TARGET =
# granted. No representations are made about the suitability of this software DEPENDPATH += .
# for any purpose. It is provided "as is" without express or implied warranty. INCLUDEPATH += .
# See the GNU General Public License for more details. QT += xml
# CONFIG += $extraopts
# project file for the doxywizard project
# special template configuration file because we use flex
TEMPLATE = doxywizard.t
# executable to generate
TARGET = ../../bin/doxywizard
# we do not use the debug features in this copy of portable.cpp
DEFINES = NODEBUG
# configure options
CONFIG = qt warn_on $extraopts
# header file for the project
HEADERS = doxywizard.h \
version.h \
inputstring.h \
inputbool.h \
inputstrlist.h \
inputint.h \
expert.h \
config.h \
portable.h
# source flle for the project
SOURCES = doxywizard.cpp \
version.cpp \
inputstring.cpp \
inputbool.cpp \
inputstrlist.cpp \
inputint.cpp \
expert.cpp \
config.cpp \
portable.cpp
# where to put the objects
OBJECTS_DIR = obj OBJECTS_DIR = obj
# where to put the intermediate moc stuff
MOC_DIR = moc MOC_DIR = moc
RCC_DIR = rcc
# extra C++ compiler options DEFINES += QT_NO_CAST_FROM_ASCII QT_NO_CAST_TO_ASCII
INCLUDEPATH += ../../src
win32:TMAKE_CXXFLAGS += -DQT_DLL # Input
win32:INCLUDEPATH += . HEADERS += doxywizard.h version.h expert.h config.h helplabel.h \
macosx-c++:LIBS+=-framework CoreFoundation -framework ApplicationServices inputbool.h inputstring.h inputint.h inputstrlist.h wizard.h
SOURCES += doxywizard.cpp ../../src/version.cpp expert.cpp wizard.cpp \
# extra link options inputbool.cpp inputstring.cpp inputint.cpp inputstrlist.cpp
win32:TMAKE_LFLAGS = /NODEFAULTLIB:msvcrt.lib doxywizard.res LEXSOURCES += config.l
win32:TMAKE_LIBS = $(QTDIR)\lib\qtmain.lib $(QTDIR)\lib\qt-mt332.lib user32.lib gdi32.lib comdlg32.lib imm32.lib ole32.lib uuid.lib wsock32.lib RESOURCES += doxywizard.qrc
win32:TMAKE_LIBS_QT =
<!DOCTYPE RCC><RCC version="1.0">
<qresource prefix="/">
<file alias="config.xml">../../src/config.xml</file>
<file>images/add.png</file>
<file>images/del.png</file>
<file>images/file.png</file>
<file>images/folder.png</file>
<file>images/refresh.png</file>
</qresource>
</RCC>
#
#
#
# Copyright (C) 1997-2008 by Dimitri van Heesch.
#
# Permission to use, copy, modify, and distribute this software and its
# documentation under the terms of the GNU General Public License is hereby
# granted. No representations are made about the suitability of this software
# for any purpose. It is provided "as is" without express or implied warranty.
# See the GNU General Public License for more details.
#!
#! wizard.t: This is a custom template for building doxywizard
#!
#$ IncludeTemplate("app.t");
LEX = flex
YACC = bison
#${
sub GenerateDep {
my($obj,$src,$dep) = @_;
my(@objv,$srcv,$i,$s,$o,$d,$c);
@objv = split(/\s+/,$obj);
@srcv = split(/\s+/,$src);
for $i ( 0..$#objv ) {
$s = $srcv[$i];
$o = $objv[$i];
next if $s eq "";
$text .= $o . ": " . $s;
$text .= " ${linebreak}\n\t\t" . $dep if $dep ne "";
if ( $moc_output{$s} ne "" ) {
$text .= " ${linebreak}\n\t\t" . $moc_output{$s};
}
$d = &make_depend($s);
$text .= " ${linebreak}\n\t\t" . $d if $d ne "";
$text .= "\n";
}
chop $text;
}
#$}
####################
#$ GenerateDep("config.cpp","config.l");
$(LEX) -PconfigYY -t config.l >config.cpp
/******************************************************************************
*
*
*
* Copyright (C) 1997-2008 by Dimitri van Heesch.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation under the terms of the GNU General Public License is hereby
* granted. No representations are made about the suitability of this software
* for any purpose. It is provided "as is" without express or implied warranty.
* See the GNU General Public License for more details.
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <qmainwindow.h>
#include <qpopupmenu.h>
#include <qfileinfo.h>
#include <qmenubar.h>
#include <qstatusbar.h>
#include <qfiledialog.h>
#include <qmessagebox.h>
#include <qapplication.h>
#include <qwhatsthis.h>
#include <qlayout.h>
#include <qtabwidget.h>
#include <qtoolbar.h>
#include <qtoolbutton.h>
#include <qscrollview.h>
#include <qlayout.h>
#include <qtooltip.h>
#include "expert.h" #include "expert.h"
#include "inputbool.h" #include "inputbool.h"
#include "inputstring.h" #include "inputstring.h"
#include "inputstrlist.h"
#include "inputint.h" #include "inputint.h"
#include "inputstring.h"
#include "inputstrlist.h"
#include <QtGui>
#include <QtXml>
#include "config.h" #include "config.h"
#include "version.h" #include "version.h"
//------------------------------------------------------------------------- #undef SA
#define SA(x) QString::fromAscii(x)
static QString convertToComment(const QString &s)
{
if (s.isEmpty())
{
return QString();
}
else
{
return SA("# ")+
s.trimmed().replace(SA("\n"),SA("\n# "))+
SA("\n");
}
}
//------------------------------------------------------------------------------------
Expert::Expert( QWidget *parent ) : QTabDialog( parent ) Expert::Expert()
{ {
m_treeWidget = new QTreeWidget;
m_treeWidget->setColumnCount(1);
m_topicStack = new QStackedWidget;
QFile file(SA(":/config.xml"));
QString err;
int errLine,errCol;
QDomDocument configXml;
if (file.open(QIODevice::ReadOnly))
{
if (!configXml.setContent(&file,false,&err,&errLine,&errCol))
{
QString msg = tr("Error parsing internal config.xml at line %1 column %2.\n%3").
arg(errLine).arg(errCol).arg(err);
QMessageBox::warning(this, tr("Error"), msg);
exit(1);
}
}
m_rootElement = configXml.documentElement();
createTopics(m_rootElement);
m_helper = new QTextEdit;
m_helper->setReadOnly(true);
m_splitter = new QSplitter(Qt::Vertical);
m_splitter->addWidget(m_treeWidget);
m_splitter->addWidget(m_helper);
QWidget *rightSide = new QWidget;
QGridLayout *grid = new QGridLayout(rightSide);
m_prev = new QPushButton(tr("Previous"));
m_prev->setEnabled(false);
m_next = new QPushButton(tr("Next"));
grid->addWidget(m_topicStack,0,0,1,2);
grid->addWidget(m_prev,1,0,Qt::AlignLeft);
grid->addWidget(m_next,1,1,Qt::AlignRight);
grid->setColumnStretch(0,1);
grid->setRowStretch(0,1);
addWidget(m_splitter);
addWidget(rightSide);
connect(m_next,SIGNAL(clicked()),SLOT(nextTopic()));
m_dependencies = new QDict< QList<IInput> >(257); connect(m_prev,SIGNAL(clicked()),SLOT(prevTopic()));
m_dependencies->setAutoDelete(TRUE); }
m_inputWidgets = new QDict< IInput >;
m_switches = new QDict< QObject >; Expert::~Expert()
m_changed = FALSE; {
QHashIterator<QString,Input*> i(m_options);
setHelpButton(); while (i.hasNext())
{
QListIterator<ConfigOption> options = Config::instance()->iterator(); i.next();
QVBoxLayout *pageLayout = 0; delete i.value();
QFrame *page = 0; }
ConfigOption *option = 0; }
for (options.toFirst();(option=options.current());++options)
{ void Expert::createTopics(const QDomElement &rootElem)
switch(option->kind()) {
{ QList<QTreeWidgetItem*> items;
case ConfigOption::O_Info: QDomElement childElem = rootElem.firstChildElement();
{ while (!childElem.isNull())
if (pageLayout) pageLayout->addStretch(1); {
QScrollView *view = new QScrollView(this); if (childElem.tagName()==SA("group"))
view->setVScrollBarMode(QScrollView::Auto); {
view->setHScrollBarMode(QScrollView::AlwaysOff); QString name = childElem.attribute(SA("name"));
view->setResizePolicy(QScrollView::AutoOneFit); items.append(new QTreeWidgetItem((QTreeWidget*)0,QStringList(name)));
page = new QFrame( view->viewport(), option->name() ); QWidget *widget = createTopicWidget(childElem);
pageLayout = new QVBoxLayout(page); m_topics[name] = widget;
pageLayout->setMargin(10); m_topicStack->addWidget(widget);
view->addChild(page); }
addTab(view,option->name()); childElem = childElem.nextSiblingElement();
QWhatsThis::add(page, option->docs().simplifyWhiteSpace() ); }
QToolTip::add(page, option->docs() ); m_treeWidget->setHeaderLabels(QStringList() << SA("Topics"));
} m_treeWidget->insertTopLevelItems(0,items);
break; connect(m_treeWidget,
case ConfigOption::O_String: SIGNAL(currentItemChanged(QTreeWidgetItem *,QTreeWidgetItem *)),
{ this,
ASSERT(page!=0); SLOT(activateTopic(QTreeWidgetItem *,QTreeWidgetItem *)));
InputString::StringMode sm=InputString::StringFree; }
switch(((ConfigString *)option)->widgetType())
{
case ConfigString::String: sm=InputString::StringFree; break; QWidget *Expert::createTopicWidget(QDomElement &elem)
case ConfigString::File: sm=InputString::StringFile; break; {
case ConfigString::Dir: sm=InputString::StringDir; break; QScrollArea *area = new QScrollArea;
} QWidget *topic = new QWidget;
InputString *inputString = new InputString( QGridLayout *layout = new QGridLayout(topic);
option->name(), // name QDomElement child = elem.firstChildElement();
page, // widget int row=0;
*((ConfigString *)option)->valueRef(), // variable while (!child.isNull())
sm // type {
QString type = child.attribute(SA("type"));
if (type==SA("bool"))
{
InputBool *boolOption =
new InputBool(
layout,row,
child.attribute(SA("id")),
child.attribute(SA("defval"))==SA("1"),
child.attribute(SA("docs"))
); );
pageLayout->addWidget(inputString); m_options.insert(
QWhatsThis::add(inputString, option->docs().simplifyWhiteSpace() ); child.attribute(SA("id")),
QToolTip::add(inputString,option->docs()); boolOption
connect(inputString,SIGNAL(changed()),SLOT(changed()));
m_inputWidgets->insert(option->name(),inputString);
addDependency(m_switches,option->dependsOn(),option->name());
}
break;
case ConfigOption::O_Enum:
{
ASSERT(page!=0);
InputString *inputString = new InputString(
option->name(), // name
page, // widget
*((ConfigEnum *)option)->valueRef(), // variable
InputString::StringFixed // type
); );
pageLayout->addWidget(inputString); connect(boolOption,SIGNAL(showHelp(Input*)),SLOT(showHelp(Input*)));
QStrListIterator sli=((ConfigEnum *)option)->iterator(); connect(boolOption,SIGNAL(changed()),SIGNAL(changed()));
for (sli.toFirst();sli.current();++sli) }
{ else if (type==SA("string"))
inputString->addValue(sli.current()); {
} InputString::StringMode mode;
inputString->init(); QString format = child.attribute(SA("format"));
QWhatsThis::add(inputString, option->docs().simplifyWhiteSpace() ); if (format==SA("dir"))
QToolTip::add(inputString, option->docs()); {
connect(inputString,SIGNAL(changed()),SLOT(changed())); mode = InputString::StringDir;
m_inputWidgets->insert(option->name(),inputString); }
addDependency(m_switches,option->dependsOn(),option->name()); else if (format==SA("file"))
} {
break; mode = InputString::StringFile;
case ConfigOption::O_List: }
{ else // format=="string"
ASSERT(page!=0); {
InputStrList::ListMode lm=InputStrList::ListString; mode = InputString::StringFree;
switch(((ConfigList *)option)->widgetType()) }
{ InputString *stringOption =
case ConfigList::String: lm=InputStrList::ListString; break; new InputString(
case ConfigList::File: lm=InputStrList::ListFile; break; layout,row,
case ConfigList::Dir: lm=InputStrList::ListDir; break; child.attribute(SA("id")),
case ConfigList::FileAndDir: lm=InputStrList::ListFileDir; break; child.attribute(SA("defval")),
} mode,
InputStrList *inputStrList = new InputStrList( child.attribute(SA("docs"))
option->name(), // name );
page, // widget m_options.insert(
*((ConfigList *)option)->valueRef(), // variable child.attribute(SA("id")),
lm // type stringOption
);
connect(stringOption,SIGNAL(showHelp(Input*)),SLOT(showHelp(Input*)));
connect(stringOption,SIGNAL(changed()),SIGNAL(changed()));
}
else if (type==SA("enum"))
{
InputString *enumList = new InputString(
layout,row,
child.attribute(SA("id")),
child.attribute(SA("defval")),
InputString::StringFixed,
child.attribute(SA("docs"))
);
QDomElement enumVal = child.firstChildElement();
while (!enumVal.isNull())
{
enumList->addValue(enumVal.attribute(SA("name")));
enumVal = enumVal.nextSiblingElement();
}
enumList->setDefault();
m_options.insert(child.attribute(SA("id")),enumList);
connect(enumList,SIGNAL(showHelp(Input*)),SLOT(showHelp(Input*)));
connect(enumList,SIGNAL(changed()),SIGNAL(changed()));
}
else if (type==SA("int"))
{
InputInt *intOption =
new InputInt(
layout,row,
child.attribute(SA("id")),
child.attribute(SA("defval")).toInt(),
child.attribute(SA("minval")).toInt(),
child.attribute(SA("maxval")).toInt(),
child.attribute(SA("docs"))
);
m_options.insert(
child.attribute(SA("id")),
intOption
); );
pageLayout->addWidget(inputStrList); connect(intOption,SIGNAL(showHelp(Input*)),SLOT(showHelp(Input*)));
QWhatsThis::add(inputStrList, option->docs().simplifyWhiteSpace() ); connect(intOption,SIGNAL(changed()),SIGNAL(changed()));
QToolTip::add(inputStrList, option->docs()); }
connect(inputStrList,SIGNAL(changed()),SLOT(changed())); else if (type==SA("list"))
m_inputWidgets->insert(option->name(),inputStrList); {
addDependency(m_switches,option->dependsOn(),option->name()); InputStrList::ListMode mode;
} QString format = child.attribute(SA("format"));
break; if (format==SA("dir"))
break; {
case ConfigOption::O_Bool: mode = InputStrList::ListDir;
{ }
ASSERT(page!=0); else if (format==SA("file"))
InputBool *inputBool = new InputBool( {
option->name(), // name mode = InputStrList::ListFile;
page, // widget }
*((ConfigBool *)option)->valueRef() // variable else if (format==SA("filedir"))
{
mode = InputStrList::ListFileDir;
}
else // format=="string"
{
mode = InputStrList::ListString;
}
QStringList sl;
QDomElement listVal = child.firstChildElement();
while (!listVal.isNull())
{
sl.append(listVal.attribute(SA("name")));
listVal = listVal.nextSiblingElement();
}
InputStrList *listOption =
new InputStrList(
layout,row,
child.attribute(SA("id")),
sl,
mode,
child.attribute(SA("docs"))
); );
pageLayout->addWidget(inputBool); m_options.insert(
QWhatsThis::add(inputBool, option->docs().simplifyWhiteSpace() ); child.attribute(SA("id")),
QToolTip::add(inputBool, option->docs() ); listOption
connect(inputBool,SIGNAL(changed()),SLOT(changed()));
m_inputWidgets->insert(option->name(),inputBool);
addDependency(m_switches,option->dependsOn(),option->name());
}
break;
case ConfigOption::O_Int:
{
ASSERT(page!=0);
InputInt *inputInt = new InputInt(
option->name(), // name
page, // widget
*((ConfigInt *)option)->valueRef(), // variable
((ConfigInt *)option)->minVal(), // min value
((ConfigInt *)option)->maxVal() // max value
); );
pageLayout->addWidget(inputInt); connect(listOption,SIGNAL(showHelp(Input*)),SLOT(showHelp(Input*)));
QWhatsThis::add(inputInt, option->docs().simplifyWhiteSpace() ); connect(listOption,SIGNAL(changed()),SIGNAL(changed()));
QToolTip::add(inputInt, option->docs() ); }
connect(inputInt,SIGNAL(changed()),SLOT(changed())); else if (type==SA("obsolete"))
m_inputWidgets->insert(option->name(),inputInt); {
addDependency(m_switches,option->dependsOn(),option->name()); // ignore
}
else // should not happen
{
printf("Unsupported type %s\n",qPrintable(child.attribute(SA("type"))));
}
child = child.nextSiblingElement();
}
// compute dependencies between options
child = elem.firstChildElement();
while (!child.isNull())
{
QString dependsOn = child.attribute(SA("depends"));
QString id = child.attribute(SA("id"));
if (!dependsOn.isEmpty())
{
Input *parentOption = m_options[dependsOn];
Input *thisOption = m_options[id];
Q_ASSERT(parentOption);
Q_ASSERT(thisOption);
if (parentOption && thisOption)
{
//printf("Adding dependency '%s' (%p)->'%s' (%p)\n",
// qPrintable(dependsOn),parentOption,
// qPrintable(id),thisOption);
parentOption->addDependency(thisOption);
} }
break;
case ConfigOption::O_Obsolete:
break;
} }
child = child.nextSiblingElement();
} }
if (pageLayout) pageLayout->addStretch(1);
QDictIterator<QObject> di(*m_switches); // set initial dependencies
QObject *obj = 0; QHashIterator<QString,Input*> i(m_options);
for (di.toFirst();(obj=di.current());++di) while (i.hasNext())
{ {
connect(obj,SIGNAL(toggle(const char *,bool)),SLOT(toggle(const char *,bool))); i.next();
// UGLY HACK: assumes each item depends on a boolean without checking! if (i.value())
emit toggle(di.currentKey(),((InputBool *)obj)->getState()); {
i.value()->updateDependencies();
}
} }
connect(this,SIGNAL(helpButtonPressed()),this,SLOT(handleHelp())); layout->setRowStretch(row,1);
layout->setColumnStretch(1,2);
layout->setSpacing(5);
topic->setLayout(layout);
area->setWidget(topic);
area->setWidgetResizable(true);
return area;
}
void Expert::activateTopic(QTreeWidgetItem *item,QTreeWidgetItem *)
{
if (item)
{
QWidget *w = m_topics[item->text(0)];
m_topicStack->setCurrentWidget(w);
m_prev->setEnabled(m_topicStack->currentIndex()!=0);
m_next->setEnabled(m_topicStack->currentIndex()!=m_topicStack->count()-1);
}
} }
Expert::~Expert() void Expert::loadSettings(QSettings *s)
{ {
delete m_dependencies; QHashIterator<QString,Input*> i(m_options);
delete m_inputWidgets; while (i.hasNext())
delete m_switches; {
i.next();
QVariant var = s->value(SA("config/")+i.key());
//printf("Loading key %s: type=%d\n",qPrintable(i.key()),var.type());
if (i.value())
{
i.value()->value() = var;
i.value()->update();
}
}
} }
void Expert::handleHelp() void Expert::saveSettings(QSettings *s)
{ {
QWhatsThis::enterWhatsThisMode(); QHashIterator<QString,Input*> i(m_options);
while (i.hasNext())
{
i.next();
if (i.value())
{
s->value(SA("config/")+i.key(),i.value()->value());
}
}
} }
void Expert::addDependency(QDict<QObject> *switches, void Expert::loadConfig(const QString &fileName)
const QCString &dep,const QCString &name)
{ {
if (!dep.isEmpty()) //printf("Expert::loadConfig(%s)\n",qPrintable(fileName));
parseConfig(fileName,m_options);
}
void Expert::saveTopic(QTextStream &t,QDomElement &elem,QTextCodec *codec,
bool brief)
{
// write group header
t << endl;
t << "#---------------------------------------------------------------------------" << endl;
t << "# " << elem.attribute(SA("docs")) << endl;
t << "#---------------------------------------------------------------------------" << endl;
// write options...
QDomElement childElem = elem.firstChildElement();
while (!childElem.isNull())
{
QString type = childElem.attribute(SA("type"));
QString name = childElem.attribute(SA("id"));
QHash<QString,Input*>::const_iterator i = m_options.find(name);
if (i!=m_options.end())
{ {
//printf("Expert::addDependency(%s)\n",name.data()); Input *option = i.value();
IInput *parent = m_inputWidgets->find(dep); if (!brief)
ASSERT(parent!=0);
IInput *child = m_inputWidgets->find(name);
ASSERT(child!=0);
if (switches->find(dep)==0)
{ {
switches->insert(dep,parent->qobject()); t << endl;
t << convertToComment(childElem.attribute(SA("docs")));
t << endl;
} }
QList<IInput> *list = m_dependencies->find(dep); t << name.leftJustified(23) << "= ";
if (list==0) if (option)
{ {
list = new QList<IInput>; option->writeValue(t,codec);
m_dependencies->insert(dep,list);
} }
list->append(child); t << endl;
} }
childElem = childElem.nextSiblingElement();
}
} }
void Expert::toggle(const char *name,bool state) bool Expert::writeConfig(QTextStream &t,bool brief)
{ {
QList<IInput> *inputs = m_dependencies->find(name); if (!brief)
ASSERT(inputs!=0);
IInput *input = inputs->first();
while (input)
{ {
input->setEnabled(state); // write global header
input = inputs->next(); t << "# Doxyfile " << versionString << endl << endl; // TODO: add version
t << "# This file describes the settings to be used by the documentation system\n";
t << "# doxygen (www.doxygen.org) for a project\n";
t << "#\n";
t << "# All text after a hash (#) is considered a comment and will be ignored\n";
t << "# The format is:\n";
t << "# TAG = value [value, ...]\n";
t << "# For lists items can also be appended using:\n";
t << "# TAG += value [value, ...]\n";
t << "# Values that contain spaces should be placed between quotes (\" \")\n";
}
QTextCodec *codec = 0;
Input *option = m_options[QString::fromAscii("DOXYFILE_ENCODING")];
if (option)
{
codec = QTextCodec::codecForName(option->value().toString().toAscii());
if (codec==0) // fallback: use UTF-8
{
codec = QTextCodec::codecForName("UTF-8");
}
} }
QDomElement childElem = m_rootElement.firstChildElement();
while (!childElem.isNull())
{
saveTopic(t,childElem,codec,brief);
childElem = childElem.nextSiblingElement();
}
return true;
}
QByteArray Expert::saveInnerState () const
{
return m_splitter->saveState();
} }
void Expert::init() bool Expert::restoreInnerState ( const QByteArray & state )
{ {
QDictIterator<IInput> di(*m_inputWidgets); return m_splitter->restoreState(state);
IInput *input = 0; }
for (di.toFirst();(input=di.current());++di)
void Expert::showHelp(Input *option)
{
m_helper->setText(
QString::fromAscii("<qt><b>")+option->id()+
QString::fromAscii("</b><br>")+
option->docs().
replace(QChar::fromAscii('\n'),QChar::fromAscii(' '))+
QString::fromAscii("<qt>")
);
}
void Expert::nextTopic()
{
m_topicStack->setCurrentIndex(m_topicStack->currentIndex()+1);
m_next->setEnabled(m_topicStack->count()!=m_topicStack->currentIndex()+1);
m_prev->setEnabled(m_topicStack->currentIndex()!=0);
m_treeWidget->setCurrentItem(m_treeWidget->invisibleRootItem()->child(m_topicStack->currentIndex()));
}
void Expert::prevTopic()
{
m_topicStack->setCurrentIndex(m_topicStack->currentIndex()-1);
m_next->setEnabled(m_topicStack->count()!=m_topicStack->currentIndex()+1);
m_prev->setEnabled(m_topicStack->currentIndex()!=0);
m_treeWidget->setCurrentItem(m_treeWidget->invisibleRootItem()->child(m_topicStack->currentIndex()));
}
void Expert::resetToDefaults()
{
//printf("Expert::makeDefaults()\n");
QHashIterator<QString,Input*> i(m_options);
while (i.hasNext())
{ {
input->init(); i.next();
} if (i.value())
QDictIterator<QObject> dio(*m_switches);
QObject *obj = 0;
for (dio.toFirst();(obj=dio.current());++dio)
{ {
connect(obj,SIGNAL(toggle(const char *,bool)),SLOT(toggle(const char *,bool))); i.value()->reset();
// UGLY HACK: assumes each item depends on a boolean without checking!
emit toggle(dio.currentKey(),((InputBool *)obj)->getState());
} }
}
}
static bool stringVariantToBool(const QVariant &v)
{
QString s = v.toString().toLower();
return s==QString::fromAscii("yes") || s==QString::fromAscii("true") || s==QString::fromAscii("1");
}
static bool getBoolOption(
const QHash<QString,Input*>&model,const QString &name)
{
Input *option = model[name];
Q_ASSERT(option!=0);
return stringVariantToBool(option->value());
}
static QString getStringOption(
const QHash<QString,Input*>&model,const QString &name)
{
Input *option = model[name];
Q_ASSERT(option!=0);
return option->value().toString();
}
bool Expert::htmlOutputPresent(const QString &workingDir) const
{
bool generateHtml = getBoolOption(m_options,QString::fromAscii("GENERATE_HTML"));
if (!generateHtml) return false;
QString indexFile = getHtmlOutputIndex(workingDir);
QFileInfo fi(indexFile);
return fi.exists() && fi.isFile();
} }
void Expert::changed() QString Expert::getHtmlOutputIndex(const QString &workingDir) const
{ {
m_changed=TRUE; QString outputDir = getStringOption(m_options,QString::fromAscii("OUTPUT_DIRECTORY"));
QString htmlOutputDir = getStringOption(m_options,QString::fromAscii("HTML_OUTPUT"));
//printf("outputDir=%s\n",qPrintable(outputDir));
//printf("htmlOutputDir=%s\n",qPrintable(htmlOutputDir));
QString indexFile = workingDir;
if (QFileInfo(outputDir).isAbsolute()) // override
{
indexFile = outputDir;
}
else // append
{
indexFile += QString::fromAscii("/")+outputDir;
}
if (QFileInfo(htmlOutputDir).isAbsolute()) // override
{
indexFile = htmlOutputDir;
}
else // append
{
indexFile += QString::fromAscii("/")+htmlOutputDir;
}
indexFile+=QString::fromAscii("/index.html");
return indexFile;
}
bool Expert::pdfOutputPresent(const QString &workingDir) const
{
bool generateLatex = getBoolOption(m_options,QString::fromAscii("GENERATE_LATEX"));
bool pdfLatex = getBoolOption(m_options,QString::fromAscii("USE_PDFLATEX"));
if (!generateLatex || !pdfLatex) return false;
QString latexOutput = getStringOption(m_options,QString::fromAscii("LATEX_OUTPUT"));
QString indexFile;
if (QFileInfo(latexOutput).isAbsolute())
{
indexFile = latexOutput+QString::fromAscii("/refman.pdf");
}
else
{
indexFile = workingDir+QString::fromAscii("/")+
latexOutput+QString::fromAscii("/refman.pdf");
}
QFileInfo fi(indexFile);
return fi.exists() && fi.isFile();
} }
/******************************************************************************
*
*
*
* Copyright (C) 1997-2008 by Dimitri van Heesch.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation under the terms of the GNU General Public License is hereby
* granted. No representations are made about the suitability of this software
* for any purpose. It is provided "as is" without express or implied warranty.
* See the GNU General Public License for more details.
*
*/
#ifndef EXPERT_H #ifndef EXPERT_H
#define EXPERT_H #define EXPERT_H
#include <qtabdialog.h> #include <QSplitter>
#include <qlist.h> #include <QDomElement>
#include <qdict.h> #include <QHash>
class IInput;
class QWidget;
class QObject;
class InputBool;
class InputString;
class InputStrList;
class InputFile;
class InputDir;
class InputInt;
class ConfigWidget
{
public:
enum Kind { Int, String, StrList, Bool };
ConfigWidget(QWidget *w,Kind k) : m_widget(w), m_kind(k) {}
Kind kind() const { return m_kind; }
InputString *getString() const class QTreeWidget;
{ return m_kind==String ? (InputString *)m_widget : 0; } class QTreeWidgetItem;
class QStackedWidget;
class QSettings;
class QTextEdit;
class QTextCodec;
class QPushButton;
class Input;
InputBool *getBool() const class Expert : public QSplitter
{ return m_kind==Bool ? (InputBool *)m_widget : 0; }
InputStrList *getStrList() const
{ return m_kind==StrList ? (InputStrList *)m_widget : 0; }
InputInt *getInt() const
{ return m_kind==Int ? (InputInt *)m_widget : 0; }
private:
QWidget *m_widget;
Kind m_kind;
};
class Expert : public QTabDialog
{ {
Q_OBJECT Q_OBJECT
public: public:
Expert(QWidget *parent=0); Expert();
~Expert(); ~Expert();
void init(); void loadSettings(QSettings *);
void addDependency(QDict<QObject> *switches, void saveSettings(QSettings *);
const QCString &dep,const QCString &name); void loadConfig(const QString &fileName);
bool hasChanged() const { return m_changed; } bool writeConfig(QTextStream &t,bool brief);
QByteArray saveInnerState () const;
bool restoreInnerState ( const QByteArray & state );
const QHash<QString,Input*> &modelData() const { return m_options; }
void resetToDefaults();
bool htmlOutputPresent(const QString &workingDir) const;
bool pdfOutputPresent(const QString &workingDir) const;
QString getHtmlOutputIndex(const QString &workingDir) const;
public slots:
void activateTopic(QTreeWidgetItem *,QTreeWidgetItem *);
QWidget *createTopicWidget(QDomElement &elem);
private slots: private slots:
void toggle(const char *,bool); void showHelp(Input *);
void handleHelp(); void nextTopic();
void prevTopic();
signals:
void changed(); void changed();
private: private:
QDict<IInput> *m_inputWidgets; void createTopics(const QDomElement &);
QDict< QList<IInput> > *m_dependencies; void saveTopic(QTextStream &t,QDomElement &elem,QTextCodec *codec,bool brief);
QDict<QObject> *m_switches;
bool m_changed; QSplitter *m_splitter;
QTextEdit *m_helper;
QTreeWidget *m_treeWidget;
QStackedWidget *m_topicStack;
QHash<QString,QWidget *> m_topics;
QHash<QString,QObject *> m_optionWidgets;
QHash<QString,Input *> m_options;
QPushButton *m_next;
QPushButton *m_prev;
QDomElement m_rootElement;
}; };
#endif #endif
#ifndef HELPLABEL_H
#define HELPLABEL_H
#include <QLabel>
#include <QMenu>
class HelpLabel : public QLabel
{
Q_OBJECT
public:
HelpLabel(const QString &text) : QLabel(text)
{ setContextMenuPolicy(Qt::CustomContextMenu);
connect(this,SIGNAL(customContextMenuRequested(const QPoint&)),
this,SLOT(showMenu(const QPoint&)));
}
signals:
void enter();
void reset();
private slots:
void showMenu(const QPoint &p)
{
QMenu menu(this);
QAction *a = menu.addAction(tr("Reset to default"));
if (menu.exec(mapToGlobal(p))==a)
{
reset();
}
}
protected:
void enterEvent( QEvent * event ) { enter(); QLabel::enterEvent(event); }
};
#endif
#ifndef _INPUT_H #ifndef INPUT_H
#define _INPUT_H #define INPUT_H
class QObject; #include <QVariant>
class IInput class QTextStream;
class QTextCodec;
class Input
{ {
public: public:
virtual ~IInput() {} enum Kind
virtual void init() = 0; {
Bool,
Int,
String,
StrList,
Obsolete
};
virtual ~Input() {}
virtual QVariant &value() = 0;
virtual void update() = 0;
virtual Kind kind() const = 0;
virtual QString docs() const = 0;
virtual QString id() const = 0;
virtual void addDependency(Input *option) = 0;
virtual void setEnabled(bool) = 0; virtual void setEnabled(bool) = 0;
virtual QObject *qobject() = 0; virtual void updateDependencies() = 0;
virtual void reset() = 0;
virtual void writeValue(QTextStream &t,QTextCodec *codec) = 0;
}; };
#endif #endif
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* *
* *
* *
* Copyright (C) 1997-2008 by Dimitri van Heesch. * Copyright (C) 1997-2007 by Dimitri van Heesch.
* *
* Permission to use, copy, modify, and distribute this software and its * Permission to use, copy, modify, and distribute this software and its
* documentation under the terms of the GNU General Public License is hereby * documentation under the terms of the GNU General Public License is hereby
...@@ -13,47 +13,98 @@ ...@@ -13,47 +13,98 @@
*/ */
#include "inputbool.h" #include "inputbool.h"
//#if QT_VERSION >= 300 #include "helplabel.h"
//#include <qstylefactory.h> #include <QtGui>
//#else
//#include <qwindowsstyle.h>
//#endif
#include <qlayout.h>
InputBool::InputBool( const QString & text, QWidget * parent, bool &flag ) InputBool::InputBool( QGridLayout *layout, int &row,
: QWidget(parent), state(flag) const QString &id, bool checked,
const QString &docs )
: m_default(checked), m_docs(docs), m_id(id)
{ {
QBoxLayout *layout = new QHBoxLayout(this); m_lab = new HelpLabel(id);
cb = new QCheckBox(text,this); m_cb = new QCheckBox;
layout->addWidget(cb); layout->addWidget(m_lab,row, 0);
layout->addStretch(10); layout->addWidget(m_cb,row, 1);
m_enabled = true;
//#if QT_VERSION >= 300 m_state=!checked; // force update
// QStyle *winStyle = QStyleFactory::create("windows"); setValue(checked);
//#else connect( m_cb, SIGNAL(toggled(bool)), SLOT(setValue(bool)) );
// QWindowsStyle *winStyle = new QWindowsStyle(); connect( m_lab, SIGNAL(enter()), SLOT(help()) );
//#endif connect( m_lab, SIGNAL(reset()), SLOT(reset()) );
cb->setChecked( flag ); row++;
// if (winStyle) cb->setStyle( winStyle ); }
cb->setMinimumSize( sizeHint() );
connect( cb, SIGNAL(toggled(bool)), SLOT(setState(bool)) ); void InputBool::help()
{
showHelp(this);
}
layout->activate(); void InputBool::setEnabled(bool b)
{
m_enabled = b;
m_cb->setEnabled(b);
updateDependencies();
} }
void InputBool::init() void InputBool::updateDependencies()
{ {
cb->setChecked(state); for (int i=0;i<m_dependencies.count();i++)
{
m_dependencies[i]->setEnabled(m_enabled && m_state);
}
} }
void InputBool::setState( bool s ) void InputBool::setValue( bool s )
{ {
if (state!=s) if (m_state!=s)
{ {
m_state=s;
updateDefault();
updateDependencies();
m_cb->setChecked( s );
m_value = m_state;
emit changed(); emit changed();
emit toggle(cb->text(),s);
} }
state=s; }
void InputBool::updateDefault()
{
if (m_state==m_default)
{
m_lab->setText(QString::fromAscii("<qt>")+m_id+QString::fromAscii("</qt"));
}
else
{
m_lab->setText(QString::fromAscii("<qt><font color='red'>")+m_id+QString::fromAscii("</font></qt>"));
}
}
QVariant &InputBool::value()
{
return m_value;
}
void InputBool::update()
{
QString v = m_value.toString().toLower();
m_state = (v==QString::fromAscii("yes") ||
v==QString::fromAscii("true") ||
v==QString::fromAscii("1"));
m_cb->setChecked( m_state );
updateDefault();
updateDependencies();
}
void InputBool::reset()
{
setValue(m_default);
}
void InputBool::writeValue(QTextStream &t,QTextCodec *codec)
{
if (m_state)
t << codec->fromUnicode(QString::fromAscii("YES"));
else
t << codec->fromUnicode(QString::fromAscii("NO"));
} }
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* *
* *
* *
* Copyright (C) 1997-2008 by Dimitri van Heesch. * Copyright (C) 1997-2007 by Dimitri van Heesch.
* *
* Permission to use, copy, modify, and distribute this software and its * Permission to use, copy, modify, and distribute this software and its
* documentation under the terms of the GNU General Public License is hereby * documentation under the terms of the GNU General Public License is hereby
...@@ -15,35 +15,55 @@ ...@@ -15,35 +15,55 @@
#ifndef _INPUTBOOL_H #ifndef _INPUTBOOL_H
#define _INPUTBOOL_H #define _INPUTBOOL_H
#include <qwidget.h>
#include <qcheckbox.h>
#include "input.h" #include "input.h"
#include <QObject>
class PageWidget; class QCheckBox;
class QGridLayout;
class QLabel;
class InputBool : public QWidget, /*QCheckBox,*/ public IInput class InputBool : public QObject, public Input
{ {
Q_OBJECT Q_OBJECT
public: public:
InputBool( const QString &text, QWidget *parent, bool &flag ); InputBool(QGridLayout *layout,int &row,const QString &id,
~InputBool(){}; bool enabled, const QString &docs );
void init();
void setEnabled(bool b) { cb->setEnabled(b); } // Input
QObject *qobject() { return this; } QVariant &value();
bool getState() const { return state; } void update();
Kind kind() const { return Bool; }
QString docs() const { return m_docs; }
QString id() const { return m_id; }
void addDependency(Input *option) { m_dependencies+=option; }
void setEnabled(bool);
void updateDependencies();
void writeValue(QTextStream &t,QTextCodec *codec);
public slots:
void reset();
void setValue(bool);
signals: signals:
void changed(); void changed();
void toggle(const char *,bool); void toggle(QString,bool);
void showHelp(Input *);
private slots: private slots:
void setState(bool); void help();
private: private:
bool &state; void updateDefault();
QCheckBox *cb; bool m_state;
bool m_default;
bool m_enabled;
QVariant m_value;
QCheckBox *m_cb;
QString m_docs;
QList<Input*> m_dependencies;
QString m_id;
QLabel *m_lab;
}; };
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* *
* *
* *
* Copyright (C) 1997-2008 by Dimitri van Heesch. * Copyright (C) 1997-2007 by Dimitri van Heesch.
* *
* Permission to use, copy, modify, and distribute this software and its * Permission to use, copy, modify, and distribute this software and its
* documentation under the terms of the GNU General Public License is hereby * documentation under the terms of the GNU General Public License is hereby
...@@ -13,53 +13,84 @@ ...@@ -13,53 +13,84 @@
*/ */
#include "inputint.h" #include "inputint.h"
#include "helplabel.h"
#include <stdio.h> #include <QtGui>
#include <stdlib.h>
#include <qlabel.h>
#include <qlayout.h>
#include <qwindowsstyle.h>
#include <qspinbox.h>
InputInt::InputInt( const QString & label, QWidget *parent, int &val, int minVal,int maxVal ) InputInt::InputInt( QGridLayout *layout,int &row,
: QWidget( parent), m_val(val), m_minVal(minVal), m_maxVal(maxVal) const QString & id,
int defVal, int minVal,int maxVal,
const QString & docs )
: m_default(defVal), m_minVal(minVal), m_maxVal(maxVal), m_docs(docs), m_id(id)
{ {
QHBoxLayout *layout = new QHBoxLayout( this, 5 ); m_lab = new HelpLabel(id);
m_sp = new QSpinBox;
m_sp->setMinimum(minVal);
m_sp->setMaximum(maxVal);
m_sp->setSingleStep(1);
m_val=defVal-1; // force update
setValue(defVal);
lab = new QLabel( label, this ); layout->addWidget( m_lab, row, 0 );
lab->setMinimumSize( lab->sizeHint() ); layout->addWidget( m_sp, row, 1 );
sp = new QSpinBox( minVal,maxVal,1,this ); connect(m_sp, SIGNAL(valueChanged(int)),
sp->setMinimumSize( sp->sizeHint() ); this, SLOT(setValue(int)) );
connect( m_lab, SIGNAL(enter()), SLOT(help()) );
connect( m_lab, SIGNAL(reset()), SLOT(reset()) );
row++;
}
void InputInt::help()
{
showHelp(this);
}
init();
layout->addWidget( lab ); void InputInt::setValue(int val)
layout->addWidget( sp ); {
layout->addStretch(1); val = qMax(m_minVal,val);
layout->activate(); val = qMin(m_maxVal,val);
setMinimumSize( sizeHint() ); if (val!=m_val)
{
m_val = val;
m_sp->setValue(val);
m_value = m_val;
if (m_val==m_default)
{
m_lab->setText(QString::fromAscii("<qt>")+m_id+QString::fromAscii("</qt"));
}
else
{
m_lab->setText(QString::fromAscii("<qt><font color='red'>")+m_id+QString::fromAscii("</font></qt>"));
}
emit changed();
}
}
connect(sp, SIGNAL(valueChanged(int)), void InputInt::setEnabled(bool state)
this, SLOT(valueChanged(int)) ); {
m_lab->setEnabled(state);
m_sp->setEnabled(state);
}
QVariant &InputInt::value()
{
return m_value;
} }
void InputInt::valueChanged(int val) void InputInt::update()
{ {
if (val!=m_val) emit changed(); setValue(m_value.toInt());
m_val = val;
} }
void InputInt::setEnabled(bool state) void InputInt::reset()
{ {
lab->setEnabled(state); setValue(m_default);
sp->setEnabled(state);
} }
void InputInt::init() void InputInt::writeValue(QTextStream &t,QTextCodec *)
{ {
m_val = QMAX(m_minVal,m_val); t << m_val;
m_val = QMIN(m_maxVal,m_val);
sp->setValue(m_val);
} }
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* *
* *
* *
* Copyright (C) 1997-2008 by Dimitri van Heesch. * Copyright (C) 1997-2007 by Dimitri van Heesch.
* *
* Permission to use, copy, modify, and distribute this software and its * Permission to use, copy, modify, and distribute this software and its
* documentation under the terms of the GNU General Public License is hereby * documentation under the terms of the GNU General Public License is hereby
...@@ -15,39 +15,56 @@ ...@@ -15,39 +15,56 @@
#ifndef _INPUTINT_H #ifndef _INPUTINT_H
#define _INPUTINT_H #define _INPUTINT_H
#include <qwidget.h>
#include <qstring.h>
#include "input.h" #include "input.h"
#include <QObject>
class QGridLayout;
class QLabel; class QLabel;
class QSpinBox; class QSpinBox;
class InputInt : public QWidget, public IInput class InputInt : public QObject, public Input
{ {
Q_OBJECT Q_OBJECT
public: public:
InputInt( const QString &text, QWidget *parent, int &val, InputInt( QGridLayout *layout,int &row,
int minVal, int maxVal ); const QString &id, int defVal,
int minVal, int maxVal,
const QString &docs );
~InputInt(){}; ~InputInt(){};
// Input
QVariant &value();
void update();
Kind kind() const { return Int; }
QString docs() const { return m_docs; }
QString id() const { return m_id; }
void addDependency(Input *) { Q_ASSERT(false); }
void setEnabled(bool); void setEnabled(bool);
void init(); void updateDependencies() {}
QObject *qobject() { return this; } void writeValue(QTextStream &t,QTextCodec *codec);
private: public slots:
QLabel *lab; void reset();
QSpinBox *sp; void setValue(int val);
int &m_val;
int m_minVal; private slots:
int m_maxVal; void help();
signals: signals:
void changed(); void changed();
void showHelp(Input *);
private slots: private:
void valueChanged(int val); QLabel *m_lab;
QSpinBox *m_sp;
int m_val;
int m_default;
int m_minVal;
int m_maxVal;
QVariant m_value;
QString m_docs;
QString m_id;
}; };
#endif #endif
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* *
* *
* *
* Copyright (C) 1997-2008 by Dimitri van Heesch. * Copyright (C) 1997-2007 by Dimitri van Heesch.
* *
* Permission to use, copy, modify, and distribute this software and its * Permission to use, copy, modify, and distribute this software and its
* documentation under the terms of the GNU General Public License is hereby * documentation under the terms of the GNU General Public License is hereby
...@@ -13,178 +13,179 @@ ...@@ -13,178 +13,179 @@
*/ */
#include "inputstring.h" #include "inputstring.h"
//#include "pixmaps.h" #include "helplabel.h"
#include "doxywizard.h"
#include <qlabel.h> #include "config.h"
#include <qlayout.h>
#include <qlineedit.h> #include <QtGui>
#include <qwindowsstyle.h>
#include <qcstring.h> InputString::InputString( QGridLayout *layout,int &row,
#include <qpushbutton.h> const QString & id, const QString &s,
#include <qfiledialog.h> StringMode m, const QString &docs )
#include <qcombobox.h> : m_default(s), m_sm(m), m_index(0), m_docs(docs), m_id(id)
#include <qtooltip.h>
InputString::InputString( const QString & label,
QWidget *parent, QCString &s, StringMode m )
: QWidget( parent ), str(s), sm(m), m_values(0), m_index(0)
{ {
m_lab = new HelpLabel(id);
if (m==StringFixed) if (m==StringFixed)
{ {
QHBoxLayout *layout = new QHBoxLayout( this, 5); layout->addWidget( m_lab, row, 0 );
lab = new QLabel( label, this ); m_com = new QComboBox;
lab->setMinimumSize( lab->sizeHint() ); layout->addWidget( m_com, row, 1, 1, 3, Qt::AlignLeft );
layout->addWidget( lab ); m_le=0;
com = new QComboBox( this ); m_br=0;
com->setMinimumSize(com->sizeHint()); row++;
layout->addWidget( com );
layout->addStretch( 1 );
le=0;
br=0;
layout->activate();
setMinimumSize( sizeHint() );
} }
else else
{ {
QGridLayout *layout = new QGridLayout( this, 1, m==StringFree ? 1 : 3, 5 ); layout->addWidget( m_lab, row, 0 );
lab = new QLabel( label, this ); m_le = new QLineEdit;
lab->setMinimumSize( lab->sizeHint() ); m_le->setText( s );
layout->addWidget( lab,0,0 ); //layout->setColumnMinimumWidth(2,150);
le = new QLineEdit( this );
le->setMinimumSize( le->sizeHint() );
le->setText( s );
layout->addWidget( le,0,1 );
if (m==StringFile || m==StringDir) if (m==StringFile || m==StringDir)
{ {
//QPixmap pixmap = QPixmap(m==StringFile ? layout->addWidget( m_le, row, 1 );
// file_xpm : m_br = new QToolBar;
// folder_xpm ); m_br->setIconSize(QSize(24,24));
br = new QPushButton( this );
br->setMinimumSize( br->sizeHint() );
if (m==StringFile) if (m==StringFile)
{ {
br->setText("File..."); QAction *file = m_br->addAction(QIcon(QString::fromAscii(":/images/file.png")),QString(),this,SLOT(browse()));
QToolTip::add(br,"Browse to a file"); file->setToolTip(tr("Browse to a file"));
} }
else else
{ {
br->setText("Folder..."); QAction *dir = m_br->addAction(QIcon(QString::fromAscii(":/images/folder.png")),QString(),this,SLOT(browse()));
QToolTip::add(br,"Browse to a folder"); dir->setToolTip(tr("Browse to a folder"));
} }
layout->addWidget( br,0,2 ); layout->addWidget( m_br,row,2 );
} }
else else
{ {
br=0; layout->addWidget( m_le, row, 1, 1, 2 );
m_br=0;
} }
com=0; m_com=0;
layout->activate(); row++;
setMinimumSize( sizeHint() );
} }
if (le) connect( le, SIGNAL(textChanged(const QString&)), if (m_le) connect( m_le, SIGNAL(textChanged(const QString&)),
this, SLOT(textChanged(const QString&)) ); this, SLOT(setValue(const QString&)) );
if (br) connect( br, SIGNAL(clicked()), this, SLOT(browse()) ); if (m_com) connect( m_com, SIGNAL(activated(const QString &)),
if (com) connect( com, SIGNAL(activated(const QString &)), this, SLOT(setValue(const QString &)) );
this, SLOT(textChanged(const QString &)) ); m_str = s+QChar::fromAscii('!'); // force update
setValue(s);
connect( m_lab, SIGNAL(enter()), SLOT(help()) );
connect( m_lab, SIGNAL(reset()), SLOT(reset()) );
}
void InputString::help()
{
showHelp(this);
} }
InputString::~InputString() InputString::~InputString()
{ {
if (m_values) delete m_values;
} }
void InputString::textChanged(const QString &s) void InputString::setValue(const QString &s)
{ {
if (str!=(const char *)s) if (m_str!=s)
{ {
str = s; m_str = s;
m_value = m_str;
if (m_str==m_default)
{
m_lab->setText(QString::fromAscii("<qt>")+m_id+QString::fromAscii("</qt"));
}
else
{
m_lab->setText(QString::fromAscii("<qt><font color='red'>")+m_id+QString::fromAscii("</font></qt>"));
}
if (m_le) m_le->setText( m_str );
emit changed(); emit changed();
} }
} }
void InputString::setEnabled(bool state) void InputString::setEnabled(bool state)
{ {
lab->setEnabled(state); m_lab->setEnabled(state);
if (le) le->setEnabled(state); if (m_le) m_le->setEnabled(state);
if (br) br->setEnabled(state); if (m_br) m_br->setEnabled(state);
if (com) com->setEnabled(state); if (m_com) m_com->setEnabled(state);
} }
void InputString::browse() void InputString::browse()
{ {
if (sm==StringFile) QString path = QFileInfo(MainWindow::instance().configFileName()).path();
if (m_sm==StringFile)
{ {
QString fileName = QFileDialog::getOpenFileName(); QString fileName = QFileDialog::getOpenFileName(&MainWindow::instance(),
tr("Select file"),path);
if (!fileName.isNull()) if (!fileName.isNull())
{ {
le->setText( fileName ); QDir dir(path);
if (str!=(const char *)le->text()) if (!MainWindow::instance().configFileName().isEmpty() && dir.exists())
{ {
str = le->text(); fileName = dir.relativeFilePath(fileName);
emit changed();
} }
setValue(fileName);
} }
} }
else // sm==StringDir else // sm==StringDir
{ {
QString dirName = QFileDialog::getExistingDirectory(); QString dirName = QFileDialog::getExistingDirectory(&MainWindow::instance(),
tr("Select directory"),path);
if (!dirName.isNull()) if (!dirName.isNull())
{ {
le->setText( dirName ); QDir dir(path);
if (str!=(const char *)le->text()) if (!MainWindow::instance().configFileName().isEmpty() && dir.exists())
{ {
str = le->text(); dirName = dir.relativeFilePath(dirName);
emit changed();
} }
setValue(dirName);
} }
} }
} }
void InputString::clear() void InputString::clear()
{ {
le->setText(""); setValue(QString());
if (!str.isEmpty())
{
emit changed();
str = "";
}
} }
void InputString::addValue(const char *s) void InputString::addValue(QString s)
{ {
if (sm==StringFixed) if (m_sm==StringFixed)
{ {
if (m_values==0) m_values = new QDict<int>; m_values.append(s);
m_values->setAutoDelete(TRUE); m_com->addItem(s);
m_values->insert(s,new int(m_index++));
com->insertItem(s);
} }
} }
void InputString::init() void InputString::setDefault()
{ {
if (sm==StringFixed) int index = m_values.indexOf(m_str);
{ if (index!=-1 && m_com) m_com->setCurrentIndex(index);
if (m_values) }
{
int *itemIndex = m_values->find(str); QVariant &InputString::value()
if (itemIndex) {
{ return m_value;
com->setCurrentItem(*itemIndex);
}
else
{
com->setCurrentItem(0);
}
}
}
else
{
le->setText(str);
}
} }
void InputString::update()
{
setValue(m_value.toString().trimmed());
setDefault();
}
void InputString::reset()
{
setValue(m_default);
setDefault();
}
void InputString::writeValue(QTextStream &t,QTextCodec *codec)
{
writeStringValue(t,codec,m_str);
}
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* *
* *
* *
* Copyright (C) 1997-2008 by Dimitri van Heesch. * Copyright (C) 1997-2007 by Dimitri van Heesch.
* *
* Permission to use, copy, modify, and distribute this software and its * Permission to use, copy, modify, and distribute this software and its
* documentation under the terms of the GNU General Public License is hereby * documentation under the terms of the GNU General Public License is hereby
...@@ -15,19 +15,19 @@ ...@@ -15,19 +15,19 @@
#ifndef _INPUTSTRING_H #ifndef _INPUTSTRING_H
#define _INPUTSTRING_H #define _INPUTSTRING_H
#include <qwidget.h>
#include <qstring.h>
#include <qdict.h>
#include "qtbc.h"
#include "input.h" #include "input.h"
#include <QObject>
#include <QMap>
#include <QStringList>
class QLabel; class QLabel;
class QLineEdit; class QLineEdit;
class QPushButton; class QToolBar;
class QComboBox; class QComboBox;
class QGridLayout;
class InputString : public QWidget, public IInput class InputString : public QObject, public Input
{ {
Q_OBJECT Q_OBJECT
...@@ -38,32 +38,51 @@ class InputString : public QWidget, public IInput ...@@ -38,32 +38,51 @@ class InputString : public QWidget, public IInput
StringFixed=3 StringFixed=3
}; };
InputString( const QString &text, QWidget *parent, QCString &s, InputString( QGridLayout *layout,int &row,
StringMode m=StringFree ); const QString &id, const QString &s,
StringMode m,
const QString &docs );
~InputString(); ~InputString();
void addValue(QString s);
void setDefault();
// Input
QVariant &value();
void update();
Kind kind() const { return String; }
QString docs() const { return m_docs; }
QString id() const { return m_id; }
void addDependency(Input *) { Q_ASSERT(false); }
void setEnabled(bool); void setEnabled(bool);
void addValue(const char *s); void updateDependencies() {}
void init(); void writeValue(QTextStream &t,QTextCodec *codec);
QObject *qobject() { return this; }
private: public slots:
QLabel *lab; void reset();
QLineEdit *le; void setValue(const QString&);
QPushButton *br;
QComboBox *com;
QCString &str;
StringMode sm;
QDict<int> *m_values;
int m_index;
signals: signals:
void changed(); void changed();
void showHelp(Input *);
private slots: private slots:
void textChanged(const QString&);
void browse(); void browse();
void clear(); void clear();
void help();
private:
QLabel *m_lab;
QLineEdit *m_le;
QToolBar *m_br;
QComboBox *m_com;
QString m_str;
QString m_default;
StringMode m_sm;
QStringList m_values;
int m_index;
QVariant m_value;
QString m_docs;
QString m_id;
}; };
#endif #endif
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* *
* *
* *
* Copyright (C) 1997-2008 by Dimitri van Heesch. * Copyright (C) 1997-2007 by Dimitri van Heesch.
* *
* Permission to use, copy, modify, and distribute this software and its * Permission to use, copy, modify, and distribute this software and its
* documentation under the terms of the GNU General Public License is hereby * documentation under the terms of the GNU General Public License is hereby
...@@ -13,162 +13,139 @@ ...@@ -13,162 +13,139 @@
*/ */
#include "inputstrlist.h" #include "inputstrlist.h"
//#include "pixmaps.h" #include "helplabel.h"
#include "doxywizard.h"
#include <qlabel.h> #include "config.h"
#include <qlayout.h>
#include <qlineedit.h> #include <QtGui>
#include <qpushbutton.h>
#include <qlistbox.h> InputStrList::InputStrList( QGridLayout *layout,int &row,
#include <qstrlist.h> const QString & id,
#include <qstringlist.h> const QStringList &sl, ListMode lm,
#include <qfiledialog.h> const QString & docs)
#include <qtooltip.h> : m_default(sl), m_strList(sl), m_docs(docs), m_id(id)
InputStrList::InputStrList( const QString & label,
QWidget *parent, QStrList &sl, ListMode lm)
: QWidget(parent), strList(sl)
{ {
QGridLayout *layout = new QGridLayout( this, 2, 2, 5 ); m_lab = new HelpLabel( id );
lab = new QLabel( label, this );
lab->setMinimumSize( lab->sizeHint() ); m_le = new QLineEdit;
layout->addWidget( lab,0,0 ); m_le->clear();
QWidget *dw = new QWidget(this); /* dummy widget used for layouting */ QToolBar *toolBar = new QToolBar;
QHBoxLayout *boxlayout = new QHBoxLayout( dw, 0, 5 ); toolBar->setIconSize(QSize(24,24));
le = new QLineEdit( dw ); m_add = toolBar->addAction(QIcon(QString::fromAscii(":/images/add.png")),QString(),
le->setMinimumSize( le->sizeHint() ); this,SLOT(addString()));
boxlayout->addWidget( le, 1 ); m_add->setToolTip(tr("Add item"));
m_del = toolBar->addAction(QIcon(QString::fromAscii(":/images/del.png")),QString(),
add = new QPushButton( dw ); this,SLOT(delString()));
//add->setPixmap( QPixmap( add_xpm )); m_del->setToolTip(tr("Delete selected item"));
add->setText( "+" ); m_upd = toolBar->addAction(QIcon(QString::fromAscii(":/images/refresh.png")),QString(),
add->setMinimumSize( add->sizeHint() ); this,SLOT(updateString()));
QToolTip::add(add,"Add item"); m_upd->setToolTip(tr("Update selected item"));
boxlayout->addWidget( add );
m_lb = new QListWidget;
del = new QPushButton( dw ); //m_lb->setMinimumSize(400,100);
//del->setPixmap( QPixmap( del_xpm )); foreach (QString s, m_strList) m_lb->addItem(s);
del->setText( "-" );
del->setMinimumSize( del->sizeHint() ); m_brFile=0;
QToolTip::add(del,"Delete selected item"); m_brDir=0;
boxlayout->addWidget( del );
upd = new QPushButton( dw );
//upd->setPixmap( QPixmap( update_xpm ));
upd->setText( "*" );
upd->setMinimumSize( upd->sizeHint() );
QToolTip::add(upd,"Update selected item");
boxlayout->addWidget( upd );
lb = new QListBox( this );
lb->setMinimumSize(400,100);
init();
lb->setVScrollBarMode(QScrollView::Auto);
lb->setHScrollBarMode(QScrollView::Auto);
brFile=0;
brDir=0;
if (lm!=ListString) if (lm!=ListString)
{ {
if (lm&ListFile) if (lm&ListFile)
{ {
brFile = new QPushButton(dw); m_brFile = toolBar->addAction(QIcon(QString::fromAscii(":/images/file.png")),QString(),
//brFile->setPixmap( QPixmap(file_xpm) ); this,SLOT(browseFiles()));
brFile->setText("Select..."); m_brFile->setToolTip(tr("Browse to a file"));
brFile->setMinimumSize(brFile->sizeHint());
QToolTip::add(brFile,"Browse to a file");
boxlayout->addWidget( brFile );
} }
if (lm&ListDir) if (lm&ListDir)
{ {
brDir = new QPushButton(dw); m_brDir = toolBar->addAction(QIcon(QString::fromAscii(":/images/folder.png")),QString(),
//brDir->setPixmap( QPixmap(folder_xpm) ); this,SLOT(browseDir()));
brDir->setText("Select..."); m_brDir->setToolTip(tr("Browse to a folder"));
brDir->setMinimumSize(brDir->sizeHint());
QToolTip::add(brDir,"Browse to a folder");
boxlayout->addWidget( brDir );
} }
} }
layout->addWidget( dw, 0,1 ); QHBoxLayout *rowLayout = new QHBoxLayout;
layout->addWidget( lb,1,1 ); rowLayout->addWidget( m_le );
layout->activate(); rowLayout->addWidget( toolBar );
setMinimumSize( sizeHint() ); layout->addWidget( m_lab, row,0 );
layout->addLayout( rowLayout, row,1,1,2 );
layout->addWidget( m_lb, row+1,1,1,2 );
row+=2;
connect(le, SIGNAL(returnPressed()), m_value = m_strList;
this, SLOT(addString()) );
connect(add, SIGNAL(clicked()), connect(m_le, SIGNAL(returnPressed()),
this, SLOT(addString()) ); this, SLOT(addString()) );
connect(del, SIGNAL(clicked()), connect(m_lb, SIGNAL(currentTextChanged(const QString &)),
this, SLOT(delString()) );
connect(upd, SIGNAL(clicked()),
this, SLOT(updateString()) );
if (brFile)
{
connect(brFile, SIGNAL(clicked()),
this, SLOT(browseFiles()));
}
if (brDir)
{
connect(brDir, SIGNAL(clicked()),
this, SLOT(browseDir()));
}
connect(lb, SIGNAL(selected(const QString &)),
this, SLOT(selectText(const QString &))); this, SLOT(selectText(const QString &)));
connect( m_lab, SIGNAL(enter()), SLOT(help()) );
connect( m_lab, SIGNAL(reset()), SLOT(reset()) );
}
void InputStrList::help()
{
showHelp(this);
} }
void InputStrList::addString() void InputStrList::addString()
{ {
if (!le->text().isEmpty()) if (!m_le->text().isEmpty())
{ {
lb->insertItem(le->text()); m_lb->addItem(m_le->text());
strList.append(le->text()); m_strList.append(m_le->text());
m_value = m_strList;
updateDefault();
emit changed(); emit changed();
le->clear(); m_le->clear();
} }
} }
void InputStrList::delString() void InputStrList::delString()
{ {
if (lb->currentItem()!=-1) if (m_lb->currentRow()!=-1)
{ {
int itemIndex = lb->currentItem(); int itemIndex = m_lb->currentRow();
lb->removeItem(itemIndex); delete m_lb->currentItem();
strList.remove(itemIndex); m_strList.removeAt(itemIndex);
m_value = m_strList;
updateDefault();
emit changed(); emit changed();
} }
} }
void InputStrList::updateString() void InputStrList::updateString()
{ {
if (lb->currentItem()!=-1 && !le->text().isEmpty()) if (m_lb->currentRow()!=-1 && !m_le->text().isEmpty())
{ {
lb->changeItem(le->text(),lb->currentItem()); m_lb->currentItem()->setText(m_le->text());
strList.insert(lb->currentItem(),le->text()); m_strList.insert(m_lb->currentRow(),m_le->text());
strList.remove(lb->currentItem()+1); m_strList.removeAt(m_lb->currentRow()+1);
m_value = m_strList;
updateDefault();
emit changed(); emit changed();
} }
} }
void InputStrList::selectText(const QString &s) void InputStrList::selectText(const QString &s)
{ {
le->setText(s); m_le->setText(s);
} }
void InputStrList::setEnabled(bool state) void InputStrList::setEnabled(bool state)
{ {
lab->setEnabled(state); m_lab->setEnabled(state);
le->setEnabled(state); m_le->setEnabled(state);
add->setEnabled(state); m_add->setEnabled(state);
del->setEnabled(state); m_del->setEnabled(state);
upd->setEnabled(state); m_upd->setEnabled(state);
lb->setEnabled(state); m_lb->setEnabled(state);
if (brFile) brFile->setEnabled(state); if (m_brFile) m_brFile->setEnabled(state);
if (brDir) brDir->setEnabled(state); if (m_brDir) m_brDir->setEnabled(state);
} }
void InputStrList::browseFiles() void InputStrList::browseFiles()
{ {
QString path = QFileInfo(MainWindow::instance().configFileName()).path();
QStringList fileNames = QFileDialog::getOpenFileNames(); QStringList fileNames = QFileDialog::getOpenFileNames();
if (!fileNames.isEmpty()) if (!fileNames.isEmpty())
...@@ -176,35 +153,102 @@ void InputStrList::browseFiles() ...@@ -176,35 +153,102 @@ void InputStrList::browseFiles()
QStringList::Iterator it; QStringList::Iterator it;
for ( it= fileNames.begin(); it != fileNames.end(); ++it ) for ( it= fileNames.begin(); it != fileNames.end(); ++it )
{ {
lb->insertItem(*it); QString fileName;
strList.append(*it); QDir dir(path);
if (!MainWindow::instance().configFileName().isEmpty() && dir.exists())
{
fileName = dir.relativeFilePath(*it);
}
if (fileName.isEmpty())
{
fileName = *it;
}
m_lb->addItem(fileName);
m_strList.append(fileName);
m_value = m_strList;
updateDefault();
emit changed(); emit changed();
} }
le->setText(*fileNames.begin()); m_le->setText(m_strList[0]);
} }
} }
void InputStrList::browseDir() void InputStrList::browseDir()
{ {
QString path = QFileInfo(MainWindow::instance().configFileName()).path();
QString dirName = QFileDialog::getExistingDirectory(); QString dirName = QFileDialog::getExistingDirectory();
if (!dirName.isNull()) if (!dirName.isNull())
{ {
lb->insertItem(dirName); QDir dir(path);
strList.append(dirName); if (!MainWindow::instance().configFileName().isEmpty() && dir.exists())
{
dirName = dir.relativeFilePath(dirName);
}
if (dirName.isEmpty())
{
dirName=QString::fromAscii(".");
}
m_lb->addItem(dirName);
m_strList.append(dirName);
m_value = m_strList;
updateDefault();
emit changed(); emit changed();
le->setText(dirName); m_le->setText(dirName);
}
}
void InputStrList::setValue(const QStringList &sl)
{
m_le->clear();
m_lb->clear();
m_strList = sl;
for (int i=0;i<m_strList.size();i++)
{
m_lb->addItem(m_strList[i].trimmed());
}
updateDefault();
}
QVariant &InputStrList::value()
{
return m_value;
}
void InputStrList::update()
{
setValue(m_value.toStringList());
}
void InputStrList::updateDefault()
{
if (m_strList==m_default)
{
m_lab->setText(QString::fromAscii("<qt>")+m_id+QString::fromAscii("</qt"));
}
else
{
m_lab->setText(QString::fromAscii("<qt><font color='red'>")+m_id+QString::fromAscii("</font></qt>"));
} }
} }
void InputStrList::init() void InputStrList::reset()
{ {
le->clear(); setValue(m_default);
lb->clear(); }
char *s = strList.first();
while (s) void InputStrList::writeValue(QTextStream &t,QTextCodec *codec)
{
bool first=TRUE;
foreach (QString s, m_strList)
{
if (!first)
{ {
lb->insertItem(s); t << " \\" << endl;
s = strList.next(); t << " ";
}
first=FALSE;
writeStringValue(t,codec,s);
} }
} }
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* *
* *
* *
* Copyright (C) 1997-2008 by Dimitri van Heesch. * Copyright (C) 1997-2007 by Dimitri van Heesch.
* *
* Permission to use, copy, modify, and distribute this software and its * Permission to use, copy, modify, and distribute this software and its
* documentation under the terms of the GNU General Public License is hereby * documentation under the terms of the GNU General Public License is hereby
...@@ -15,48 +15,51 @@ ...@@ -15,48 +15,51 @@
#ifndef _INPUTSTRLIST_H #ifndef _INPUTSTRLIST_H
#define _INPUTSTRLIST_H #define _INPUTSTRLIST_H
#include <qwidget.h>
#include <qstring.h>
#include "input.h" #include "input.h"
#include <QObject>
#include <QStringList>
class QLabel; class QLabel;
class QLineEdit; class QLineEdit;
class QPushButton; class QPushButton;
class QListBox; class QListWidget;
class QStrList; class QStringList;
class QGridLayout;
class QAction;
class InputStrList : public QWidget, public IInput class InputStrList : public QObject, public Input
{ {
Q_OBJECT Q_OBJECT
public: public:
enum ListMode { ListString=0, enum ListMode { ListString = 0,
ListFile=1, ListFile = 1,
ListDir=2, ListDir = 2,
ListFileDir=ListFile|ListDir ListFileDir = ListFile | ListDir
}; };
InputStrList( const QString &text, QWidget *parent, InputStrList( QGridLayout *layout,int &row,
QStrList &sl, ListMode v=ListString ); const QString &id, const QStringList &sl,
~InputStrList() {}; ListMode v, const QString &docs);
void setValue(const QStringList &sl);
QVariant &value();
void update();
Kind kind() const { return StrList; }
QString docs() const { return m_docs; }
QString id() const { return m_id; }
void addDependency(Input *) { Q_ASSERT(false); }
void setEnabled(bool); void setEnabled(bool);
void init(); void updateDependencies() {}
QObject *qobject() { return this; } void writeValue(QTextStream &t,QTextCodec *codec);
private: public slots:
QLabel *lab; void reset();
QLineEdit *le;
QPushButton *add;
QPushButton *del;
QPushButton *upd;
QPushButton *brFile;
QPushButton *brDir;
QListBox *lb;
QStrList &strList;
signals: signals:
void changed(); void changed();
void showHelp(Input *);
private slots: private slots:
void addString(); void addString();
...@@ -65,6 +68,23 @@ class InputStrList : public QWidget, public IInput ...@@ -65,6 +68,23 @@ class InputStrList : public QWidget, public IInput
void selectText(const QString &s); void selectText(const QString &s);
void browseFiles(); void browseFiles();
void browseDir(); void browseDir();
void help();
private:
void updateDefault();
QLabel *m_lab;
QLineEdit *m_le;
QAction *m_add;
QAction *m_del;
QAction *m_upd;
QAction *m_brFile;
QAction *m_brDir;
QListWidget *m_lb;
QStringList m_default;
QStringList m_strList;
QVariant m_value;
QString m_docs;
QString m_id;
}; };
......
/******************************************************************************
*
*
*
* Copyright (C) 1997-2008 by Dimitri van Heesch.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation under the terms of the GNU General Public License is hereby
* granted. No representations are made about the suitability of this software
* for any purpose. It is provided "as is" without express or implied warranty.
* See the GNU General Public License for more details.
*
* Documents produced by Doxygen are derivative works derived from the
* input used in their production; they are not affected by this license.
*
*/
#ifndef QTBC_H
#define QTBC_H
/*! This file contains some hacks to make Doxygen work with
* Qt version 2.00 and Qt version 1.xx
*/
#include <qglobal.h>
#if QT_VERSION >= 200
#include <locale.h>
#define GCI QCollection::Item
#include <qcstring.h>
#include <qstring.h>
inline QCString convertToQCString(const QString &s) { return s.latin1(); }
#else /* QT_VERSION < 200 */
#include <qstring.h>
#define QCString QString
inline QCString convertToQCString(const QCString &s) { return s; }
#endif
#endif
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* *
* *
* *
* Copyright (C) 1997-2008 by Dimitri van Heesch. * Copyright (C) 1997-2007 by Dimitri van Heesch.
* *
* Permission to use, copy, modify, and distribute this software and its * Permission to use, copy, modify, and distribute this software and its
* documentation under the terms of the GNU General Public License is hereby * documentation under the terms of the GNU General Public License is hereby
......
#include "wizard.h"
#include "input.h"
#include "doxywizard.h"
#include <QtGui>
// step1 options
#define STR_PROJECT_NAME QString::fromAscii("PROJECT_NAME")
#define STR_INPUT QString::fromAscii("INPUT")
#define STR_OUTPUT_DIRECTORY QString::fromAscii("OUTPUT_DIRECTORY")
#define STR_PROJECT_NUMBER QString::fromAscii("PROJECT_NUMBER")
#define STR_RECURSIVE QString::fromAscii("RECURSIVE")
#define STR_OPTIMIZE_OUTPUT_FOR_C QString::fromAscii("OPTIMIZE_OUTPUT_FOR_C")
#define STR_OPTIMIZE_OUTPUT_JAVA QString::fromAscii("OPTIMIZE_OUTPUT_JAVA")
#define STR_OPTIMIZE_FOR_FORTRAN QString::fromAscii("OPTIMIZE_FOR_FORTRAN")
#define STR_OPTIMIZE_OUTPUT_VHDL QString::fromAscii("OPTIMIZE_OUTPUT_VHDL")
#define STR_CPP_CLI_SUPPORT QString::fromAscii("CPP_CLI_SUPPORT")
#define STR_HIDE_SCOPE_NAMES QString::fromAscii("HIDE_SCOPE_NAMES")
#define STR_EXTRACT_ALL QString::fromAscii("EXTRACT_ALL")
#define STR_SOURCE_BROWSER QString::fromAscii("SOURCE_BROWSER")
#define STR_GENERATE_HTML QString::fromAscii("GENERATE_HTML")
#define STR_GENERATE_LATEX QString::fromAscii("GENERATE_LATEX")
#define STR_GENERATE_MAN QString::fromAscii("GENERATE_MAN")
#define STR_GENERATE_RTF QString::fromAscii("GENERATE_RTF")
#define STR_GENERATE_XML QString::fromAscii("GENERATE_XML")
#define STR_GENERATE_HTMLHELP QString::fromAscii("GENERATE_HTMLHELP")
#define STR_GENERATE_TREEVIEW QString::fromAscii("GENERATE_TREEVIEW")
#define STR_USE_PDFLATEX QString::fromAscii("USE_PDFLATEX")
#define STR_PDF_HYPERLINKS QString::fromAscii("PDF_HYPERLINKS")
#define STR_SEARCHENGINE QString::fromAscii("SEARCHENGINE")
#define STR_HAVE_DOT QString::fromAscii("HAVE_DOT")
#define STR_CLASS_DIAGRAMS QString::fromAscii("CLASS_DIAGRAMS")
#define STR_CLASS_GRAPH QString::fromAscii("CLASS_GRAPH")
#define STR_COLLABORATION_GRAPH QString::fromAscii("COLLABORATION_GRAPH")
#define STR_GRAPHICAL_HIERARCHY QString::fromAscii("GRAPHICAL_HIERARCHY")
#define STR_INCLUDE_GRAPH QString::fromAscii("INCLUDE_GRAPH")
#define STR_INCLUDED_BY_GRAPH QString::fromAscii("INCLUDED_BY_GRAPH")
#define STR_CALL_GRAPH QString::fromAscii("CALL_GRAPH")
#define STR_CALLER_GRAPH QString::fromAscii("CALLER_GRAPH")
static bool g_optimizeMapping[6][6] =
{
// A: OPTIMIZE_OUTPUT_FOR_C
// B: OPTIMIZE_OUTPUT_JAVA
// C: OPTIMIZE_FOR_FORTRAN
// D: OPTIMIZE_OUTPUT_VHDL
// E: CPP_CLI_SUPPORT
// F: HIDE_SCOPE_NAMES
// A B C D E F
{ false,false,false,false,false,false }, // 0: C++
{ false,false,false,false,true, false }, // 1: C++/CLI
{ false,true, false,false,false,false }, // 2: C#/Java
{ true, false,false,false,false,true }, // 3: C/PHP
{ false,false,true, false,false,false }, // 4: Fortran
{ false,false,false,true, false,false }, // 5: VHDL
};
static QString g_optimizeOptionNames[6] =
{
STR_OPTIMIZE_OUTPUT_FOR_C,
STR_OPTIMIZE_OUTPUT_JAVA,
STR_OPTIMIZE_FOR_FORTRAN,
STR_OPTIMIZE_OUTPUT_VHDL,
STR_CPP_CLI_SUPPORT,
STR_HIDE_SCOPE_NAMES
};
//==========================================================================
static bool stringVariantToBool(const QVariant &v)
{
QString s = v.toString().toLower();
return s==QString::fromAscii("yes") || s==QString::fromAscii("true") || s==QString::fromAscii("1");
}
static bool getBoolOption(
const QHash<QString,Input*>&model,const QString &name)
{
Input *option = model[name];
Q_ASSERT(option!=0);
return stringVariantToBool(option->value());
}
static QString getStringOption(
const QHash<QString,Input*>&model,const QString &name)
{
Input *option = model[name];
Q_ASSERT(option!=0);
return option->value().toString();
}
static void updateBoolOption(
const QHash<QString,Input*>&model,const QString &name,bool bNew)
{
Input *option = model[name];
Q_ASSERT(option!=0);
bool bOld = stringVariantToBool(option->value());
if (bOld!=bNew)
{
option->value()=QString::fromAscii(bNew ? "true" : "false");
option->update();
}
}
static void updateStringOption(
const QHash<QString,Input*>&model,const QString &name,const QString &s)
{
Input *option = model[name];
Q_ASSERT(option!=0);
if (option->value().toString()!=s)
{
option->value() = s;
option->update();
}
}
//==========================================================================
Step1::Step1(Wizard *wizard,const QHash<QString,Input*> &modelData) : m_wizard(wizard), m_modelData(modelData)
{
QVBoxLayout *layout = new QVBoxLayout(this);
layout->setMargin(4);
layout->setSpacing(8);
QLabel *l = new QLabel(this);
l->setText(tr("Provide some information "
"about the project you are documenting"));
layout->addWidget(l);
QWidget *w = new QWidget( this );
QHBoxLayout *bl = new QHBoxLayout(w);
bl->setSpacing(10);
QWidget *col1 = new QWidget;
QVBoxLayout *col1Layout = new QVBoxLayout(col1);
col1Layout->setSpacing(8);
QLabel *projName = new QLabel(this);
projName->setText(tr("Project name:"));
projName->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
QLabel *projVersion = new QLabel(this);
projVersion->setText(tr("Project version or id:"));
projVersion->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
col1Layout->addWidget(projName);
col1Layout->addWidget(projVersion);
QWidget *col2 = new QWidget;
QVBoxLayout *col2Layout = new QVBoxLayout(col2);
col2Layout->setSpacing(8);
m_projName = new QLineEdit;
m_projNumber = new QLineEdit;
col2Layout->addWidget(m_projName);
col2Layout->addWidget(m_projNumber);
bl->addWidget(col1);
bl->addWidget(col2);
w->setLayout(bl);
layout->addWidget(w);
//---------------------------------------------------
QFrame *f = new QFrame( this );
f->setFrameStyle( QFrame::HLine | QFrame::Sunken );
layout->addWidget(f);
l = new QLabel(this);
l->setText(tr("Specify the directory to scan for source code"));
layout->addWidget(l);
QWidget *row = new QWidget;
QHBoxLayout *rowLayout = new QHBoxLayout(row);
rowLayout->setSpacing(10);
l = new QLabel(this);
l->setText(tr("Source code directory:"));
rowLayout->addWidget(l);
m_sourceDir = new QLineEdit;
m_srcSelectDir = new QPushButton(this);
m_srcSelectDir->setText(tr("Select..."));
rowLayout->addWidget(m_sourceDir);
rowLayout->addWidget(m_srcSelectDir);
layout->addWidget(row);
m_recursive = new QCheckBox(this);
m_recursive->setText(tr("Scan recursively"));
m_recursive->setChecked(TRUE);
layout->addWidget(m_recursive);
//---------------------------------------------------
f = new QFrame( this );
f->setFrameStyle( QFrame::HLine | QFrame::Sunken );
layout->addWidget(f);
l = new QLabel(this);
l->setText(tr("Specify the directory where doxygen should "
"put the generated documentation"));
layout->addWidget(l);
row = new QWidget;
rowLayout = new QHBoxLayout(row);
rowLayout->setSpacing(10);
l = new QLabel(this);
l->setText(tr("Destination directory:"));
rowLayout->addWidget(l);
m_destDir = new QLineEdit;
m_dstSelectDir = new QPushButton(this);
m_dstSelectDir->setText(tr("Select..."));
rowLayout->addWidget(m_destDir);
rowLayout->addWidget(m_dstSelectDir);
layout->addWidget(row);
layout->addStretch(1);
setLayout(layout);
connect(m_srcSelectDir,SIGNAL(clicked()),
this,SLOT(selectSourceDir()));
connect(m_dstSelectDir,SIGNAL(clicked()),
this,SLOT(selectDestinationDir()));
connect(m_projName,SIGNAL(textChanged(const QString &)),SLOT(setProjectName(const QString &)));
connect(m_projNumber,SIGNAL(textChanged(const QString &)),SLOT(setProjectNumber(const QString &)));
connect(m_sourceDir,SIGNAL(textChanged(const QString &)),SLOT(setSourceDir(const QString &)));
connect(m_recursive,SIGNAL(stateChanged(int)),SLOT(setRecursiveScan(int)));
connect(m_destDir,SIGNAL(textChanged(const QString &)),SLOT(setDestinationDir(const QString &)));
}
void Step1::selectSourceDir()
{
QString path = QFileInfo(MainWindow::instance().configFileName()).path();
QString dirName = QFileDialog::getExistingDirectory(this,
tr("Select source directory"),path);
QDir dir(path);
if (!MainWindow::instance().configFileName().isEmpty() && dir.exists())
{
dirName = dir.relativeFilePath(dirName);
}
if (dirName.isEmpty())
{
dirName=QString::fromAscii(".");
}
m_sourceDir->setText(dirName);
}
void Step1::selectDestinationDir()
{
QString path = QFileInfo(MainWindow::instance().configFileName()).path();
QString dirName = QFileDialog::getExistingDirectory(this,
tr("Select destination directory"),path);
QDir dir(path);
if (!MainWindow::instance().configFileName().isEmpty() && dir.exists())
{
dirName = dir.relativeFilePath(dirName);
}
if (dirName.isEmpty())
{
dirName=QString::fromAscii(".");
}
m_destDir->setText(dirName);
}
void Step1::setProjectName(const QString &name)
{
updateStringOption(m_modelData,STR_PROJECT_NAME,name);
}
void Step1::setProjectNumber(const QString &num)
{
updateStringOption(m_modelData,STR_PROJECT_NUMBER,num);
}
void Step1::setSourceDir(const QString &dir)
{
Input *option = m_modelData[STR_INPUT];
if (option->value().toStringList().count()>0)
{
QStringList sl = option->value().toStringList();
if (sl[0]!=dir)
{
sl[0] = dir;
option->value() = sl;
option->update();
}
}
else
{
option->value() = QStringList() << dir;
option->update();
}
}
void Step1::setDestinationDir(const QString &dir)
{
updateStringOption(m_modelData,STR_OUTPUT_DIRECTORY,dir);
}
void Step1::setRecursiveScan(int s)
{
updateBoolOption(m_modelData,STR_RECURSIVE,s==Qt::Checked);
}
void Step1::init()
{
Input *option;
m_projName->setText(getStringOption(m_modelData,STR_PROJECT_NAME));
m_projNumber->setText(getStringOption(m_modelData,STR_PROJECT_NUMBER));
option = m_modelData[STR_INPUT];
if (option->value().toStringList().count()>0)
{
m_sourceDir->setText(option->value().toStringList().first());
}
m_recursive->setChecked(
getBoolOption(m_modelData,STR_RECURSIVE) ? Qt::Checked : Qt::Unchecked);
m_destDir->setText(getStringOption(m_modelData,STR_OUTPUT_DIRECTORY));
}
//==========================================================================
Step2::Step2(Wizard *wizard,const QHash<QString,Input*> &modelData)
: m_wizard(wizard), m_modelData(modelData)
{
QRadioButton *r;
QVBoxLayout *layout = new QVBoxLayout(this);
//---------------------------------------------------
m_extractModeGroup = new QButtonGroup(this);
m_extractMode = new QGroupBox(this);
m_extractMode->setTitle(tr("Select the desired extraction mode:"));
QGridLayout *gbox = new QGridLayout( m_extractMode );
r = new QRadioButton(tr("Documented entities only"));
r->setChecked(true);
m_extractModeGroup->addButton(r, 0);
gbox->addWidget(r,1,0);
// 1 -> EXTRACT_ALL = NO
r = new QRadioButton(tr("All Entities"));
m_extractModeGroup->addButton(r, 1);
gbox->addWidget(r,2,0);
// 2 -> EXTRACT_ALL = YES
m_crossRef = new QCheckBox(m_extractMode);
m_crossRef->setText(tr("Include cross-referenced source code in the output"));
// m_crossRef -> SOURCE_BROWSER = YES/NO
gbox->addWidget(m_crossRef,3,0);
layout->addWidget(m_extractMode);
//---------------------------------------------------
QFrame *f = new QFrame( this );
f->setFrameStyle( QFrame::HLine | QFrame::Sunken );
layout->addWidget(f);
m_optimizeLangGroup = new QButtonGroup(this);
m_optimizeLang = new QGroupBox(this);
m_optimizeLang->setTitle(tr("Select programming language to optimize the results for"));
gbox = new QGridLayout( m_optimizeLang );
r = new QRadioButton(m_optimizeLang);
r->setText(tr("Optimize for C++ output"));
r->setChecked(true);
m_optimizeLangGroup->addButton(r, 0);
// 0 -> OPTIMIZE_OUTPUT_FOR_C = NO
// OPTIMIZE_OUTPUT_JAVA = NO
// OPTIMIZE_FOR_FORTRAN = NO
// OPTIMIZE_OUTPUT_VHDL = NO
// CPP_CLI_SUPPORT = NO
// HIDE_SCOPE_NAMES = NO
gbox->addWidget(r,0,0);
r = new QRadioButton(tr("Optimize for C++/CLI output"));
gbox->addWidget(r,1,0);
m_optimizeLangGroup->addButton(r, 1);
// 1 -> OPTIMIZE_OUTPUT_FOR_C = NO
// OPTIMIZE_OUTPUT_JAVA = NO
// OPTIMIZE_FOR_FORTRAN = NO
// OPTIMIZE_OUTPUT_VHDL = NO
// CPP_CLI_SUPPORT = YES
// HIDE_SCOPE_NAMES = NO
r = new QRadioButton(tr("Optimize for Java or C# output"));
m_optimizeLangGroup->addButton(r, 2);
// 2 -> OPTIMIZE_OUTPUT_FOR_C = NO
// OPTIMIZE_OUTPUT_JAVA = YES
// OPTIMIZE_FOR_FORTRAN = NO
// OPTIMIZE_OUTPUT_VHDL = NO
// CPP_CLI_SUPPORT = NO
// HIDE_SCOPE_NAMES = NO
gbox->addWidget(r,2,0);
r = new QRadioButton(tr("Optimize for C or PHP output"));
m_optimizeLangGroup->addButton(r, 3);
// 3 -> OPTIMIZE_OUTPUT_FOR_C = YES
// OPTIMIZE_OUTPUT_JAVA = NO
// OPTIMIZE_FOR_FORTRAN = NO
// OPTIMIZE_OUTPUT_VHDL = NO
// CPP_CLI_SUPPORT = NO
// HIDE_SCOPE_NAMES = YES
gbox->addWidget(r,3,0);
r = new QRadioButton(tr("Optimize for Fortran output"));
m_optimizeLangGroup->addButton(r, 4);
// 4 -> OPTIMIZE_OUTPUT_FOR_C = NO
// OPTIMIZE_OUTPUT_JAVA = NO
// OPTIMIZE_FOR_FORTRAN = YES
// OPTIMIZE_OUTPUT_VHDL = NO
// CPP_CLI_SUPPORT = NO
// HIDE_SCOPE_NAMES = NO
gbox->addWidget(r,4,0);
r = new QRadioButton(tr("Optimize for VHDL output"));
m_optimizeLangGroup->addButton(r, 5);
// 5 -> OPTIMIZE_OUTPUT_FOR_C = NO
// OPTIMIZE_OUTPUT_JAVA = NO
// OPTIMIZE_FOR_FORTRAN = NO
// OPTIMIZE_OUTPUT_VHDL = YES
// CPP_CLI_SUPPORT = NO
// HIDE_SCOPE_NAMES = NO
gbox->addWidget(r,5,0);
layout->addWidget(m_optimizeLang);
layout->addStretch(1);
connect(m_crossRef,SIGNAL(stateChanged(int)),
SLOT(changeCrossRefState(int)));
connect(m_optimizeLangGroup,SIGNAL(buttonClicked(int)),
SLOT(optimizeFor(int)));
connect(m_extractModeGroup,SIGNAL(buttonClicked(int)),
SLOT(extractMode(int)));
}
void Step2::optimizeFor(int choice)
{
for (int i=0;i<6;i++)
{
updateBoolOption(m_modelData,
g_optimizeOptionNames[i],
g_optimizeMapping[choice][i]);
}
}
void Step2::extractMode(int choice)
{
updateBoolOption(m_modelData,STR_EXTRACT_ALL,choice==1);
}
void Step2::changeCrossRefState(int choice)
{
updateBoolOption(m_modelData,STR_SOURCE_BROWSER,choice==Qt::Checked);
}
void Step2::init()
{
m_extractModeGroup->button(
getBoolOption(m_modelData,STR_EXTRACT_ALL) ? 1 : 0)->setChecked(true);
m_crossRef->setChecked(getBoolOption(m_modelData,STR_SOURCE_BROWSER));
int x=0;
if (getBoolOption(m_modelData,STR_CPP_CLI_SUPPORT)) x=1;
else if (getBoolOption(m_modelData,STR_OPTIMIZE_OUTPUT_JAVA)) x=2;
else if (getBoolOption(m_modelData,STR_OPTIMIZE_OUTPUT_FOR_C)) x=3;
else if (getBoolOption(m_modelData,STR_OPTIMIZE_FOR_FORTRAN)) x=4;
else if (getBoolOption(m_modelData,STR_OPTIMIZE_OUTPUT_VHDL)) x=5;
m_optimizeLangGroup->button(x)->setChecked(true);
}
//==========================================================================
Step3::Step3(Wizard *wizard,const QHash<QString,Input*> &modelData)
: m_wizard(wizard), m_modelData(modelData)
{
QVBoxLayout *vbox = 0;
QRadioButton *r = 0;
QGridLayout *gbox = new QGridLayout( this );
gbox->addWidget(new QLabel(tr("Select the output format(s) to generate")),0,0);
{
m_htmlOptions = new QGroupBox(tr("HTML"));
m_htmlOptions->setCheckable(true);
// GENERATE_HTML
m_htmlOptionsGroup = new QButtonGroup(m_htmlOptions);
QRadioButton *r = new QRadioButton(tr("plain HTML"));
r->setChecked(true);
m_htmlOptionsGroup->addButton(r, 0);
vbox = new QVBoxLayout;
vbox->addWidget(r);
r = new QRadioButton(tr("with frames and a navigation tree"));
m_htmlOptionsGroup->addButton(r, 1);
// GENERATE_TREEVIEW
vbox->addWidget(r);
r = new QRadioButton(tr("prepare for compressed HTML (.chm)"));
m_htmlOptionsGroup->addButton(r, 2);
// GENERATE_HTMLHELP
vbox->addWidget(r);
m_searchEnabled=new QCheckBox(tr("With search function (requires PHP enabled web server)"));
vbox->addWidget(m_searchEnabled);
// SEARCH_ENGINE
m_htmlOptions->setLayout(vbox);
m_htmlOptions->setChecked(true);
}
gbox->addWidget(m_htmlOptions,1,0);
{
m_texOptions = new QGroupBox(tr("LaTeX"));
m_texOptions->setCheckable(true);
// GENERATE_LATEX
m_texOptionsGroup = new QButtonGroup(m_texOptions);
vbox = new QVBoxLayout;
r = new QRadioButton(tr("as intermediate format for hyperlinked PDF"));
m_texOptionsGroup->addButton(r, 0);
// PDF_HYPERLINKS = YES
r->setChecked(true);
vbox->addWidget(r);
r = new QRadioButton(tr("as intermediate format for PDF"));
m_texOptionsGroup->addButton(r, 1);
// PDF_HYPERLINKS = NO, USE_PDFLATEX = YES
vbox->addWidget(r);
r = new QRadioButton(tr("as intermediate format for PostScript"));
m_texOptionsGroup->addButton(r, 2);
// USE_PDFLATEX = NO
vbox->addWidget(r);
vbox->addStretch(1);
m_texOptions->setLayout(vbox);
m_texOptions->setChecked(true);
}
gbox->addWidget(m_texOptions,2,0);
m_manEnabled=new QCheckBox(tr("Man pages"));
// GENERATE_MAN
m_rtfEnabled=new QCheckBox(tr("Rich Text Format (RTF)"));
// GENERATE_RTF
m_xmlEnabled=new QCheckBox(tr("XML"));
// GENERATE_XML
gbox->addWidget(m_manEnabled,3,0);
gbox->addWidget(m_rtfEnabled,4,0);
gbox->addWidget(m_xmlEnabled,5,0);
gbox->setRowStretch(6,1);
connect(m_htmlOptions,SIGNAL(toggled(bool)),SLOT(setHtmlEnabled(bool)));
connect(m_texOptions,SIGNAL(toggled(bool)),SLOT(setLatexEnabled(bool)));
connect(m_manEnabled,SIGNAL(stateChanged(int)),SLOT(setManEnabled(int)));
connect(m_rtfEnabled,SIGNAL(stateChanged(int)),SLOT(setRtfEnabled(int)));
connect(m_xmlEnabled,SIGNAL(stateChanged(int)),SLOT(setXmlEnabled(int)));
connect(m_searchEnabled,SIGNAL(stateChanged(int)),SLOT(setSearchEnabled(int)));
connect(m_htmlOptionsGroup,SIGNAL(buttonClicked(int)),
SLOT(setHtmlOptions(int)));
connect(m_texOptionsGroup,SIGNAL(buttonClicked(int)),
SLOT(setLatexOptions(int)));
}
void Step3::setHtmlEnabled(bool b)
{
updateBoolOption(m_modelData,STR_GENERATE_HTML,b);
}
void Step3::setLatexEnabled(bool b)
{
updateBoolOption(m_modelData,STR_GENERATE_LATEX,b);
}
void Step3::setManEnabled(int state)
{
updateBoolOption(m_modelData,STR_GENERATE_MAN,state==Qt::Checked);
}
void Step3::setRtfEnabled(int state)
{
updateBoolOption(m_modelData,STR_GENERATE_RTF,state==Qt::Checked);
}
void Step3::setXmlEnabled(int state)
{
updateBoolOption(m_modelData,STR_GENERATE_XML,state==Qt::Checked);
}
void Step3::setSearchEnabled(int state)
{
updateBoolOption(m_modelData,STR_SEARCHENGINE,state==Qt::Checked);
}
void Step3::setHtmlOptions(int id)
{
if (id==0) // plain HTML
{
updateBoolOption(m_modelData,STR_GENERATE_HTMLHELP,false);
updateStringOption(m_modelData,STR_GENERATE_TREEVIEW,QString::fromAscii("NONE"));
}
else if (id==1) // with navigation tree
{
updateBoolOption(m_modelData,STR_GENERATE_HTMLHELP,false);
updateStringOption(m_modelData,STR_GENERATE_TREEVIEW,QString::fromAscii("ALL"));
}
else if (id==2) // with compiled help
{
updateBoolOption(m_modelData,STR_GENERATE_HTMLHELP,true);
updateStringOption(m_modelData,STR_GENERATE_TREEVIEW,QString::fromAscii("NONE"));
}
}
void Step3::setLatexOptions(int id)
{
if (id==0) // hyperlinked PDF
{
updateBoolOption(m_modelData,STR_USE_PDFLATEX,true);
updateBoolOption(m_modelData,STR_PDF_HYPERLINKS,true);
}
else if (id==1) // PDF
{
updateBoolOption(m_modelData,STR_USE_PDFLATEX,true);
updateBoolOption(m_modelData,STR_PDF_HYPERLINKS,false);
}
else if (id==2) // PostScript
{
updateBoolOption(m_modelData,STR_USE_PDFLATEX,false);
updateBoolOption(m_modelData,STR_PDF_HYPERLINKS,false);
}
}
void Step3::init()
{
m_htmlOptions->setChecked(getBoolOption(m_modelData,STR_GENERATE_HTML));
m_texOptions->setChecked(getBoolOption(m_modelData,STR_GENERATE_LATEX));
m_manEnabled->setChecked(getBoolOption(m_modelData,STR_GENERATE_MAN));
m_rtfEnabled->setChecked(getBoolOption(m_modelData,STR_GENERATE_RTF));
m_xmlEnabled->setChecked(getBoolOption(m_modelData,STR_GENERATE_XML));
m_searchEnabled->setChecked(getBoolOption(m_modelData,STR_SEARCHENGINE));
if (getBoolOption(m_modelData,STR_GENERATE_HTMLHELP))
{
m_htmlOptionsGroup->button(2)->setChecked(true); // compiled help
}
else if (getBoolOption(m_modelData,STR_GENERATE_TREEVIEW))
{
m_htmlOptionsGroup->button(1)->setChecked(true); // navigation tree
}
else
{
m_htmlOptionsGroup->button(0)->setChecked(true); // plain HTML
}
if (!getBoolOption(m_modelData,STR_USE_PDFLATEX))
{
m_texOptionsGroup->button(2)->setChecked(true); // PostScript
}
else if (!getBoolOption(m_modelData,STR_PDF_HYPERLINKS))
{
m_texOptionsGroup->button(1)->setChecked(true); // Plain PDF
}
else
{
m_texOptionsGroup->button(0)->setChecked(true); // PDF with hyperlinks
}
}
//==========================================================================
Step4::Step4(Wizard *wizard,const QHash<QString,Input*> &modelData)
: m_wizard(wizard), m_modelData(modelData)
{
m_diagramModeGroup = new QButtonGroup(this);
QGridLayout *gbox = new QGridLayout( this );
gbox->addWidget(new QLabel(tr("Diagrams to generate")),0,0);
QRadioButton *rb = new QRadioButton(tr("No diagrams"));
m_diagramModeGroup->addButton(rb, 0);
gbox->addWidget(rb,1,0);
// CLASS_DIAGRAMS = NO, HAVE_DOT = NO
rb->setChecked(true);
rb = new QRadioButton(tr("Use built-in class diagram generator"));
m_diagramModeGroup->addButton(rb, 1);
// CLASS_DIAGRAMS = YES, HAVE_DOT = NO
gbox->addWidget(rb,2,0);
rb = new QRadioButton(tr("Use dot tool from the GraphViz package"));
m_diagramModeGroup->addButton(rb, 2);
gbox->addWidget(rb,3,0);
// CLASS_DIAGRAMS = NO, HAVE_DOT = YES
m_dotGroup = new QGroupBox(tr("Dot graphs to generate"));
QVBoxLayout *vbox = new QVBoxLayout;
m_dotClass=new QCheckBox(tr("Class diagrams"));
// CLASS_GRAPH
m_dotCollaboration=new QCheckBox(tr("Collaboration diagrams"));
// COLLABORATION_GRAPH
m_dotInheritance=new QCheckBox(tr("Overall Class hierarchy"));
// GRAPHICAL_HIERARCHY
m_dotInclude=new QCheckBox(tr("Include dependency graphs"));
// INCLUDE_GRAPH
m_dotIncludedBy=new QCheckBox(tr("Included by dependency graphs"));
// INCLUDED_BY_GRAPH
m_dotCall=new QCheckBox(tr("Call graphs"));
// CALL_GRAPH
m_dotCaller=new QCheckBox(tr("Called by graphs"));
// CALLER_GRAPH
vbox->addWidget(m_dotClass);
vbox->addWidget(m_dotCollaboration);
vbox->addWidget(m_dotInheritance);
vbox->addWidget(m_dotInclude);
vbox->addWidget(m_dotIncludedBy);
vbox->addWidget(m_dotCall);
vbox->addWidget(m_dotCaller);
vbox->addStretch(1);
m_dotGroup->setLayout(vbox);
m_dotClass->setChecked(true);
m_dotGroup->setEnabled(false);
gbox->addWidget(m_dotGroup,4,0);
m_dotInclude->setChecked(true);
m_dotCollaboration->setChecked(true);
gbox->setRowStretch(5,1);
connect(m_diagramModeGroup,SIGNAL(buttonClicked(int)),
this,SLOT(diagramModeChanged(int)));
connect(m_dotClass,SIGNAL(stateChanged(int)),
this,SLOT(setClassGraphEnabled(int)));
connect(m_dotCollaboration,SIGNAL(stateChanged(int)),
this,SLOT(setCollaborationGraphEnabled(int)));
connect(m_dotInheritance,SIGNAL(stateChanged(int)),
this,SLOT(setGraphicalHierarchyEnabled(int)));
connect(m_dotInclude,SIGNAL(stateChanged(int)),
this,SLOT(setIncludeGraphEnabled(int)));
connect(m_dotIncludedBy,SIGNAL(stateChanged(int)),
this,SLOT(setIncludedByGraphEnabled(int)));
connect(m_dotCall,SIGNAL(stateChanged(int)),
this,SLOT(setCallGraphEnabled(int)));
connect(m_dotCaller,SIGNAL(stateChanged(int)),
this,SLOT(setCallerGraphEnabled(int)));
}
void Step4::diagramModeChanged(int id)
{
if (id==0) // no diagrams
{
updateBoolOption(m_modelData,STR_HAVE_DOT,false);
updateBoolOption(m_modelData,STR_CLASS_DIAGRAMS,false);
}
else if (id==1) // builtin diagrams
{
updateBoolOption(m_modelData,STR_HAVE_DOT,false);
updateBoolOption(m_modelData,STR_CLASS_DIAGRAMS,true);
}
else if (id==2) // dot diagrams
{
updateBoolOption(m_modelData,STR_HAVE_DOT,true);
updateBoolOption(m_modelData,STR_CLASS_DIAGRAMS,false);
}
m_dotGroup->setEnabled(id==2);
}
void Step4::setClassGraphEnabled(int state)
{
updateBoolOption(m_modelData,STR_CLASS_GRAPH,state==Qt::Checked);
}
void Step4::setCollaborationGraphEnabled(int state)
{
updateBoolOption(m_modelData,STR_COLLABORATION_GRAPH,state==Qt::Checked);
}
void Step4::setGraphicalHierarchyEnabled(int state)
{
updateBoolOption(m_modelData,STR_GRAPHICAL_HIERARCHY,state==Qt::Checked);
}
void Step4::setIncludeGraphEnabled(int state)
{
updateBoolOption(m_modelData,STR_INCLUDE_GRAPH,state==Qt::Checked);
}
void Step4::setIncludedByGraphEnabled(int state)
{
updateBoolOption(m_modelData,STR_INCLUDED_BY_GRAPH,state==Qt::Checked);
}
void Step4::setCallGraphEnabled(int state)
{
updateBoolOption(m_modelData,STR_CALL_GRAPH,state==Qt::Checked);
}
void Step4::setCallerGraphEnabled(int state)
{
updateBoolOption(m_modelData,STR_CALLER_GRAPH,state==Qt::Checked);
}
void Step4::init()
{
if (getBoolOption(m_modelData,STR_HAVE_DOT))
{
m_diagramModeGroup->button(2)->setChecked(true); // Dot
}
else if (getBoolOption(m_modelData,STR_CLASS_DIAGRAMS))
{
m_diagramModeGroup->button(1)->setChecked(true); // Builtin diagrams
}
else
{
m_diagramModeGroup->button(0)->setChecked(true); // no diagrams
}
m_dotClass->setChecked(getBoolOption(m_modelData,STR_CLASS_GRAPH));
m_dotCollaboration->setChecked(getBoolOption(m_modelData,STR_COLLABORATION_GRAPH));
m_dotInheritance->setChecked(getBoolOption(m_modelData,STR_GRAPHICAL_HIERARCHY));
m_dotInclude->setChecked(getBoolOption(m_modelData,STR_INCLUDE_GRAPH));
m_dotIncludedBy->setChecked(getBoolOption(m_modelData,STR_INCLUDED_BY_GRAPH));
m_dotCall->setChecked(getBoolOption(m_modelData,STR_CALL_GRAPH));
m_dotCaller->setChecked(getBoolOption(m_modelData,STR_CALLER_GRAPH));
}
//==========================================================================
Wizard::Wizard(const QHash<QString,Input*> &modelData, QWidget *parent) :
QSplitter(parent), m_modelData(modelData)
{
m_treeWidget = new QTreeWidget;
m_treeWidget->setColumnCount(1);
m_treeWidget->setHeaderLabels(QStringList() << QString::fromAscii("Topics"));
QList<QTreeWidgetItem*> items;
items.append(new QTreeWidgetItem((QTreeWidget*)0,QStringList(tr("Project"))));
items.append(new QTreeWidgetItem((QTreeWidget*)0,QStringList(tr("Mode"))));
items.append(new QTreeWidgetItem((QTreeWidget*)0,QStringList(tr("Output"))));
items.append(new QTreeWidgetItem((QTreeWidget*)0,QStringList(tr("Diagrams"))));
m_treeWidget->insertTopLevelItems(0,items);
m_topicStack = new QStackedWidget;
m_step1 = new Step1(this,modelData);
m_step2 = new Step2(this,modelData);
m_step3 = new Step3(this,modelData);
m_step4 = new Step4(this,modelData);
m_topicStack->addWidget(m_step1);
m_topicStack->addWidget(m_step2);
m_topicStack->addWidget(m_step3);
m_topicStack->addWidget(m_step4);
QWidget *rightSide = new QWidget;
QGridLayout *grid = new QGridLayout(rightSide);
m_prev = new QPushButton(tr("Previous"));
m_prev->setEnabled(false);
m_next = new QPushButton(tr("Next"));
grid->addWidget(m_topicStack,0,0,1,2);
grid->addWidget(m_prev,1,0,Qt::AlignLeft);
grid->addWidget(m_next,1,1,Qt::AlignRight);
grid->setColumnStretch(0,1);
grid->setRowStretch(0,1);
addWidget(m_treeWidget);
addWidget(rightSide);
connect(m_treeWidget,
SIGNAL(currentItemChanged(QTreeWidgetItem *,QTreeWidgetItem *)),
SLOT(activateTopic(QTreeWidgetItem *,QTreeWidgetItem *)));
connect(m_next,SIGNAL(clicked()),SLOT(nextTopic()));
connect(m_prev,SIGNAL(clicked()),SLOT(prevTopic()));
refresh();
}
Wizard::~Wizard()
{
}
void Wizard::activateTopic(QTreeWidgetItem *item,QTreeWidgetItem *)
{
if (item)
{
QString label = item->text(0);
if (label==tr("Project"))
{
m_topicStack->setCurrentWidget(m_step1);
m_prev->setEnabled(false);
m_next->setEnabled(true);
}
else if (label==tr("Mode"))
{
m_topicStack->setCurrentWidget(m_step2);
m_prev->setEnabled(true);
m_next->setEnabled(true);
}
else if (label==tr("Output"))
{
m_topicStack->setCurrentWidget(m_step3);
m_prev->setEnabled(true);
m_next->setEnabled(true);
}
else if (label==tr("Diagrams"))
{
m_topicStack->setCurrentWidget(m_step4);
m_prev->setEnabled(true);
m_next->setEnabled(false);
}
}
}
void Wizard::nextTopic()
{
m_topicStack->setCurrentIndex(m_topicStack->currentIndex()+1);
m_next->setEnabled(m_topicStack->count()!=m_topicStack->currentIndex()+1);
m_prev->setEnabled(m_topicStack->currentIndex()!=0);
m_treeWidget->setCurrentItem(m_treeWidget->invisibleRootItem()->child(m_topicStack->currentIndex()));
}
void Wizard::prevTopic()
{
m_topicStack->setCurrentIndex(m_topicStack->currentIndex()-1);
m_next->setEnabled(m_topicStack->count()!=m_topicStack->currentIndex()+1);
m_prev->setEnabled(m_topicStack->currentIndex()!=0);
m_treeWidget->setCurrentItem(m_treeWidget->invisibleRootItem()->child(m_topicStack->currentIndex()));
}
void Wizard::refresh()
{
m_step1->init();
m_step2->init();
m_step3->init();
m_step4->init();
}
/******************************************************************************
*
*
*
* Copyright (C) 1997-2007 by Dimitri van Heesch.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation under the terms of the GNU General Public License is hereby
* granted. No representations are made about the suitability of this software
* for any purpose. It is provided "as is" without express or implied warranty.
* See the GNU General Public License for more details.
*
*/
#ifndef WIZARD_H
#define WIZARD_H
#include <QSplitter>
#include <QHash>
class Input;
class QTreeWidget;
class QTreeWidgetItem;
class QStackedWidget;
class QCheckBox;
class QLineEdit;
class QPushButton;
class QRadioButton;
class QGroupBox;
class QButtonGroup;
class Wizard;
enum OptLang { Lang_Cpp, Lang_C, Lang_Java, Lang_CS };
enum HtmlStyle { HS_Plain, HS_TreeView, HS_CHM };
enum TexStyle { TS_PDFHyper, TS_PDF, TS_PS };
enum DiagramMode { DM_None, DM_Builtin, DM_Dot };
class Step1 : public QWidget
{
Q_OBJECT
public:
Step1(Wizard *parent,const QHash<QString,Input*> &modelData);
void init();
private slots:
void selectSourceDir();
void selectDestinationDir();
void setProjectName(const QString &name);
void setProjectNumber(const QString &num);
void setSourceDir(const QString &dir);
void setDestinationDir(const QString &dir);
void setRecursiveScan(int);
private:
QLineEdit *m_projName;
QLineEdit *m_projNumber;
QLineEdit *m_sourceDir;
QLineEdit *m_destDir;
QCheckBox *m_recursive;
QPushButton *m_srcSelectDir;
QPushButton *m_dstSelectDir;
Wizard *m_wizard;
const QHash<QString,Input *> &m_modelData;
};
class Step2 : public QWidget
{
Q_OBJECT
public:
Step2(Wizard *parent,const QHash<QString,Input*> &modelData);
void init();
private slots:
void optimizeFor(int choice);
void extractMode(int choice);
void changeCrossRefState(int choice);
private:
QGroupBox *m_extractMode;
QGroupBox *m_optimizeLang;
QButtonGroup *m_extractModeGroup;
QButtonGroup *m_optimizeLangGroup;
QCheckBox *m_crossRef;
Wizard *m_wizard;
const QHash<QString,Input *> &m_modelData;
};
class Step3 : public QWidget
{
Q_OBJECT
public:
Step3(Wizard *parent,const QHash<QString,Input*> &modelData);
void init();
private slots:
void setHtmlEnabled(bool);
void setLatexEnabled(bool);
void setManEnabled(int);
void setRtfEnabled(int);
void setXmlEnabled(int);
void setSearchEnabled(int);
void setHtmlOptions(int);
void setLatexOptions(int);
private:
QGroupBox *m_texOptions;
QButtonGroup *m_texOptionsGroup;
QGroupBox *m_htmlOptions;
QButtonGroup *m_htmlOptionsGroup;
QCheckBox *m_htmlEnabled;
QCheckBox *m_latexEnabled;
QCheckBox *m_manEnabled;
QCheckBox *m_rtfEnabled;
QCheckBox *m_xmlEnabled;
QCheckBox *m_searchEnabled;
Wizard *m_wizard;
const QHash<QString,Input *> &m_modelData;
};
class Step4 : public QWidget
{
Q_OBJECT
public:
Step4(Wizard *parent,const QHash<QString,Input*> &modelData);
void init();
private slots:
void diagramModeChanged(int);
void setClassGraphEnabled(int state);
void setCollaborationGraphEnabled(int state);
void setGraphicalHierarchyEnabled(int state);
void setIncludeGraphEnabled(int state);
void setIncludedByGraphEnabled(int state);
void setCallGraphEnabled(int state);
void setCallerGraphEnabled(int state);
private:
QGroupBox *m_diagramMode;
QButtonGroup *m_diagramModeGroup;
QGroupBox *m_dotGroup;
QCheckBox *m_dotClass;
QCheckBox *m_dotCollaboration;
QCheckBox *m_dotInclude;
QCheckBox *m_dotIncludedBy;
QCheckBox *m_dotInheritance;
QCheckBox *m_dotCall;
QCheckBox *m_dotCaller;
Wizard *m_wizard;
const QHash<QString,Input *> &m_modelData;
};
class Wizard : public QSplitter
{
Q_OBJECT
public:
Wizard(const QHash<QString,Input*> &modelData, QWidget *parent=0);
~Wizard();
public slots:
void refresh();
private slots:
void activateTopic(QTreeWidgetItem *item,QTreeWidgetItem *);
void nextTopic();
void prevTopic();
private:
const QHash<QString,Input *> &m_modelData;
QTreeWidget *m_treeWidget;
QStackedWidget *m_topicStack;
Step1 *m_step1;
Step2 *m_step2;
Step3 *m_step3;
Step4 *m_step4;
QPushButton *m_next;
QPushButton *m_prev;
};
#endif
...@@ -20,7 +20,7 @@ doxygen_version_minor=5 ...@@ -20,7 +20,7 @@ doxygen_version_minor=5
doxygen_version_revision=7.1 doxygen_version_revision=7.1
#NOTE: Setting version_mmn to "NO" will omit mmn info from the package. #NOTE: Setting version_mmn to "NO" will omit mmn info from the package.
doxygen_version_mmn=20081103 doxygen_version_mmn=NO
bin_dirs=`echo $PATH | sed -e "s/:/ /g"` bin_dirs=`echo $PATH | sed -e "s/:/ /g"`
...@@ -38,7 +38,7 @@ f_app=NO ...@@ -38,7 +38,7 @@ f_app=NO
f_thread=NO f_thread=NO
f_flex=NO f_flex=NO
f_bison=NO f_bison=NO
f_langs=nl,se,cz,fr,id,it,de,jp,je,es,fi,ru,hr,pl,pt,hu,kr,ke,ro,si,cn,no,br,dk,sk,ua,gr,tw,sr,ca,lt,za,ar,fa,vi f_langs=nl,se,cz,fr,id,it,de,jp,je,es,fi,ru,hr,pl,pt,hu,kr,ke,ro,si,cn,no,br,dk,sk,ua,gr,tw,sr,ca,lt,za,ar,fa,vi,tr
while test -n "$1"; do while test -n "$1"; do
case $1 in case $1 in
...@@ -263,13 +263,12 @@ fi ...@@ -263,13 +263,12 @@ fi
#- check for qt -------------------------------------------------------------- #- check for qt --------------------------------------------------------------
LIBDIR=lib
if test "$f_wizard" = YES; then if test "$f_wizard" = YES; then
if test -z "$QTDIR"; then if test -z "$QTDIR"; then
echo " QTDIR environment variable not set!" echo " QTDIR environment variable not set!"
echo -n " Checking for Qt..." echo -n " Checking for Qt..."
for d in /usr/{lib,share,qt}/{qt-3,qt3,qt,qt*,3}; do for d in /usr/{lib,share,qt}/{qt-4,qt4,qt,qt*,4}; do
if test -d "$d/lib" -a -d "$d/include" -a -x "$d/bin/moc"; then if test -x "$d/bin/qmake"; then
QTDIR=$d QTDIR=$d
fi fi
done done
...@@ -280,30 +279,9 @@ if test "$f_wizard" = YES; then ...@@ -280,30 +279,9 @@ if test "$f_wizard" = YES; then
if test -z "$QTDIR"; then if test -z "$QTDIR"; then
echo "QTDIR not set and Qt not found at standard locations!" echo "QTDIR not set and Qt not found at standard locations!"
echo echo
echo "tmake requires the QTDIR environment variable to be set." echo "Set the QTDIR environment variable such that \$QTDIR/bin/qmake exists."
echo "check the Qt installation instructions!" echo "check the Qt installation instructions!"
exit 2 exit 2
else
if test ! -d "$QTDIR/lib"; then
if test ! -d "$QTDIR/lib64"; then
echo "QTDIR is set to $QTDIR, but library directory $QTDIR/lib does not exist!"
exit 2
fi
LIBDIR=lib64
fi
if test ! -d "$QTDIR/include"; then
echo "QTDIR is set to $QTDIR, but include directory $QTDIR/include does not exist!"
exit 2
fi
if test ! -x "$QTDIR/bin/moc"; then
echo "QTDIR is set to $QTDIR, but the moc tool could not be found in $QTDIR/bin!"
exit 2
fi
echo " headers $QTDIR/include,"
echo " libraries $QTDIR/$LIBDIR"
if test -n "`ls $QTDIR/$LIBDIR/* | grep qt-mt`"; then
f_thread=YES
fi
fi fi
fi fi
...@@ -654,9 +632,9 @@ EOF ...@@ -654,9 +632,9 @@ EOF
else else
realopts="debug" realopts="debug"
fi fi
if test "$f_thread" = YES; then #if test "$f_thread" = YES; then
realopts="$realopts thread" # realopts="$realopts thread"
fi #fi
cat $SRC .tmakeconfig | sed -e "s/\$extraopts/$realopts/g" >> $DST cat $SRC .tmakeconfig | sed -e "s/\$extraopts/$realopts/g" >> $DST
echo " Created $DST from $SRC..." echo " Created $DST from $SRC..."
done done
...@@ -669,7 +647,7 @@ fi ...@@ -669,7 +647,7 @@ fi
echo -n " Generating src/lang_cfg.h..." echo -n " Generating src/lang_cfg.h..."
echo $f_langs | $f_perl -e '@l=split(/,/,<STDIN>); echo $f_langs | $f_perl -e '@l=split(/,/,<STDIN>);
chomp @l; chomp @l;
@allowed=(split(/,/,"NL,SE,CZ,FR,ID,IT,DE,JP,JE,ES,FI,RU,HR,PL,PT,HU,KR,KE,RO,SI,CN,NO,MK,BR,DK,SK,UA,GR,TW,SR,CA,LT,ZA,AR,FA,SC,VI")); @allowed=(split(/,/,"NL,SE,CZ,FR,ID,IT,DE,JP,JE,ES,FI,RU,HR,PL,PT,HU,KR,KE,RO,SI,CN,NO,MK,BR,DK,SK,UA,GR,TW,SR,CA,LT,ZA,AR,FA,SC,VI,TR"));
foreach my $elem (@l){ foreach my $elem (@l){
$elem =~ tr/a-z/A-Z/; $elem =~ tr/a-z/A-Z/;
$r=0; $r=0;
......
...@@ -1118,7 +1118,7 @@ FILE_VERSION_INFO = "cleartool desc -fmt \%Vn" ...@@ -1118,7 +1118,7 @@ FILE_VERSION_INFO = "cleartool desc -fmt \%Vn"
If the \c REFERENCES_LINK_SOURCE tag is set to \c YES (the default) If the \c REFERENCES_LINK_SOURCE tag is set to \c YES (the default)
and SOURCE_BROWSER tag is set to \c YES, then the hyperlinks from and SOURCE_BROWSER tag is set to \c YES, then the hyperlinks from
functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will
link to the source code. Otherwise they will link to the documentstion. link to the source code. Otherwise they will link to the documentation.
\anchor cfg_verbatim_headers \anchor cfg_verbatim_headers
<dt>\c VERBATIM_HEADERS <dd> <dt>\c VERBATIM_HEADERS <dd>
......
...@@ -390,7 +390,7 @@ Download the zip extract it to e.g. <code>c:\\tools\\unxutils</code>. ...@@ -390,7 +390,7 @@ Download the zip extract it to e.g. <code>c:\\tools\\unxutils</code>.
Now you need to add/adjust the following environment variables Now you need to add/adjust the following environment variables
(via Control Panel/System/Advanced/Environment Variables): (via Control Panel/System/Advanced/Environment Variables):
- add <code>c:\\tools\\unxutils\\usr\\local\\wbin;</code> to the start of <code>PATH</code> - add <code>c:\\tools\\unxutils\\usr\\local\\wbin;</code> to the start of <code>PATH</code>
- set <code>BISON_SIMPLE</code> to <code>c:\\tools\\unxutils\\usr\\share\\bison.simple</code> - set <code>BISON_SIMPLE</code> to <code>c:\\tools\\unxutils\\usr\\local\\share\\bison.simple</code>
Download doxygen's source tarball and put it somewhere (e.g use <code>c:\\tools</code>) Download doxygen's source tarball and put it somewhere (e.g use <code>c:\\tools</code>)
......
...@@ -23,14 +23,14 @@ text fragments, generated by doxygen, can be produced in languages other ...@@ -23,14 +23,14 @@ text fragments, generated by doxygen, can be produced in languages other
than English (the default). The output language is chosen through the than English (the default). The output language is chosen through the
configuration file (with default name and known as Doxyfile). configuration file (with default name and known as Doxyfile).
Currently (version 1.5.7.1), 36 languages Currently (version 1.5.7.1), 37 languages
are supported (sorted alphabetically): are supported (sorted alphabetically):
Afrikaans, Arabic, Brazilian Portuguese, Catalan, Chinese, Chinese Afrikaans, Arabic, Brazilian Portuguese, Catalan, Chinese, Chinese
Traditional, Croatian, Czech, Danish, Dutch, English, Finnish, French, Traditional, Croatian, Czech, Danish, Dutch, English, Finnish, French,
German, Greek, Hungarian, Indonesian, Italian, Japanese (+En), Korean German, Greek, Hungarian, Indonesian, Italian, Japanese (+En), Korean
(+En), Lithuanian, Macedonian, Norwegian, Persian, Polish, Portuguese, (+En), Lithuanian, Macedonian, Norwegian, Persian, Polish, Portuguese,
Romanian, Russian, Serbian, SerbianCyrilic, Slovak, Slovene, Spanish, Romanian, Russian, Serbian, SerbianCyrilic, Slovak, Slovene, Spanish,
Swedish, Ukrainian, and Vietnamese.. Swedish, Turkish, Ukrainian, and Vietnamese..
The table of information related to the supported languages follows. The table of information related to the supported languages follows.
It is sorted by language alphabetically. The <b>Status</b> column It is sorted by language alphabetically. The <b>Status</b> column
...@@ -267,6 +267,12 @@ when the translator was updated. ...@@ -267,6 +267,12 @@ when the translator was updated.
<td>mikaelhallin at yahoo dot se</td> <td>mikaelhallin at yahoo dot se</td>
<td>1.4.6</td> <td>1.4.6</td>
</tr> </tr>
<tr bgcolor="#ffffff">
<td>Turkish</td>
<td>Emin Ilker Cetinbas</td>
<td>niw3 at yahoo dot com</td>
<td>up-to-date</td>
</tr>
<tr bgcolor="#ffffff"> <tr bgcolor="#ffffff">
<td>Ukrainian</td> <td>Ukrainian</td>
<td>Olexij Tkatchenko</td> <td>Olexij Tkatchenko</td>
...@@ -380,6 +386,8 @@ when the translator was updated. ...@@ -380,6 +386,8 @@ when the translator was updated.
\hline \hline
Swedish & Mikael Hallin & {\tt\tiny mikaelhallin@yahoo.se} & 1.4.6 \\ Swedish & Mikael Hallin & {\tt\tiny mikaelhallin@yahoo.se} & 1.4.6 \\
\hline \hline
Turkish & Emin Ilker Cetinbas & {\tt\tiny niw3@yahoo.com} & up-to-date \\
\hline
Ukrainian & Olexij Tkatchenko & {\tt\tiny olexij.tkatchenko@parcs.de} & 1.4.1 \\ Ukrainian & Olexij Tkatchenko & {\tt\tiny olexij.tkatchenko@parcs.de} & 1.4.1 \\
\hline \hline
Vietnamese & Dang Minh Tuan & {\tt\tiny tuanvietkey@gmail.com} & up-to-date \\ Vietnamese & Dang Minh Tuan & {\tt\tiny tuanvietkey@gmail.com} & up-to-date \\
...@@ -408,16 +416,14 @@ Just follow these steps: ...@@ -408,16 +416,14 @@ Just follow these steps:
<li>Create a copy of translator_en.h and name it <li>Create a copy of translator_en.h and name it
translator_\<your_2_letter_country_code\>.h translator_\<your_2_letter_country_code\>.h
I'll use xx in the rest of this document. I'll use xx in the rest of this document.
<li>Add definition of the symbol for your language into lang_cfg.h: <li>Add definition of the symbol for your language in the configure
\verbatim at two places in the script:
#define LANG_xx <ol>
\endverbatim <li>After the <code>f_langs=</code> is statement, in lower case.
Use capital letters for your \c xx (to be consistent). The \c lang_cfg.h <li>In the string that following <code>@allowed=</code> in upper case.
defines which language translators will be compiled into doxygen </ol>
executable. It is a kind of configuration file. If you are sure that The rerun the configure script such that is generates src/lang_cfg.h.
you do not need some of the languages, you can remove (comment out) This file should now contain a #define for your language code.
definitions of symbols for the languages, or you can say \c \#undef
instead of \c \#define for them.
<li>Edit language.cpp: <li>Edit language.cpp:
Add a Add a
\verbatim \verbatim
......
...@@ -58,16 +58,14 @@ Just follow these steps: ...@@ -58,16 +58,14 @@ Just follow these steps:
<li>Create a copy of translator_en.h and name it <li>Create a copy of translator_en.h and name it
translator_\<your_2_letter_country_code\>.h translator_\<your_2_letter_country_code\>.h
I'll use xx in the rest of this document. I'll use xx in the rest of this document.
<li>Add definition of the symbol for your language into lang_cfg.h: <li>Add definition of the symbol for your language in the configure
\verbatim at two places in the script:
#define LANG_xx <ol>
\endverbatim <li>After the <code>f_langs=</code> is statement, in lower case.
Use capital letters for your \c xx (to be consistent). The \c lang_cfg.h <li>In the string that following <code>@allowed=</code> in upper case.
defines which language translators will be compiled into doxygen </ol>
executable. It is a kind of configuration file. If you are sure that The rerun the configure script such that is generates src/lang_cfg.h.
you do not need some of the languages, you can remove (comment out) This file should now contain a #define for your language code.
definitions of symbols for the languages, or you can say \c \#undef
instead of \c \#define for them.
<li>Edit language.cpp: <li>Edit language.cpp:
Add a Add a
\verbatim \verbatim
......
...@@ -130,3 +130,7 @@ Olexij Tkatchenko: olexij.tkatchenko@parcs.de ...@@ -130,3 +130,7 @@ Olexij Tkatchenko: olexij.tkatchenko@parcs.de
TranslatorVietnamese TranslatorVietnamese
Dang Minh Tuan: tuanvietkey@gmail.com Dang Minh Tuan: tuanvietkey@gmail.com
TranslatorTurkish
Emin Ilker Cetinbas: niw3@yahoo.com
(1.5.7.1) (1.5.7.1)
Doxygen supports the following 36 languages (sorted alphabetically): Doxygen supports the following 37 languages (sorted alphabetically):
Afrikaans, Arabic, Brazilian Portuguese, Catalan, Chinese, Chinese Afrikaans, Arabic, Brazilian Portuguese, Catalan, Chinese, Chinese
Traditional, Croatian, Czech, Danish, Dutch, English, Finnish, French, Traditional, Croatian, Czech, Danish, Dutch, English, Finnish, French,
German, Greek, Hungarian, Indonesian, Italian, Japanese (+En), Korean German, Greek, Hungarian, Indonesian, Italian, Japanese (+En), Korean
(+En), Lithuanian, Macedonian, Norwegian, Persian, Polish, Portuguese, (+En), Lithuanian, Macedonian, Norwegian, Persian, Polish, Portuguese,
Romanian, Russian, Serbian, SerbianCyrilic, Slovak, Slovene, Spanish, Romanian, Russian, Serbian, SerbianCyrilic, Slovak, Slovene, Spanish,
Swedish, Ukrainian, and Vietnamese. Swedish, Turkish, Ukrainian, and Vietnamese.
Of them, 19 translators are up-to-date, 17 translators are based on Of them, 20 translators are up-to-date, 17 translators are based on
some adapter class, and 2 are English based. some adapter class, and 2 are English based.
---------------------------------------------------------------------- ----------------------------------------------------------------------
...@@ -36,6 +36,7 @@ still may be some details listed even for them: ...@@ -36,6 +36,7 @@ still may be some details listed even for them:
TranslatorSerbianCyrilic TranslatorSerbianCyrilic
TranslatorSerbian TranslatorSerbian
TranslatorSpanish -- Change the base class to Translator. TranslatorSpanish -- Change the base class to Translator.
TranslatorTurkish
TranslatorVietnamese TranslatorVietnamese
---------------------------------------------------------------------- ----------------------------------------------------------------------
......
...@@ -342,7 +342,8 @@ class ConfigBool : public ConfigOption ...@@ -342,7 +342,8 @@ class ConfigBool : public ConfigOption
class ConfigObsolete : public ConfigOption class ConfigObsolete : public ConfigOption
{ {
public: public:
ConfigObsolete(OptionType t) : ConfigOption(t) {} ConfigObsolete(const char *name,OptionType t) : ConfigOption(t)
{ m_name = name; }
void writeTemplate(QTextStream &,bool,bool) {} void writeTemplate(QTextStream &,bool,bool) {}
void substEnvVars() {} void substEnvVars() {}
void writeXML(QTextStream&); void writeXML(QTextStream&);
...@@ -523,7 +524,7 @@ class Config ...@@ -523,7 +524,7 @@ class Config
/*! Adds an option that has become obsolete. */ /*! Adds an option that has become obsolete. */
ConfigOption *addObsolete(const char *name) ConfigOption *addObsolete(const char *name)
{ {
ConfigObsolete *option = new ConfigObsolete(ConfigOption::O_Obsolete); ConfigObsolete *option = new ConfigObsolete(name,ConfigOption::O_Obsolete);
m_dict->insert(name,option); m_dict->insert(name,option);
m_obsolete->append(option); m_obsolete->append(option);
return option; return option;
......
...@@ -284,7 +284,9 @@ void ConfigInt::writeXML(QTextStream& t) ...@@ -284,7 +284,9 @@ void ConfigInt::writeXML(QTextStream& t)
"docs='\n" << convertToXML(docs()) << "' " "docs='\n" << convertToXML(docs()) << "' "
"minval='" << m_minVal << "' " "minval='" << m_minVal << "' "
"maxval='" << m_maxVal << "' " "maxval='" << m_maxVal << "' "
"defval='" << m_defValue << "'/>" << endl; "defval='" << m_defValue << "'";
if (!m_dependency.isEmpty()) t << " depends='" << m_dependency << "'";
t << "/>" << endl;
} }
void ConfigBool::writeXML(QTextStream& t) void ConfigBool::writeXML(QTextStream& t)
...@@ -292,7 +294,9 @@ void ConfigBool::writeXML(QTextStream& t) ...@@ -292,7 +294,9 @@ void ConfigBool::writeXML(QTextStream& t)
t << " <option type='bool' " t << " <option type='bool' "
"id='" << convertToXML(name()) << "' " "id='" << convertToXML(name()) << "' "
"docs='\n" << convertToXML(docs()) << "' " "docs='\n" << convertToXML(docs()) << "' "
"defval='" << m_defValue << "'/>" << endl; "defval='" << m_defValue << "'";
if (!m_dependency.isEmpty()) t << " depends='" << m_dependency << "'";
t << "/>" << endl;
} }
void ConfigString::writeXML(QTextStream& t) void ConfigString::writeXML(QTextStream& t)
...@@ -308,7 +312,9 @@ void ConfigString::writeXML(QTextStream& t) ...@@ -308,7 +312,9 @@ void ConfigString::writeXML(QTextStream& t)
"id='" << convertToXML(name()) << "' " "id='" << convertToXML(name()) << "' "
"format='" << format << "' " "format='" << format << "' "
"docs='\n" << convertToXML(docs()) << "' " "docs='\n" << convertToXML(docs()) << "' "
"defval='" << convertToXML(m_defValue) << "'/>" << endl; "defval='" << convertToXML(m_defValue) << "'";
if (!m_dependency.isEmpty()) t << " depends='" << m_dependency << "'";
t << "/>" << endl;
} }
void ConfigEnum::writeXML(QTextStream &t) void ConfigEnum::writeXML(QTextStream &t)
...@@ -316,7 +322,9 @@ void ConfigEnum::writeXML(QTextStream &t) ...@@ -316,7 +322,9 @@ void ConfigEnum::writeXML(QTextStream &t)
t << " <option type='enum' " t << " <option type='enum' "
"id='" << convertToXML(name()) << "' " "id='" << convertToXML(name()) << "' "
"defval='" << convertToXML(m_defValue) << "' " "defval='" << convertToXML(m_defValue) << "' "
"docs='\n" << convertToXML(docs()) << "'>" << endl; "docs='\n" << convertToXML(docs()) << "'";
if (!m_dependency.isEmpty()) t << " depends='" << m_dependency << "'";
t << ">" << endl;
char *enumVal = m_valueRange.first(); char *enumVal = m_valueRange.first();
while (enumVal) while (enumVal)
...@@ -341,7 +349,9 @@ void ConfigList::writeXML(QTextStream &t) ...@@ -341,7 +349,9 @@ void ConfigList::writeXML(QTextStream &t)
t << " <option type='list' " t << " <option type='list' "
"id='" << convertToXML(name()) << "' " "id='" << convertToXML(name()) << "' "
"format='" << format << "' " "format='" << format << "' "
"docs='\n" << convertToXML(docs()) << "'>" << endl; "docs='\n" << convertToXML(docs()) << "'";
if (!m_dependency.isEmpty()) t << " depends='" << m_dependency << "'";
t << ">" << endl;
char *enumVal = m_value.first(); char *enumVal = m_value.first();
while (enumVal) while (enumVal)
{ {
...@@ -355,8 +365,7 @@ void ConfigList::writeXML(QTextStream &t) ...@@ -355,8 +365,7 @@ void ConfigList::writeXML(QTextStream &t)
void ConfigObsolete::writeXML(QTextStream &t) void ConfigObsolete::writeXML(QTextStream &t)
{ {
t << " <option type='obsolete' " t << " <option type='obsolete' "
"id='" << convertToXML(name()) << "' " "id='" << convertToXML(name()) << "'/>" << endl;
"docs='" << convertToXML(docs()) << "'/>" << endl;
} }
...@@ -815,8 +824,8 @@ void Config::writeTemplate(QTextStream &t,bool sl,bool upd) ...@@ -815,8 +824,8 @@ void Config::writeTemplate(QTextStream &t,bool sl,bool upd)
void Config::writeXML(QTextStream &t) void Config::writeXML(QTextStream &t)
{ {
t << "<doxygenconfig>" << endl; t << "<doxygenconfig>" << endl;
ConfigOption *option = m_options->first();
bool first=TRUE; bool first=TRUE;
ConfigOption *option = m_options->first();
while (option) while (option)
{ {
if (option->kind()==ConfigOption::O_Info) if (option->kind()==ConfigOption::O_Info)
...@@ -832,6 +841,12 @@ void Config::writeXML(QTextStream &t) ...@@ -832,6 +841,12 @@ void Config::writeXML(QTextStream &t)
} }
option = m_options->next(); option = m_options->next();
} }
option = m_obsolete->first();
while (option)
{
option->writeXML(t);
option = m_obsolete->next();
}
if (!first) t << " </group>" << endl; if (!first) t << " </group>" << endl;
t << "</doxygenconfig>" << endl; t << "</doxygenconfig>" << endl;
} }
...@@ -1337,29 +1352,26 @@ void Config::check() ...@@ -1337,29 +1352,26 @@ void Config::check()
// check QHP creation requirements // check QHP creation requirements
if (Config_getBool("GENERATE_QHP")) if (Config_getBool("GENERATE_QHP"))
{ {
bool quit = false; bool qhp=TRUE;
if (!Config_getBool("GENERATE_HTML")) if (!Config_getBool("GENERATE_HTML"))
{ {
config_err("Warning: GENERATE_QHP=YES requires GENERATE_HTML=YES.\n"); config_err("Error: GENERATE_QHP=YES requires GENERATE_HTML=YES. Disabling QHP output.\n");
quit = true; qhp=FALSE;
} }
if (Config_getString("QHP_NAMESPACE").isEmpty()) if (Config_getString("QHP_NAMESPACE").isEmpty())
{ {
config_err("Warning: GENERATE_QHP=YES requires QHP_NAMESPACE to be set.\n"); config_err("Error: GENERATE_QHP=YES requires QHP_NAMESPACE to be set. Disabling QHP output.\n");
quit = true; qhp=FALSE;
} }
if (Config_getString("QHP_VIRTUAL_FOLDER").isEmpty()) if (Config_getString("QHP_VIRTUAL_FOLDER").isEmpty())
{ {
config_err("Warning: GENERATE_QHP=YES requires QHP_VIRTUAL_FOLDER to be set.\n"); config_err("Error: GENERATE_QHP=YES requires QHP_VIRTUAL_FOLDER to be set. Disabling QHP output.\n");
quit = true; qhp=FALSE;
} }
if (quit) Config_getBool("GENERATE_QHP")=qhp;
{
exit(1);
}
} }
// check QCH creation requirements // check QCH creation requirements
......
<doxygenconfig>
<group name='Project' docs='Project related configuration options'>
<option type='string' id='DOXYFILE_ENCODING' format='string' docs='
This tag specifies the encoding used for all characters in the config file
that follow. The default is UTF-8 which is also the encoding used for all
text before the first occurrence of this tag. Doxygen uses libiconv (or the
iconv built into libc) for the transcoding. See
http://www.gnu.org/software/libiconv for the list of possible encodings.
' defval='UTF-8'/>
<option type='string' id='PROJECT_NAME' format='string' docs='
The PROJECT_NAME tag is a single word (or a sequence of words surrounded
by quotes) that should identify the project. ' defval=''/>
<option type='string' id='PROJECT_NUMBER' format='string' docs='
The PROJECT_NUMBER tag can be used to enter a project or revision number.
This could be handy for archiving the generated documentation or
if some version control system is used.
' defval=''/>
<option type='string' id='OUTPUT_DIRECTORY' format='dir' docs='
The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
base path where the generated documentation will be put.
If a relative path is entered, it will be relative to the location
where doxygen was started. If left blank the current directory will be used.
' defval=''/>
<option type='bool' id='CREATE_SUBDIRS' docs='
If the CREATE_SUBDIRS tag is set to YES, then doxygen will create
4096 sub-directories (in 2 levels) under the output directory of each output
format and will distribute the generated files over these directories.
Enabling this option can be useful when feeding doxygen a huge amount of
source files, where putting all generated files in the same directory would
otherwise cause performance problems for the file system.
' defval='0'/>
<option type='enum' id='OUTPUT_LANGUAGE' defval='English' docs='
The OUTPUT_LANGUAGE tag is used to specify the language in which all
documentation generated by doxygen is written. Doxygen will use this
information to generate all constant output in the proper language.
The default language is English, other supported languages are:
Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional,
Croatian, Czech, Danish, Dutch, Farsi, Finnish, French, German, Greek,
Hungarian, Italian, Japanese, Japanese-en (Japanese with English messages),
Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian, Polish,
Portuguese, Romanian, Russian, Serbian, Serbian-Cyrilic, Slovak, Slovene,
Spanish, Swedish, and Ukrainian.
'>
<value name='Afrikaans'/>
<value name='Arabic'/>
<value name='Brazilian'/>
<value name='Catalan'/>
<value name='Chinese'/>
<value name='Chinese-Traditional'/>
<value name='Croatian'/>
<value name='Czech'/>
<value name='Danish'/>
<value name='Dutch'/>
<value name='English'/>
<value name='Finnish'/>
<value name='French'/>
<value name='German'/>
<value name='Greek'/>
<value name='Hungarian'/>
<value name='Italian'/>
<value name='Japanese'/>
<value name='Japanese-en'/>
<value name='Korean'/>
<value name='Korean-en'/>
<value name='Norwegian'/>
<value name='Farsi'/>
<value name='Persian'/>
<value name='Polish'/>
<value name='Portuguese'/>
<value name='Romanian'/>
<value name='Russian'/>
<value name='Serbian'/>
<value name='Slovak'/>
<value name='Slovene'/>
<value name='Spanish'/>
<value name='Swedish'/>
<value name='Ukrainian'/>
</option>
<option type='bool' id='BRIEF_MEMBER_DESC' docs='
If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will
include brief member descriptions after the members that are listed in
the file and class documentation (similar to JavaDoc).
Set to NO to disable this.
' defval='1'/>
<option type='bool' id='REPEAT_BRIEF' docs='
If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend
the brief description of a member or function before the detailed description.
Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the
brief descriptions will be completely suppressed.
' defval='1'/>
<option type='list' id='ABBREVIATE_BRIEF' format='string' docs='
This tag implements a quasi-intelligent brief description abbreviator
that is used to form the text in various listings. Each string
in this list, if found as the leading text of the brief description, will be
stripped from the text and the result after processing the whole list, is
used as the annotated text. Otherwise, the brief description is used as-is.
If left blank, the following values are used (&quot;$name&quot; is automatically
replaced with the name of the entity): &quot;The $name class&quot; &quot;The $name widget&quot;
&quot;The $name file&quot; &quot;is&quot; &quot;provides&quot; &quot;specifies&quot; &quot;contains&quot;
&quot;represents&quot; &quot;a&quot; &quot;an&quot; &quot;the&quot;
'>
<value name='The $name class'/>
<value name='The $name widget'/>
<value name='The $name file'/>
<value name='is'/>
<value name='provides'/>
<value name='specifies'/>
<value name='contains'/>
<value name='represents'/>
<value name='a'/>
<value name='an'/>
<value name='the'/>
</option>
<option type='bool' id='ALWAYS_DETAILED_SEC' docs='
If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then
Doxygen will generate a detailed section even if there is only a brief
description.
' defval='0'/>
<option type='bool' id='INLINE_INHERITED_MEMB' docs='
If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all
inherited members of a class in the documentation of that class as if those
members were ordinary class members. Constructors, destructors and assignment
operators of the base classes will not be shown.
' defval='0'/>
<option type='bool' id='FULL_PATH_NAMES' docs='
If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full
path before files name in the file list and in the header files. If set
to NO the shortest path that makes the file name unique will be used.
' defval='1'/>
<option type='list' id='STRIP_FROM_PATH' format='string' docs='
If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag
can be used to strip a user-defined part of the path. Stripping is
only done if one of the specified strings matches the left-hand part of
the path. The tag can be used to show relative paths in the file list.
If left blank the directory from which doxygen is run is used as the
path to strip.
' depends='FULL_PATH_NAMES'>
<value name='/Users/dimitri/doxygen/mail/1.5.7/doxywizard/'/>
</option>
<option type='list' id='STRIP_FROM_INC_PATH' format='string' docs='
The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of
the path mentioned in the documentation of a class, which tells
the reader which header file to include in order to use a class.
If left blank only the name of the header file containing the class
definition is used. Otherwise one should specify the include paths that
are normally passed to the compiler using the -I flag.
'>
</option>
<option type='bool' id='SHORT_NAMES' docs='
If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter
(but less readable) file names. This can be useful is your file systems
doesn&apos;t support long names like on DOS, Mac, or CD-ROM.
' defval='0'/>
<option type='bool' id='JAVADOC_AUTOBRIEF' docs='
If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen
will interpret the first line (until the first dot) of a JavaDoc-style
comment as the brief description. If set to NO, the JavaDoc
comments will behave just like regular Qt-style comments
(thus requiring an explicit @brief command for a brief description.)
' defval='0'/>
<option type='bool' id='QT_AUTOBRIEF' docs='
If the QT_AUTOBRIEF tag is set to YES then Doxygen will
interpret the first line (until the first dot) of a Qt-style
comment as the brief description. If set to NO, the comments
will behave just like regular Qt-style comments (thus requiring
an explicit \brief command for a brief description.)
' defval='0'/>
<option type='bool' id='MULTILINE_CPP_IS_BRIEF' docs='
The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen
treat a multi-line C++ special comment block (i.e. a block of //! or ///
comments) as a brief description. This used to be the default behaviour.
The new default is to treat a multi-line C++ comment block as a detailed
description. Set this tag to YES if you prefer the old behaviour instead.
' defval='0'/>
<option type='bool' id='INHERIT_DOCS' docs='
If the INHERIT_DOCS tag is set to YES (the default) then an undocumented
member inherits the documentation from any documented member that it
re-implements.
' defval='1'/>
<option type='bool' id='SEPARATE_MEMBER_PAGES' docs='
If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce
a new page for each member. If set to NO, the documentation of a member will
be part of the file/class/namespace that contains it.
' defval='0'/>
<option type='int' id='TAB_SIZE' docs='
The TAB_SIZE tag can be used to set the number of spaces in a tab.
Doxygen uses this value to replace tabs by spaces in code fragments.
' minval='1' maxval='16' defval='8'/>
<option type='list' id='ALIASES' format='string' docs='
This tag can be used to specify a number of aliases that acts
as commands in the documentation. An alias has the form &quot;name=value&quot;.
For example adding &quot;sideeffect=\par Side Effects:\n&quot; will allow you to
put the command \sideeffect (or @sideeffect) in the documentation, which
will result in a user-defined paragraph with heading &quot;Side Effects:&quot;.
You can put \n&apos;s in the value part of an alias to insert newlines.
'>
</option>
<option type='bool' id='OPTIMIZE_OUTPUT_FOR_C' docs='
Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C
sources only. Doxygen will then generate output that is more tailored for C.
For instance, some of the names that are used will be different. The list
of all members will be omitted, etc.
' defval='0'/>
<option type='bool' id='OPTIMIZE_OUTPUT_JAVA' docs='
Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java
sources only. Doxygen will then generate output that is more tailored for
Java. For instance, namespaces will be presented as packages, qualified
scopes will look different, etc.
' defval='0'/>
<option type='bool' id='OPTIMIZE_FOR_FORTRAN' docs='
Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran
sources only. Doxygen will then generate output that is more tailored for
Fortran.
' defval='0'/>
<option type='bool' id='OPTIMIZE_OUTPUT_VHDL' docs='
Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL
sources. Doxygen will then generate output that is tailored for
VHDL.
' defval='0'/>
<option type='list' id='EXTENSION_MAPPING' format='string' docs='
Doxygen selects the parser to use depending on the extension of the files it parses.
With this tag you can assign which parser to use for a given extension.
Doxygen has a built-in mapping, but you can override or extend it using this tag.
The format is ext=language, where ext is a file extension, and language is one of
the parsers supported by doxygen: IDL, Java, Javascript, C#, C, C++, D, PHP,
Objective-C, Python, Fortran, VHDL, C, C++. For instance to make doxygen treat
.inc files as Fortran files (default is PHP), and .f files as C (default is Fortran),
use: inc=Fortran f=C
'>
</option>
<option type='bool' id='BUILTIN_STL_SUPPORT' docs='
If you use STL classes (i.e. std::string, std::vector, etc.) but do not want
to include (a tag file for) the STL sources as input, then you should
set this tag to YES in order to let doxygen match functions declarations and
definitions whose arguments contain STL classes (e.g. func(std::string); v.s.
func(std::string) {}). This also make the inheritance and collaboration
diagrams that involve STL classes more complete and accurate.
' defval='0'/>
<option type='bool' id='CPP_CLI_SUPPORT' docs='
If you use Microsoft&apos;s C++/CLI language, you should set this option to YES to
enable parsing support.
' defval='0'/>
<option type='bool' id='SIP_SUPPORT' docs='
Set the SIP_SUPPORT tag to YES if your project consists of sip sources only.
Doxygen will parse them like normal C++ but will assume all classes use public
instead of private inheritance when no explicit protection keyword is present.
' defval='0'/>
<option type='bool' id='IDL_PROPERTY_SUPPORT' docs='
For Microsoft&apos;s IDL there are propget and propput attributes to indicate getter
and setter methods for a property. Setting this option to YES (the default)
will make doxygen to replace the get and set methods by a property in the
documentation. This will only work if the methods are indeed getting or
setting a simple type. If this is not the case, or you want to show the
methods anyway, you should set this option to NO.
' defval='1'/>
<option type='bool' id='DISTRIBUTE_GROUP_DOC' docs='
If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC
tag is set to YES, then doxygen will reuse the documentation of the first
member in the group (if any) for the other members of the group. By default
all members of a group must be documented explicitly.
' defval='0'/>
<option type='bool' id='SUBGROUPING' docs='
Set the SUBGROUPING tag to YES (the default) to allow class member groups of
the same type (for instance a group of public functions) to be put as a
subgroup of that type (e.g. under the Public Functions section). Set it to
NO to prevent subgrouping. Alternatively, this can be done per class using
the \nosubgrouping command.
' defval='1'/>
<option type='bool' id='TYPEDEF_HIDES_STRUCT' docs='
When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum
is documented as struct, union, or enum with the name of the typedef. So
typedef struct TypeS {} TypeT, will appear in the documentation as a struct
with name TypeT. When disabled the typedef will appear as a member of a file,
namespace, or class. And the struct will be named TypeS. This can typically
be useful for C code in case the coding convention dictates that all compound
types are typedef&apos;ed and only the typedef is referenced, never the tag name.
' defval='0'/>
<option type='int' id='SYMBOL_CACHE_SIZE' docs='
The SYMBOL_CACHE_SIZE determines the size of the internal cache use to
determine which symbols to keep in memory and which to flush to disk.
When the cache is full, less often used symbols will be written to disk.
For small to medium size projects (&lt;1000 input files) the default value is
probably good enough. For larger projects a too small cache size can cause
doxygen to be busy swapping symbols to and from disk most of the time
causing a significant performance penality.
If the system has enough physical memory increasing the cache will improve the
performance by keeping more symbols in memory. Note that the value works on
a logarithmic scale so increasing the size by one will rougly double the
memory usage. The cache size is given by this formula:
2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0,
corresponding to a cache size of 2^16 = 65536 symbols
' minval='0' maxval='9' defval='0'/>
</group>
<group name='Build' docs='Build related configuration options'>
<option type='bool' id='EXTRACT_ALL' docs='
If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in
documentation are documented, even if no documentation was available.
Private class members and static file members will be hidden unless
the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES
' defval='0'/>
<option type='bool' id='EXTRACT_PRIVATE' docs='
If the EXTRACT_PRIVATE tag is set to YES all private members of a class
will be included in the documentation.
' defval='0'/>
<option type='bool' id='EXTRACT_STATIC' docs='
If the EXTRACT_STATIC tag is set to YES all static members of a file
will be included in the documentation.
' defval='0'/>
<option type='bool' id='EXTRACT_LOCAL_CLASSES' docs='
If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs)
defined locally in source files will be included in the documentation.
If set to NO only classes defined in header files are included.
' defval='1'/>
<option type='bool' id='EXTRACT_LOCAL_METHODS' docs='
This flag is only useful for Objective-C code. When set to YES local
methods, which are defined in the implementation section but not in
the interface are included in the documentation.
If set to NO (the default) only methods in the interface are included.
' defval='0'/>
<option type='bool' id='EXTRACT_ANON_NSPACES' docs='
If this flag is set to YES, the members of anonymous namespaces will be
extracted and appear in the documentation as a namespace called
&apos;anonymous_namespace{file}&apos;, where file will be replaced with the base
name of the file that contains the anonymous namespace. By default
anonymous namespace are hidden.
' defval='0'/>
<option type='bool' id='HIDE_UNDOC_MEMBERS' docs='
If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all
undocumented members of documented classes, files or namespaces.
If set to NO (the default) these members will be included in the
various overviews, but no documentation section is generated.
This option has no effect if EXTRACT_ALL is enabled.
' defval='0'/>
<option type='bool' id='HIDE_UNDOC_CLASSES' docs='
If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all
undocumented classes that are normally visible in the class hierarchy.
If set to NO (the default) these classes will be included in the various
overviews. This option has no effect if EXTRACT_ALL is enabled.
' defval='0'/>
<option type='bool' id='HIDE_FRIEND_COMPOUNDS' docs='
If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all
friend (class|struct|union) declarations.
If set to NO (the default) these declarations will be included in the
documentation.
' defval='0'/>
<option type='bool' id='HIDE_IN_BODY_DOCS' docs='
If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any
documentation blocks found inside the body of a function.
If set to NO (the default) these blocks will be appended to the
function&apos;s detailed documentation block.
' defval='0'/>
<option type='bool' id='INTERNAL_DOCS' docs='
The INTERNAL_DOCS tag determines if documentation
that is typed after a \internal command is included. If the tag is set
to NO (the default) then the documentation will be excluded.
Set it to YES to include the internal documentation.
' defval='0'/>
<option type='bool' id='CASE_SENSE_NAMES' docs='
If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate
file names in lower-case letters. If set to YES upper-case letters are also
allowed. This is useful if you have classes or files whose names only differ
in case and if your file system supports case sensitive file names. Windows
and Mac users are advised to set this option to NO.
' defval='0' altdefval='portable_fileSystemIsCaseSensitive()'/>
<option type='bool' id='HIDE_SCOPE_NAMES' docs='
If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen
will show members with their full class and namespace scopes in the
documentation. If set to YES the scope will be hidden.
' defval='0'/>
<option type='bool' id='SHOW_INCLUDE_FILES' docs='
If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen
will put a list of the files that are included by a file in the documentation
of that file.
' defval='1'/>
<option type='bool' id='INLINE_INFO' docs='
If the INLINE_INFO tag is set to YES (the default) then a tag [inline]
is inserted in the documentation for inline members.
' defval='1'/>
<option type='bool' id='SORT_MEMBER_DOCS' docs='
If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen
will sort the (detailed) documentation of file and class members
alphabetically by member name. If set to NO the members will appear in
declaration order.
' defval='1'/>
<option type='bool' id='SORT_BRIEF_DOCS' docs='
If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the
brief documentation of file, namespace and class members alphabetically
by member name. If set to NO (the default) the members will appear in
declaration order.
' defval='0'/>
<option type='bool' id='SORT_GROUP_NAMES' docs='
If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the
hierarchy of group names into alphabetical order. If set to NO (the default)
the group names will appear in their defined order.
' defval='0'/>
<option type='bool' id='SORT_BY_SCOPE_NAME' docs='
If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be
sorted by fully-qualified names, including namespaces. If set to
NO (the default), the class list will be sorted only by class name,
not including the namespace part.
Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES.
Note: This option applies only to the class list, not to the
alphabetical list.
' defval='0'/>
<option type='bool' id='GENERATE_TODOLIST' docs='
The GENERATE_TODOLIST tag can be used to enable (YES) or
disable (NO) the todo list. This list is created by putting \todo
commands in the documentation.
' defval='1'/>
<option type='bool' id='GENERATE_TESTLIST' docs='
The GENERATE_TESTLIST tag can be used to enable (YES) or
disable (NO) the test list. This list is created by putting \test
commands in the documentation.
' defval='1'/>
<option type='bool' id='GENERATE_BUGLIST' docs='
The GENERATE_BUGLIST tag can be used to enable (YES) or
disable (NO) the bug list. This list is created by putting \bug
commands in the documentation.
' defval='1'/>
<option type='bool' id='GENERATE_DEPRECATEDLIST' docs='
The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or
disable (NO) the deprecated list. This list is created by putting
\deprecated commands in the documentation.
' defval='1'/>
<option type='list' id='ENABLED_SECTIONS' format='string' docs='
The ENABLED_SECTIONS tag can be used to enable conditional
documentation sections, marked by \if sectionname ... \endif.
'>
</option>
<option type='int' id='MAX_INITIALIZER_LINES' docs='
The MAX_INITIALIZER_LINES tag determines the maximum number of lines
the initial value of a variable or define consists of for it to appear in
the documentation. If the initializer consists of more lines than specified
here it will be hidden. Use a value of 0 to hide initializers completely.
The appearance of the initializer of individual variables and defines in the
documentation can be controlled using \showinitializer or \hideinitializer
command in the documentation regardless of this setting.
' minval='0' maxval='10000' defval='30'/>
<option type='bool' id='SHOW_USED_FILES' docs='
Set the SHOW_USED_FILES tag to NO to disable the list of files generated
at the bottom of the documentation of classes and structs. If set to YES the
list will mention the files that were used to generate the documentation.
' defval='1'/>
<option type='bool' id='SHOW_DIRECTORIES' docs='
If the sources in your project are distributed over multiple directories
then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy
in the documentation. The default is NO.
' defval='0'/>
<option type='bool' id='SHOW_FILES' docs='
Set the SHOW_FILES tag to NO to disable the generation of the Files page.
This will remove the Files entry from the Quick Index and from the
Folder Tree View (if specified). The default is YES.
' defval='1'/>
<option type='bool' id='SHOW_NAMESPACES' docs='
Set the SHOW_NAMESPACES tag to NO to disable the generation of the
Namespaces page. This will remove the Namespaces entry from the Quick Index
and from the Folder Tree View (if specified). The default is YES.
' defval='1'/>
<option type='string' id='FILE_VERSION_FILTER' format='file' docs='
The FILE_VERSION_FILTER tag can be used to specify a program or script that
doxygen should invoke to get the current version for each file (typically from
the version control system). Doxygen will invoke the program by executing (via
popen()) the command &lt;command&gt; &lt;input-file&gt;, where &lt;command&gt; is the value of
the FILE_VERSION_FILTER tag, and &lt;input-file&gt; is the name of an input file
provided by doxygen. Whatever the program writes to standard output
is used as the file version. See the manual for examples.
' defval=''/>
<option type='string' id='LAYOUT_FILE' format='file' docs='
The LAYOUT_FILE tag can be used to specify a layout file which will be parsed by
doxygen. The layout file controls the global structure of the generated output files
in an output format independent way. The create the layout file that represents
doxygen&apos;s defaults, run doxygen with the -l option. You can optionally specify a
file name after the option, if omitted DoxygenLayout.xml will be used as the name
of the layout file.
' defval=''/>
</group>
<group name='Messages' docs='configuration options related to warning and progress messages'>
<option type='bool' id='QUIET' docs='
The QUIET tag can be used to turn on/off the messages that are generated
by doxygen. Possible values are YES and NO. If left blank NO is used.
' defval='0'/>
<option type='bool' id='WARNINGS' docs='
The WARNINGS tag can be used to turn on/off the warning messages that are
generated by doxygen. Possible values are YES and NO. If left blank
NO is used.
' defval='1'/>
<option type='bool' id='WARN_IF_UNDOCUMENTED' docs='
If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings
for undocumented members. If EXTRACT_ALL is set to YES then this flag will
automatically be disabled.
' defval='1'/>
<option type='bool' id='WARN_IF_DOC_ERROR' docs='
If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for
potential errors in the documentation, such as not documenting some
parameters in a documented function, or documenting parameters that
don&apos;t exist or using markup commands wrongly.
' defval='1'/>
<option type='bool' id='WARN_NO_PARAMDOC' docs='
This WARN_NO_PARAMDOC option can be abled to get warnings for
functions that are documented, but have no documentation for their parameters
or return value. If set to NO (the default) doxygen will only warn about
wrong or incomplete parameter documentation, but not about the absence of
documentation.
' defval='0'/>
<option type='string' id='WARN_FORMAT' format='string' docs='
The WARN_FORMAT tag determines the format of the warning messages that
doxygen can produce. The string should contain the $file, $line, and $text
tags, which will be replaced by the file and line number from which the
warning originated and the warning text. Optionally the format may contain
$version, which will be replaced by the version of the file (if it could
be obtained via FILE_VERSION_FILTER)
' defval='$file:$line: $text'/>
<option type='string' id='WARN_LOGFILE' format='file' docs='
The WARN_LOGFILE tag can be used to specify a file to which warning
and error messages should be written. If left blank the output is written
to stderr.
' defval=''/>
</group>
<group name='Input' docs='configuration options related to the input files'>
<option type='list' id='INPUT' format='filedir' docs='
The INPUT tag can be used to specify the files and/or directories that contain
documented source files. You may enter file names like &quot;myfile.cpp&quot; or
directories like &quot;/usr/src/myproject&quot;. Separate the files or directories
with spaces.
'>
<value name='/Users/dimitri/doxygen/mail/1.5.7/doxywizard'/>
</option>
<option type='string' id='INPUT_ENCODING' format='string' docs='
This tag can be used to specify the character encoding of the source files
that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is
also the default input encoding. Doxygen uses libiconv (or the iconv built
into libc) for the transcoding. See http://www.gnu.org/software/libiconv for
the list of possible encodings.
' defval='UTF-8'/>
<option type='list' id='FILE_PATTERNS' format='string' docs='
If the value of the INPUT tag contains directories, you can use the
FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
and *.h) to filter out the source-files in the directories. If left
blank the following patterns are tested:
*.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx
*.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.py *.f90
'>
<value name='*.c'/>
<value name='*.cc'/>
<value name='*.cxx'/>
<value name='*.cpp'/>
<value name='*.c++'/>
<value name='*.d'/>
<value name='*.java'/>
<value name='*.ii'/>
<value name='*.ixx'/>
<value name='*.ipp'/>
<value name='*.i++'/>
<value name='*.inl'/>
<value name='*.h'/>
<value name='*.hh'/>
<value name='*.hxx'/>
<value name='*.hpp'/>
<value name='*.h++'/>
<value name='*.idl'/>
<value name='*.odl'/>
<value name='*.cs'/>
<value name='*.php'/>
<value name='*.php3'/>
<value name='*.inc'/>
<value name='*.m'/>
<value name='*.mm'/>
<value name='*.dox'/>
<value name='*.py'/>
<value name='*.f90'/>
<value name='*.f'/>
<value name='*.vhd'/>
<value name='*.vhdl'/>
</option>
<option type='bool' id='RECURSIVE' docs='
The RECURSIVE tag can be used to turn specify whether or not subdirectories
should be searched for input files as well. Possible values are YES and NO.
If left blank NO is used.
' defval='0'/>
<option type='list' id='EXCLUDE' format='filedir' docs='
The EXCLUDE tag can be used to specify files and/or directories that should
excluded from the INPUT source files. This way you can easily exclude a
subdirectory from a directory tree whose root is specified with the INPUT tag.
'>
</option>
<option type='bool' id='EXCLUDE_SYMLINKS' docs='
The EXCLUDE_SYMLINKS tag can be used select whether or not files or
directories that are symbolic links (a Unix filesystem feature) are excluded
from the input.
' defval='0'/>
<option type='list' id='EXCLUDE_PATTERNS' format='string' docs='
If the value of the INPUT tag contains directories, you can use the
EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude
certain files from those directories. Note that the wildcards are matched
against the file with absolute path, so to exclude all test directories
for example use the pattern */test/*
'>
</option>
<option type='list' id='EXCLUDE_SYMBOLS' format='string' docs='
The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names
(namespaces, classes, functions, etc.) that should be excluded from the
output. The symbol name can be a fully qualified name, a word, or if the
wildcard * is used, a substring. Examples: ANamespace, AClass,
AClass::ANamespace, ANamespace::*Test
'>
</option>
<option type='list' id='EXAMPLE_PATH' format='dir' docs='
The EXAMPLE_PATH tag can be used to specify one or more files or
directories that contain example code fragments that are included (see
the \include command).
'>
</option>
<option type='list' id='EXAMPLE_PATTERNS' format='string' docs='
If the value of the EXAMPLE_PATH tag contains directories, you can use the
EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
and *.h) to filter out the source-files in the directories. If left
blank all files are included.
'>
<value name='*'/>
</option>
<option type='bool' id='EXAMPLE_RECURSIVE' docs='
If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be
searched for input files to be used with the \include or \dontinclude
commands irrespective of the value of the RECURSIVE tag.
Possible values are YES and NO. If left blank NO is used.
' defval='0'/>
<option type='list' id='IMAGE_PATH' format='dir' docs='
The IMAGE_PATH tag can be used to specify one or more files or
directories that contain image that are included in the documentation (see
the \image command).
'>
</option>
<option type='string' id='INPUT_FILTER' format='file' docs='
The INPUT_FILTER tag can be used to specify a program that doxygen should
invoke to filter for each input file. Doxygen will invoke the filter program
by executing (via popen()) the command &lt;filter&gt; &lt;input-file&gt;, where &lt;filter&gt;
is the value of the INPUT_FILTER tag, and &lt;input-file&gt; is the name of an
input file. Doxygen will then use the output that the filter program writes
to standard output. If FILTER_PATTERNS is specified, this tag will be
ignored.
' defval=''/>
<option type='list' id='FILTER_PATTERNS' format='file' docs='
The FILTER_PATTERNS tag can be used to specify filters on a per file pattern
basis. Doxygen will compare the file name with each pattern and apply the
filter if there is a match. The filters are a list of the form:
pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further
info on how filters are used. If FILTER_PATTERNS is empty, INPUT_FILTER
is applied to all files.
'>
</option>
<option type='bool' id='FILTER_SOURCE_FILES' docs='
If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using
INPUT_FILTER) will be used to filter the input files when producing source
files to browse (i.e. when SOURCE_BROWSER is set to YES).
' defval='0'/>
</group>
<group name='Source Browser' docs='configuration options related to source browsing'>
<option type='bool' id='SOURCE_BROWSER' docs='
If the SOURCE_BROWSER tag is set to YES then a list of source files will
be generated. Documented entities will be cross-referenced with these sources.
Note: To get rid of all source code in the generated output, make sure also
VERBATIM_HEADERS is set to NO.
' defval='0'/>
<option type='bool' id='INLINE_SOURCES' docs='
Setting the INLINE_SOURCES tag to YES will include the body
of functions and classes directly in the documentation.
' defval='0'/>
<option type='bool' id='STRIP_CODE_COMMENTS' docs='
Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct
doxygen to hide any special comment blocks from generated source code
fragments. Normal C and C++ comments will always remain visible.
' defval='1'/>
<option type='bool' id='REFERENCED_BY_RELATION' docs='
If the REFERENCED_BY_RELATION tag is set to YES
then for each documented function all documented
functions referencing it will be listed.
' defval='0'/>
<option type='bool' id='REFERENCES_RELATION' docs='
If the REFERENCES_RELATION tag is set to YES
then for each documented function all documented entities
called/used by that function will be listed.
' defval='0'/>
<option type='bool' id='REFERENCES_LINK_SOURCE' docs='
If the REFERENCES_LINK_SOURCE tag is set to YES (the default)
and SOURCE_BROWSER tag is set to YES, then the hyperlinks from
functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will
link to the source code. Otherwise they will link to the documentation.
' defval='1'/>
<option type='bool' id='USE_HTAGS' docs='
If the USE_HTAGS tag is set to YES then the references to source code
will point to the HTML generated by the htags(1) tool instead of doxygen
built-in source browser. The htags tool is part of GNU&apos;s global source
tagging system (see http://www.gnu.org/software/global/global.html). You
will need version 4.8.6 or higher.
' defval='0' depends='SOURCE_BROWSER'/>
<option type='bool' id='VERBATIM_HEADERS' docs='
If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen
will generate a verbatim copy of the header file for each class for
which an include is specified. Set to NO to disable this.
' defval='1'/>
</group>
<group name='Index' docs='configuration options related to the alphabetical class index'>
<option type='bool' id='ALPHABETICAL_INDEX' docs='
If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index
of all compounds will be generated. Enable this if the project
contains a lot of classes, structs, unions or interfaces.
' defval='0'/>
<option type='int' id='COLS_IN_ALPHA_INDEX' docs='
If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then
the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns
in which this list will be split (can be a number in the range [1..20])
' minval='1' maxval='20' defval='5'/>
<option type='list' id='IGNORE_PREFIX' format='string' docs='
In case all classes in a project start with a common prefix, all
classes will be put under the same header in the alphabetical index.
The IGNORE_PREFIX tag can be used to specify one or more prefixes that
should be ignored while generating the index headers.
'>
</option>
</group>
<group name='HTML' docs='configuration options related to the HTML output'>
<option type='bool' id='GENERATE_HTML' docs='
If the GENERATE_HTML tag is set to YES (the default) Doxygen will
generate HTML output.
' defval='1'/>
<option type='string' id='HTML_OUTPUT' format='dir' docs='
The HTML_OUTPUT tag is used to specify where the HTML docs will be put.
If a relative path is entered the value of OUTPUT_DIRECTORY will be
put in front of it. If left blank `html&apos; will be used as the default path.
' defval='html' depends='GENERATE_HTML'/>
<option type='string' id='HTML_FILE_EXTENSION' format='string' docs='
The HTML_FILE_EXTENSION tag can be used to specify the file extension for
each generated HTML page (for example: .htm,.php,.asp). If it is left blank
doxygen will generate files with .html extension.
' defval='.html' depends='GENERATE_HTML'/>
<option type='string' id='HTML_HEADER' format='file' docs='
The HTML_HEADER tag can be used to specify a personal HTML header for
each generated HTML page. If it is left blank doxygen will generate a
standard header.
' defval='' depends='GENERATE_HTML'/>
<option type='string' id='HTML_FOOTER' format='file' docs='
The HTML_FOOTER tag can be used to specify a personal HTML footer for
each generated HTML page. If it is left blank doxygen will generate a
standard footer.
' defval='' depends='GENERATE_HTML'/>
<option type='string' id='HTML_STYLESHEET' format='file' docs='
The HTML_STYLESHEET tag can be used to specify a user-defined cascading
style sheet that is used by each HTML page. It can be used to
fine-tune the look of the HTML output. If the tag is left blank doxygen
will generate a default style sheet. Note that doxygen will try to copy
the style sheet file to the HTML output directory, so don&apos;t put your own
stylesheet in the HTML output directory as well, or it will be erased!
' defval='' depends='GENERATE_HTML'/>
<option type='bool' id='HTML_ALIGN_MEMBERS' docs='
If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes,
files or namespaces will be aligned in HTML using tables. If set to
NO a bullet list will be used.
' defval='1' depends='GENERATE_HTML'/>
<option type='bool' id='HTML_DYNAMIC_SECTIONS' docs='
If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML
documentation will contain sections that can be hidden and shown after the
page has loaded. For this to work a browser that supports
JavaScript and DHTML is required (for instance Mozilla 1.0+, Firefox
Netscape 6.0+, Internet explorer 5.0+, Konqueror, or Safari).
' defval='0' depends='GENERATE_HTML'/>
<option type='bool' id='GENERATE_DOCSET' docs='
If the GENERATE_DOCSET tag is set to YES, additional index files
will be generated that can be used as input for Apple&apos;s Xcode 3
integrated development environment, introduced with OSX 10.5 (Leopard).
To create a documentation set, doxygen will generate a Makefile in the
HTML output directory. Running make will produce the docset in that
directory and running &quot;make install&quot; will install the docset in
~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find
it at startup.
See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html for more information.
' defval='0' depends='GENERATE_HTML'/>
<option type='string' id='DOCSET_FEEDNAME' format='string' docs='
When GENERATE_DOCSET tag is set to YES, this tag determines the name of the
feed. A documentation feed provides an umbrella under which multiple
documentation sets from a single provider (such as a company or product suite)
can be grouped.
' defval='Doxygen generated docs' depends='GENERATE_DOCSET'/>
<option type='string' id='DOCSET_BUNDLE_ID' format='string' docs='
When GENERATE_DOCSET tag is set to YES, this tag specifies a string that
should uniquely identify the documentation set bundle. This should be a
reverse domain-name style string, e.g. com.mycompany.MyDocSet. Doxygen
will append .docset to the name.
' defval='org.doxygen.Project' depends='GENERATE_DOCSET'/>
<option type='bool' id='GENERATE_HTMLHELP' docs='
If the GENERATE_HTMLHELP tag is set to YES, additional index files
will be generated that can be used as input for tools like the
Microsoft HTML help workshop to generate a compiled HTML help file (.chm)
of the generated HTML documentation.
' defval='0' depends='GENERATE_HTML'/>
<option type='string' id='CHM_FILE' format='file' docs='
If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can
be used to specify the file name of the resulting .chm file. You
can add a path in front of the file if the result should not be
written to the html output directory.
' defval='' depends='GENERATE_HTMLHELP'/>
<option type='string' id='HHC_LOCATION' format='file' docs='
If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can
be used to specify the location (absolute path including file name) of
the HTML help compiler (hhc.exe). If non-empty doxygen will try to run
the HTML help compiler on the generated index.hhp.
' defval='' depends='GENERATE_HTMLHELP'/>
<option type='bool' id='GENERATE_CHI' docs='
If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag
controls if a separate .chi index file is generated (YES) or that
it should be included in the master .chm file (NO).
' defval='0' depends='GENERATE_HTMLHELP'/>
<option type='string' id='CHM_INDEX_ENCODING' format='string' docs='
If the GENERATE_HTMLHELP tag is set to YES, the CHM_INDEX_ENCODING
is used to encode HtmlHelp index (hhk), content (hhc) and project file
content.
' defval='' depends='GENERATE_HTMLHELP'/>
<option type='bool' id='BINARY_TOC' docs='
If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag
controls whether a binary table of contents is generated (YES) or a
normal table of contents (NO) in the .chm file.
' defval='0' depends='GENERATE_HTMLHELP'/>
<option type='bool' id='TOC_EXPAND' docs='
The TOC_EXPAND flag can be set to YES to add extra items for group members
to the contents of the HTML help documentation and to the tree view.
' defval='0' depends='GENERATE_HTMLHELP'/>
<option type='bool' id='GENERATE_QHP' docs='
If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and QHP_VIRTUAL_FOLDER
are set, an additional index file will be generated that can be used as input for
Qt&apos;s qhelpgenerator to generate a Qt Compressed Help (.qch) of the generated
HTML documentation.
' defval='0' depends='GENERATE_HTML'/>
<option type='string' id='QCH_FILE' format='file' docs='
If the QHG_LOCATION tag is specified, the QCH_FILE tag can
be used to specify the file name of the resulting .qch file.
The path specified is relative to the HTML output folder.
' defval='' depends='GENERATE_QHP'/>
<option type='string' id='QHP_NAMESPACE' format='string' docs='
The QHP_NAMESPACE tag specifies the namespace to use when generating
Qt Help Project output. For more information please see
http://doc.trolltech.com/qthelpproject.html#namespace
' defval='' depends='GENERATE_QHP'/>
<option type='string' id='QHP_VIRTUAL_FOLDER' format='string' docs='
The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating
Qt Help Project output. For more information please see
http://doc.trolltech.com/qthelpproject.html#virtual-folders
' defval='doc' depends='GENERATE_QHP'/>
<option type='string' id='QHP_CUST_FILTER_NAME' format='string' docs='
If QHP_CUST_FILTER_NAME is set, it specifies the name of a custom filter to add.
For more information please see
http://doc.trolltech.com/qthelpproject.html#custom-filters
' defval='' depends='GENERATE_QHP'/>
<option type='string' id='QHP_CUST_FILTER_ATTRS' format='string' docs='
The QHP_CUST_FILT_ATTRS tag specifies the list of the attributes of the custom filter to add.For more information please see
&lt;a href=&quot;http://doc.trolltech.com/qthelpproject.html#custom-filters&quot;&gt;Qt Help Project / Custom Filters&lt;/a&gt;.
' defval='' depends='GENERATE_QHP'/>
<option type='string' id='QHP_SECT_FILTER_ATTRS' format='string' docs='
The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this project&apos;s
filter section matches.
&lt;a href=&quot;http://doc.trolltech.com/qthelpproject.html#filter-attributes&quot;&gt;Qt Help Project / Filter Attributes&lt;/a&gt;.
' defval='' depends='GENERATE_QHP'/>
<option type='string' id='QHG_LOCATION' format='file' docs='
If the GENERATE_QHP tag is set to YES, the QHG_LOCATION tag can
be used to specify the location of Qt&apos;s qhelpgenerator.
If non-empty doxygen will try to run qhelpgenerator on the generated
.qhp file.
' defval='' depends='GENERATE_QHP'/>
<option type='bool' id='DISABLE_INDEX' docs='
The DISABLE_INDEX tag can be used to turn on/off the condensed index at
top of each HTML page. The value NO (the default) enables the index and
the value YES disables it.
' defval='0' depends='GENERATE_HTML'/>
<option type='int' id='ENUM_VALUES_PER_LINE' docs='
This tag can be used to set the number of enum values (range [1..20])
that doxygen will group on one line in the generated HTML documentation.
' minval='1' maxval='20' defval='4' depends='GENERATE_HTML'/>
<option type='enum' id='GENERATE_TREEVIEW' defval='NONE' docs='
The GENERATE_TREEVIEW tag is used to specify whether a tree-like index
structure should be generated to display hierarchical information.
If the tag value is set to FRAME, a side panel will be generated
containing a tree-like index structure (just like the one that
is generated for HTML Help). For this to work a browser that supports
JavaScript, DHTML, CSS and frames is required (for instance Mozilla 1.0+,
Netscape 6.0+, Internet explorer 5.0+, or Konqueror). Windows users are
probably better off using the HTML help feature. Other possible values
for this tag are: HIERARCHIES, which will generate the Groups, Directories,
and Class Hierarchy pages using a tree view instead of an ordered list;
ALL, which combines the behavior of FRAME and HIERARCHIES; and NONE, which
disables this behavior completely. For backwards compatibility with previous
releases of Doxygen, the values YES and NO are equivalent to FRAME and NONE
respectively.
' depends='GENERATE_HTML'>
<value name='NONE'/>
<value name='FRAME'/>
<value name='HIERARCHIES'/>
<value name='ALL'/>
</option>
<option type='int' id='TREEVIEW_WIDTH' docs='
If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be
used to set the initial width (in pixels) of the frame in which the tree
is shown.
' minval='0' maxval='1500' defval='250' depends='GENERATE_HTML'/>
<option type='int' id='FORMULA_FONTSIZE' docs='
Use this tag to change the font size of Latex formulas included
as images in the HTML documentation. The default is 10. Note that
when you change the font size after a successful doxygen run you need
to manually remove any form_*.png images from the HTML output directory
to force them to be regenerated.
' minval='8' maxval='50' defval='10' depends='GENERATE_HTML'/>
</group>
<group name='LaTeX' docs='configuration options related to the LaTeX output'>
<option type='bool' id='GENERATE_LATEX' docs='
If the GENERATE_LATEX tag is set to YES (the default) Doxygen will
generate Latex output.
' defval='1'/>
<option type='string' id='LATEX_OUTPUT' format='dir' docs='
The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put.
If a relative path is entered the value of OUTPUT_DIRECTORY will be
put in front of it. If left blank `latex&apos; will be used as the default path.
' defval='latex' depends='GENERATE_LATEX'/>
<option type='string' id='LATEX_CMD_NAME' format='file' docs='
The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be
invoked. If left blank `latex&apos; will be used as the default command name.
' defval='latex' depends='GENERATE_LATEX'/>
<option type='string' id='MAKEINDEX_CMD_NAME' format='file' docs='
The MAKEINDEX_CMD_NAME tag can be used to specify the command name to
generate index for LaTeX. If left blank `makeindex&apos; will be used as the
default command name.
' defval='makeindex' depends='GENERATE_LATEX'/>
<option type='bool' id='COMPACT_LATEX' docs='
If the COMPACT_LATEX tag is set to YES Doxygen generates more compact
LaTeX documents. This may be useful for small projects and may help to
save some trees in general.
' defval='0' depends='GENERATE_LATEX'/>
<option type='enum' id='PAPER_TYPE' defval='a4wide' docs='
The PAPER_TYPE tag can be used to set the paper type that is used
by the printer. Possible values are: a4, a4wide, letter, legal and
executive. If left blank a4wide will be used.
' depends='GENERATE_LATEX'>
<value name='a4'/>
<value name='a4wide'/>
<value name='letter'/>
<value name='legal'/>
<value name='executive'/>
</option>
<option type='list' id='EXTRA_PACKAGES' format='string' docs='
The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX
packages that should be included in the LaTeX output.
' depends='GENERATE_LATEX'>
</option>
<option type='string' id='LATEX_HEADER' format='file' docs='
The LATEX_HEADER tag can be used to specify a personal LaTeX header for
the generated latex document. The header should contain everything until
the first chapter. If it is left blank doxygen will generate a
standard header. Notice: only use this tag if you know what you are doing!
' defval='' depends='GENERATE_LATEX'/>
<option type='bool' id='PDF_HYPERLINKS' docs='
If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated
is prepared for conversion to pdf (using ps2pdf). The pdf file will
contain links (just like the HTML output) instead of page references
This makes the output suitable for online browsing using a pdf viewer.
' defval='1' depends='GENERATE_LATEX'/>
<option type='bool' id='USE_PDFLATEX' docs='
If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of
plain latex in the generated Makefile. Set this option to YES to get a
higher quality PDF documentation.
' defval='1' depends='GENERATE_LATEX'/>
<option type='bool' id='LATEX_BATCHMODE' docs='
If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode.
command to the generated LaTeX files. This will instruct LaTeX to keep
running if errors occur, instead of asking the user for help.
This option is also used when generating formulas in HTML.
' defval='0' depends='GENERATE_LATEX'/>
<option type='bool' id='LATEX_HIDE_INDICES' docs='
If LATEX_HIDE_INDICES is set to YES then doxygen will not
include the index chapters (such as File Index, Compound Index, etc.)
in the output.
' defval='0' depends='GENERATE_LATEX'/>
</group>
<group name='RTF' docs='configuration options related to the RTF output'>
<option type='bool' id='GENERATE_RTF' docs='
If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output
The RTF output is optimized for Word 97 and may not look very pretty with
other RTF readers or editors.
' defval='0'/>
<option type='string' id='RTF_OUTPUT' format='dir' docs='
The RTF_OUTPUT tag is used to specify where the RTF docs will be put.
If a relative path is entered the value of OUTPUT_DIRECTORY will be
put in front of it. If left blank `rtf&apos; will be used as the default path.
' defval='rtf' depends='GENERATE_RTF'/>
<option type='bool' id='COMPACT_RTF' docs='
If the COMPACT_RTF tag is set to YES Doxygen generates more compact
RTF documents. This may be useful for small projects and may help to
save some trees in general.
' defval='0' depends='GENERATE_RTF'/>
<option type='bool' id='RTF_HYPERLINKS' docs='
If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated
will contain hyperlink fields. The RTF file will
contain links (just like the HTML output) instead of page references.
This makes the output suitable for online browsing using WORD or other
programs which support those fields.
Note: wordpad (write) and others do not support links.
' defval='0' depends='GENERATE_RTF'/>
<option type='string' id='RTF_STYLESHEET_FILE' format='file' docs='
Load stylesheet definitions from file. Syntax is similar to doxygen&apos;s
config file, i.e. a series of assignments. You only have to provide
replacements, missing definitions are set to their default value.
' defval='' depends='GENERATE_RTF'/>
<option type='string' id='RTF_EXTENSIONS_FILE' format='file' docs='
Set optional variables used in the generation of an rtf document.
Syntax is similar to doxygen&apos;s config file.
' defval='' depends='GENERATE_RTF'/>
</group>
<group name='Man' docs='configuration options related to the man page output'>
<option type='bool' id='GENERATE_MAN' docs='
If the GENERATE_MAN tag is set to YES (the default) Doxygen will
generate man pages
' defval='0'/>
<option type='string' id='MAN_OUTPUT' format='dir' docs='
The MAN_OUTPUT tag is used to specify where the man pages will be put.
If a relative path is entered the value of OUTPUT_DIRECTORY will be
put in front of it. If left blank `man&apos; will be used as the default path.
' defval='man' depends='GENERATE_MAN'/>
<option type='string' id='MAN_EXTENSION' format='string' docs='
The MAN_EXTENSION tag determines the extension that is added to
the generated man pages (default is the subroutine&apos;s section .3)
' defval='.3' depends='GENERATE_MAN'/>
<option type='bool' id='MAN_LINKS' docs='
If the MAN_LINKS tag is set to YES and Doxygen generates man output,
then it will generate one additional man file for each entity
documented in the real man page(s). These additional files
only source the real man page, but without them the man command
would be unable to find the correct page. The default is NO.
' defval='0' depends='GENERATE_MAN'/>
</group>
<group name='XML' docs='configuration options related to the XML output'>
<option type='bool' id='GENERATE_XML' docs='
If the GENERATE_XML tag is set to YES Doxygen will
generate an XML file that captures the structure of
the code including all documentation.
' defval='0'/>
<option type='string' id='XML_OUTPUT' format='dir' docs='
The XML_OUTPUT tag is used to specify where the XML pages will be put.
If a relative path is entered the value of OUTPUT_DIRECTORY will be
put in front of it. If left blank `xml&apos; will be used as the default path.
' defval='xml' depends='GENERATE_XML'/>
<option type='string' id='XML_SCHEMA' format='string' docs='
The XML_SCHEMA tag can be used to specify an XML schema,
which can be used by a validating XML parser to check the
syntax of the XML files.
' defval='' depends='GENERATE_XML'/>
<option type='string' id='XML_DTD' format='string' docs='
The XML_DTD tag can be used to specify an XML DTD,
which can be used by a validating XML parser to check the
syntax of the XML files.
' defval='' depends='GENERATE_XML'/>
<option type='bool' id='XML_PROGRAMLISTING' docs='
If the XML_PROGRAMLISTING tag is set to YES Doxygen will
dump the program listings (including syntax highlighting
and cross-referencing information) to the XML output. Note that
enabling this will significantly increase the size of the XML output.
' defval='1' depends='GENERATE_XML'/>
</group>
<group name='DEF' docs='configuration options for the AutoGen Definitions output'>
<option type='bool' id='GENERATE_AUTOGEN_DEF' docs='
If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will
generate an AutoGen Definitions (see autogen.sf.net) file
that captures the structure of the code including all
documentation. Note that this feature is still experimental
and incomplete at the moment.
' defval='0'/>
</group>
<group name='PerlMod' docs='configuration options related to the Perl module output'>
<option type='bool' id='GENERATE_PERLMOD' docs='
If the GENERATE_PERLMOD tag is set to YES Doxygen will
generate a Perl module file that captures the structure of
the code including all documentation. Note that this
feature is still experimental and incomplete at the
moment.
' defval='0'/>
<option type='bool' id='PERLMOD_LATEX' docs='
If the PERLMOD_LATEX tag is set to YES Doxygen will generate
the necessary Makefile rules, Perl scripts and LaTeX code to be able
to generate PDF and DVI output from the Perl module output.
' defval='0' depends='GENERATE_PERLMOD'/>
<option type='bool' id='PERLMOD_PRETTY' docs='
If the PERLMOD_PRETTY tag is set to YES the Perl module output will be
nicely formatted so it can be parsed by a human reader. This is useful
if you want to understand what is going on. On the other hand, if this
tag is set to NO the size of the Perl module output will be much smaller
and Perl will parse it just the same.
' defval='1' depends='GENERATE_PERLMOD'/>
<option type='string' id='PERLMOD_MAKEVAR_PREFIX' format='string' docs='
The names of the make variables in the generated doxyrules.make file
are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX.
This is useful so different doxyrules.make files included by the same
Makefile don&apos;t overwrite each other&apos;s variables.' defval='' depends='GENERATE_PERLMOD'/>
</group>
<group name='Preprocessor' docs='Configuration options related to the preprocessor '>
<option type='bool' id='ENABLE_PREPROCESSING' docs='
If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will
evaluate all C-preprocessor directives found in the sources and include
files.
' defval='1'/>
<option type='bool' id='MACRO_EXPANSION' docs='
If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro
names in the source code. If set to NO (the default) only conditional
compilation will be performed. Macro expansion can be done in a controlled
way by setting EXPAND_ONLY_PREDEF to YES.
' defval='0' depends='ENABLE_PREPROCESSING'/>
<option type='bool' id='EXPAND_ONLY_PREDEF' docs='
If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES
then the macro expansion is limited to the macros specified with the
PREDEFINED and EXPAND_AS_DEFINED tags.
' defval='0' depends='ENABLE_PREPROCESSING'/>
<option type='bool' id='SEARCH_INCLUDES' docs='
If the SEARCH_INCLUDES tag is set to YES (the default) the includes files
in the INCLUDE_PATH (see below) will be search if a #include is found.
' defval='1' depends='ENABLE_PREPROCESSING'/>
<option type='list' id='INCLUDE_PATH' format='dir' docs='
The INCLUDE_PATH tag can be used to specify one or more directories that
contain include files that are not input files but should be processed by
the preprocessor.
' depends='ENABLE_PREPROCESSING'>
</option>
<option type='list' id='INCLUDE_FILE_PATTERNS' format='string' docs='
You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard
patterns (like *.h and *.hpp) to filter out the header-files in the
directories. If left blank, the patterns specified with FILE_PATTERNS will
be used.
' depends='ENABLE_PREPROCESSING'>
</option>
<option type='list' id='PREDEFINED' format='string' docs='
The PREDEFINED tag can be used to specify one or more macro names that
are defined before the preprocessor is started (similar to the -D option of
gcc). The argument of the tag is a list of macros of the form: name
or name=definition (no spaces). If the definition and the = are
omitted =1 is assumed. To prevent a macro definition from being
undefined via #undef or recursively expanded use the := operator
instead of the = operator.
' depends='ENABLE_PREPROCESSING'>
</option>
<option type='list' id='EXPAND_AS_DEFINED' format='string' docs='
If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then
this tag can be used to specify a list of macro names that should be expanded.
The macro definition that is found in the sources will be used.
Use the PREDEFINED tag if you want to use a different macro definition.
' depends='ENABLE_PREPROCESSING'>
</option>
<option type='bool' id='SKIP_FUNCTION_MACROS' docs='
If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then
doxygen&apos;s preprocessor will remove all function-like macros that are alone
on a line, have an all uppercase name, and do not end with a semicolon. Such
function macros are typically used for boiler-plate code, and will confuse
the parser if not removed.
' defval='1' depends='ENABLE_PREPROCESSING'/>
</group>
<group name='External' docs='Configuration::additions related to external references '>
<option type='list' id='TAGFILES' format='file' docs='
The TAGFILES option can be used to specify one or more tagfiles.
Optionally an initial location of the external documentation
can be added for each tagfile. The format of a tag file without
this location is as follows:
TAGFILES = file1 file2 ...
Adding location for the tag files is done as follows:
TAGFILES = file1=loc1 &quot;file2 = loc2&quot; ...
where &quot;loc1&quot; and &quot;loc2&quot; can be relative or absolute paths or
URLs. If a location is present for each tag, the installdox tool
does not have to be run to correct the links.
Note that each tag file must have a unique name
(where the name does NOT include the path)
If a tag file is not located in the directory in which doxygen
is run, you must also specify the path to the tagfile here.
'>
</option>
<option type='string' id='GENERATE_TAGFILE' format='file' docs='
When a file name is specified after GENERATE_TAGFILE, doxygen will create
a tag file that is based on the input files it reads.
' defval=''/>
<option type='bool' id='ALLEXTERNALS' docs='
If the ALLEXTERNALS tag is set to YES all external classes will be listed
in the class index. If set to NO only the inherited external classes
will be listed.
' defval='0'/>
<option type='bool' id='EXTERNAL_GROUPS' docs='
If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed
in the modules index. If set to NO, only the current project&apos;s groups will
be listed.
' defval='1'/>
<option type='string' id='PERL_PATH' format='dir' docs='
The PERL_PATH should be the absolute path and name of the perl script
interpreter (i.e. the result of `which perl&apos;).
' defval='/usr/bin/perl'/>
</group>
<group name='Dot' docs='Configuration options related to the dot tool '>
<option type='bool' id='CLASS_DIAGRAMS' docs='
If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will
generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base
or super classes. Setting the tag to NO turns the diagrams off. Note that
this option is superseded by the HAVE_DOT option below. This is only a
fallback. It is recommended to install and use dot, since it yields more
powerful graphs.
' defval='1'/>
<option type='string' id='MSCGEN_PATH' format='string' docs='
You can define message sequence charts within doxygen comments using the \msc
command. Doxygen will then run the mscgen tool (see
http://www.mcternan.me.uk/mscgen/) to produce the chart and insert it in the
documentation. The MSCGEN_PATH tag allows you to specify the directory where
the mscgen tool resides. If left empty the tool is assumed to be found in the
default search path.
' defval=''/>
<option type='bool' id='HIDE_UNDOC_RELATIONS' docs='
If set to YES, the inheritance and collaboration graphs will hide
inheritance and usage relations if the target is undocumented
or is not a class.
' defval='1'/>
<option type='bool' id='HAVE_DOT' docs='
If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is
available from the path. This tool is part of Graphviz, a graph visualization
toolkit from AT&amp;T and Lucent Bell Labs. The other options in this section
have no effect if this option is set to NO (the default)
' defval='0'/>
<option type='string' id='DOT_FONTNAME' format='string' docs='
By default doxygen will write a font called FreeSans.ttf to the output
directory and reference it in all dot files that doxygen generates. This
font does not include all possible unicode characters however, so when you need
these (or just want a differently looking font) you can specify the font name
using DOT_FONTNAME. You need need to make sure dot is able to find the font,
which can be done by putting it in a standard location or by setting the
DOTFONTPATH environment variable or by setting DOT_FONTPATH to the directory
containing the font.
' defval='FreeSans' depends='HAVE_DOT'/>
<option type='int' id='DOT_FONTSIZE' docs='
The DOT_FONTSIZE tag can be used to set the size of the font of dot graphs.
The default size is 10pt.
' minval='4' maxval='24' defval='10' depends='HAVE_DOT'/>
<option type='string' id='DOT_FONTPATH' format='string' docs='
By default doxygen will tell dot to use the output directory to look for the
FreeSans.ttf font (which doxygen will put there itself). If you specify a
different font using DOT_FONTNAME you can set the path where dot
can find it using this tag.
' defval='' depends='HAVE_DOT'/>
<option type='bool' id='CLASS_GRAPH' docs='
If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen
will generate a graph for each documented class showing the direct and
indirect inheritance relations. Setting this tag to YES will force the
the CLASS_DIAGRAMS tag to NO.
' defval='1' depends='HAVE_DOT'/>
<option type='bool' id='COLLABORATION_GRAPH' docs='
If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen
will generate a graph for each documented class showing the direct and
indirect implementation dependencies (inheritance, containment, and
class references variables) of the class with other documented classes.
' defval='1' depends='HAVE_DOT'/>
<option type='bool' id='GROUP_GRAPHS' docs='
If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen
will generate a graph for groups, showing the direct groups dependencies
' defval='1' depends='HAVE_DOT'/>
<option type='bool' id='UML_LOOK' docs='
If the UML_LOOK tag is set to YES doxygen will generate inheritance and
collaboration diagrams in a style similar to the OMG&apos;s Unified Modeling
Language.
' defval='0' depends='HAVE_DOT'/>
<option type='bool' id='TEMPLATE_RELATIONS' docs='
If set to YES, the inheritance and collaboration graphs will show the
relations between templates and their instances.
' defval='0' depends='HAVE_DOT'/>
<option type='bool' id='INCLUDE_GRAPH' docs='
If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT
tags are set to YES then doxygen will generate a graph for each documented
file showing the direct and indirect include dependencies of the file with
other documented files.
' defval='1' depends='HAVE_DOT'/>
<option type='bool' id='INCLUDED_BY_GRAPH' docs='
If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and
HAVE_DOT tags are set to YES then doxygen will generate a graph for each
documented header file showing the documented files that directly or
indirectly include this file.
' defval='1' depends='HAVE_DOT'/>
<option type='bool' id='CALL_GRAPH' docs='
If the CALL_GRAPH and HAVE_DOT options are set to YES then
doxygen will generate a call dependency graph for every global function
or class method. Note that enabling this option will significantly increase
the time of a run. So in most cases it will be better to enable call graphs
for selected functions only using the \callgraph command.
' defval='0' depends='HAVE_DOT'/>
<option type='bool' id='CALLER_GRAPH' docs='
If the CALLER_GRAPH and HAVE_DOT tags are set to YES then
doxygen will generate a caller dependency graph for every global function
or class method. Note that enabling this option will significantly increase
the time of a run. So in most cases it will be better to enable caller
graphs for selected functions only using the \callergraph command.
' defval='0' depends='HAVE_DOT'/>
<option type='bool' id='GRAPHICAL_HIERARCHY' docs='
If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen
will graphical hierarchy of all classes instead of a textual one.
' defval='1' depends='HAVE_DOT'/>
<option type='bool' id='DIRECTORY_GRAPH' docs='
If the DIRECTORY_GRAPH, SHOW_DIRECTORIES and HAVE_DOT tags are set to YES
then doxygen will show the dependencies a directory has on other directories
in a graphical way. The dependency relations are determined by the #include
relations between the files in the directories.
' defval='1' depends='HAVE_DOT'/>
<option type='enum' id='DOT_IMAGE_FORMAT' defval='png' docs='
The DOT_IMAGE_FORMAT tag can be used to set the image format of the images
generated by dot. Possible values are png, jpg, or gif
If left blank png will be used.
' depends='HAVE_DOT'>
<value name='png'/>
<value name='jpg'/>
<value name='gif'/>
</option>
<option type='string' id='DOT_PATH' format='dir' docs='
The tag DOT_PATH can be used to specify the path where the dot tool can be
found. If left blank, it is assumed the dot tool can be found in the path.
' defval='' depends='HAVE_DOT'/>
<option type='list' id='DOTFILE_DIRS' format='dir' docs='
The DOTFILE_DIRS tag can be used to specify one or more directories that
contain dot files that are included in the documentation (see the
\dotfile command).
' depends='HAVE_DOT'>
</option>
<option type='int' id='DOT_GRAPH_MAX_NODES' docs='
The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of
nodes that will be shown in the graph. If the number of nodes in a graph
becomes larger than this value, doxygen will truncate the graph, which is
visualized by representing a node as a red box. Note that doxygen if the
number of direct children of the root node in a graph is already larger than
DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note
that the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH.
' minval='0' maxval='10000' defval='50' depends='HAVE_DOT'/>
<option type='int' id='MAX_DOT_GRAPH_DEPTH' docs='
The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the
graphs generated by dot. A depth value of 3 means that only nodes reachable
from the root by following a path via at most 3 edges will be shown. Nodes
that lay further from the root node will be omitted. Note that setting this
option to 1 or 2 may greatly reduce the computation time needed for large
code bases. Also note that the size of a graph can be further restricted by
DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction.
' minval='0' maxval='1000' defval='0' depends='HAVE_DOT'/>
<option type='bool' id='DOT_TRANSPARENT' docs='
Set the DOT_TRANSPARENT tag to YES to generate images with a transparent
background. This is disabled by default, because dot on Windows does not
seem to support this out of the box. Warning: Depending on the platform used,
enabling this option may lead to badly anti-aliased labels on the edges of
a graph (i.e. they become hard to read).
' defval='0' depends='HAVE_DOT'/>
<option type='bool' id='DOT_MULTI_TARGETS' docs='
Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output
files in one run (i.e. multiple -o and -T options on the command line). This
makes dot run faster, but since only newer versions of dot (&gt;1.8.10)
support this, this feature is disabled by default.
' defval='0' depends='HAVE_DOT'/>
<option type='bool' id='GENERATE_LEGEND' docs='
If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will
generate a legend page explaining the meaning of the various boxes and
arrows in the dot generated graphs.
' defval='1' depends='HAVE_DOT'/>
<option type='bool' id='DOT_CLEANUP' docs='
If the DOT_CLEANUP tag is set to YES (the default) Doxygen will
remove the intermediate dot files that are used to generate
the various graphs.
' defval='1' depends='HAVE_DOT'/>
</group>
<group name='Search' docs='Options related to the search engine'>
<option type='bool' id='SEARCHENGINE' docs='
The SEARCHENGINE tag specifies whether or not a search engine should be
used. If set to NO the values of all tags below this one will be ignored.
' defval='0'/>
<option type='obsolete' id='USE_WINDOWS_ENCODING'/>
<option type='obsolete' id='DETAILS_AT_TOP'/>
<option type='obsolete' id='QTHELP_FILE'/>
<option type='obsolete' id='QTHELP_CONFIG'/>
<option type='obsolete' id='DOXYGEN2QTHELP_LOC'/>
<option type='obsolete' id='MAX_DOT_GRAPH_WIDTH'/>
<option type='obsolete' id='MAX_DOT_GRAPH_HEIGHT'/>
<option type='obsolete' id='CGI_NAME'/>
<option type='obsolete' id='CGI_URL'/>
<option type='obsolete' id='DOC_URL'/>
<option type='obsolete' id='DOC_ABSPATH'/>
<option type='obsolete' id='BIN_ABSPATH'/>
<option type='obsolete' id='EXT_DOC_PATHS'/>
</group>
</doxygenconfig>
# python script to generate configoptions.cpp from config.xml
#
# Copyright (C) 1997-2008 by Dimitri van Heesch.
#
# Permission to use, copy, modify, and distribute this software and its
# documentation under the terms of the GNU General Public License is hereby
# granted. No representations are made about the suitability of this software
# for any purpose. It is provided "as is" without express or implied warranty.
# See the GNU General Public License for more details.
#
# Documents produced by Doxygen are derivative works derived from the
# input used in their production; they are not affected by this license.
#
import xml.dom.minidom
from xml.dom import minidom, Node
def addValues(var,node):
for n in node.childNodes:
if n.nodeType == Node.ELEMENT_NODE:
name = n.getAttribute('name');
print " %s->addValue(\"%s\");" % (var,name)
def parseOption(node):
name = node.getAttribute('id')
type = node.getAttribute('type')
format = node.getAttribute('format')
doc = node.getAttribute('docs')
defval = node.getAttribute('defval')
adefval = node.getAttribute('altdefval')
depends = node.getAttribute('depends')
# replace \ by \\, replace " by \", and ' ' by a newline with end string and start string at next line
docC = doc.strip().replace('\\','\\\\').replace('"','\\"').replace(' ',' \\n"\n "')
print " //----"
if type=='bool':
if len(adefval)>0:
enabled = adefval
else:
enabled = "TRUE" if defval=='1' else "FALSE"
print " cb = cfg->addBool("
print " \"%s\"," % (name)
print " \"%s\"," % (docC)
print " %s" % (enabled)
print " );"
if depends!='':
print " cb->addDependency(\"%s\");" % (depends)
elif type=='string':
print " cs = cfg->addString("
print " \"%s\"," % (name)
print " \"%s\"" % (docC)
print " );"
if defval!='':
print " cs->setDefaultValue(\"%s\");" % (defval)
if format=='file':
print " cs->setWidgetType(ConfigString::File);"
elif format=='dir':
print " cs->setWidgetType(ConfigString::Dir);"
if depends!='':
print " cs->addDependency(\"%s\");" % (depends)
elif type=='enum':
print " ce = cfg->addEnum("
print " \"%s\"," % (name)
print " \"%s\"," % (docC)
print " \"%s\"" % (defval)
print " );"
addValues("ce",node)
if depends!='':
print " ce->addDependency(\"%s\");" % (depends)
elif type=='int':
minval = node.getAttribute('minval')
maxval = node.getAttribute('maxval')
print " ci = cfg->addInt("
print " \"%s\"," % (name)
print " \"%s\"," % (docC)
print " %s,%s,%s" % (minval,maxval,defval)
print " );"
if depends!='':
print " ci->addDependency(\"%s\");" % (depends)
elif type=='list':
print " cl = cfg->addList("
print " \"%s\"," % (name)
print " \"%s\"" % (docC)
print " );"
addValues("cl",node)
if depends!='':
print " cl->addDependency(\"%s\");" % (depends)
if format=='file':
print " cl->setWidgetType(ConfigList::File);"
elif format=='dir':
print " cl->setWidgetType(ConfigList::Dir);"
elif format=='filedir':
print " cl->setWidgetType(ConfigList::FileAndDir);"
elif type=='obsolete':
print " cfg->addObsolete(\"%s\");" % (name)
def parseGroups(node):
name = node.getAttribute('name')
doc = node.getAttribute('docs')
print " //---------------------------------------------------------------------------";
print " cfg->addInfo(\"%s\",\"%s\");" % (name,doc)
print " //---------------------------------------------------------------------------";
print
for n in node.childNodes:
if n.nodeType == Node.ELEMENT_NODE:
parseOption(n)
def main():
doc = xml.dom.minidom.parse("config.xml")
elem = doc.documentElement
print "/* WARNING: This file is generated!"
print " * Do not edit this file, but edit config.xml instead and run"
print " * python configgen.py to regenerate this file!"
print " */"
print ""
print "#include \"configoptions.h\""
print "#include \"config.h\""
print "#include \"portable.h\""
print ""
print "void addConfigOptions(Config *cfg)"
print "{"
print " ConfigString *cs;"
print " ConfigEnum *ce;"
print " ConfigList *cl;"
print " ConfigInt *ci;"
print " ConfigBool *cb;"
print ""
for n in elem.childNodes:
if n.nodeType == Node.ELEMENT_NODE:
parseGroups(n)
print "}"
if __name__ == '__main__':
main()
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -1968,7 +1968,7 @@ QCString DotClassGraph::writeGraph(QTextStream &out, ...@@ -1968,7 +1968,7 @@ QCString DotClassGraph::writeGraph(QTextStream &out,
} }
else else
{ {
out << "\\includegraphics[width=" << width/2 << "pt]"; out << "\\includegraphics[width=" << width << "pt]";
} }
out << "{" << baseName << "}\n" out << "{" << baseName << "}\n"
"\\end{center}\n" "\\end{center}\n"
......
...@@ -9295,13 +9295,17 @@ void readConfiguration(int argc, char **argv) ...@@ -9295,13 +9295,17 @@ void readConfiguration(int argc, char **argv)
if (genConfig) if (genConfig)
{ {
checkConfiguration();
generateConfigFile(configName,shortList);
if (g_dumpConfigAsXML) if (g_dumpConfigAsXML)
{ {
checkConfiguration();
generateConfigFile(configName,shortList);
dumpConfigAsXML(); dumpConfigAsXML();
exit(0); exit(0);
} }
else
{
generateConfigFile(configName,shortList);
}
cleanUpDoxygen(); cleanUpDoxygen();
exit(0); exit(0);
} }
......
...@@ -68,6 +68,10 @@ a.qindexHL { ...@@ -68,6 +68,10 @@ a.qindexHL {
border: 1px double #9295C2; border: 1px double #9295C2;
} }
.contents a.qindexHL:visited {
color: #ffffff;
}
a.el { a.el {
font-weight: bold; font-weight: bold;
} }
......
...@@ -68,6 +68,10 @@ ...@@ -68,6 +68,10 @@
" border: 1px double #9295C2;\n" " border: 1px double #9295C2;\n"
"}\n" "}\n"
"\n" "\n"
".contents a.qindexHL:visited {\n"
" color: #ffffff;\n"
"}\n"
"\n"
"a.el {\n" "a.el {\n"
" font-weight: bold;\n" " font-weight: bold;\n"
"}\n" "}\n"
......
...@@ -33,3 +33,4 @@ ...@@ -33,3 +33,4 @@
#define LANG_AR #define LANG_AR
#define LANG_FA #define LANG_FA
#define LANG_VI #define LANG_VI
#define LANG_TR
...@@ -137,6 +137,9 @@ ...@@ -137,6 +137,9 @@
#ifdef LANG_VI #ifdef LANG_VI
#include "translator_vi.h" #include "translator_vi.h"
#endif #endif
#ifdef LANG_TR
#include "translator_tr.h"
#endif
#endif // !ENGLISH_ONLY #endif // !ENGLISH_ONLY
#define L_EQUAL(a) !stricmp(langName,a) #define L_EQUAL(a) !stricmp(langName,a)
...@@ -382,6 +385,12 @@ bool setTranslator(const char *langName) ...@@ -382,6 +385,12 @@ bool setTranslator(const char *langName)
theTranslator=new TranslatorVietnamese; theTranslator=new TranslatorVietnamese;
} }
#endif #endif
#ifdef LANG_TR
else if (L_EQUAL("turkish"))
{
theTranslator=new TranslatorTurkish;
}
#endif
#endif // ENGLISH_ONLY #endif // ENGLISH_ONLY
else // use the default language (i.e. english) else // use the default language (i.e. english)
{ {
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include <stdio.h> #include <stdio.h>
#include <assert.h> #include <assert.h>
#include <ctype.h> #include <ctype.h>
#include <errno.h>
#include "qtbc.h" #include "qtbc.h"
#include <qarray.h> #include <qarray.h>
...@@ -53,6 +54,8 @@ struct FileState ...@@ -53,6 +54,8 @@ struct FileState
{ {
int lineNr; int lineNr;
FILE *filePtr; FILE *filePtr;
FILE *oldYYin;
bool isPlainFile;
YY_BUFFER_STATE bufState; YY_BUFFER_STATE bufState;
QCString fileName; QCString fileName;
}; };
...@@ -171,9 +174,9 @@ static Define *isDefined(const char *name) ...@@ -171,9 +174,9 @@ static Define *isDefined(const char *name)
return 0; return 0;
} }
static FILE *checkAndOpenFile(const QCString &fileName) static FileState *checkAndOpenFile(const QCString &fileName)
{ {
FILE *f = 0; FileState *fs = 0;
//printf("checkAndOpenFile(%s)\n",absName.data()); //printf("checkAndOpenFile(%s)\n",absName.data());
QFileInfo fi(fileName); QFileInfo fi(fileName);
if (fi.exists() && fi.isFile()) if (fi.exists() && fi.isFile())
...@@ -183,7 +186,6 @@ static FILE *checkAndOpenFile(const QCString &fileName) ...@@ -183,7 +186,6 @@ static FILE *checkAndOpenFile(const QCString &fileName)
QStack<FileState> tmpStack; QStack<FileState> tmpStack;
g_includeStack.setAutoDelete(FALSE); g_includeStack.setAutoDelete(FALSE);
FileState *fs;
bool alreadyIncluded=FALSE; bool alreadyIncluded=FALSE;
while ((fs=g_includeStack.pop())) while ((fs=g_includeStack.pop()))
{ {
...@@ -198,24 +200,33 @@ static FILE *checkAndOpenFile(const QCString &fileName) ...@@ -198,24 +200,33 @@ static FILE *checkAndOpenFile(const QCString &fileName)
if (alreadyIncluded) return 0; if (alreadyIncluded) return 0;
fs = new FileState;
QCString filterName = getFileFilter(absName); QCString filterName = getFileFilter(absName);
if (!filterName.isEmpty()) if (!filterName.isEmpty())
{ {
fs->isPlainFile = FALSE;
QCString cmd = filterName+" \""+absName+"\""; QCString cmd = filterName+" \""+absName+"\"";
f=portable_popen(cmd,"r"); fs->filePtr=portable_popen(cmd,"r");
if (!f) err("Error: could not execute filter %s\n",cmd.data()); if (!fs->filePtr) err("Error: could not execute filter %s\n",cmd.data());
} }
else else
{ {
f=fopen(absName,"r"); fs->isPlainFile = TRUE;
if (!f) err("Error: could not open file %s for reading\n",absName.data()); fs->filePtr=fopen(absName,"r");
if (!fs->filePtr) err("Error: could not open file %s for reading\n",absName.data());
}
if (!fs->filePtr) // error -> cleanup
{
delete fs;
fs=0;
} }
fs->oldYYin = preYYin;
} }
return f; return fs;
} }
static FILE *findFile(const char *fileName,bool localInclude) static FileState *findFile(const char *fileName,bool localInclude)
{ {
//printf("** findFile(%s,%d) g_yyFileName=%s\n",fileName,localInclude,g_yyFileName.data()); //printf("** findFile(%s,%d) g_yyFileName=%s\n",fileName,localInclude,g_yyFileName.data());
if (localInclude && !g_yyFileName.isEmpty()) if (localInclude && !g_yyFileName.isEmpty())
...@@ -224,12 +235,12 @@ static FILE *findFile(const char *fileName,bool localInclude) ...@@ -224,12 +235,12 @@ static FILE *findFile(const char *fileName,bool localInclude)
if (fi.exists()) if (fi.exists())
{ {
QCString absName = QCString(fi.dirPath(TRUE).data())+"/"+fileName; QCString absName = QCString(fi.dirPath(TRUE).data())+"/"+fileName;
FILE *f = checkAndOpenFile(absName); FileState *fs = checkAndOpenFile(absName);
if (f) if (fs)
{ {
setFileName(absName); setFileName(absName);
g_yyLineNr=1; g_yyLineNr=1;
return f; return fs;
} }
} }
} }
...@@ -241,12 +252,12 @@ static FILE *findFile(const char *fileName,bool localInclude) ...@@ -241,12 +252,12 @@ static FILE *findFile(const char *fileName,bool localInclude)
while (s) while (s)
{ {
QCString absName = (QCString)s+"/"+fileName; QCString absName = (QCString)s+"/"+fileName;
FILE *f = checkAndOpenFile(absName); FileState *fs = checkAndOpenFile(absName);
if (f) if (fs)
{ {
setFileName(absName); setFileName(absName);
g_yyLineNr=1; g_yyLineNr=1;
return f; return fs;
} }
s=g_pathList->next(); s=g_pathList->next();
...@@ -1116,14 +1127,14 @@ static void readIncludeFile(const QCString &inc) ...@@ -1116,14 +1127,14 @@ static void readIncludeFile(const QCString &inc)
// extract include path+name // extract include path+name
QCString incFileName=inc.mid(s,i-s).stripWhiteSpace(); QCString incFileName=inc.mid(s,i-s).stripWhiteSpace();
FILE *f;
QCString oldFileName = g_yyFileName.copy(); QCString oldFileName = g_yyFileName.copy();
FileDef *oldFileDef = g_yyFileDef; FileDef *oldFileDef = g_yyFileDef;
int oldLineNr = g_yyLineNr; int oldLineNr = g_yyLineNr;
//printf("Searching for `%s'\n",incFileName.data()); //printf("Searching for `%s'\n",incFileName.data());
// findFile will overwrite g_yyFileDef if found // findFile will overwrite g_yyFileDef if found
if ((f=findFile(incFileName,localInclude))) // see if the include file can be found FileState *fs;
if ((fs=findFile(incFileName,localInclude))) // see if the include file can be found
{ {
//printf("Found include file!\n"); //printf("Found include file!\n");
if (Debug::isFlagSet(Debug::Preprocessor)) if (Debug::isFlagSet(Debug::Preprocessor))
...@@ -1142,11 +1153,9 @@ static void readIncludeFile(const QCString &inc) ...@@ -1142,11 +1153,9 @@ static void readIncludeFile(const QCString &inc)
g_yyFileDef->addIncludedByDependency(oldFileDef,oldFileDef->docName(),localInclude,g_isImported); g_yyFileDef->addIncludedByDependency(oldFileDef,oldFileDef->docName(),localInclude,g_isImported);
} }
} }
FileState *fs=new FileState;
fs->bufState=YY_CURRENT_BUFFER; fs->bufState=YY_CURRENT_BUFFER;
fs->lineNr=oldLineNr; fs->lineNr=oldLineNr;
fs->fileName=oldFileName; fs->fileName=oldFileName;
fs->filePtr=f;
// push the state on the stack // push the state on the stack
g_includeStack.push(fs); g_includeStack.push(fs);
// set the scanner to the include file // set the scanner to the include file
...@@ -1158,7 +1167,7 @@ static void readIncludeFile(const QCString &inc) ...@@ -1158,7 +1167,7 @@ static void readIncludeFile(const QCString &inc)
outputArray(lineStr.data(),lineStr.length()); outputArray(lineStr.data(),lineStr.length());
//fprintf(stderr,"Switching to include file %s\n",incFileName.data()); //fprintf(stderr,"Switching to include file %s\n",incFileName.data());
preYYin=f; preYYin=fs->filePtr;
yy_switch_to_buffer(yy_create_buffer(preYYin, YY_BUF_SIZE)); yy_switch_to_buffer(yy_create_buffer(preYYin, YY_BUF_SIZE));
} }
else else
...@@ -1253,7 +1262,7 @@ static char resolveTrigraph(char c) ...@@ -1253,7 +1262,7 @@ static char resolveTrigraph(char c)
static int yyread(char *buf,int max_size) static int yyread(char *buf,int max_size)
{ {
int len = fread( buf, 1, max_size, yyin ); int len = fread( buf, 1, max_size, preYYin );
if (len==0 && ferror( yyin )) if (len==0 && ferror( yyin ))
{ {
yy_fatal_error( "input in flex scanner failed" ); yy_fatal_error( "input in flex scanner failed" );
...@@ -2175,14 +2184,27 @@ CHARLIT (("'"\\[0-7]{1,3}"'")|("'"\\."'")|("'"[^'\\\n]{1,4}"'")) ...@@ -2175,14 +2184,27 @@ CHARLIT (("'"\\[0-7]{1,3}"'")|("'"\\."'")|("'"[^'\\\n]{1,4}"'"))
{ {
FileState *fs=g_includeStack.pop(); FileState *fs=g_includeStack.pop();
//fileDefineCache->merge(g_yyFileName,fs->fileName); //fileDefineCache->merge(g_yyFileName,fs->fileName);
if (getFileFilter(fs->fileName.data()).isEmpty()) if (fs->isPlainFile)
fclose(fs->filePtr); {
if (fs->filePtr && fclose(fs->filePtr)!=0)
{
err("Error: could not close file %s: %s\n",fs->fileName.data(),strerror(errno));
}
fs->filePtr=0;
}
else else
portable_pclose(fs->filePtr); {
if (fs->filePtr && portable_pclose(fs->filePtr)!=0)
{
err("Error: could not close pipe: %s\n",strerror(errno));
}
fs->filePtr=0;
}
YY_BUFFER_STATE oldBuf = YY_CURRENT_BUFFER; YY_BUFFER_STATE oldBuf = YY_CURRENT_BUFFER;
yy_switch_to_buffer( fs->bufState ); yy_switch_to_buffer( fs->bufState );
yy_delete_buffer( oldBuf ); yy_delete_buffer( oldBuf );
g_yyLineNr=fs->lineNr; g_yyLineNr=fs->lineNr;
preYYin = fs->oldYYin;
setFileName(fs->fileName.copy()); setFileName(fs->fileName.copy());
//fprintf(stderr,"######## FileName %s\n",g_yyFileName.data()); //fprintf(stderr,"######## FileName %s\n",g_yyFileName.data());
......
...@@ -4700,7 +4700,7 @@ TYPEDEFPREFIX (("typedef"{BN}+)?)((("volatile"|"const"){BN}+)?) ...@@ -4700,7 +4700,7 @@ TYPEDEFPREFIX (("typedef"{BN}+)?)((("volatile"|"const"){BN}+)?)
current->args += ' '; current->args += ' ';
current->args += name; current->args += name;
} }
<ClassVar,Bases>\n/{BN}* { <ClassVar,Bases>\n/{BN}*[^{,] {
if (!insideObjC) if (!insideObjC)
{ {
REJECT; REJECT;
...@@ -4708,7 +4708,7 @@ TYPEDEFPREFIX (("typedef"{BN}+)?)((("volatile"|"const"){BN}+)?) ...@@ -4708,7 +4708,7 @@ TYPEDEFPREFIX (("typedef"{BN}+)?)((("volatile"|"const"){BN}+)?)
else else
{ {
yyLineNr++; yyLineNr++;
//unput('{'); unput('{');
} }
} }
<ClassVar,Bases>"@end" { // empty ObjC interface <ClassVar,Bases>"@end" { // empty ObjC interface
......
/******************************************************************************
*
*
*
* Copyright (C) 1997-2008 by Dimitri van Heesch.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation under the terms of the GNU General Public License is hereby
* granted. No representations are made about the suitability of this software
* for any purpose. It is provided "as is" without express or implied warranty.
* See the GNU General Public License for more details.
*
* Documents produced by Doxygen are derivative works derived from the
* input used in their production; they are not affected by this license.
*
*/
#ifndef TRANSLATOR_TR_H
#define TRANSLATOR_TR_H
/*!
When defining a translator class for the new language, follow
the description in the documentation. One of the steps says
that you should copy the translator_en.h (this) file to your
translator_xx.h new file. Your new language should use the
Translator class as the base class. This means that you need to
implement exactly the same (pure virtual) methods as the
TranslatorEnglish does. Because of this, it is a good idea to
start with the copy of TranslatorEnglish and replace the strings
one by one.
It is not necessary to include "translator.h" or
"translator_adapter.h" here. The files are included in the
language.cpp correctly. Not including any of the mentioned
files frees the maintainer from thinking about whether the
first, the second, or both files should be included or not, and
why. This holds namely for localized translators because their
base class is changed occasionaly to adapter classes when the
Translator class changes the interface, or back to the
Translator class (by the local maintainer) when the localized
translator is made up-to-date again.
*/
class TranslatorTurkish : public Translator
{
public:
// --- Language control methods -------------------
/*! Used for identification of the language. The identification
* should not be translated. It should be replaced by the name
* of the language in English using lower-case characters only
* (e.g. "czech", "japanese", "russian", etc.). It should be equal to
* the identification used in language.cpp.
*/
virtual QCString idLanguage()
{ return "turkish"; }
/*! Used to get the LaTeX command(s) for the language support.
* This method should return string with commands that switch
* LaTeX to the desired language. For example
* <pre>"\\usepackage[german]{babel}\n"
* </pre>
* or
* <pre>"\\usepackage{polski}\n"
* "\\usepackage[latin2]{inputenc}\n"
* "\\usepackage[T1]{fontenc}\n"
* </pre>
*
* The English LaTeX does not use such commands. Because of this
* the empty string is returned in this implementation.
*/
virtual QCString latexLanguageSupportCommand()
{
return "";
}
/*! return the language charset. This will be used for the HTML output */
virtual QCString idLanguageCharset()
{
return "iso-8859-9";
}
// --- Language translation methods -------------------
/*! used in the compound documentation before a list of related fonksiyonlar. */
virtual QCString trRelatedFunctions()
{ return "İlgili Fonksiyonlar"; }
/*! subscript for the related fonksiyonlar. */
virtual QCString trRelatedSubscript()
{ return "(Not: Bu fonksiyonlar üye fonksiyon değildir.)"; }
/*! header that is put before the detailed description of files, classes and namespaces. */
virtual QCString trDetailedDescription()
{ return "Ayrıntılı tanımlama"; }
/*! header that is put before the list of typedefs. */
virtual QCString trMemberTypedefDocumentation()
{ return "Üye Typedef Dokümantasyonu"; }
/*! header that is put before the list of enumerations. */
virtual QCString trMemberEnumerationDocumentation()
{ return "Üye Enümerasyon Dokümantasyonu"; }
/*! header that is put before the list of member fonksiyonlar. */
virtual QCString trMemberFunctionDocumentation()
{ return "Üye Fonksiyon Dokümantasyonu"; }
/*! header that is put before the list of member attributes. */
virtual QCString trMemberDataDocumentation()
{
if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
{
return "Alan Dokümantasyonu";
}
else
{
return "Üye Veri Dokümantasyonu";
}
}
/*! this is the text of a link put after brief descriptions. */
virtual QCString trMore()
{ return "Ayrıntılar..."; }
/*! put in the class documentation */
virtual QCString trListOfAllMembers()
{ return "Tüm üyelerin listesi."; }
/*! used as the title of the "list of all members" page of a class */
virtual QCString trMemberList()
{ return "Üye Listesi"; }
/*! this is the first part of a sentence that is followed by a class name */
virtual QCString trThisIsTheListOfAllMembers()
{ return "Şu sınıfın tüm üyelerinin listesidir: "; }
/*! this is the remainder of the sentence after the class name */
virtual QCString trIncludingInheritedMembers()
{ return " (kalıtımla gelen üyeleri de içerir)."; }
/*! this is put at the author sections at the bottom of man pages.
* parameter s is name of the project name.
*/
virtual QCString trGeneratedAutomatically(const char *s)
{ QCString result="Doxygen tarafından";
if (s) result+=s+(QCString)" için ";
result+=" kaynak koddan otomatik üretilmiştir.";
return result;
}
/*! put after an enum name in the list of all members */
virtual QCString trEnumName()
{ return "enum adı"; }
/*! put after an enum value in the list of all members */
virtual QCString trEnumValue()
{ return "enum değeri"; }
/*! put after an undocumented member in the list of all members */
virtual QCString trDefinedIn()
{ return "tanımlandığı yer"; }
// quick reference sections
/*! This is put above each page as a link to the list of all groups of
* compounds or files (see the \\group command).
*/
virtual QCString trModules()
{ return "Modüller"; }
/*! This is put above each page as a link to the class hierarchy */
virtual QCString trClassHierarchy()
{ return "Sınıf Hiyerarşisi"; }
/*! This is put above each page as a link to the list of annotated classes */
virtual QCString trCompoundList()
{
if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
{
return "Veri Yapıları";
}
else
{
return "Sınıf Listesi";
}
}
/*! This is put above each page as a link to the list of documented files */
virtual QCString trFileList()
{ return "Dosya Listesi"; }
/*! This is put above each page as a link to all members of compounds. */
virtual QCString trCompoundMembers()
{
if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
{
return "Veri Alanları";
}
else
{
return "Sınıf Üyeleri";
}
}
/*! This is put above each page as a link to all members of files. */
virtual QCString trFileMembers()
{
if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
{
return "Globaller";
}
else
{
return "Dosya Üyeleri";
}
}
/*! This is put above each page as a link to all related pages. */
virtual QCString trRelatedPages()
{ return "İlgili Sayfalar"; }
/*! This is put above each page as a link to all examples. */
virtual QCString trExamples()
{ return "Örnekler"; }
/*! This is put above each page as a link to the search engine. */
virtual QCString trSearch()
{ return "Ara"; }
/*! This is an introduction to the class hierarchy. */
virtual QCString trClassHierarchyDescription()
{ return "Bu kalıtım listesi tamamen olmasa da yaklaşık "
"olarak alfabetik sıraya konulmuştur:";
}
/*! This is an introduction to the list with all files. */
virtual QCString trFileListDescription(bool extractAll)
{
QCString result="Bu liste tüm ";
if (!extractAll) result+="dokümante edilmiş ";
result+="dosyaları kısa açıklamalarıyla göstermektedir:";
return result;
}
/*! This is an introduction to the annotated compound list. */
virtual QCString trCompoundListDescription()
{
if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
{
return "Kısa tanımlarıyla birlikte veri yapıları:";
}
else
{
return "Kısa tanımlarıyla sınıflar, yapılar (struct), "
"birleşimler(union) ve arayüzler:";
}
}
/*! This is an introduction to the page with all class members. */
virtual QCString trCompoundMembersDescription(bool extractAll)
{
QCString result="Bu liste tüm ";
if (!extractAll)
{
result+="dokümante edilmiş ";
}
if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
{
result+="yapı(struct) ve birleşim(union) yapılarını içerir";
}
else
{
result+="sınıf üyelerini içerir";
}
result+=" ve ";
if (!extractAll)
{
if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
{
result+="her alanı yapı(struct)/birleşim(union) dokümantasyonuna bağlar:";
}
else
{
result+="her üye için sınıf dokümantasyonuna bağlar:";
}
}
else
{
if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
{
result+="ait olduğu yapı(struct)/birleşime(union) bağlar:";
}
else
{
result+="ait olduğu sınıfa bağlar:";
}
}
return result;
}
/*! This is an introduction to the page with all file members. */
virtual QCString trFileMembersDescription(bool extractAll)
{
QCString result="Bu liste tüm ";
if (!extractAll) result+="dokümante edilmiş ";
if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
{
result+="fonksiyonları, değişkenleri, makroları, enümerasyonları ve typedef\'leri içerir";
}
else
{
result+="dosya üyelerini içerir";
}
result+=" ve ";
if (extractAll)
result+="ait olduğu dosyalar bağlar:";
else
result+="dokümantasyona bağlar:";
return result;
}
/*! This is an introduction to the page with the list of all examples */
virtual QCString trExamplesDescription()
{ return "Tüm örneklerin listesi aşağıdadır:"; }
/*! This is an introduction to the page with the list of related pages */
virtual QCString trRelatedPagesDescription()
{ return "İlgili tüm dokümantasyon sayfalarının listesi aşağıdadır:"; }
/*! This is an introduction to the page with the list of class/file groups */
virtual QCString trModulesDescription()
{ return "Tüm modüllerin listesi aşağıdadır:"; }
// index titles (the project name is prepended for these)
/*! This is used in HTML as the title of index.html. */
virtual QCString trDocumentation()
{ return "Dokümantasyonu"; }
/*! This is used in LaTeX as the title of the chapter with the
* index of all groups.
*/
virtual QCString trModuleIndex()
{ return "Modül İndeksi"; }
/*! This is used in LaTeX as the title of the chapter with the
* class hierarchy.
*/
virtual QCString trHierarchicalIndex()
{ return "Hiyerarşik İndeksi"; }
/*! This is used in LaTeX as the title of the chapter with the
* annotated compound index.
*/
virtual QCString trCompoundIndex()
{
if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
{
return "Veri Yapıları İndeksi";
}
else
{
return "Sınıf İndeksi";
}
}
/*! This is used in LaTeX as the title of the chapter with the
* list of all files.
*/
virtual QCString trFileIndex()
{ return "Dosya İndeksi"; }
/*! This is used in LaTeX as the title of the chapter containing
* the documentation of all groups.
*/
virtual QCString trModuleDocumentation()
{ return "Modül Dokümantasyonu"; }
/*! This is used in LaTeX as the title of the chapter containing
* the documentation of all classes, structs and unions.
*/
virtual QCString trClassDocumentation()
{
if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
{
return "Veri Yapıları Dokümantasyonu";
}
else
{
return "Sınıf Dokümantasyonu";
}
}
/*! This is used in LaTeX as the title of the chapter containing
* the documentation of all files.
*/
virtual QCString trFileDocumentation()
{ return "Dosya Dokümantasyonu"; }
/*! This is used in LaTeX as the title of the chapter containing
* the documentation of all examples.
*/
virtual QCString trExampleDocumentation()
{ return "Örnek Dokümantasyonu"; }
/*! This is used in LaTeX as the title of the chapter containing
* the documentation of all related pages.
*/
virtual QCString trPageDocumentation()
{ return "Sayfa Dokümantasyonu"; }
/*! This is used in LaTeX as the title of the document */
virtual QCString trReferenceManual()
{ return "Referans Kitabı"; }
/*! This is used in the documentation of a file as a header before the
* list of defines
*/
virtual QCString trDefines()
{ return "Makrolar"; }
/*! This is used in the documentation of a file as a header before the
* list of function prototypes
*/
virtual QCString trFuncProtos()
{ return "Fonksiyon Prototipleri"; }
/*! This is used in the documentation of a file as a header before the
* list of typedefs
*/
virtual QCString trTypedefs()
{ return "Typedef\'ler"; }
/*! This is used in the documentation of a file as a header before the
* list of enumerations
*/
virtual QCString trEnumerations()
{ return "Enümerasyonlar"; }
/*! This is used in the documentation of a file as a header before the
* list of (global) functions
*/
virtual QCString trFunctions()
{ return "Fonksiyonlar"; }
/*! This is used in the documentation of a file as a header before the
* list of (global) variables
*/
virtual QCString trVariables()
{ return "Değişkenler"; }
/*! This is used in the documentation of a file as a header before the
* list of (global) variables
*/
virtual QCString trEnumerationValues()
{ return "Enümeratör"; }
/*! This is used in the documentation of a file before the list of
* documentation blocks for defines
*/
virtual QCString trDefineDocumentation()
{ return "Makro Dokümantasyonu"; }
/*! This is used in the documentation of a file/namespace before the list
* of documentation blocks for function prototypes
*/
virtual QCString trFunctionPrototypeDocumentation()
{ return "Fonksiyon Prototip Dokümantasyonu"; }
/*! This is used in the documentation of a file/namespace before the list
* of documentation blocks for typedefs
*/
virtual QCString trTypedefDocumentation()
{ return "Typedef Dokümantasyonu"; }
/*! This is used in the documentation of a file/namespace before the list
* of documentation blocks for enumeration types
*/
virtual QCString trEnumerationTypeDocumentation()
{ return "Enümerasyon Tipi Dokümantasyonu"; }
/*! This is used in the documentation of a file/namespace before the list
* of documentation blocks for functions
*/
virtual QCString trFunctionDocumentation()
{ return "Fonksiyon Dokümantasyonu"; }
/*! This is used in the documentation of a file/namespace before the list
* of documentation blocks for variables
*/
virtual QCString trVariableDocumentation()
{ return "Değişken Dokümantasyonu"; }
/*! This is used in the documentation of a file/namespace/group before
* the list of links to documented compounds
*/
virtual QCString trCompounds()
{
if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
{
return "Veri Yapıları";
}
else
{
return "Sınıflar";
}
}
/*! This is used in the standard footer of each page and indicates when
* the page was generated
*/
virtual QCString trGeneratedAt(const char *date,const char *projName)
{
QCString result=projName+(QCString)" için "+date;
if (projName) result+=(QCString)" tarihinde ";
result+=(QCString)" üreten: ";
return result;
}
/*! This is part of the sentence used in the standard footer of each page.
*/
virtual QCString trWrittenBy()
{
return "yazan";
}
/*! this text is put before a class diagram */
virtual QCString trClassDiagram(const char *clName)
{
return clName+(QCString)" için kalıtım şeması:";
}
/*! this text is generated when the \\internal command is used. */
virtual QCString trForInternalUseOnly()
{ return "İç kullanıma ayrılmıştır."; }
/*! this text is generated when the \\warning command is used. */
virtual QCString trWarning()
{ return "Uyarı"; }
/*! this text is generated when the \\version command is used. */
virtual QCString trVersion()
{ return "Sürüm"; }
/*! this text is generated when the \\date command is used. */
virtual QCString trDate()
{ return "Tarih"; }
/*! this text is generated when the \\return command is used. */
virtual QCString trReturns()
{ return "Döndürdüğü değer"; }
/*! this text is generated when the \\sa command is used. */
virtual QCString trSeeAlso()
{ return "Ayrıca Bakınız"; }
/*! this text is generated when the \\param command is used. */
virtual QCString trParameters()
{ return "Parametreler"; }
/*! this text is generated when the \\exception command is used. */
virtual QCString trExceptions()
{ return "İstisnalar"; }
/*! this text is used in the title page of a LaTeX document. */
virtual QCString trGeneratedBy()
{ return "Oluşturan"; }
//////////////////////////////////////////////////////////////////////////
// new since 0.49-990307
//////////////////////////////////////////////////////////////////////////
/*! used as the title of page containing all the index of all namespaces. */
virtual QCString trNamespaceList()
{ return "Namespace Listesi"; }
/*! used as an introduction to the namespace list */
virtual QCString trNamespaceListDescription(bool extractAll)
{
QCString result="Tüm ";
if (!extractAll) result+="dokümante edilmiş ";
result+="namespace\'lerin kısa tanımlarıyla listesi aşağıdadır:";
return result;
}
/*! used in the class documentation as a header before the list of all
* friends of a class
*/
virtual QCString trFriends()
{ return "Arkadaşları"; }
//////////////////////////////////////////////////////////////////////////
// new since 0.49-990405
//////////////////////////////////////////////////////////////////////////
/*! used in the class documentation as a header before the list of all
* related classes
*/
virtual QCString trRelatedFunctionDocumentation()
{ return "Arkadaş Ve İlgili Fonksiyon Dokümantasyonu"; }
//////////////////////////////////////////////////////////////////////////
// new since 0.49-990425
//////////////////////////////////////////////////////////////////////////
/*! used as the title of the HTML page of a class/struct/union */
virtual QCString trCompoundReference(const char *clName,
ClassDef::CompoundType compType,
bool isTemplate)
{
QCString result=(QCString)clName;
switch(compType)
{
case ClassDef::Class: result+=" Sınıf"; break;
case ClassDef::Struct: result+=" Yapı(Struct)"; break;
case ClassDef::Union: result+=" Birleşim(Union)"; break;
case ClassDef::Interface: result+=" Arayüz(Interface)"; break;
case ClassDef::Protocol: result+=" Protokol"; break;
case ClassDef::Category: result+=" Kategori"; break;
case ClassDef::Exception: result+=" İstisna"; break;
}
if (isTemplate) result+=" Şablon";
result+=" Referans";
return result;
}
/*! used as the title of the HTML page of a file */
virtual QCString trFileReference(const char *fileName)
{
QCString result=fileName;
result+=" Dosya Referansı";
return result;
}
/*! used as the title of the HTML page of a namespace */
virtual QCString trNamespaceReference(const char *namespaceName)
{
QCString result=namespaceName;
result+=" Namespace Referansı";
return result;
}
virtual QCString trPublicMembers()
{ return "Public Üye Fonksiyonlar"; }
virtual QCString trPublicSlots()
{ return "Public Slotlar"; }
virtual QCString trSignals()
{ return "Sinyaller"; }
virtual QCString trStaticPublicMembers()
{ return "Statik Public Üye Fonksiyonlar"; }
virtual QCString trProtectedMembers()
{ return "Korumalı Üye Fonksiyonlar"; }
virtual QCString trProtectedSlots()
{ return "Korumalı Slotlar"; }
virtual QCString trStaticProtectedMembers()
{ return "Statik Korumalı Üye Fonksiyonlar"; }
virtual QCString trPrivateMembers()
{ return "Özel Üye Fonksiyonlar"; }
virtual QCString trPrivateSlots()
{ return "Özel Slotlar"; }
virtual QCString trStaticPrivateMembers()
{ return "Statik Özel Üye Fonksiyonlar"; }
/*! this function is used to produce a comma-separated list of items.
* use generateMarker(i) to indicate where item i should be put.
*/
virtual QCString trWriteList(int numEntries)
{
QCString result;
int i;
// the inherits list contain `numEntries' classes
for (i=0;i<numEntries;i++)
{
// use generateMarker to generate placeholders for the class links!
result+=generateMarker(i); // generate marker for entry i in the list
// (order is left to right)
if (i!=numEntries-1) // not the last entry, so we need a separator
{
if (i<numEntries-2) // not the fore last entry
result+=", ";
else // the fore last entry
result+=" ve ";
}
}
return result;
}
/*! used in class documentation to produce a list of base classes,
* if class diagrams are disabled.
*/
virtual QCString trInheritsList(int numEntries)
{
return "Şu sınıflardan türemiştir : "+trWriteList(numEntries)+".";
}
/*! used in class documentation to produce a list of super classes,
* if class diagrams are disabled.
*/
virtual QCString trInheritedByList(int numEntries)
{
return "Şu sınıfların atasıdır : "+trWriteList(numEntries)+".";
}
/*! used in member documentation blocks to produce a list of
* members that are hidden by this one.
*/
virtual QCString trReimplementedFromList(int numEntries)
{
return "Şu üyeleri yeniden tanımlar : "+trWriteList(numEntries)+".";
}
/*! used in member documentation blocks to produce a list of
* all member that overwrite the implementation of this member.
*/
virtual QCString trReimplementedInList(int numEntries)
{
return "Şu üyeler tarafından yeniden tanımlanmıştır : "+trWriteList(numEntries)+".";
}
/*! This is put above each page as a link to all members of namespaces. */
virtual QCString trNamespaceMembers()
{ return "Namespace Üyeleri"; }
/*! This is an introduction to the page with all namespace members */
virtual QCString trNamespaceMemberDescription(bool extractAll)
{
QCString result="Bu liste tüm ";
if (!extractAll) result+="dokümante edilmiş ";
result+="namespace üyelerini listeler ve ";
if (extractAll)
result+="her üye için üye dokümantasyonuna bağlar:";
else
result+="ait olduğu namespace\'lere bağlar:";
return result;
}
/*! This is used in LaTeX as the title of the chapter with the
* index of all namespaces.
*/
virtual QCString trNamespaceIndex()
{ return "Namespace İndeksi"; }
/*! This is used in LaTeX as the title of the chapter containing
* the documentation of all namespaces.
*/
virtual QCString trNamespaceDocumentation()
{ return "Namespace Dokümantasyonu"; }
//////////////////////////////////////////////////////////////////////////
// new since 0.49-990522
//////////////////////////////////////////////////////////////////////////
/*! This is used in the documentation before the list of all
* namespaces in a file.
*/
virtual QCString trNamespaces()
{ return "Namespace\'ler"; }
//////////////////////////////////////////////////////////////////////////
// new since 0.49-990728
//////////////////////////////////////////////////////////////////////////
/*! This is put at the bottom of a class documentation page and is
* followed by a list of files that were used to generate the page.
*/
virtual QCString trGeneratedFromFiles(ClassDef::CompoundType compType,
bool single)
{ // here s is one of " Class", " Struct" or " Union"
// single is true implies a single file
QCString result=(QCString)"Bu ";
switch(compType)
{
case ClassDef::Class: result+="sınıf"; break;
case ClassDef::Struct: result+="yapı(struct)"; break;
case ClassDef::Union: result+="birleşim(union)"; break;
case ClassDef::Interface: result+="arayüz(interface)"; break;
case ClassDef::Protocol: result+="protokol"; break;
case ClassDef::Category: result+="kategori"; break;
case ClassDef::Exception: result+="istisna"; break;
}
result+=" için dokümantasyon aşağıdaki dosya";
if (single) result+=""; else result+="lar";
result+="dan üretilmiştir:";
return result;
}
/*! This is in the (quick) index as a link to the alphabetical compound
* list.
*/
virtual QCString trAlphabeticalList()
{ return "Alfabetik Liste"; }
//////////////////////////////////////////////////////////////////////////
// new since 0.49-990901
//////////////////////////////////////////////////////////////////////////
/*! This is used as the heading text for the retval command. */
virtual QCString trReturnValues()
{ return "Döndürdüğü değerler"; }
/*! This is in the (quick) index as a link to the main page (index.html)
*/
virtual QCString trMainPage()
{ return "Ana Sayfa"; }
/*! This is used in references to page that are put in the LaTeX
* documentation. It should be an abbreviation of the word page.
*/
virtual QCString trPageAbbreviation()
{ return "sf."; }
//////////////////////////////////////////////////////////////////////////
// new since 0.49-991003
//////////////////////////////////////////////////////////////////////////
virtual QCString trDefinedAtLineInSourceFile()
{
return "@1 dosyasının @0 numaralı satırında tanımlanmıştır.";
}
virtual QCString trDefinedInSourceFile()
{
return "@0 dosyasında tanımlanmıştır.";
}
//////////////////////////////////////////////////////////////////////////
// new since 0.49-991205
//////////////////////////////////////////////////////////////////////////
virtual QCString trDeprecated()
{
return "Kullanımdan kalkmıştır";
}
//////////////////////////////////////////////////////////////////////////
// new since 1.0.0
//////////////////////////////////////////////////////////////////////////
/*! this text is put before a collaboration diagram */
virtual QCString trCollaborationDiagram(const char *clName)
{
return clName+(QCString)" için işbirliği (collaboration) şeması:";
}
/*! this text is put before an include dependency graph */
virtual QCString trInclDepGraph(const char *fName)
{
return fName+(QCString)" için içerme bağımlılık grafiği:";
}
/*! header that is put before the list of constructor/destructors. */
virtual QCString trConstructorDocumentation()
{
return "Constructor & Destructor Dokümantasyonu";
}
/*! Used in the file documentation to point to the corresponding sources. */
virtual QCString trGotoSourceCode()
{
return "Bu dosyanın kaynak koduna git.";
}
/*! Used in the file sources to point to the corresponding documentation. */
virtual QCString trGotoDocumentation()
{
return "Bu dosyanın dokümantasyonuna git.";
}
/*! Text for the \\pre command */
virtual QCString trPrecondition()
{
return "Ön şart";
}
/*! Text for the \\post command */
virtual QCString trPostcondition()
{
return "Son şart (Postcondition)";
}
/*! Text for the \\invariant command */
virtual QCString trInvariant()
{
return "Değişmez(Invariant)";
}
/*! Text shown before a multi-line variable/enum initialization */
virtual QCString trInitialValue()
{
return "İlk değer:";
}
/*! Text used the source code in the file index */
virtual QCString trCode()
{
return "kod";
}
virtual QCString trGraphicalHierarchy()
{
return "Grafiksel Sınıf Hiyerarşisi";
}
virtual QCString trGotoGraphicalHierarchy()
{
return "Grafiksel sınıf hiyerarşisine git";
}
virtual QCString trGotoTextualHierarchy()
{
return "Metinsel sınıf hiyerarşisine git";
}
virtual QCString trPageIndex()
{
return "Sayfa İndeksi";
}
//////////////////////////////////////////////////////////////////////////
// new since 1.1.0
//////////////////////////////////////////////////////////////////////////
virtual QCString trNote()
{
return "Not";
}
virtual QCString trPublicTypes()
{
return "Public Tipler";
}
virtual QCString trPublicAttribs()
{
if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
{
return "Veri Alanları";
}
else
{
return "Public Özellikler(attribute)";
}
}
virtual QCString trStaticPublicAttribs()
{
return "Statik Public Özellikler(attribute)";
}
virtual QCString trProtectedTypes()
{
return "Korumalı Tipler";
}
virtual QCString trProtectedAttribs()
{
return "Korumalı Özellikler(attribute)";
}
virtual QCString trStaticProtectedAttribs()
{
return "Statik Korumalı Attributes";
}
virtual QCString trPrivateTypes()
{
return "Özel Tipler";
}
virtual QCString trPrivateAttribs()
{
return "Özel Özellikler(attribute)";
}
virtual QCString trStaticPrivateAttribs()
{
return "Statik Özel Özellikler(attribute)";
}
//////////////////////////////////////////////////////////////////////////
// new since 1.1.3
//////////////////////////////////////////////////////////////////////////
/*! Used as a marker that is put before a \\todo item */
virtual QCString trTodo()
{
return "Yapılacak";
}
/*! Used as the header of the todo list */
virtual QCString trTodoList()
{
return "Yapılacaklar Listesi";
}
//////////////////////////////////////////////////////////////////////////
// new since 1.1.4
//////////////////////////////////////////////////////////////////////////
virtual QCString trReferencedBy()
{
return "Referans veren";
}
virtual QCString trRemarks()
{
return "Dipnotlar";
}
virtual QCString trAttention()
{
return "Dikkat";
}
virtual QCString trInclByDepGraph()
{
return "Bu şekil hangi dosyaların doğrudan ya da "
"dolaylı olarak bu dosyayı içerdiğini gösterir:";
}
virtual QCString trSince()
{
return "Şu zamandan beri";
}
//////////////////////////////////////////////////////////////////////////
// new since 1.1.5
//////////////////////////////////////////////////////////////////////////
/*! title of the graph legend page */
virtual QCString trLegendTitle()
{
return "Şekil Lejantı";
}
/*! page explaining how the dot graph's should be interpreted
* The %A in the text below are to prevent link to classes called "A".
*/
virtual QCString trLegendDocs()
{
return
"Bu dosya doxygen tarafından üretilen grafiklerin nasıl anlaşılacağını "
"açıklar.<p>\n"
"Aşağıdaki örneğe bakalım:\n"
"\\code\n"
"/*! Sadeleşme yüzünden görünmeyen sınıf */\n"
"class Invisible { };\n\n"
"/*! Sadeleşmiş sınıf, kalıtım ilişkisi gizli */\n"
"class Truncated : public Invisible { };\n\n"
"/* Doxygen yorumlarıyla dokümante edilmemiş sınıf */\n"
"class Undocumented { };\n\n"
"/*! Public kalıtımla türetilen sınıf */\n"
"class PublicBase : public Truncated { };\n\n"
"/*! Bir şablon sınıfı */\n"
"template<class T> class Templ { };\n\n"
"/*! Korumalı kalıtımla türetilen sınıf */\n"
"class ProtectedBase { };\n\n"
"/*! Özel kalıtımla türetilen sınıf */\n"
"class PrivateBase { };\n\n"
"/*! Türetilen sınıf tarafından kullanılan sınıf */\n"
"class Used { };\n\n"
"/*! Pekçok sınıftan türeyen bir sınıf */\n"
"class Inherited : public PublicBase,\n"
" protected ProtectedBase,\n"
" private PrivateBase,\n"
" public Undocumented,\n"
" public Templ<int>\n"
"{\n"
" private:\n"
" Used *m_usedClass;\n"
"};\n"
"\\endcode\n"
"Bu kod aşağıdaki şemayı oluşturur:"
"<p><center><img alt=\"\" src=\"graph_legend."+Config_getEnum("DOT_IMAGE_FORMAT")+"\"></center>\n"
"<p>\n"
"Yukarıdaki şemadaki kutular aşağıda açıklanmıştır:\n"
"<ul>\n"
"<li>%A dolu gri kutu şemanın ait olduğu yapı(struct) ya da sınıfı "
"gösterir.\n"
"<li>%A siyah çerçeveli bir kutu dokümante edilmiş bir yapı(struct) ya da sınıfı gösterir.\n"
"<li>%A gri çerçeveli bir kutu dokümante edilmemiş bir yapı(struct) ya da sınıfı gösterir.\n"
"<li>%A kırmızı çerçeveli bir kutu tüm kalıtım/içerme ilişkileri gösterilmemiş ve dokümante "
"edilmiş bir yapı(struct) ya da sınıfı gösterir. %A şema belirlenen sınırlara "
"sığmıyorsa sadeleştirilir.\n"
"</ul>\n"
"Okların anlamı aşağıdaki gibidir:\n"
"<ul>\n"
"<li>%A koyu mavi ok iki sınıf arasındaki public kalıtım ilişkisini "
"göstermekte kullanılır.\n"
"<li>%A koyu yeşil ok korumalı kalıtımı gösterir.\n"
"<li>%A koyu kırmızı ok özel kalıtımı gösterir.\n"
"<li>%A mor kesikli çizgi bir sınıfın diğeri tarafından içeriliyor ya da kullanılıyor "
"olduğunu gösterir. Ok işaret edilen sınıfın hangi değişken(ler) tarafından erişildiğini "
"gösteren etiketle işaretleniştir.\n"
"<li>%A Sarı kesikli çizgi şablondan üretilen bir sınıf ve ilgili şablon sınıfı "
"arasındaki ilişkiyi gösterir. Ok türeyen sınıfın şablon parametreleriyle "
"etiketlenmiştir.\n"
"</ul>\n";
}
/*! text for the link to the legend page */
virtual QCString trLegend()
{
return "lejant";
}
//////////////////////////////////////////////////////////////////////////
// new since 1.2.0
//////////////////////////////////////////////////////////////////////////
/*! Used as a marker that is put before a test item */
virtual QCString trTest()
{
return "Test";
}
/*! Used as the header of the test list */
virtual QCString trTestList()
{
return "Test Listesi";
}
//////////////////////////////////////////////////////////////////////////
// new since 1.2.1
//////////////////////////////////////////////////////////////////////////
/*! Used as a section header for KDE-2 IDL methods */
virtual QCString trDCOPMethods()
{
return "DCOP Üye Fonksiyonlar";
}
//////////////////////////////////////////////////////////////////////////
// new since 1.2.2
//////////////////////////////////////////////////////////////////////////
/*! Used as a section header for IDL properties */
virtual QCString trProperties()
{
return "Özellikler";
}
/*! Used as a section header for IDL property documentation */
virtual QCString trPropertyDocumentation()
{
return "Özellik Dokümantasyonu";
}
//////////////////////////////////////////////////////////////////////////
// new since 1.2.4
//////////////////////////////////////////////////////////////////////////
/*! Used for Java classes in the summary section of Java packages */
virtual QCString trClasses()
{
if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
{
return "Veri Yapıları";
}
else
{
return "Sınıflar";
}
}
/*! Used as the title of a Java package */
virtual QCString trPackage(const char *name)
{
return (QCString)"Paket "+name;
}
/*! Title of the package index page */
virtual QCString trPackageList()
{
return "Paket Listesi";
}
/*! The description of the package index page */
virtual QCString trPackageListDescription()
{
return "Paketler ve kısa tanımları (var ise):";
}
/*! The link name in the Quick links header for each page */
virtual QCString trPackages()
{
return "Paketler";
}
/*! Text shown before a multi-line define */
virtual QCString trDefineValue()
{
return "Değer:";
}
//////////////////////////////////////////////////////////////////////////
// new since 1.2.5
//////////////////////////////////////////////////////////////////////////
/*! Used as a marker that is put before a \\bug item */
virtual QCString trBug()
{
return "Hata";
}
/*! Used as the header of the bug list */
virtual QCString trBugList()
{
return "Hata Listesi";
}
//////////////////////////////////////////////////////////////////////////
// new since 1.2.6
//////////////////////////////////////////////////////////////////////////
/*! Used as ansicpg for RTF file
*
* The following table shows the correlation of Charset name, Charset Value and
* <pre>
* Codepage number:
* Charset Name Charset Value(hex) Codepage number
* ------------------------------------------------------
* DEFAULT_CHARSET 1 (x01)
* SYMBOL_CHARSET 2 (x02)
* OEM_CHARSET 255 (xFF)
* ANSI_CHARSET 0 (x00) 1252
* RUSSIAN_CHARSET 204 (xCC) 1251
* EE_CHARSET 238 (xEE) 1250
* GREEK_CHARSET 161 (xA1) 1253
* TURKISH_CHARSET 162 (xA2) 1254
* BALTIC_CHARSET 186 (xBA) 1257
* HEBREW_CHARSET 177 (xB1) 1255
* ARABIC _CHARSET 178 (xB2) 1256
* SHIFTJIS_CHARSET 128 (x80) 932
* HANGEUL_CHARSET 129 (x81) 949
* GB2313_CHARSET 134 (x86) 936
* CHINESEBIG5_CHARSET 136 (x88) 950
* </pre>
*
*/
virtual QCString trRTFansicp()
{
return "1254";
}
/*! Used as ansicpg for RTF fcharset
* \see trRTFansicp() for a table of possible values.
*/
virtual QCString trRTFCharSet()
{
return "162";
}
/*! Used as header RTF general index */
virtual QCString trRTFGeneralIndex()
{
return "İndeks";
}
/*! This is used for translation of the word that will possibly
* be followed by a single name or by a list of names
* of the category.
*/
virtual QCString trClass(bool first_capital, bool singular)
{
QCString result((first_capital ? "Sınıf" : "sınıf"));
if (!singular) result+="lar";
return result;
}
/*! This is used for translation of the word that will possibly
* be followed by a single name or by a list of names
* of the category.
*/
virtual QCString trFile(bool first_capital, bool singular)
{
QCString result((first_capital ? "Dosya" : "dosya"));
if (!singular) result+="lar";
return result;
}
/*! This is used for translation of the word that will possibly
* be followed by a single name or by a list of names
* of the category.
*/
virtual QCString trNamespace(bool first_capital, bool singular)
{
QCString result((first_capital ? "Namespace" : "namespace"));
if (!singular) result+="\'ler";
return result;
}
/*! This is used for translation of the word that will possibly
* be followed by a single name or by a list of names
* of the category.
*/
virtual QCString trGroup(bool first_capital, bool singular)
{
QCString result((first_capital ? "Grup" : "grup"));
if (!singular) result+="lar";
return result;
}
/*! This is used for translation of the word that will possibly
* be followed by a single name or by a list of names
* of the category.
*/
virtual QCString trPage(bool first_capital, bool singular)
{
QCString result((first_capital ? "Sayfa" : "sayfa"));
if (!singular) result+="lar";
return result;
}
/*! This is used for translation of the word that will possibly
* be followed by a single name or by a list of names
* of the category.
*/
virtual QCString trMember(bool first_capital, bool singular)
{
QCString result((first_capital ? "Üye" : "üye"));
if (!singular) result+="ler";
return result;
}
/*! This is used for translation of the word that will possibly
* be followed by a single name or by a list of names
* of the category.
*/
virtual QCString trGlobal(bool first_capital, bool singular)
{
QCString result((first_capital ? "Global değişken" : "global değişken"));
if (!singular) result+="ler";
return result;
}
//////////////////////////////////////////////////////////////////////////
// new since 1.2.7
//////////////////////////////////////////////////////////////////////////
/*! This text is generated when the \\author command is used and
* for the author section in man pages. */
virtual QCString trAuthor(bool first_capital, bool singular)
{
QCString result((first_capital ? "Yazar" : "yazar"));
if (!singular) result+="lar";
return result;
}
//////////////////////////////////////////////////////////////////////////
// new since 1.2.11
//////////////////////////////////////////////////////////////////////////
/*! This text is put before the list of members referenced by a member
*/
virtual QCString trReferences()
{
return "Referanslar";
}
//////////////////////////////////////////////////////////////////////////
// new since 1.2.13
//////////////////////////////////////////////////////////////////////////
/*! used in member documentation blocks to produce a list of
* members that are implemented by this one.
*/
virtual QCString trImplementedFromList(int numEntries)
{
return "Şu üyeleri gerçekler: "+trWriteList(numEntries)+".";
}
/*! used in member documentation blocks to produce a list of
* all members that implement this abstract member.
*/
virtual QCString trImplementedInList(int numEntries)
{
return "Şu üyelerce gerçeklenir: "+trWriteList(numEntries)+".";
}
//////////////////////////////////////////////////////////////////////////
// new since 1.2.16
//////////////////////////////////////////////////////////////////////////
/*! used in RTF documentation as a heading for the Table
* of Contents.
*/
virtual QCString trRTFTableOfContents()
{
return "İçindekiler";
}
//////////////////////////////////////////////////////////////////////////
// new since 1.2.17
//////////////////////////////////////////////////////////////////////////
/*! Used as the header of the list of item that have been
* flagged deprecated
*/
virtual QCString trDeprecatedList()
{
return "Kullanımdan Kalkanlar Listesl";
}
//////////////////////////////////////////////////////////////////////////
// new since 1.2.18
//////////////////////////////////////////////////////////////////////////
/*! Used as a header for declaration section of the events found in
* a C# program
*/
virtual QCString trEvents()
{
return "Olaylar";
}
/*! Header used for the documentation section of a class' events. */
virtual QCString trEventDocumentation()
{
return "Olay Dokümantasyonu";
}
//////////////////////////////////////////////////////////////////////////
// new since 1.3
//////////////////////////////////////////////////////////////////////////
/*! Used as a heading for a list of Java class types with package scope.
*/
virtual QCString trPackageTypes()
{
return "Paket Tipleri";
}
/*! Used as a heading for a list of Java class fonksiyonlar with package
* scope.
*/
virtual QCString trPackageMembers()
{
return "Paket Fonksiyonlar";
}
/*! Used as a heading for a list of static Java class fonksiyonlar with
* package scope.
*/
virtual QCString trStaticPackageMembers()
{
return "Static Pakat Fonksiyonları";
}
/*! Used as a heading for a list of Java class variables with package
* scope.
*/
virtual QCString trPackageAttribs()
{
return "Packet Özellikleri(attribute)";
}
/*! Used as a heading for a list of static Java class variables with
* package scope.
*/
virtual QCString trStaticPackageAttribs()
{
return "Statik Packet Özellikleri(attribute)";
}
//////////////////////////////////////////////////////////////////////////
// new since 1.3.1
//////////////////////////////////////////////////////////////////////////
/*! Used in the quick index of a class/file/namespace member list page
* to link to the unfiltered list of all members.
*/
virtual QCString trAll()
{
return "Tümü";
}
/*! Put in front of the call graph for a function. */
virtual QCString trCallGraph()
{
return "Bu fonksiyon için çağırılma şeması:";
}
//////////////////////////////////////////////////////////////////////////
// new since 1.3.3
//////////////////////////////////////////////////////////////////////////
/*! When the search engine is enabled this text is put in the header
* of each page before the field where one can enter the text to search
* for.
*/
virtual QCString trSearchForIndex()
{
return "Arama yapılacak metin";
}
/*! This string is used as the title for the page listing the search
* results.
*/
virtual QCString trSearchResultsTitle()
{
return "Arama sonuçları";
}
/*! This string is put just before listing the search results. The
* text can be different depending on the number of documents found.
* Inside the text you can put the special marker $num to insert
* the number representing the actual number of search results.
* The @a numDocuments parameter can be either 0, 1 or 2, where the
* value 2 represents 2 or more matches. HTML markup is allowed inside
* the returned string.
*/
virtual QCString trSearchResults(int numDocuments)
{
if (numDocuments==0)
{
return "Üzgünüm, sorgunuzla eşleşen doküman bulunamadı.";
}
else if (numDocuments==1)
{
return "Sorgunuzla eşleşen <b>1</b> doküman bulundu.";
}
else
{
return "Sorgunuzla eşleşen <b>$num</b> doküman bulundu. "
"Önce en iyi eşleşmeler gösteriliyor.";
}
}
/*! This string is put before the list of matched words, for each search
* result. What follows is the list of words that matched the query.
*/
virtual QCString trSearchMatches()
{
return "Eşleşme:";
}
//////////////////////////////////////////////////////////////////////////
// new since 1.3.8
//////////////////////////////////////////////////////////////////////////
/*! This is used in HTML as the title of page with source code for file filename
*/
virtual QCString trSourceFile(QCString& filename)
{
return filename + " Kaynak Dosyası";
}
//////////////////////////////////////////////////////////////////////////
// new since 1.3.9
//////////////////////////////////////////////////////////////////////////
/*! This is used as the name of the chapter containing the directory
* hierarchy.
*/
virtual QCString trDirIndex()
{ return "Dizin Hiyerarşisi"; }
/*! This is used as the name of the chapter containing the documentation
* of the directories.
*/
virtual QCString trDirDocumentation()
{ return "Dizin Dokümantasyonu"; }
/*! This is used as the title of the directory index and also in the
* Quick links of an HTML page, to link to the directory hierarchy.
*/
virtual QCString trDirectories()
{ return "Dizinler"; }
/*! This returns a sentences that introduces the directory hierarchy.
* and the fact that it is sorted alphabetically per level
*/
virtual QCString trDirDescription()
{ return "Bu dizin hiyerarşisi tamamen olmasa da yaklaşık "
"olarak alfabetik sıraya konulmuştur:";
}
/*! This returns the title of a directory page. The name of the
* directory is passed via \a dirName.
*/
virtual QCString trDirReference(const char *dirName)
{ QCString result=dirName; result+=" Dizin Referansı"; return result; }
/*! This returns the word directory with or without starting capital
* (\a first_capital) and in sigular or plural form (\a singular).
*/
virtual QCString trDir(bool first_capital, bool singular)
{
QCString result((first_capital ? "Dizin" : "dizin"));
if (!singular) result+="ler";
return result;
}
//////////////////////////////////////////////////////////////////////////
// new since 1.4.1
//////////////////////////////////////////////////////////////////////////
/*! This text is added to the documentation when the \\overload command
* is used for a overloaded function.
*/
virtual QCString trOverloadText()
{
return "Bu çok anlamlı (overloaded) bir üye fonksiyondur, "
"tamamlık açısından burada verilmektedir. Yukarıdaki fonksiyondan "
"sadece aldığı argüman(lar) açısından farklıdır.";
}
//////////////////////////////////////////////////////////////////////////
// new since 1.4.6
//////////////////////////////////////////////////////////////////////////
/*! This is used to introduce a caller (or called-by) graph */
virtual QCString trCallerGraph()
{
return "Bu fonksiyon için çağırılma şeması:";
}
/*! This is used in the documentation of a file/namespace before the list
* of documentation blocks for enumeration values
*/
virtual QCString trEnumerationValueDocumentation()
{ return "Enümerasyon Dokümantasyonu"; }
//////////////////////////////////////////////////////////////////////////
// new since 1.5.4 (mainly for Fortran)
//////////////////////////////////////////////////////////////////////////
/*! header that is put before the list of member subprograms (Fortran). */
virtual QCString trMemberFunctionDocumentationFortran()
{ return "Üye Fonksiyon/Subroutine Dokümantasyonu"; }
/*! This is put above each page as a link to the list of annotated data types (Fortran). */
virtual QCString trCompoundListFortran()
{ return "Veri Tipleri Listesi"; }
/*! This is put above each page as a link to all members of compounds (Fortran). */
virtual QCString trCompoundMembersFortran()
{ return "Veri Alanları"; }
/*! This is an introduction to the annotated compound list (Fortran). */
virtual QCString trCompoundListDescriptionFortran()
{ return "Kısa tanımlarıyla veri tipleri:"; }
/*! This is an introduction to the page with all data types (Fortran). */
virtual QCString trCompoundMembersDescriptionFortran(bool extractAll)
{
QCString result="Bu liste tüm ";
if (!extractAll)
{
result+="dokümante edilmiş ";
}
result+="veri tiplerini içerir ve ";
if (!extractAll)
{
result+="her üyeyi veri yapısı dokümantasyonuna bağlar:";
}
else
{
result+="ait oldukları veri tiplerine bağlar:";
}
return result;
}
/*! This is used in LaTeX as the title of the chapter with the
* annotated compound index (Fortran).
*/
virtual QCString trCompoundIndexFortran()
{ return "Veri Tipi İndeksi"; }
/*! This is used in LaTeX as the title of the chapter containing
* the documentation of all data types (Fortran).
*/
virtual QCString trTypeDocumentation()
{ return "Veri Tipi Dokümantasyonu"; }
/*! This is used in the documentation of a file as a header before the
* list of (global) subprograms (Fortran).
*/
virtual QCString trSubprograms()
{ return "Fonksiyonlar/Subroutine\'ler"; }
/*! This is used in the documentation of a file/namespace before the list
* of documentation blocks for subprograms (Fortran)
*/
virtual QCString trSubprogramDocumentation()
{ return "Fonksiyon/Subroutine Dokümantasyonu"; }
/*! This is used in the documentation of a file/namespace/group before
* the list of links to documented compounds (Fortran)
*/
virtual QCString trDataTypes()
{ return "Veri Tipleri"; }
/*! used as the title of page containing all the index of all modules (Fortran). */
virtual QCString trModulesList()
{ return "Modüller Listesi"; }
/*! used as an introduction to the modules list (Fortran) */
virtual QCString trModulesListDescription(bool extractAll)
{
QCString result="Bu liste tüm ";
if (!extractAll) result+="dokümante edilmiş ";
result+="modülleri kısa tanımlarıya içerir:";
return result;
}
/*! used as the title of the HTML page of a module/type (Fortran) */
virtual QCString trCompoundReferenceFortran(const char *clName,
ClassDef::CompoundType compType,
bool isTemplate)
{
QCString result=(QCString)clName;
switch(compType)
{
case ClassDef::Class: result+=" Modül"; break;
case ClassDef::Struct: result+=" Tip"; break;
case ClassDef::Union: result+=" Birleşim(Union)"; break;
case ClassDef::Interface: result+=" Arayüz"; break;
case ClassDef::Protocol: result+=" Protokol"; break;
case ClassDef::Category: result+=" Kategori"; break;
case ClassDef::Exception: result+=" İstisna"; break;
}
if (isTemplate) result+=" Şablon";
result+=" Referans";
return result;
}
/*! used as the title of the HTML page of a module (Fortran) */
virtual QCString trModuleReference(const char *namespaceName)
{
QCString result=namespaceName;
result+=" Modül Referansı";
return result;
}
/*! This is put above each page as a link to all members of modules. (Fortran) */
virtual QCString trModulesMembers()
{ return "Modül Üyeleri"; }
/*! This is an introduction to the page with all modules members (Fortran) */
virtual QCString trModulesMemberDescription(bool extractAll)
{
QCString result="Bu liste tüm ";
if (!extractAll) result+="dokümante edilmiş ";
result+="modül üyelerini içerir ve ";
if (extractAll)
{
result+="her üyeyi modül dokümantasyonuna bağlar:";
}
else
{
result+="ait oldukları modüllere bağlar:";
}
return result;
}
/*! This is used in LaTeX as the title of the chapter with the
* index of all modules (Fortran).
*/
virtual QCString trModulesIndex()
{ return "Modüller Indeksi"; }
/*! This is used for translation of the word that will possibly
* be followed by a single name or by a list of names
* of the category.
*/
virtual QCString trModule(bool first_capital, bool singular)
{
QCString result((first_capital ? "Modül" : "modül"));
if (!singular) result+="ler";
return result;
}
/*! This is put at the bottom of a module documentation page and is
* followed by a list of files that were used to generate the page.
*/
virtual QCString trGeneratedFromFilesFortran(ClassDef::CompoundType compType,
bool single)
{ // here s is one of " Module", " Struct" or " Union"
// single is true implies a single file
QCString result=(QCString)"Bu ";
switch(compType)
{
case ClassDef::Class: result+="mdoül"; break;
case ClassDef::Struct: result+="tip"; break;
case ClassDef::Union: result+="birleşim(union)"; break;
case ClassDef::Interface: result+="arayüz"; break;
case ClassDef::Protocol: result+="protokol"; break;
case ClassDef::Category: result+="kategori"; break;
case ClassDef::Exception: result+="istisna"; break;
}
result+=" için dokümantasyon aşağıdaki dosya";
if (single) result+=":"; else result+="lar";
result="dan üretilmiştir:";
return result;
}
/*! This is used for translation of the word that will possibly
* be followed by a single name or by a list of names
* of the category.
*/
virtual QCString trType(bool first_capital, bool singular)
{
QCString result((first_capital ? "Tip" : "tip"));
if (!singular) result+="ler";
return result;
}
/*! This is used for translation of the word that will possibly
* be followed by a single name or by a list of names
* of the category.
*/
virtual QCString trSubprogram(bool first_capital, bool singular)
{
QCString result((first_capital ? "Alt program" : "alt program"));
if (!singular) result+="lar";
return result;
}
/*! C# Type Constraint list */
virtual QCString trTypeConstraints()
{
return "Tip Sınırlamaları";
}
};
#endif
...@@ -180,7 +180,7 @@ ...@@ -180,7 +180,7 @@
<Tool <Tool
Name="VCLinkerTool" Name="VCLinkerTool"
AdditionalOptions="/LTCG" AdditionalOptions="/LTCG"
AdditionalDependencies="qtools.lib libpng.lib zlib.lib iconv.lib" AdditionalDependencies="qtools.lib libpng.lib zlib.lib iconv.lib shell32.lib"
OutputFile="..\bin\doxygen.exe" OutputFile="..\bin\doxygen.exe"
LinkIncremental="1" LinkIncremental="1"
SuppressStartupBanner="true" SuppressStartupBanner="true"
......
...@@ -2,10 +2,9 @@ ...@@ -2,10 +2,9 @@
<VisualStudioProject <VisualStudioProject
ProjectType="Visual C++" ProjectType="Visual C++"
Version="8.00" Version="8.00"
Name="Doxywizard" Name="doxywizard"
ProjectGUID="{6E404596-D6B6-41A5-8F25-C52921A7C1BF}" ProjectGUID="{77C9C2D3-EA3F-3D59-8B4C-0ED852890172}"
RootNamespace="Doxywizard" Keyword="Qt4VSv1.0"
Keyword="Win32Proj"
> >
<Platforms> <Platforms>
<Platform <Platform
...@@ -13,33 +12,22 @@ ...@@ -13,33 +12,22 @@
/> />
</Platforms> </Platforms>
<ToolFiles> <ToolFiles>
<ToolFile
RelativePath=".\moc.rules"
/>
<ToolFile
RelativePath=".\Lex.rules"
/>
</ToolFiles> </ToolFiles>
<Configurations> <Configurations>
<Configuration <Configuration
Name="Debug|Win32" Name="Debug|Win32"
OutputDirectory="..\bin\Debug" OutputDirectory="."
IntermediateDirectory="$(ConfigurationName)\Doxywizard" IntermediateDirectory="obj\"
ConfigurationType="1" ConfigurationType="1"
CharacterSet="1" UseOfMFC="0"
ATLMinimizesCRunTimeLibraryUsage="false"
> >
<Tool <Tool
Name="VCPreBuildEventTool" Name="VCPreBuildEventTool"
/> />
<Tool
Name="moc"
/>
<Tool <Tool
Name="VCCustomBuildTool" Name="VCCustomBuildTool"
/> />
<Tool
Name="Lex"
/>
<Tool <Tool
Name="VCXMLDataGeneratorTool" Name="VCXMLDataGeneratorTool"
/> />
...@@ -48,39 +36,51 @@ ...@@ -48,39 +36,51 @@
/> />
<Tool <Tool
Name="VCMIDLTool" Name="VCMIDLTool"
WarningLevel="0"
DefaultCharType="0"
EnableErrorChecks="1"
/> />
<Tool <Tool
Name="VCCLCompilerTool" Name="VCCLCompilerTool"
Optimization="0" AdditionalOptions="-Zm200 -w34100 -w34189 -Zm200 -w34100 -w34189 -w34100 -w34189"
AdditionalIncludeDirectories="$(QTDIR)\include;..\src;." Optimization="4"
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;LIBICONV_STATIC;NODEBUG" AdditionalIncludeDirectories="&quot;..\..\..\Qt\4.4.3\include\QtCore&quot;,&quot;..\..\..\Qt\4.4.3\include\QtCore&quot;,&quot;..\..\..\Qt\4.4.3\include\QtGui&quot;,&quot;..\..\..\Qt\4.4.3\include\QtGui&quot;,&quot;..\..\..\Qt\4.4.3\include\QtXml&quot;,&quot;..\..\..\Qt\4.4.3\include\QtXml&quot;,&quot;..\..\..\Qt\4.4.3\include&quot;,&quot;..\addon\doxywizard&quot;,&quot;c:\Qt\4.4.3\include\ActiveQt&quot;,&quot;..\addon\doxywizard\moc&quot;,&quot;..\addon\doxywizard&quot;,&quot;.&quot;,..\..\..\Qt\4.4.3\mkspecs\win32-msvc2005"
MinimalRebuild="true" PreprocessorDefinitions="_WINDOWS,UNICODE,WIN32,QT_LARGEFILE_SUPPORT,QT_NO_CAST_FROM_ASCII,QT_NO_CAST_TO_ASCII,QT_XML_LIB,QT_GUI_LIB,QT_CORE_LIB,QT_THREAD_SUPPORT"
BasicRuntimeChecks="3" GeneratePreprocessedFile="0"
ExceptionHandling="1"
RuntimeLibrary="1" RuntimeLibrary="1"
UsePrecompiledHeader="0" BufferSecurityCheck="false"
TreatWChar_tAsBuiltInType="false"
RuntimeTypeInfo="true"
AssemblerListingLocation="obj\"
ObjectFile="obj\"
ProgramDataBaseFileName=".\"
WarningLevel="3" WarningLevel="3"
Detect64BitPortabilityProblems="true" SuppressStartupBanner="true"
DebugInformationFormat="4" DebugInformationFormat="3"
/> />
<Tool <Tool
Name="VCManagedResourceCompilerTool" Name="VCManagedResourceCompilerTool"
/> />
<Tool <Tool
Name="VCResourceCompilerTool" Name="VCResourceCompilerTool"
PreprocessorDefinitions="_WINDOWS,UNICODE,WIN32,QT_LARGEFILE_SUPPORT,QT_NO_CAST_FROM_ASCII,QT_NO_CAST_TO_ASCII,QT_XML_LIB,QT_GUI_LIB,QT_CORE_LIB,QT_THREAD_SUPPORT,_DEBUG"
/> />
<Tool <Tool
Name="VCPreLinkEventTool" Name="VCPreLinkEventTool"
/> />
<Tool <Tool
Name="VCLinkerTool" Name="VCLinkerTool"
AdditionalDependencies="$(QTDIR)\lib\qt-mt.lib $(QTDIR)\lib\qtmain.lib iconv.lib ws2_32.lib winmm.lib gdi32.lib imm32.lib advapi32.lib comdlg32.lib shell32.lib winspool.lib" IgnoreImportLibrary="true"
OutputFile="..\bin\Debug\doxywizard.exe" AdditionalOptions="&quot;/MANIFESTDEPENDENCY:type=&apos;win32&apos; name=&apos;Microsoft.Windows.Common-Controls&apos; version=&apos;6.0.0.0&apos; publicKeyToken=&apos;6595b64144ccf1df&apos; language=&apos;*&apos; processorArchitecture=&apos;*&apos;&quot; &quot;/MANIFESTDEPENDENCY:type=&apos;win32&apos; name=&apos;Microsoft.Windows.Common-Controls&apos; version=&apos;6.0.0.0&apos; publicKeyToken=&apos;6595b64144ccf1df&apos; language=&apos;*&apos; processorArchitecture=&apos;*&apos;&quot;"
LinkIncremental="2" AdditionalDependencies="c:\Qt\4.4.3\lib\qtmaind.lib c:\Qt\4.4.3\lib\QtXmld.lib c:\Qt\4.4.3\lib\QtGuid.lib c:\Qt\4.4.3\lib\QtCored.lib kernel32.lib user32.lib shell32.lib uuid.lib ole32.lib advapi32.lib ws2_32.lib gdi32.lib comdlg32.lib oleaut32.lib imm32.lib winmm.lib winspool.lib msimg32.lib"
GenerateManifest="false" OutputFile="debug\doxywizard.exe"
IgnoreDefaultLibraryNames="msvcrt.lib" SuppressStartupBanner="true"
AdditionalLibraryDirectories="c:\Qt\4.4.3\lib"
GenerateDebugInformation="true" GenerateDebugInformation="true"
ProgramDatabaseFile=""
SubSystem="2" SubSystem="2"
TargetMachine="1" LinkTimeCodeGeneration="0"
/> />
<Tool <Tool
Name="VCALinkTool" Name="VCALinkTool"
...@@ -109,24 +109,18 @@ ...@@ -109,24 +109,18 @@
</Configuration> </Configuration>
<Configuration <Configuration
Name="Release|Win32" Name="Release|Win32"
OutputDirectory="..\bin" OutputDirectory="$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory="$(ConfigurationName)\Doxywizard" IntermediateDirectory="obj\"
ConfigurationType="1" ConfigurationType="1"
CharacterSet="1" UseOfMFC="0"
WholeProgramOptimization="1" ATLMinimizesCRunTimeLibraryUsage="false"
> >
<Tool <Tool
Name="VCPreBuildEventTool" Name="VCPreBuildEventTool"
/> />
<Tool
Name="moc"
/>
<Tool <Tool
Name="VCCustomBuildTool" Name="VCCustomBuildTool"
/> />
<Tool
Name="Lex"
/>
<Tool <Tool
Name="VCXMLDataGeneratorTool" Name="VCXMLDataGeneratorTool"
/> />
...@@ -135,41 +129,54 @@ ...@@ -135,41 +129,54 @@
/> />
<Tool <Tool
Name="VCMIDLTool" Name="VCMIDLTool"
WarningLevel="0"
DefaultCharType="0"
EnableErrorChecks="1"
/> />
<Tool <Tool
Name="VCCLCompilerTool" Name="VCCLCompilerTool"
AdditionalIncludeDirectories="$(QTDIR)\include;..\src;." AdditionalOptions="-Zm200 -w34100 -w34189 -Zm200 -w34100 -w34189 -w34100 -w34189"
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;LIBICONV_STATIC;NODEBUG" Optimization="2"
AdditionalIncludeDirectories="&quot;..\..\..\Qt\4.4.3\include\QtCore&quot;,&quot;..\..\..\Qt\4.4.3\include\QtCore&quot;,&quot;..\..\..\Qt\4.4.3\include\QtGui&quot;,&quot;..\..\..\Qt\4.4.3\include\QtGui&quot;,&quot;..\..\..\Qt\4.4.3\include\QtXml&quot;,&quot;..\..\..\Qt\4.4.3\include\QtXml&quot;,&quot;..\..\..\Qt\4.4.3\include&quot;,&quot;..\addon\doxywizard&quot;,&quot;c:\Qt\4.4.3\include\ActiveQt&quot;,&quot;..\addon\doxywizard\moc&quot;,&quot;..\addon\doxywizard&quot;,&quot;.&quot;,..\..\..\Qt\4.4.3\mkspecs\win32-msvc2005"
PreprocessorDefinitions="QT_NO_DEBUG,NDEBUG,_WINDOWS,UNICODE,WIN32,QT_LARGEFILE_SUPPORT,QT_NO_CAST_FROM_ASCII,QT_NO_CAST_TO_ASCII,QT_NO_DEBUG,QT_XML_LIB,QT_GUI_LIB,QT_CORE_LIB,QT_THREAD_SUPPORT,NDEBUG"
GeneratePreprocessedFile="0"
ExceptionHandling="1"
RuntimeLibrary="0" RuntimeLibrary="0"
UsePrecompiledHeader="0" BufferSecurityCheck="false"
TreatWChar_tAsBuiltInType="false"
RuntimeTypeInfo="true"
AssemblerListingLocation="obj\"
ObjectFile="obj\"
ProgramDataBaseFileName=".\"
WarningLevel="3" WarningLevel="3"
Detect64BitPortabilityProblems="true" SuppressStartupBanner="true"
DebugInformationFormat="3" DebugInformationFormat="0"
DisableSpecificWarnings="4267"
/> />
<Tool <Tool
Name="VCManagedResourceCompilerTool" Name="VCManagedResourceCompilerTool"
/> />
<Tool <Tool
Name="VCResourceCompilerTool" Name="VCResourceCompilerTool"
PreprocessorDefinitions="QT_NO_DEBUG,NDEBUG,_WINDOWS,UNICODE,WIN32,QT_LARGEFILE_SUPPORT,QT_NO_CAST_FROM_ASCII,QT_NO_CAST_TO_ASCII,QT_NO_DEBUG,QT_XML_LIB,QT_GUI_LIB,QT_CORE_LIB,QT_THREAD_SUPPORT"
/> />
<Tool <Tool
Name="VCPreLinkEventTool" Name="VCPreLinkEventTool"
/> />
<Tool <Tool
Name="VCLinkerTool" Name="VCLinkerTool"
AdditionalDependencies="$(QTDIR)\lib\qt-mt.lib $(QTDIR)\lib\qtmain.lib iconv.lib ws2_32.lib winmm.lib gdi32.lib imm32.lib advapi32.lib comdlg32.lib shell32.lib winspool.lib" IgnoreImportLibrary="true"
AdditionalOptions="&quot;/MANIFESTDEPENDENCY:type=&apos;win32&apos; name=&apos;Microsoft.Windows.Common-Controls&apos; version=&apos;6.0.0.0&apos; publicKeyToken=&apos;6595b64144ccf1df&apos; language=&apos;*&apos; processorArchitecture=&apos;*&apos;&quot; &quot;/MANIFESTDEPENDENCY:type=&apos;win32&apos; name=&apos;Microsoft.Windows.Common-Controls&apos; version=&apos;6.0.0.0&apos; publicKeyToken=&apos;6595b64144ccf1df&apos; language=&apos;*&apos; processorArchitecture=&apos;*&apos;&quot;"
AdditionalDependencies="c:\Qt\4.4.3\lib\qtmain.lib c:\Qt\4.4.3\lib\QtXml.lib c:\Qt\4.4.3\lib\QtGui.lib c:\Qt\4.4.3\lib\QtCore.lib kernel32.lib user32.lib shell32.lib uuid.lib ole32.lib advapi32.lib ws2_32.lib gdi32.lib comdlg32.lib oleaut32.lib imm32.lib winmm.lib winspool.lib msimg32.lib"
OutputFile="..\bin\doxywizard.exe" OutputFile="..\bin\doxywizard.exe"
LinkIncremental="1" LinkIncremental="1"
GenerateManifest="false" SuppressStartupBanner="true"
AdditionalLibraryDirectories="c:\Qt\4.4.3\lib"
IgnoreAllDefaultLibraries="false" IgnoreAllDefaultLibraries="false"
IgnoreDefaultLibraryNames="msvcrt.lib" IgnoreDefaultLibraryNames="libcmtd.lib"
GenerateDebugInformation="false" GenerateDebugInformation="false"
ProgramDatabaseFile=""
SubSystem="2" SubSystem="2"
OptimizeReferences="2" LinkTimeCodeGeneration="0"
EnableCOMDATFolding="2"
EntryPointSymbol=""
TargetMachine="1"
/> />
<Tool <Tool
Name="VCALinkTool" Name="VCALinkTool"
...@@ -202,150 +209,374 @@ ...@@ -202,150 +209,374 @@
<Files> <Files>
<Filter <Filter
Name="Source Files" Name="Source Files"
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx" Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx"
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}" UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
> >
<File <File
RelativePath="..\src\config.cpp" RelativePath="..\addon\doxywizard\doxywizard.cpp"
> >
</File> </File>
<File <File
RelativePath="..\src\config.l" RelativePath="..\addon\doxywizard\expert.cpp"
>
<FileConfiguration
Name="Debug|Win32"
> >
<Tool </File>
Name="Lex" <File
CommandLine="flex -PconfigYY [AllOptions] [AdditionalOptions] [inputs]" RelativePath="..\addon\doxywizard\inputbool.cpp"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
> >
<Tool
Name="Lex"
CommandLine="flex -PconfigYY [AllOptions] [AdditionalOptions] [inputs]"
/>
</FileConfiguration>
</File> </File>
<File <File
RelativePath="..\addon\doxywizard\doxywizard.cpp" RelativePath="..\addon\doxywizard\inputint.cpp"
> >
</File> </File>
<File <File
RelativePath="..\addon\doxywizard\expert.cpp" RelativePath="..\addon\doxywizard\inputstring.cpp"
> >
</File> </File>
<File <File
RelativePath="..\addon\doxywizard\inputbool.cpp" RelativePath="..\addon\doxywizard\inputstrlist.cpp"
> >
</File> </File>
<File <File
RelativePath="..\addon\doxywizard\inputint.cpp" RelativePath="..\src\version.cpp"
> >
</File> </File>
<File <File
RelativePath="..\addon\doxywizard\inputstring.cpp" RelativePath="..\addon\doxywizard\wizard.cpp"
> >
</File> </File>
</Filter>
<Filter
Name="Header Files"
Filter="h;hpp;hxx;hm;inl;inc;xsd"
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
>
<File <File
RelativePath="..\addon\doxywizard\inputstrlist.cpp" RelativePath="..\addon\doxywizard\config.h"
> >
</File> </File>
<File <File
RelativePath=".\moc_doxywizard.cpp" RelativePath="..\addon\doxywizard\doxywizard.h"
> >
<FileConfiguration
Name="Debug|Win32"
>
<Tool
Name="VCCustomBuildTool"
Description="MOC ..\addon\doxywizard\doxywizard.h"
CommandLine="C:\Qt\4.4.3\bin\moc.exe -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I&quot;..\..\..\Qt\4.4.3\include\QtCore&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtCore&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtGui&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtGui&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtXml&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtXml&quot; -I&quot;..\..\..\Qt\4.4.3\include&quot; -I&quot;..\addon\doxywizard&quot; -I&quot;c:\Qt\4.4.3\include\ActiveQt&quot; -I&quot;..\addon\doxywizard\moc&quot; -I&quot;..\addon\doxywizard&quot; -I&quot;.&quot; -I..\..\..\Qt\4.4.3\mkspecs\win32-msvc2005 -D_MSC_VER=1400 -DWIN32 ..\addon\doxywizard\doxywizard.h -o moc\moc_doxywizard.cpp&#x0D;&#x0A;"
AdditionalDependencies="..\addon\doxywizard\doxywizard.h;C:\Qt\4.4.3\bin\moc.exe"
Outputs="moc\moc_doxywizard.cpp"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
>
<Tool
Name="VCCustomBuildTool"
Description="MOC ..\addon\doxywizard\doxywizard.h"
CommandLine="C:\Qt\4.4.3\bin\moc.exe -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I&quot;..\..\..\Qt\4.4.3\include\QtCore&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtCore&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtGui&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtGui&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtXml&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtXml&quot; -I&quot;..\..\..\Qt\4.4.3\include&quot; -I&quot;..\addon\doxywizard&quot; -I&quot;c:\Qt\4.4.3\include\ActiveQt&quot; -I&quot;..\addon\doxywizard\moc&quot; -I&quot;..\addon\doxywizard&quot; -I&quot;.&quot; -I..\..\..\Qt\4.4.3\mkspecs\win32-msvc2005 -D_MSC_VER=1400 -DWIN32 ..\addon\doxywizard\doxywizard.h -o moc\moc_doxywizard.cpp&#x0D;&#x0A;"
AdditionalDependencies="..\addon\doxywizard\doxywizard.h;C:\Qt\4.4.3\bin\moc.exe"
Outputs="moc\moc_doxywizard.cpp"
/>
</FileConfiguration>
</File> </File>
<File <File
RelativePath=".\moc_expert.cpp" RelativePath="..\addon\doxywizard\expert.h"
>
<FileConfiguration
Name="Debug|Win32"
>
<Tool
Name="VCCustomBuildTool"
Description="MOC ..\addon\doxywizard\expert.h"
CommandLine="C:\Qt\4.4.3\bin\moc.exe -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I&quot;..\..\..\Qt\4.4.3\include\QtCore&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtCore&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtGui&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtGui&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtXml&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtXml&quot; -I&quot;..\..\..\Qt\4.4.3\include&quot; -I&quot;..\addon\doxywizard&quot; -I&quot;c:\Qt\4.4.3\include\ActiveQt&quot; -I&quot;..\addon\doxywizard\moc&quot; -I&quot;..\addon\doxywizard&quot; -I&quot;.&quot; -I..\..\..\Qt\4.4.3\mkspecs\win32-msvc2005 -D_MSC_VER=1400 -DWIN32 ..\addon\doxywizard\expert.h -o moc\moc_expert.cpp&#x0D;&#x0A;"
AdditionalDependencies="..\addon\doxywizard\expert.h;C:\Qt\4.4.3\bin\moc.exe"
Outputs="moc\moc_expert.cpp"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
> >
<Tool
Name="VCCustomBuildTool"
Description="MOC ..\addon\doxywizard\expert.h"
CommandLine="C:\Qt\4.4.3\bin\moc.exe -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I&quot;..\..\..\Qt\4.4.3\include\QtCore&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtCore&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtGui&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtGui&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtXml&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtXml&quot; -I&quot;..\..\..\Qt\4.4.3\include&quot; -I&quot;..\addon\doxywizard&quot; -I&quot;c:\Qt\4.4.3\include\ActiveQt&quot; -I&quot;..\addon\doxywizard\moc&quot; -I&quot;..\addon\doxywizard&quot; -I&quot;.&quot; -I..\..\..\Qt\4.4.3\mkspecs\win32-msvc2005 -D_MSC_VER=1400 -DWIN32 ..\addon\doxywizard\expert.h -o moc\moc_expert.cpp&#x0D;&#x0A;"
AdditionalDependencies="..\addon\doxywizard\expert.h;C:\Qt\4.4.3\bin\moc.exe"
Outputs="moc\moc_expert.cpp"
/>
</FileConfiguration>
</File> </File>
<File <File
RelativePath=".\moc_input.cpp" RelativePath="..\addon\doxywizard\helplabel.h"
>
<FileConfiguration
Name="Debug|Win32"
> >
<Tool
Name="VCCustomBuildTool"
Description="MOC ..\addon\doxywizard\helplabel.h"
CommandLine="C:\Qt\4.4.3\bin\moc.exe -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I&quot;..\..\..\Qt\4.4.3\include\QtCore&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtCore&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtGui&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtGui&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtXml&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtXml&quot; -I&quot;..\..\..\Qt\4.4.3\include&quot; -I&quot;..\addon\doxywizard&quot; -I&quot;c:\Qt\4.4.3\include\ActiveQt&quot; -I&quot;..\addon\doxywizard\moc&quot; -I&quot;..\addon\doxywizard&quot; -I&quot;.&quot; -I..\..\..\Qt\4.4.3\mkspecs\win32-msvc2005 -D_MSC_VER=1400 -DWIN32 ..\addon\doxywizard\helplabel.h -o moc\moc_helplabel.cpp&#x0D;&#x0A;"
AdditionalDependencies="..\addon\doxywizard\helplabel.h;C:\Qt\4.4.3\bin\moc.exe"
Outputs="moc\moc_helplabel.cpp"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
>
<Tool
Name="VCCustomBuildTool"
Description="MOC ..\addon\doxywizard\helplabel.h"
CommandLine="C:\Qt\4.4.3\bin\moc.exe -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I&quot;..\..\..\Qt\4.4.3\include\QtCore&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtCore&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtGui&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtGui&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtXml&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtXml&quot; -I&quot;..\..\..\Qt\4.4.3\include&quot; -I&quot;..\addon\doxywizard&quot; -I&quot;c:\Qt\4.4.3\include\ActiveQt&quot; -I&quot;..\addon\doxywizard\moc&quot; -I&quot;..\addon\doxywizard&quot; -I&quot;.&quot; -I..\..\..\Qt\4.4.3\mkspecs\win32-msvc2005 -D_MSC_VER=1400 -DWIN32 ..\addon\doxywizard\helplabel.h -o moc\moc_helplabel.cpp&#x0D;&#x0A;"
AdditionalDependencies="..\addon\doxywizard\helplabel.h;C:\Qt\4.4.3\bin\moc.exe"
Outputs="moc\moc_helplabel.cpp"
/>
</FileConfiguration>
</File> </File>
<File <File
RelativePath=".\moc_inputbool.cpp" RelativePath="..\addon\doxywizard\inputbool.h"
> >
<FileConfiguration
Name="Debug|Win32"
>
<Tool
Name="VCCustomBuildTool"
Description="MOC ..\addon\doxywizard\inputbool.h"
CommandLine="C:\Qt\4.4.3\bin\moc.exe -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I&quot;..\..\..\Qt\4.4.3\include\QtCore&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtCore&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtGui&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtGui&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtXml&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtXml&quot; -I&quot;..\..\..\Qt\4.4.3\include&quot; -I&quot;..\addon\doxywizard&quot; -I&quot;c:\Qt\4.4.3\include\ActiveQt&quot; -I&quot;..\addon\doxywizard\moc&quot; -I&quot;..\addon\doxywizard&quot; -I&quot;.&quot; -I..\..\..\Qt\4.4.3\mkspecs\win32-msvc2005 -D_MSC_VER=1400 -DWIN32 ..\addon\doxywizard\inputbool.h -o moc\moc_inputbool.cpp&#x0D;&#x0A;"
AdditionalDependencies="..\addon\doxywizard\inputbool.h;C:\Qt\4.4.3\bin\moc.exe"
Outputs="moc\moc_inputbool.cpp"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
>
<Tool
Name="VCCustomBuildTool"
Description="MOC ..\addon\doxywizard\inputbool.h"
CommandLine="C:\Qt\4.4.3\bin\moc.exe -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I&quot;..\..\..\Qt\4.4.3\include\QtCore&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtCore&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtGui&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtGui&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtXml&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtXml&quot; -I&quot;..\..\..\Qt\4.4.3\include&quot; -I&quot;..\addon\doxywizard&quot; -I&quot;c:\Qt\4.4.3\include\ActiveQt&quot; -I&quot;..\addon\doxywizard\moc&quot; -I&quot;..\addon\doxywizard&quot; -I&quot;.&quot; -I..\..\..\Qt\4.4.3\mkspecs\win32-msvc2005 -D_MSC_VER=1400 -DWIN32 ..\addon\doxywizard\inputbool.h -o moc\moc_inputbool.cpp&#x0D;&#x0A;"
AdditionalDependencies="..\addon\doxywizard\inputbool.h;C:\Qt\4.4.3\bin\moc.exe"
Outputs="moc\moc_inputbool.cpp"
/>
</FileConfiguration>
</File> </File>
<File <File
RelativePath=".\moc_inputint.cpp" RelativePath="..\addon\doxywizard\inputint.h"
>
<FileConfiguration
Name="Debug|Win32"
> >
<Tool
Name="VCCustomBuildTool"
Description="MOC ..\addon\doxywizard\inputint.h"
CommandLine="C:\Qt\4.4.3\bin\moc.exe -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I&quot;..\..\..\Qt\4.4.3\include\QtCore&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtCore&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtGui&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtGui&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtXml&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtXml&quot; -I&quot;..\..\..\Qt\4.4.3\include&quot; -I&quot;..\addon\doxywizard&quot; -I&quot;c:\Qt\4.4.3\include\ActiveQt&quot; -I&quot;..\addon\doxywizard\moc&quot; -I&quot;..\addon\doxywizard&quot; -I&quot;.&quot; -I..\..\..\Qt\4.4.3\mkspecs\win32-msvc2005 -D_MSC_VER=1400 -DWIN32 ..\addon\doxywizard\inputint.h -o moc\moc_inputint.cpp&#x0D;&#x0A;"
AdditionalDependencies="..\addon\doxywizard\inputint.h;C:\Qt\4.4.3\bin\moc.exe"
Outputs="moc\moc_inputint.cpp"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
>
<Tool
Name="VCCustomBuildTool"
Description="MOC ..\addon\doxywizard\inputint.h"
CommandLine="C:\Qt\4.4.3\bin\moc.exe -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I&quot;..\..\..\Qt\4.4.3\include\QtCore&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtCore&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtGui&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtGui&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtXml&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtXml&quot; -I&quot;..\..\..\Qt\4.4.3\include&quot; -I&quot;..\addon\doxywizard&quot; -I&quot;c:\Qt\4.4.3\include\ActiveQt&quot; -I&quot;..\addon\doxywizard\moc&quot; -I&quot;..\addon\doxywizard&quot; -I&quot;.&quot; -I..\..\..\Qt\4.4.3\mkspecs\win32-msvc2005 -D_MSC_VER=1400 -DWIN32 ..\addon\doxywizard\inputint.h -o moc\moc_inputint.cpp&#x0D;&#x0A;"
AdditionalDependencies="..\addon\doxywizard\inputint.h;C:\Qt\4.4.3\bin\moc.exe"
Outputs="moc\moc_inputint.cpp"
/>
</FileConfiguration>
</File> </File>
<File <File
RelativePath=".\moc_inputstring.cpp" RelativePath="..\addon\doxywizard\inputstring.h"
>
<FileConfiguration
Name="Debug|Win32"
>
<Tool
Name="VCCustomBuildTool"
Description="MOC ..\addon\doxywizard\inputstring.h"
CommandLine="C:\Qt\4.4.3\bin\moc.exe -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I&quot;..\..\..\Qt\4.4.3\include\QtCore&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtCore&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtGui&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtGui&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtXml&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtXml&quot; -I&quot;..\..\..\Qt\4.4.3\include&quot; -I&quot;..\addon\doxywizard&quot; -I&quot;c:\Qt\4.4.3\include\ActiveQt&quot; -I&quot;..\addon\doxywizard\moc&quot; -I&quot;..\addon\doxywizard&quot; -I&quot;.&quot; -I..\..\..\Qt\4.4.3\mkspecs\win32-msvc2005 -D_MSC_VER=1400 -DWIN32 ..\addon\doxywizard\inputstring.h -o moc\moc_inputstring.cpp&#x0D;&#x0A;"
AdditionalDependencies="..\addon\doxywizard\inputstring.h;C:\Qt\4.4.3\bin\moc.exe"
Outputs="moc\moc_inputstring.cpp"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
> >
<Tool
Name="VCCustomBuildTool"
Description="MOC ..\addon\doxywizard\inputstring.h"
CommandLine="C:\Qt\4.4.3\bin\moc.exe -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I&quot;..\..\..\Qt\4.4.3\include\QtCore&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtCore&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtGui&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtGui&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtXml&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtXml&quot; -I&quot;..\..\..\Qt\4.4.3\include&quot; -I&quot;..\addon\doxywizard&quot; -I&quot;c:\Qt\4.4.3\include\ActiveQt&quot; -I&quot;..\addon\doxywizard\moc&quot; -I&quot;..\addon\doxywizard&quot; -I&quot;.&quot; -I..\..\..\Qt\4.4.3\mkspecs\win32-msvc2005 -D_MSC_VER=1400 -DWIN32 ..\addon\doxywizard\inputstring.h -o moc\moc_inputstring.cpp&#x0D;&#x0A;"
AdditionalDependencies="..\addon\doxywizard\inputstring.h;C:\Qt\4.4.3\bin\moc.exe"
Outputs="moc\moc_inputstring.cpp"
/>
</FileConfiguration>
</File> </File>
<File <File
RelativePath=".\moc_inputstrlist.cpp" RelativePath="..\addon\doxywizard\inputstrlist.h"
> >
<FileConfiguration
Name="Debug|Win32"
>
<Tool
Name="VCCustomBuildTool"
Description="MOC ..\addon\doxywizard\inputstrlist.h"
CommandLine="C:\Qt\4.4.3\bin\moc.exe -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I&quot;..\..\..\Qt\4.4.3\include\QtCore&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtCore&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtGui&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtGui&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtXml&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtXml&quot; -I&quot;..\..\..\Qt\4.4.3\include&quot; -I&quot;..\addon\doxywizard&quot; -I&quot;c:\Qt\4.4.3\include\ActiveQt&quot; -I&quot;..\addon\doxywizard\moc&quot; -I&quot;..\addon\doxywizard&quot; -I&quot;.&quot; -I..\..\..\Qt\4.4.3\mkspecs\win32-msvc2005 -D_MSC_VER=1400 -DWIN32 ..\addon\doxywizard\inputstrlist.h -o moc\moc_inputstrlist.cpp&#x0D;&#x0A;"
AdditionalDependencies="..\addon\doxywizard\inputstrlist.h;C:\Qt\4.4.3\bin\moc.exe"
Outputs="moc\moc_inputstrlist.cpp"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
>
<Tool
Name="VCCustomBuildTool"
Description="MOC ..\addon\doxywizard\inputstrlist.h"
CommandLine="C:\Qt\4.4.3\bin\moc.exe -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I&quot;..\..\..\Qt\4.4.3\include\QtCore&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtCore&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtGui&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtGui&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtXml&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtXml&quot; -I&quot;..\..\..\Qt\4.4.3\include&quot; -I&quot;..\addon\doxywizard&quot; -I&quot;c:\Qt\4.4.3\include\ActiveQt&quot; -I&quot;..\addon\doxywizard\moc&quot; -I&quot;..\addon\doxywizard&quot; -I&quot;.&quot; -I..\..\..\Qt\4.4.3\mkspecs\win32-msvc2005 -D_MSC_VER=1400 -DWIN32 ..\addon\doxywizard\inputstrlist.h -o moc\moc_inputstrlist.cpp&#x0D;&#x0A;"
AdditionalDependencies="..\addon\doxywizard\inputstrlist.h;C:\Qt\4.4.3\bin\moc.exe"
Outputs="moc\moc_inputstrlist.cpp"
/>
</FileConfiguration>
</File> </File>
<File <File
RelativePath="..\src\portable.cpp" RelativePath="..\addon\doxywizard\version.h"
> >
</File> </File>
<File <File
RelativePath="..\src\version.cpp" RelativePath="..\addon\doxywizard\wizard.h"
>
<FileConfiguration
Name="Debug|Win32"
>
<Tool
Name="VCCustomBuildTool"
Description="MOC ..\addon\doxywizard\wizard.h"
CommandLine="C:\Qt\4.4.3\bin\moc.exe -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I&quot;..\..\..\Qt\4.4.3\include\QtCore&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtCore&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtGui&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtGui&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtXml&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtXml&quot; -I&quot;..\..\..\Qt\4.4.3\include&quot; -I&quot;..\addon\doxywizard&quot; -I&quot;c:\Qt\4.4.3\include\ActiveQt&quot; -I&quot;..\addon\doxywizard\moc&quot; -I&quot;..\addon\doxywizard&quot; -I&quot;.&quot; -I..\..\..\Qt\4.4.3\mkspecs\win32-msvc2005 -D_MSC_VER=1400 -DWIN32 ..\addon\doxywizard\wizard.h -o moc\moc_wizard.cpp&#x0D;&#x0A;"
AdditionalDependencies="..\addon\doxywizard\wizard.h;C:\Qt\4.4.3\bin\moc.exe"
Outputs="moc\moc_wizard.cpp"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
> >
<Tool
Name="VCCustomBuildTool"
Description="MOC ..\addon\doxywizard\wizard.h"
CommandLine="C:\Qt\4.4.3\bin\moc.exe -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I&quot;..\..\..\Qt\4.4.3\include\QtCore&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtCore&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtGui&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtGui&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtXml&quot; -I&quot;..\..\..\Qt\4.4.3\include\QtXml&quot; -I&quot;..\..\..\Qt\4.4.3\include&quot; -I&quot;..\addon\doxywizard&quot; -I&quot;c:\Qt\4.4.3\include\ActiveQt&quot; -I&quot;..\addon\doxywizard\moc&quot; -I&quot;..\addon\doxywizard&quot; -I&quot;.&quot; -I..\..\..\Qt\4.4.3\mkspecs\win32-msvc2005 -D_MSC_VER=1400 -DWIN32 ..\addon\doxywizard\wizard.h -o moc\moc_wizard.cpp&#x0D;&#x0A;"
AdditionalDependencies="..\addon\doxywizard\wizard.h;C:\Qt\4.4.3\bin\moc.exe"
Outputs="moc\moc_wizard.cpp"
/>
</FileConfiguration>
</File> </File>
</Filter> </Filter>
<Filter <Filter
Name="Header Files" Name="Generated Files"
Filter="h;hpp;hxx;hm;inl;inc;xsd" Filter="cpp;c;cxx;moc;h;def;odl;idl;res;"
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}" UniqueIdentifier="{71ED8ED8-ACB9-4CE9-BBE1-E00B30144E11}"
> >
<File <File
RelativePath="..\addon\doxywizard\doxywizard.h" RelativePath="config_lex.cpp"
> >
</File> </File>
<File <File
RelativePath="..\addon\doxywizard\expert.h" RelativePath="moc\moc_doxywizard.cpp"
> >
</File> </File>
<File <File
RelativePath=".\iconv.h" RelativePath="moc\moc_expert.cpp"
> >
</File> </File>
<File <File
RelativePath="..\addon\doxywizard\input.h" RelativePath="moc\moc_helplabel.cpp"
> >
</File> </File>
<File <File
RelativePath="..\addon\doxywizard\inputbool.h" RelativePath="moc\moc_inputbool.cpp"
> >
</File> </File>
<File <File
RelativePath="..\addon\doxywizard\inputint.h" RelativePath="moc\moc_inputint.cpp"
> >
</File> </File>
<File <File
RelativePath="..\addon\doxywizard\inputstring.h" RelativePath="moc\moc_inputstring.cpp"
> >
</File> </File>
<File <File
RelativePath="..\addon\doxywizard\inputstrlist.h" RelativePath="moc\moc_inputstrlist.cpp"
> >
</File> </File>
<File <File
RelativePath="..\src\portable.h" RelativePath="moc\moc_wizard.cpp"
> >
</File> </File>
<File <File
RelativePath="..\addon\doxywizard\qtbc.h" RelativePath="rcc\qrc_doxywizard.cpp"
> >
</File> </File>
</Filter>
<Filter
Name="Lex / Yacc Files"
Filter="l;y"
UniqueIdentifier="{E12AE0D2-192F-4d59-BD23-7D3FA58D3183}"
ParseFiles="false"
>
<File <File
RelativePath="..\addon\doxywizard\version.h" RelativePath="..\addon\doxywizard\config.l"
>
<FileConfiguration
Name="Debug|Win32"
> >
<Tool
Name="VCCustomBuildTool"
Description="Lex ..\addon\doxywizard\config.l"
CommandLine="flex -Pconfig ..\addon\doxywizard\config.l &amp;&amp; del config_lex.cpp &amp;&amp; move lex.config.c config_lex.cpp&#x0D;&#x0A;"
AdditionalDependencies="..\addon\doxywizard\config.l;flex"
Outputs="config_lex.cpp"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
>
<Tool
Name="VCCustomBuildTool"
Description="Lex ..\addon\doxywizard\config.l"
CommandLine="flex -Pconfig ..\addon\doxywizard\config.l &amp;&amp; del config_lex.cpp &amp;&amp; move lex.config.c config_lex.cpp&#x0D;&#x0A;"
AdditionalDependencies="..\addon\doxywizard\config.l;flex"
Outputs="config_lex.cpp"
/>
</FileConfiguration>
</File> </File>
</Filter> </Filter>
<Filter <Filter
Name="Resources" Name="Resource Files"
Filter="qrc;*"
UniqueIdentifier="{D9D6E242-F8AF-46E4-B9FD-80ECBC20BA3E}"
ParseFiles="false"
> >
<File <File
RelativePath="..\addon\doxywizard\doxywizard.res" RelativePath="..\addon\doxywizard\doxywizard.qrc"
> >
<FileConfiguration
Name="Debug|Win32"
>
<Tool
Name="VCCustomBuildTool"
Description="RCC ..\addon\doxywizard\doxywizard.qrc"
CommandLine="C:\Qt\4.4.3\bin\rcc.exe -name doxywizard ..\addon\doxywizard\doxywizard.qrc -o rcc\qrc_doxywizard.cpp&#x0D;&#x0A;"
AdditionalDependencies="..\addon\doxywizard\doxywizard.qrc;C:\Qt\4.4.3\bin\rcc.exe"
Outputs="rcc\qrc_doxywizard.cpp"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
>
<Tool
Name="VCCustomBuildTool"
Description="RCC ..\addon\doxywizard\doxywizard.qrc"
CommandLine="C:\Qt\4.4.3\bin\rcc.exe -name doxywizard ..\addon\doxywizard\doxywizard.qrc -o rcc\qrc_doxywizard.cpp&#x0D;&#x0A;"
AdditionalDependencies="..\addon\doxywizard\doxywizard.qrc;C:\Qt\4.4.3\bin\rcc.exe"
Outputs="rcc\qrc_doxywizard.cpp"
/>
</FileConfiguration>
</File> </File>
</Filter> </Filter>
</Files> </Files>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment