Commit c47269c4 authored by Dimitri van Heesch's avatar Dimitri van Heesch

Release-1.2.6-20010401

parent b11bb229
DOXYGEN Version 1.2.6-20010319 DOXYGEN Version 1.2.6-20010401
Please read the installation section of the manual for instructions. Please read the installation section of the manual for instructions.
-------- --------
Dimitri van Heesch (19 March 2001) Dimitri van Heesch (01 April 2001)
DOCDIR = $(INSTALL)/share/doc/packages/doxygen DOCDIR = $(INSTALL)/share/doc/packages/doxygen
#all: src/version.cpp configgen doxywizard #all: src/version.cpp doxywizard
# cd qtools ; $(MAKE) # cd qtools ; $(MAKE)
# cd src ; $(MAKE) # cd src ; $(MAKE)
...@@ -9,7 +9,6 @@ clean: FORCE ...@@ -9,7 +9,6 @@ clean: FORCE
cd doc ; $(MAKE) clean cd doc ; $(MAKE) clean
cd qtools ; $(MAKE) clean cd qtools ; $(MAKE) clean
cd src ; $(MAKE) clean cd src ; $(MAKE) clean
cd addon/configgen ; $(MAKE) clean
cd addon/doxywizard ; $(MAKE) clean cd addon/doxywizard ; $(MAKE) clean
cd addon/xmlread ; $(MAKE) clean cd addon/xmlread ; $(MAKE) clean
cd addon/xmlgen ; $(MAKE) clean cd addon/xmlgen ; $(MAKE) clean
...@@ -18,7 +17,6 @@ clean: FORCE ...@@ -18,7 +17,6 @@ clean: FORCE
distclean: clean distclean: clean
cd src ; $(MAKE) distclean cd src ; $(MAKE) distclean
cd addon/configgen ; $(MAKE) distclean
cd addon/doxywizard ; $(MAKE) distclean cd addon/doxywizard ; $(MAKE) distclean
cd addon/xmlread ; $(MAKE) distclean cd addon/xmlread ; $(MAKE) distclean
cd addon/xmlgen ; $(MAKE) distclean cd addon/xmlgen ; $(MAKE) distclean
...@@ -26,19 +24,19 @@ distclean: clean ...@@ -26,19 +24,19 @@ distclean: clean
-rm -f bin/doxy* -rm -f bin/doxy*
-rm -f html -rm -f html
-rm -f objects/*.o -rm -f objects/*.o
-rm -f src/Makefile.doxygen src/Makefile.libdoxygen src/Makefile.doxytag -rm -f src/Makefile.doxygen src/Makefile.libdoxygen
-rm -f src/Makefile.doxytag src/Makefile.libdoxycfg
-rm -f src/Makefile.doxysearch qtools/Makefile.qtools -rm -f src/Makefile.doxysearch qtools/Makefile.qtools
-rm -f Makefile qtools/Makefile src/Makefile examples/Makefile doc/Makefile -rm -f Makefile qtools/Makefile src/Makefile examples/Makefile doc/Makefile
-rm -f .makeconfig .tmakeconfig -rm -f .makeconfig .tmakeconfig
-rm -f src/doxygen.pro src/libdoxygen.pro src/doxytag.pro src/doxysearch.pro qtools/qtools.pro -rm -f src/doxygen.pro src/libdoxygen.pro src/doxytag.pro src/doxysearch.pro qtools/qtools.pro src/libdoxycfg.pro
-rm -f src/version.cpp -rm -f src/version.cpp
-rm -r addon/configgen/Makefile addon/doxywizard/Makefile -rm -r addon/doxywizard/Makefile
-rm -f addon/configgen/Makefile.configgen
-rm -f addon/doxywizard/Makefile.doxywizard -rm -f addon/doxywizard/Makefile.doxywizard
-rm -f addon/configgen/configgen.pro addon/doxywizard/doxywizard.pro -rm -f addon/doxywizard/doxywizard.pro
-rm -f addon/configgen/obj/*.o
-rm -f addon/doxywizard/obj/*.o -rm -f addon/doxywizard/obj/*.o
-rm -f addon/doxywizard/moc/moc_* -rm -f addon/doxywizard/moc/moc_*
-rm -f addon/doxywizard/config.cpp
-rm -f addon/xmlread/xmlread.pro -rm -f addon/xmlread/xmlread.pro
-rm -f addon/xmlread/Makefile addon/xmlread/Makefile.xmlread -rm -f addon/xmlread/Makefile addon/xmlread/Makefile.xmlread
-rm -f addon/xmlread/*.o -rm -f addon/xmlread/*.o
......
...@@ -13,9 +13,10 @@ distclean: clean ...@@ -13,9 +13,10 @@ distclean: clean
-del src\Makefile.libdoxygen \ -del src\Makefile.libdoxygen \
src\Makefile.doxygen \ src\Makefile.doxygen \
src\Makefile.doxytag \ src\Makefile.doxytag \
src\Makefile.doxysearch src\Makefile.doxysearch \
src\Makefile.libdoxycfg
-del Makefile src\Makefile examples\Makefile doc\Makefile -del Makefile src\Makefile examples\Makefile doc\Makefile
-del src\libdoxygen.pro src\doxygen.pro src\doxytag.pro src\doxysearch.pro -del src\libdoxygen.pro src\doxygen.pro src\doxytag.pro src\doxysearch.pro src\libdoxycfg.pro
-del src\version.cpp -del src\version.cpp
docs: docs:
......
...@@ -23,9 +23,10 @@ distclean: clean ...@@ -23,9 +23,10 @@ distclean: clean
-del src\Makefile.libdoxygen \ -del src\Makefile.libdoxygen \
src\Makefile.doxygen \ src\Makefile.doxygen \
src\Makefile.doxytag \ src\Makefile.doxytag \
src\Makefile.doxysearch src\Makefile.doxysearch \
src\Makefile.libdoxycfg
-del Makefile src\Makefile examples\Makefile doc\Makefile -del Makefile src\Makefile examples\Makefile doc\Makefile
-del src\libdoxygen.pro src\doxygen.pro src\doxytag.pro src\doxysearch.pro -del src\libdoxygen.pro src\doxygen.pro src\doxytag.pro src\doxysearch.pro src\libdoxycfg.pro
-del src\version.cpp -del src\version.cpp
docs: FORCE docs: FORCE
......
DOXYGEN Version 1.2.6-20010319 DOXYGEN Version 1.2.6-20010401
Please read INSTALL for compilation instructions. Please read INSTALL for compilation instructions.
...@@ -7,4 +7,4 @@ The latest version of doxygen can be obtained at ...@@ -7,4 +7,4 @@ The latest version of doxygen can be obtained at
Enjoy, Enjoy,
Dimitri van Heesch (19 March 2001) Dimitri van Heesch (01 April 2001)
1.2.6-20010319 1.2.6-20010401
The configgen tool is used to:
- generate the parser for the configuration file based on
the templates config_templ.h and config_templ.l
- generate the GUI frontend "doxywizard" for creating a configuration
file based on the templates doxywizard_templ.h and doxywizard_templ.cpp
If you want to add a new configuration option to doxygen,
then you should add a new entry the init() function in configgen.cpp
After that you can do a "make install" in this directory to update
the config.l and config.h in doxygen's source directory.
-Dimitri
/******************************************************************************
*
*
*
* Copyright (C) 1997-2001 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 CONFIG_H
#define CONFIG_H
#ifndef DOXYWIZARD
#include "qtbc.h"
#endif
#include <qstrlist.h>
#include <qfile.h>
extern void parseConfig(const QCString &config,const char *fn);
extern void writeTemplateConfig(QFile *f,bool shortList);
extern void checkConfig();
extern void configStrToVal();
extern void substituteEnvironmentVars();
/*! \brief Namespace for configuration variables
*
* This struct acts as a namespace that holds the global static variables
* read from a user-supplied configuration file.
*/
struct Config
{
static void init();
#CONFIG Header
};
#endif
This diff is collapsed.
This diff is collapsed.
# #
# # $Id$
# #
# Copyright (C) 1997-2001 by Dimitri van Heesch. # Copyright (C) 1997-2001 by Dimitri van Heesch.
# #
...@@ -10,30 +10,17 @@ ...@@ -10,30 +10,17 @@
# See the GNU General Public License for more details. # See the GNU General Public License for more details.
# #
CFGGENBIN_DIR = ../configgen/bin all: config.l config.h Makefile.doxywizard
CFGGENSRC_DIR = ../configgen
all: $(CFGGENBIN_DIR)/configgen config.h config.l doxywizard.cpp doxywizard.h \
Makefile.doxywizard
$(MAKE) -f Makefile.doxywizard $@ $(MAKE) -f Makefile.doxywizard $@
Makefile.doxywizard: doxywizard.pro doxywizard.t config.l:
$(ENV) $(PERL) $(TMAKE) doxywizard.pro >Makefile.doxywizard $(CP) ../../src/config.l config.l
config.l: $(CFGGENBIN_DIR)/configgen $(CFGGENSRC_DIR)/config_templ.l
$(CFGGENBIN_DIR)/configgen $(CFGGENSRC_DIR)/config_templ.l >config.l
config.h: $(CFGGENBIN_DIR)/configgen $(CFGGENSRC_DIR)/config_templ.h config.h:
$(CFGGENBIN_DIR)/configgen $(CFGGENSRC_DIR)/config_templ.h >config.h $(CP) ../../src/config.h config.h
doxywizard.cpp: $(CFGGENBIN_DIR)/configgen doxywizard_templ.cpp Makefile.doxywizard: doxywizard.pro
$(CFGGENBIN_DIR)/configgen doxywizard_templ.cpp >doxywizard.cpp $(ENV) $(PERL) $(TMAKE) doxywizard.pro >Makefile.doxywizard
doxywizard.h: $(CFGGENBIN_DIR)/configgen doxywizard_templ.h
$(CFGGENBIN_DIR)/configgen doxywizard_templ.h >doxywizard.h
$(CFGGENBIN_DIR)/configgen: $(CFGGENSRC_DIR)/configgen.cpp
$(MAKE) -C $(CFGGENSRC_DIR)
tmake: tmake:
$(ENV) $(PERL) $(TMAKE) doxywizard.pro >Makefile.doxywizard $(ENV) $(PERL) $(TMAKE) doxywizard.pro >Makefile.doxywizard
...@@ -42,8 +29,7 @@ clean: Makefile.doxywizard ...@@ -42,8 +29,7 @@ clean: Makefile.doxywizard
$(MAKE) -f Makefile.doxywizard clean $(MAKE) -f Makefile.doxywizard clean
distclean: clean distclean: clean
$(RM) doxywizard.cpp doxywizard.h \ $(RM) Makefile.doxywizard config.l config.h config.cpp
config.l config.h config.cpp Makefile.doxywizard
install: install:
$(INSTTOOL) -d $(INSTALL)/bin $(INSTTOOL) -d $(INSTALL)/bin
......
This diff is collapsed.
/******************************************************************************
*
* $Id$
*
* Copyright (C) 1997-2001 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 _DOXWIZARD_H
#define _DOXWIZARD_H
#include <qmainwindow.h>
#include <qlist.h>
#include <qdict.h>
class IInput;
class QToolBar;
class QWidget;
class QObject;
class ConfigFile;
class InputBool;
class InputString;
class InputStrList;
class InputFile;
class InputDir;
class InputInt;
class Wizard : public QMainWindow
{
Q_OBJECT
public:
Wizard(int argc,char **argv);
~Wizard(){};
void loadFile(const char *s);
private slots:
void newFile();
void loadFile();
void saveFile();
void saveAsFile();
void quit();
void changed();
void about();
void runDoxygen(); // Micha
signals:
private:
void refreshCaption();
QToolBar *fileTools;
bool hasChanged;
ConfigFile *cw;
};
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
{ return m_kind==String ? (InputString *)m_widget : 0; }
InputBool *getBool() const
{ 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 ConfigFile : public QWidget
{
Q_OBJECT
public:
ConfigFile(QWidget *parent=0);
~ConfigFile();
void init();
void addDependency(QDict<QObject> *switches,
const QCString &dep,const QCString &name);
signals:
void changed();
private slots:
void toggle(const char *,bool);
private:
QDict<IInput> *m_inputWidgets;
QDict< QList<IInput> > *m_dependencies;
QDict<QObject> *m_switches;
};
#endif
# #
# # $Id$
# #
# Copyright (C) 1997-2001 by Dimitri van Heesch. # Copyright (C) 1997-2001 by Dimitri van Heesch.
# #
...@@ -22,24 +22,24 @@ CONFIG = qt warn_on $extraopts ...@@ -22,24 +22,24 @@ CONFIG = qt warn_on $extraopts
# header file for the project # header file for the project
HEADERS = doxywizard.h \ HEADERS = doxywizard.h \
config.h \
version.h \ version.h \
pagewidget.h \ pagewidget.h \
inputstring.h \ inputstring.h \
inputbool.h \ inputbool.h \
inputstrlist.h \ inputstrlist.h \
inputint.h \ inputint.h \
config.h \
pixmaps.h pixmaps.h
# source flle for the project # source flle for the project
SOURCES = doxywizard.cpp \ SOURCES = doxywizard.cpp \
config.cpp \
version.cpp \ version.cpp \
pagewidget.cpp \ pagewidget.cpp \
inputstring.cpp \ inputstring.cpp \
inputbool.cpp \ inputbool.cpp \
inputstrlist.cpp \ inputstrlist.cpp \
inputint.cpp \ inputint.cpp \
config.cpp \
pixmaps.cpp pixmaps.cpp
# where to put the objects # where to put the objects
...@@ -50,3 +50,4 @@ MOC_DIR = moc ...@@ -50,3 +50,4 @@ MOC_DIR = moc
# extra C++ compiler options # extra C++ compiler options
TMAKE_CXXFLAGS += -DDOXYWIZARD TMAKE_CXXFLAGS += -DDOXYWIZARD
#ifndef _INPUT_H
#define _INPUT_H
class QObject;
class IInput
{
public:
virtual void init() = 0;
virtual void setEnabled(bool) = 0;
virtual QObject *qobject() = 0;
};
#endif
/****************************************************************************** /******************************************************************************
* *
* * $Id$
* *
* Copyright (C) 1997-2001 by Dimitri van Heesch. * Copyright (C) 1997-2001 by Dimitri van Heesch.
* *
...@@ -36,7 +36,11 @@ void InputBool::init() ...@@ -36,7 +36,11 @@ void InputBool::init()
void InputBool::setState( bool s ) void InputBool::setState( bool s )
{ {
if (state!=s) emit changed(); if (state!=s)
{
emit changed();
emit toggle(text(),s);
}
state=s; state=s;
} }
/****************************************************************************** /******************************************************************************
* *
* * $Id$
* *
* Copyright (C) 1997-2001 by Dimitri van Heesch. * Copyright (C) 1997-2001 by Dimitri van Heesch.
* *
...@@ -17,9 +17,11 @@ ...@@ -17,9 +17,11 @@
#include <qcheckbox.h> #include <qcheckbox.h>
#include "input.h"
class PageWidget; class PageWidget;
class InputBool : public QCheckBox class InputBool : public QCheckBox, public IInput
{ {
Q_OBJECT Q_OBJECT
...@@ -27,9 +29,13 @@ class InputBool : public QCheckBox ...@@ -27,9 +29,13 @@ class InputBool : public QCheckBox
InputBool( const QString &text, PageWidget *parent, bool &flag ); InputBool( const QString &text, PageWidget *parent, bool &flag );
~InputBool(){}; ~InputBool(){};
void init(); void init();
void setEnabled(bool b) { QCheckBox::setEnabled(b); }
QObject *qobject() { return this; }
bool getState() const { return state; }
signals: signals:
void changed(); void changed();
void toggle(const char *,bool);
private slots: private slots:
void setState(bool); void setState(bool);
......
/****************************************************************************** /******************************************************************************
* *
* * $Id$
* *
* Copyright (C) 1997-2001 by Dimitri van Heesch. * Copyright (C) 1997-2001 by Dimitri van Heesch.
* *
......
/****************************************************************************** /******************************************************************************
* *
* * $Id$
* *
* Copyright (C) 1997-2001 by Dimitri van Heesch. * Copyright (C) 1997-2001 by Dimitri van Heesch.
* *
...@@ -18,11 +18,13 @@ ...@@ -18,11 +18,13 @@
#include <qwidget.h> #include <qwidget.h>
#include <qstring.h> #include <qstring.h>
#include "input.h"
class QLabel; class QLabel;
class QSpinBox; class QSpinBox;
class PageWidget; class PageWidget;
class InputInt : public QWidget class InputInt : public QWidget, public IInput
{ {
Q_OBJECT Q_OBJECT
...@@ -32,6 +34,7 @@ class InputInt : public QWidget ...@@ -32,6 +34,7 @@ class InputInt : public QWidget
~InputInt(){}; ~InputInt(){};
void setEnabled(bool); void setEnabled(bool);
void init(); void init();
QObject *qobject() { return this; }
private: private:
QLabel *lab; QLabel *lab;
......
/****************************************************************************** /******************************************************************************
* *
* * $Id$
* *
* Copyright (C) 1997-2001 by Dimitri van Heesch. * Copyright (C) 1997-2001 by Dimitri van Heesch.
* *
......
/****************************************************************************** /******************************************************************************
* *
* * $Id$
* *
* Copyright (C) 1997-2001 by Dimitri van Heesch. * Copyright (C) 1997-2001 by Dimitri van Heesch.
* *
...@@ -19,13 +19,16 @@ ...@@ -19,13 +19,16 @@
#include <qstring.h> #include <qstring.h>
#include <qdict.h> #include <qdict.h>
#include "qtbc.h"
#include "input.h"
class QLabel; class QLabel;
class QLineEdit; class QLineEdit;
class QPushButton; class QPushButton;
class QComboBox; class QComboBox;
class PageWidget; class PageWidget;
class InputString : public QWidget class InputString : public QWidget, public IInput
{ {
Q_OBJECT Q_OBJECT
...@@ -42,6 +45,7 @@ class InputString : public QWidget ...@@ -42,6 +45,7 @@ class InputString : public QWidget
void setEnabled(bool); void setEnabled(bool);
void addValue(const char *s); void addValue(const char *s);
void init(); void init();
QObject *qobject() { return this; }
private: private:
QLabel *lab; QLabel *lab;
......
/****************************************************************************** /******************************************************************************
* *
* * $Id$
* *
* Copyright (C) 1997-2001 by Dimitri van Heesch. * Copyright (C) 1997-2001 by Dimitri van Heesch.
* *
......
/****************************************************************************** /******************************************************************************
* *
* * $Id$
* *
* Copyright (C) 1997-2001 by Dimitri van Heesch. * Copyright (C) 1997-2001 by Dimitri van Heesch.
* *
...@@ -18,6 +18,8 @@ ...@@ -18,6 +18,8 @@
#include <qwidget.h> #include <qwidget.h>
#include <qstring.h> #include <qstring.h>
#include "input.h"
class QLabel; class QLabel;
class QLineEdit; class QLineEdit;
class QPushButton; class QPushButton;
...@@ -25,7 +27,7 @@ class QListBox; ...@@ -25,7 +27,7 @@ class QListBox;
class PageWidget; class PageWidget;
class QStrList; class QStrList;
class InputStrList : public QWidget class InputStrList : public QWidget, public IInput
{ {
Q_OBJECT Q_OBJECT
...@@ -41,6 +43,7 @@ class InputStrList : public QWidget ...@@ -41,6 +43,7 @@ class InputStrList : public QWidget
~InputStrList() {}; ~InputStrList() {};
void setEnabled(bool); void setEnabled(bool);
void init(); void init();
QObject *qobject() { return this; }
private: private:
QLabel *lab; QLabel *lab;
......
/****************************************************************************** /******************************************************************************
* *
* * $Id$
* *
* Copyright (C) 1997-2001 by Dimitri van Heesch. * Copyright (C) 1997-2001 by Dimitri van Heesch.
* *
......
/****************************************************************************** /******************************************************************************
* *
* * $Id$
* *
* Copyright (C) 1997-2001 by Dimitri van Heesch. * Copyright (C) 1997-2001 by Dimitri van Heesch.
* *
......
/****************************************************************************** /******************************************************************************
* *
* * $Id$
* *
* Copyright (C) 1997-2001 by Dimitri van Heesch. * Copyright (C) 1997-2001 by Dimitri van Heesch.
* *
......
/****************************************************************************** /******************************************************************************
* *
* * $Id$
* *
* Copyright (C) 1997-2001 by Dimitri van Heesch. * Copyright (C) 1997-2001 by Dimitri van Heesch.
* *
......
/****************************************************************************** /******************************************************************************
* *
* * $Id$
* *
* Copyright (C) 1997-2001 by Dimitri van Heesch. * Copyright (C) 1997-2001 by Dimitri van Heesch.
* *
...@@ -26,11 +26,13 @@ ...@@ -26,11 +26,13 @@
#if QT_VERSION >= 200 #if QT_VERSION >= 200
#include <locale.h>
#define GCI QCollection::Item #define GCI QCollection::Item
#include <qcstring.h> #include <qcstring.h>
#include <qstring.h> #include <qstring.h>
inline QCString convertToQCString(const QString &s) { return s.local8Bit(); } inline QCString convertToQCString(const QString &s) { return s.latin1(); }
#else /* QT_VERSION < 200 */ #else /* QT_VERSION < 200 */
......
...@@ -60,7 +60,7 @@ class TextGeneratorXMLImpl : public TextGeneratorIntf ...@@ -60,7 +60,7 @@ class TextGeneratorXMLImpl : public TextGeneratorIntf
void generateDTD() void generateDTD()
{ {
QCString fileName=Config::outputDir+"/xml/doxygen.dtd"; QCString fileName=Config::instance()->getString("OUTPUT_DIRECTORY")+"/xml/doxygen.dtd";
QFile f(fileName); QFile f(fileName);
if (!f.open(IO_WriteOnly)) if (!f.open(IO_WriteOnly))
{ {
...@@ -440,49 +440,49 @@ void generateXMLForFile(FileDef *fd,QTextStream &t) ...@@ -440,49 +440,49 @@ void generateXMLForFile(FileDef *fd,QTextStream &t)
void generateXML() void generateXML()
{ {
if (Config::outputDir.isEmpty()) if (Config::instance()->getString("OUTPUT_DIRECTORY").isEmpty())
Config::outputDir=QDir::currentDirPath(); Config::instance()->getString("OUTPUT_DIRECTORY")=QDir::currentDirPath();
else else
{ {
QDir dir(Config::outputDir); QDir dir(Config::instance()->getString("OUTPUT_DIRECTORY"));
if (!dir.exists()) if (!dir.exists())
{ {
dir.setPath(QDir::currentDirPath()); dir.setPath(QDir::currentDirPath());
if (!dir.mkdir(Config::outputDir)) if (!dir.mkdir(Config::instance()->getString("OUTPUT_DIRECTORY")))
{ {
err("Error: tag OUTPUT_DIRECTORY: Output directory `%s' does not " err("Error: tag OUTPUT_DIRECTORY: Output directory `%s' does not "
"exist and cannot be created\n",Config::outputDir.data()); "exist and cannot be created\n",Config::instance()->getString("OUTPUT_DIRECTORY").data());
exit(1); exit(1);
} }
else if (!Config::quietFlag) else if (!Config::instance()->getBool("QUIET"))
{ {
err("Notice: Output directory `%s' does not exist. " err("Notice: Output directory `%s' does not exist. "
"I have created it for you.\n", Config::outputDir.data()); "I have created it for you.\n", Config::instance()->getString("OUTPUT_DIRECTORY").data());
} }
dir.cd(Config::outputDir); dir.cd(Config::instance()->getString("OUTPUT_DIRECTORY"));
} }
Config::outputDir=dir.absPath(); Config::instance()->getString("OUTPUT_DIRECTORY")=dir.absPath();
} }
QDir dir(Config::outputDir); QDir dir(Config::instance()->getString("OUTPUT_DIRECTORY"));
if (!dir.exists()) if (!dir.exists())
{ {
dir.setPath(QDir::currentDirPath()); dir.setPath(QDir::currentDirPath());
if (!dir.mkdir(Config::outputDir)) if (!dir.mkdir(Config::instance()->getString("OUTPUT_DIRECTORY")))
{ {
err("Cannot create directory %s\n",Config::outputDir.data()); err("Cannot create directory %s\n",Config::instance()->getString("OUTPUT_DIRECTORY").data());
return; return;
} }
} }
QDir xmlDir(Config::outputDir+"/xml"); QDir xmlDir(Config::instance()->getString("OUTPUT_DIRECTORY")+"/xml");
if (!xmlDir.exists() && !xmlDir.mkdir(Config::outputDir+"/xml")) if (!xmlDir.exists() && !xmlDir.mkdir(Config::instance()->getString("OUTPUT_DIRECTORY")+"/xml"))
{ {
err("Could not create xml directory in %s\n",Config::outputDir.data()); err("Could not create xml directory in %s\n",Config::instance()->getString("OUTPUT_DIRECTORY").data());
return; return;
} }
generateDTD(); generateDTD();
QCString fileName=Config::outputDir+"/xml/doxygen.xml"; QCString fileName=Config::instance()->getString("OUTPUT_DIRECTORY")+"/xml/doxygen.xml";
QFile f(fileName); QFile f(fileName);
if (!f.open(IO_WriteOnly)) if (!f.open(IO_WriteOnly))
{ {
......
...@@ -3,18 +3,18 @@ CONFIG = console warn_on $extraopt ...@@ -3,18 +3,18 @@ CONFIG = console warn_on $extraopt
HEADERS = xml.h xml_dtd.h HEADERS = xml.h xml_dtd.h
SOURCES = main.cpp xml.cpp SOURCES = main.cpp xml.cpp
DEPENDPATH = ../../src DEPENDPATH = ../../src
unix:LIBS += -L../../lib -ldoxygen -lqtools unix:LIBS += -L../../lib -ldoxygen -ldoxycfg -lqtools
win32:INCLUDEPATH += . win32:INCLUDEPATH += .
win32-mingw:LIBS += -L../../lib -ldoxygen -lqtools win32-mingw:LIBS += -L../../lib -ldoxygen -ldoxycfg -lqtools
win32-msvc:LIBS += qtools.lib doxygen.lib shell32.lib win32-msvc:LIBS += qtools.lib doxygen.lib doxycfg.lib shell32.lib
win32-msvc:TMAKE_LFLAGS += /LIBPATH:..\..\lib win32-msvc:TMAKE_LFLAGS += /LIBPATH:..\..\lib
win32-borland:LIBS += qtools.lib doxygen.lib shell32.lib win32-borland:LIBS += qtools.lib doxygen.lib doxycfg.lib shell32.lib
win32-borland:TMAKE_LFLAGS += -L..\..\lib win32-borland:TMAKE_LFLAGS += -L..\..\lib
win32:TMAKE_CXXFLAGS += -DQT_NODLL win32:TMAKE_CXXFLAGS += -DQT_NODLL
INCLUDEPATH += ../../qtools ../../src INCLUDEPATH += ../../qtools ../../src
DESTDIR = ../../bin DESTDIR = ../../bin
TARGET = doxygen_xml TARGET = doxygen_xml
unix:TARGETDEPS = ../../lib/libdoxygen.a unix:TARGETDEPS = ../../lib/libdoxygen.a ../../lib/libdoxycfg.a
win32:TARGETDEPS = ..\..\lib\doxygen.lib win32:TARGETDEPS = ..\..\lib\doxygen.lib ../../lib/doxycfg.lib
OBJECTS_DIR = obj OBJECTS_DIR = obj
/****************************************************************************** /******************************************************************************
* *
* * $Id$
* *
* Copyright (C) 1997-2001 by Dimitri van Heesch. * Copyright (C) 1997-2001 by Dimitri van Heesch.
* *
......
...@@ -26,7 +26,6 @@ f_plf_auto=NO ...@@ -26,7 +26,6 @@ f_plf_auto=NO
f_prefix=/usr f_prefix=/usr
f_insttool=install f_insttool=install
f_english=NO f_english=NO
f_configgen=NO
f_wizard=NO f_wizard=NO
f_xmlgen=NO f_xmlgen=NO
...@@ -65,9 +64,6 @@ while test -n "$1"; do ...@@ -65,9 +64,6 @@ while test -n "$1"; do
--install) --install)
shift; f_insttool=$1 shift; f_insttool=$1
;; ;;
--with-configgen)
f_configgen=YES
;;
--with-doxywizard) --with-doxywizard)
f_wizard=YES f_wizard=YES
;; ;;
...@@ -91,7 +87,7 @@ if test "$f_help" = y; then ...@@ -91,7 +87,7 @@ if test "$f_help" = y; then
Usage: $0 [--help] [--shared] [--static] [--release] [--debug] Usage: $0 [--help] [--shared] [--static] [--release] [--debug]
[--perl name] [--make name] [--dot name] [--platform target] [--perl name] [--make name] [--dot name] [--platform target]
[--prefix dir] [--install name] [--english-only] [--prefix dir] [--install name] [--english-only]
[--with-configgen] [--with-doxywizard] [--with-xmlgen] [--with-doxywizard] [--with-xmlgen]
Options: Options:
...@@ -124,10 +120,6 @@ Options: ...@@ -124,10 +120,6 @@ Options:
--english-only Include support for English only. --english-only Include support for English only.
--with-configgen Build the configuration generator. This is only
useful for doxygen developers that want to add
new configuration options.
--with-doxywizard Build the GUI frontend for doxygen. This --with-doxywizard Build the GUI frontend for doxygen. This
requires Qt 2.x.x requires Qt 2.x.x
...@@ -380,7 +372,7 @@ TMAKE_CXXFLAGS += -DENGLISH_ONLY ...@@ -380,7 +372,7 @@ TMAKE_CXXFLAGS += -DENGLISH_ONLY
EOF EOF
fi fi
f_inmakefiles="Makefile.in addon/xmlgen/Makefile.in qtools/Makefile.in src/Makefile.in examples/Makefile.in doc/Makefile.in addon/configgen/Makefile.in addon/doxywizard/Makefile.in addon/xmlread/Makefile.in" f_inmakefiles="Makefile.in addon/xmlgen/Makefile.in qtools/Makefile.in src/Makefile.in examples/Makefile.in doc/Makefile.in addon/doxywizard/Makefile.in addon/xmlread/Makefile.in"
for i in $f_inmakefiles ; do for i in $f_inmakefiles ; do
SRC=$i SRC=$i
...@@ -398,9 +390,6 @@ EOF ...@@ -398,9 +390,6 @@ EOF
echo "all: src/version.cpp " >> $DST echo "all: src/version.cpp " >> $DST
echo " \$(MAKE) -C qtools" >> $DST echo " \$(MAKE) -C qtools" >> $DST
echo " \$(MAKE) -C src" >> $DST echo " \$(MAKE) -C src" >> $DST
if test $f_configgen = YES; then
echo " \$(MAKE) -C addon/configgen" >> $DST
fi
if test $f_wizard = YES; then if test $f_wizard = YES; then
echo " \$(MAKE) -C addon/doxywizard" >> $DST echo " \$(MAKE) -C addon/doxywizard" >> $DST
fi fi
...@@ -417,7 +406,7 @@ EOF ...@@ -417,7 +406,7 @@ EOF
echo " Created $DST from $SRC..." echo " Created $DST from $SRC..."
done done
f_inprofiles="qtools/qtools.pro.in src/libdoxygen.pro.in src/doxygen.pro.in src/doxytag.pro.in src/doxysearch.pro.in addon/configgen/configgen.pro.in addon/doxywizard/doxywizard.pro.in addon/xmlread/xmlread.pro.in addon/xmlgen/xmlgen.pro.in" f_inprofiles="qtools/qtools.pro.in src/libdoxygen.pro.in src/libdoxycfg.pro.in src/doxygen.pro.in src/doxytag.pro.in src/doxysearch.pro.in addon/doxywizard/doxywizard.pro.in addon/xmlread/xmlread.pro.in addon/xmlgen/xmlgen.pro.in"
for i in $f_inprofiles ; do for i in $f_inprofiles ; do
SRC=$i SRC=$i
......
...@@ -77,6 +77,7 @@ documentation: ...@@ -77,6 +77,7 @@ documentation:
<li> \refitem cmdfile \file <li> \refitem cmdfile \file
<li> \refitem cmdfn \fn <li> \refitem cmdfn \fn
<li> \refitem cmdhideinitializer \hideinitializer <li> \refitem cmdhideinitializer \hideinitializer
<li> \refitem cmdhtmlinclude \htmlinclude
<li> \refitem cmdhtmlonly \htmlonly <li> \refitem cmdhtmlonly \htmlonly
<li> \refitem cmdif \if <li> \refitem cmdif \if
<li> \refitem cmdimage \image <li> \refitem cmdimage \image
...@@ -899,7 +900,7 @@ Public/Protected/Private/... section. ...@@ -899,7 +900,7 @@ Public/Protected/Private/... section.
\subsection cmdanchor \anchor <word> \subsection cmdanchor \anchor <word>
\addindex \anchor \addindex \anchor
This command places an invisble, named anchor into to documentation This command places an invisible, named anchor into to documentation
to which you can refer with the \\ref command. to which you can refer with the \\ref command.
\sa section \ref cmdref "\\ref". \sa section \ref cmdref "\\ref".
...@@ -1118,6 +1119,20 @@ Public/Protected/Private/... section. ...@@ -1118,6 +1119,20 @@ Public/Protected/Private/... section.
The command is equivalent to pasting the file in the documentation and The command is equivalent to pasting the file in the documentation and
placing \\verbatim and \\endverbatim commands around it. placing \\verbatim and \\endverbatim commands around it.
Files or directories that doxygen should look for can be specified using the
\ref cfg_example_path "EXAMPLE_PATH" tag of Doxygen's configuration file.
<hr>
\subsection cmdhtmlinclude \htmlinclude <file-name>
\addindex \htmlinclude
This command includes the file \<file-name\> as is in the HTML documentation.
The command is equivalent to pasting the file in the documentation and
placing \\htmlonly and \\endhtmlonly commands around it.
Files or directories that doxygen should look for can be specified using the
\ref cfg_example_path "EXAMPLE_PATH" tag of Doxygen's configuration file.
<hr> <hr>
<h2>\htmlonly <center> --- \endhtmlonly <h2>\htmlonly <center> --- \endhtmlonly
Commands for visual enhancements Commands for visual enhancements
......
...@@ -91,7 +91,7 @@ documentation. Note that all attributes of a HTML tag are ignored ...@@ -91,7 +91,7 @@ documentation. Note that all attributes of a HTML tag are ignored
<li>\c </VAR> Ends a \c </VAR> section. <li>\c </VAR> Ends a \c </VAR> section.
</ul> </ul>
The special HTML characters entities that are recognized by Doxygen: The special HTML character entities that are recognized by Doxygen:
<ul> <ul>
<li>\c &copy; the copyright symbol <li>\c &copy; the copyright symbol
...@@ -107,6 +107,11 @@ The special HTML characters entities that are recognized by Doxygen: ...@@ -107,6 +107,11 @@ The special HTML characters entities that are recognized by Doxygen:
<li>\c &?tilde; where ? is one of {A,N,O,a,n,o}, <li>\c &?tilde; where ? is one of {A,N,O,a,n,o},
writes a character with a tilde accent (like &atilde;). writes a character with a tilde accent (like &atilde;).
<li>\c &szlig; write a sharp s (i.e. &szlig;) to the output. <li>\c &szlig; write a sharp s (i.e. &szlig;) to the output.
<li>\c &?cedil; where ? is one of {c,C},
writes a c-cedille (like &ccedil;).
<li>\c &?ring; where ? is one of {a,A},
writes an \c a with a ring (like &aring;).
<li>\c &nbsp; a non breakable space.
</ul> </ul>
*/ */
......
Name: doxygen Name: doxygen
Version: 1.2.6-20010319 Version: 1.2.6-20010401
Summary: documentation system for C, C++ and IDL Summary: documentation system for C, C++ and IDL
Release: 1 Release: 1
Source0: doxygen-%{version}.src.tar.gz Source0: doxygen-%{version}.src.tar.gz
......
# #
# # $Id$
# #
# Copyright (C) 1997-2000 by Dimitri van Heesch. # Copyright (C) 1997-2000 by Dimitri van Heesch.
# #
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Definition of QArray template/macro class ** Definition of QArray template/macro class
** **
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Definition of QAsciiDict template class ** Definition of QAsciiDict template class
** **
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Implementation of QBuffer class ** Implementation of QBuffer class
** **
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Definition of QBuffer class ** Definition of QBuffer class
** **
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Implementation of base class for all collection classes ** Implementation of base class for all collection classes
** **
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Definition of base class for all collection classes ** Definition of base class for all collection classes
** **
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Implementation of extended char array operations, and QByteArray and ** Implementation of extended char array operations, and QByteArray and
** QCString classes ** QCString classes
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Definition of the extended char array operations, ** Definition of the extended char array operations,
** and QByteArray and QCString classes ** and QByteArray and QCString classes
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Implementation of QDataStream class ** Implementation of QDataStream class
** **
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Definition of QDataStream class ** Definition of QDataStream class
** **
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Implementation of date and time classes ** Implementation of date and time classes
** **
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Definition of date and time classes ** Definition of date and time classes
** **
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Definition of QDict template class ** Definition of QDict template class
** **
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Implementation of QDir class ** Implementation of QDir class
** **
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Definition of QDir class ** Definition of QDir class
** **
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Implementation of QDirclass ** Implementation of QDirclass
** **
......
/****************************************************************************** /******************************************************************************
* *
* * $Id$
* *
* Copyright (C) 1997-2001 by Dimitri van Heesch. * Copyright (C) 1997-2001 by Dimitri van Heesch.
* *
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Global feature selection ** Global feature selection
** **
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Implementation of QFile class ** Implementation of QFile class
** **
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Definition of QFile class ** Definition of QFile class
** **
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Implementation of QFileInfo class ** Implementation of QFileInfo class
** **
......
/****************************************************************************** /******************************************************************************
* *
* * $Id$
* *
* Copyright (C) 1997-2001 by Dimitri van Heesch. * Copyright (C) 1997-2001 by Dimitri van Heesch.
* *
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Common macros and system include files for QFile, QFileInfo and QDir. ** Common macros and system include files for QFile, QFileInfo and QDir.
** **
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Implementation of QFileInfo class ** Implementation of QFileInfo class
** **
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Definition of QFileInfo class ** Definition of QFileInfo class
** **
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Implementation of QFileInfo class ** Implementation of QFileInfo class
** **
......
/****************************************************************************** /******************************************************************************
* *
* * $Id$
* *
* Copyright (C) 1997-2001 by Dimitri van Heesch. * Copyright (C) 1997-2001 by Dimitri van Heesch.
* *
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Implementation of QGArray class ** Implementation of QGArray class
** **
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Definition of QGArray class ** Definition of QGArray class
** **
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Implementation of QGDict and QGDictIterator classes ** Implementation of QGDict and QGDictIterator classes
** **
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Definition of QGDict and QGDictIterator classes ** Definition of QGDict and QGDictIterator classes
** **
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Macros for pasting tokens; utilized by our generic classes ** Macros for pasting tokens; utilized by our generic classes
** **
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Implementation of QGList and QGListIterator classes ** Implementation of QGList and QGListIterator classes
** **
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Definition of QGList and QGListIterator classes ** Definition of QGList and QGListIterator classes
** **
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Global functions ** Global functions
** **
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Global type declarations and definitions ** Global type declarations and definitions
** **
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Implementation of QGVector class ** Implementation of QGVector class
** **
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Definition of QGVector class ** Definition of QGVector class
** **
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Definition of QIntDict template class ** Definition of QIntDict template class
** **
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Implementation of QIODevice class ** Implementation of QIODevice class
** **
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Definition of QIODevice class ** Definition of QIODevice class
** **
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Definition of QList template/macro class ** Definition of QList template/macro class
** **
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Implementation of QMap ** Implementation of QMap
** **
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Definition of QMap class ** Definition of QMap class
** **
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Definition of QPtrDict template class ** Definition of QPtrDict template class
** **
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Definition of QQueue template/macro class ** Definition of QQueue template/macro class
** **
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Implementation of QRegExp class ** Implementation of QRegExp class
** **
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Definition of QRegExp class ** Definition of QRegExp class
** **
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Definition of QShared struct ** Definition of QShared struct
** **
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Definition of QList template/macro class ** Definition of QList template/macro class
** **
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Definition of QStack template/macro class ** Definition of QStack template/macro class
** **
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Implementation of the QString class and related Unicode functions ** Implementation of the QString class and related Unicode functions
** **
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Definition of the QString class, and related Unicode ** Definition of the QString class, and related Unicode
** functions. ** functions.
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Implementation of QStringList ** Implementation of QStringList
** **
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Definition of QStringList class ** Definition of QStringList class
** **
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Definition of QStrList, QStrIList and QStrListIterator classes ** Definition of QStrList, QStrIList and QStrListIterator classes
** **
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Definition of QStrVec and QStrIVec classes ** Definition of QStrVec and QStrIVec classes
** **
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Implementation of QTextCodec class ** Implementation of QTextCodec class
** **
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Definition of QTextCodec class ** Definition of QTextCodec class
** **
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Implementation of QTextStream class ** Implementation of QTextStream class
** **
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Definition of QTextStream class ** Definition of QTextStream class
** **
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Definition of Qt template library classes ** Definition of Qt template library classes
** **
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Definition of QValueList class ** Definition of QValueList class
** **
......
/**************************************************************************** /****************************************************************************
** ** $Id$
** **
** Definition of QValueStack class ** Definition of QValueStack class
** **
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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