summaryrefslogtreecommitdiffstats
path: root/parts/doxygen/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'parts/doxygen/config.h')
-rw-r--r--parts/doxygen/config.h112
1 files changed, 56 insertions, 56 deletions
diff --git a/parts/doxygen/config.h b/parts/doxygen/config.h
index a72002c1..2486956e 100644
--- a/parts/doxygen/config.h
+++ b/parts/doxygen/config.h
@@ -1,11 +1,11 @@
#ifndef CONFIG_H
#define CONFIG_H
-#include <qstrlist.h>
-#include <qfile.h>
-#include <qdict.h>
-#include <qptrlist.h>
-#include <qtextstream.h>
+#include <tqstrlist.h>
+#include <tqfile.h>
+#include <tqdict.h>
+#include <tqptrlist.h>
+#include <tqtextstream.h>
/*! \brief Abstract base class for any configuration option.
*
@@ -44,30 +44,30 @@ class ConfigOption
/*! returns the kind of option this is. */
OptionType kind() const { return m_kind; }
- QCString name() const { return m_name; }
- QCString docs() const { return m_doc; }
+ TQCString name() const { return m_name; }
+ TQCString docs() const { return m_doc; }
- QCString dependsOn() const { return m_dependency; }
+ TQCString dependsOn() const { return m_dependency; }
void addDependency(const char *dep) { m_dependency = dep; }
- void setEncoding(const QCString &e) { m_encoding = e; }
+ void setEncoding(const TQCString &e) { m_encoding = e; }
protected:
- virtual void writeTemplate(QTextStream &t,bool sl,bool upd) = 0;
+ virtual void writeTemplate(TQTextStream &t,bool sl,bool upd) = 0;
virtual void convertStrToVal() {}
virtual void substEnvVars() = 0;
virtual void init() {}
- QCString convertToComment(const QCString &s);
- void writeBoolValue(QTextStream &t,bool v);
- void writeIntValue(QTextStream &t,int i);
- void writeStringValue(QTextStream &t,QCString &s);
- void writeStringList(QTextStream &t,QStrList &l);
-
- QCString m_spaces;
- QCString m_name;
- QCString m_doc;
- QCString m_dependency;
- QCString m_encoding;
+ TQCString convertToComment(const TQCString &s);
+ void writeBoolValue(TQTextStream &t,bool v);
+ void writeIntValue(TQTextStream &t,int i);
+ void writeStringValue(TQTextStream &t,TQCString &s);
+ void writeStringList(TQTextStream &t,TQStrList &l);
+
+ TQCString m_spaces;
+ TQCString m_name;
+ TQCString m_doc;
+ TQCString m_dependency;
+ TQCString m_encoding;
OptionType m_kind;
};
@@ -83,7 +83,7 @@ class ConfigInfo : public ConfigOption
m_name = name;
m_doc = doc;
}
- void writeTemplate(QTextStream &t, bool sl,bool)
+ void writeTemplate(TQTextStream &t, bool sl,bool)
{
if (!sl)
{
@@ -113,8 +113,8 @@ class ConfigList : public ConfigOption
void addValue(const char *v) { m_value.append(v); }
void setWidgetType(WidgetType w) { m_widgetType = w; }
WidgetType widgetType() const { return m_widgetType; }
- QStrList *valueRef() { return &m_value; }
- void writeTemplate(QTextStream &t,bool sl,bool)
+ TQStrList *valueRef() { return &m_value; }
+ void writeTemplate(TQTextStream &t,bool sl,bool)
{
if (!sl)
{
@@ -129,7 +129,7 @@ class ConfigList : public ConfigOption
void substEnvVars();
void init() { m_value.clear(); }
private:
- QStrList m_value;
+ TQStrList m_value;
WidgetType m_widgetType;
};
@@ -148,13 +148,13 @@ class ConfigEnum : public ConfigOption
m_defValue = defVal;
}
void addValue(const char *v) { m_valueRange.append(v); }
- QStrListIterator iterator()
+ TQStrListIterator iterator()
{
- return QStrListIterator(m_valueRange);
+ return TQStrListIterator(m_valueRange);
}
- QCString *valueRef() { return &m_value; }
+ TQCString *valueRef() { return &m_value; }
void substEnvVars();
- void writeTemplate(QTextStream &t,bool sl,bool)
+ void writeTemplate(TQTextStream &t,bool sl,bool)
{
if (!sl)
{
@@ -169,9 +169,9 @@ class ConfigEnum : public ConfigOption
void init() { m_value = m_defValue.copy(); }
private:
- QStrList m_valueRange;
- QCString m_value;
- QCString m_defValue;
+ TQStrList m_valueRange;
+ TQCString m_value;
+ TQCString m_defValue;
};
/*! \brief Option of the string type.
@@ -194,8 +194,8 @@ class ConfigString : public ConfigOption
void setWidgetType(WidgetType w) { m_widgetType = w; }
WidgetType widgetType() const { return m_widgetType; }
void setDefaultValue(const char *v) { m_defValue = v; }
- QCString *valueRef() { return &m_value; }
- void writeTemplate(QTextStream &t,bool sl,bool)
+ TQCString *valueRef() { return &m_value; }
+ void writeTemplate(TQTextStream &t,bool sl,bool)
{
if (!sl)
{
@@ -211,8 +211,8 @@ class ConfigString : public ConfigOption
void init() { m_value = m_defValue.copy(); }
private:
- QCString m_value;
- QCString m_defValue;
+ TQCString m_value;
+ TQCString m_defValue;
WidgetType m_widgetType;
};
@@ -232,13 +232,13 @@ class ConfigInt : public ConfigOption
m_minVal = minVal;
m_maxVal = maxVal;
}
- QCString *valueStringRef() { return &m_valueString; }
+ TQCString *valueStringRef() { return &m_valueString; }
int *valueRef() { return &m_value; }
int minVal() const { return m_minVal; }
int maxVal() const { return m_maxVal; }
void convertStrToVal();
void substEnvVars();
- void writeTemplate(QTextStream &t,bool sl,bool upd)
+ void writeTemplate(TQTextStream &t,bool sl,bool upd)
{
if (!sl)
{
@@ -263,7 +263,7 @@ class ConfigInt : public ConfigOption
int m_defValue;
int m_minVal;
int m_maxVal;
- QCString m_valueString;
+ TQCString m_valueString;
};
/*! \brief Option of the boolean type.
@@ -280,12 +280,12 @@ class ConfigBool : public ConfigOption
m_value = defVal;
m_defValue = defVal;
}
- QCString *valueStringRef() { return &m_valueString; }
+ TQCString *valueStringRef() { return &m_valueString; }
bool *valueRef() { return &m_value; }
void convertStrToVal();
void substEnvVars();
- void setValueString(const QCString &v) { m_valueString = v; }
- void writeTemplate(QTextStream &t,bool sl,bool upd)
+ void setValueString(const TQCString &v) { m_valueString = v; }
+ void writeTemplate(TQTextStream &t,bool sl,bool upd)
{
if (!sl)
{
@@ -308,7 +308,7 @@ class ConfigBool : public ConfigOption
private:
bool m_value;
bool m_defValue;
- QCString m_valueString;
+ TQCString m_valueString;
};
/*! \brief Section marker for obsolete options
@@ -318,7 +318,7 @@ class ConfigObsolete : public ConfigOption
{
public:
ConfigObsolete(OptionType t) : ConfigOption(t) {}
- void writeTemplate(QTextStream &,bool,bool) {}
+ void writeTemplate(TQTextStream &,bool,bool) {}
void substEnvVars() {}
};
@@ -364,9 +364,9 @@ class Config
/*! Returns an iterator that can by used to iterate over the
* configuration options.
*/
- QPtrListIterator<ConfigOption> iterator()
+ TQPtrListIterator<ConfigOption> iterator()
{
- return QPtrListIterator<ConfigOption>(*m_options);
+ return TQPtrListIterator<ConfigOption>(*m_options);
}
/*!
@@ -378,19 +378,19 @@ class Config
* The arguments \a num and \a name are for debugging purposes only.
* There is a convenience function Config_getString() for this.
*/
- QCString &getString(const char *fileName,int num,const char *name) const;
+ TQCString &getString(const char *fileName,int num,const char *name) const;
/*! Returns the value of the list option with name \a fileName.
* The arguments \a num and \a name are for debugging purposes only.
* There is a convenience function Config_getList() for this.
*/
- QStrList &getList(const char *fileName,int num,const char *name) const;
+ TQStrList &getList(const char *fileName,int num,const char *name) const;
/*! Returns the value of the enum option with name \a fileName.
* The arguments \a num and \a name are for debugging purposes only.
* There is a convenience function Config_getEnum() for this.
*/
- QCString &getEnum(const char *fileName,int num,const char *name) const;
+ TQCString &getEnum(const char *fileName,int num,const char *name) const;
/*! Returns the value of the integer option with name \a fileName.
* The arguments \a num and \a name are for debugging purposes only.
@@ -508,7 +508,7 @@ class Config
* is \c TRUE the description of each configuration option will
* be omitted.
*/
- void writeTemplate(QTextStream &t,bool shortIndex,bool updateOnly);
+ void writeTemplate(TQTextStream &t,bool shortIndex,bool updateOnly);
/////////////////////////////
// internal API
@@ -553,9 +553,9 @@ class Config
Config()
{
- m_options = new QPtrList<ConfigOption>;
- m_obsolete = new QPtrList<ConfigOption>;
- m_dict = new QDict<ConfigOption>(257);
+ m_options = new TQPtrList<ConfigOption>;
+ m_obsolete = new TQPtrList<ConfigOption>;
+ m_dict = new TQDict<ConfigOption>(257);
m_options->setAutoDelete(TRUE);
m_obsolete->setAutoDelete(TRUE);
m_initialized = FALSE;
@@ -569,9 +569,9 @@ class Config
}
private:
- QPtrList<ConfigOption> *m_options;
- QPtrList<ConfigOption> *m_obsolete;
- QDict<ConfigOption> *m_dict;
+ TQPtrList<ConfigOption> *m_options;
+ TQPtrList<ConfigOption> *m_obsolete;
+ TQDict<ConfigOption> *m_dict;
static Config *m_instance;
bool m_initialized;
};