summaryrefslogtreecommitdiffstats
path: root/parts/doxygen
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
commitd6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch)
treed109539636691d7b03036ca1c0ed29dbae6577cf /parts/doxygen
parent3331a47a9cad24795c7440ee8107143ce444ef34 (diff)
downloadtdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz
tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'parts/doxygen')
-rw-r--r--parts/doxygen/config.cpp190
-rw-r--r--parts/doxygen/config.h112
-rw-r--r--parts/doxygen/doxygenconfigwidget.cpp92
-rw-r--r--parts/doxygen/doxygenconfigwidget.h24
-rw-r--r--parts/doxygen/doxygenpart.cpp128
-rw-r--r--parts/doxygen/doxygenpart.h10
-rw-r--r--parts/doxygen/input.cpp154
-rw-r--r--parts/doxygen/input.h74
-rw-r--r--parts/doxygen/messages.cpp8
-rw-r--r--parts/doxygen/messages.h4
10 files changed, 398 insertions, 398 deletions
diff --git a/parts/doxygen/config.cpp b/parts/doxygen/config.cpp
index a36cf682..de582013 100644
--- a/parts/doxygen/config.cpp
+++ b/parts/doxygen/config.cpp
@@ -547,12 +547,12 @@ char *yytext;
#include <ctype.h>
#include <stdarg.h>
-#include <qfileinfo.h>
-#include <qfile.h>
-#include <qdir.h>
-#include <qtextstream.h>
-#include <qregexp.h>
-#include <qptrstack.h>
+#include <tqfileinfo.h>
+#include <tqfile.h>
+#include <tqdir.h>
+#include <tqtextstream.h>
+#include <tqregexp.h>
+#include <tqptrstack.h>
#include "config.h"
#include "version.h"
@@ -593,14 +593,14 @@ void config_warn(const char *fmt, ...)
/* -----------------------------------------------------------------
*/
-QCString ConfigOption::convertToComment(const QCString &s)
+TQCString ConfigOption::convertToComment(const TQCString &s)
{
- QCString result;
+ TQCString result;
if (s.isEmpty()) return result;
else
{
result+="# ";
- QCString tmp=s.stripWhiteSpace();
+ TQCString tmp=s.stripWhiteSpace();
char *p=tmp.data();
char c;
while ((c=*p++))
@@ -613,17 +613,17 @@ QCString ConfigOption::convertToComment(const QCString &s)
return result;
}
-void ConfigOption::writeBoolValue(QTextStream &t,bool v)
+void ConfigOption::writeBoolValue(TQTextStream &t,bool v)
{
if (v) t << "YES"; else t << "NO";
}
-void ConfigOption::writeIntValue(QTextStream &t,int i)
+void ConfigOption::writeIntValue(TQTextStream &t,int i)
{
t << i;
}
-void ConfigOption::writeStringValue(QTextStream &t,QCString &s)
+void ConfigOption::writeStringValue(TQTextStream &t,TQCString &s)
{
const char *p=s.data();
char c;
@@ -650,13 +650,13 @@ void ConfigOption::writeStringValue(QTextStream &t,QCString &s)
}
}
-void ConfigOption::writeStringList(QTextStream &t,QStrList &l)
+void ConfigOption::writeStringList(TQTextStream &t,TQStrList &l)
{
const char *p = l.first();
bool first=TRUE;
while (p)
{
- QCString s=p;
+ TQCString s=p;
if (!first) t << " ";
first=FALSE;
writeStringValue(t,s);
@@ -687,7 +687,7 @@ void ConfigInt::convertStrToVal()
void ConfigBool::convertStrToVal()
{
- QCString val = m_valueString.stripWhiteSpace().lower();
+ TQCString val = m_valueString.stripWhiteSpace().lower();
if (!val.isEmpty())
{
if (val=="yes" || val=="true" || val=="1")
@@ -706,7 +706,7 @@ void ConfigBool::convertStrToVal()
}
}
-QCString &Config::getString(const char *fileName,int num,const char *name) const
+TQCString &Config::getString(const char *fileName,int num,const char *name) const
{
ConfigOption *opt = m_dict->find(name);
if (opt==0)
@@ -722,7 +722,7 @@ QCString &Config::getString(const char *fileName,int num,const char *name) const
return *((ConfigString *)opt)->valueRef();
}
-QStrList &Config::getList(const char *fileName,int num,const char *name) const
+TQStrList &Config::getList(const char *fileName,int num,const char *name) const
{
ConfigOption *opt = m_dict->find(name);
if (opt==0)
@@ -738,7 +738,7 @@ QStrList &Config::getList(const char *fileName,int num,const char *name) const
return *((ConfigList *)opt)->valueRef();
}
-QCString &Config::getEnum(const char *fileName,int num,const char *name) const
+TQCString &Config::getEnum(const char *fileName,int num,const char *name) const
{
ConfigOption *opt = m_dict->find(name);
if (opt==0)
@@ -797,31 +797,31 @@ struct ConfigFileState
FILE *filePtr;
YY_BUFFER_STATE oldState;
YY_BUFFER_STATE newState;
- QCString fileName;
+ TQCString fileName;
};
static const char *inputString;
static int inputPosition;
static int yyLineNr;
-static QCString yyFileName;
-static QCString tmpString;
-static QCString *s=0;
+static TQCString yyFileName;
+static TQCString tmpString;
+static TQCString *s=0;
static bool *b=0;
-static QStrList *l=0;
+static TQStrList *l=0;
static int lastState;
-static QCString elemStr;
-static QCString includeName;
-static QStrList includePathList;
-static QPtrStack<ConfigFileState> includeStack;
+static TQCString elemStr;
+static TQCString includeName;
+static TQStrList includePathList;
+static TQPtrStack<ConfigFileState> includeStack;
static int includeDepth;
-static QCString tabSizeString;
-static QCString maxInitLinesString;
-static QCString colsInAlphaIndexString;
-static QCString enumValuesPerLineString;
-static QCString treeViewWidthString;
-static QCString maxDotGraphWidthString;
-static QCString maxDotGraphHeightString;
+static TQCString tabSizeString;
+static TQCString maxInitLinesString;
+static TQCString colsInAlphaIndexString;
+static TQCString enumValuesPerLineString;
+static TQCString treeViewWidthString;
+static TQCString maxDotGraphWidthString;
+static TQCString maxDotGraphHeightString;
static Config *config;
@@ -854,8 +854,8 @@ static int yyread(char *buf,int max_size)
static FILE *tryPath(const char *path,const char *fileName)
{
- QCString absName=(path ? (QCString)path+"/"+fileName : (QCString)fileName);
- QFileInfo fi(absName);
+ TQCString absName=(path ? (TQCString)path+"/"+fileName : (TQCString)fileName);
+ TQFileInfo fi(absName);
if (fi.exists() && fi.isFile())
{
FILE *f=fopen(absName,"r");
@@ -865,8 +865,8 @@ static FILE *tryPath(const char *path,const char *fileName)
return 0;
}
-static void substEnvVarsInStrList(QStrList &sl);
-static void substEnvVarsInString(QCString &s);
+static void substEnvVarsInStrList(TQStrList &sl);
+static void substEnvVarsInString(TQCString &s);
static bool isAbsolute(const char * fileName)
{
@@ -909,7 +909,7 @@ static void readIncludeFile(const char *incName)
exit(1);
}
- QCString inc = incName;
+ TQCString inc = incName;
substEnvVarsInString(inc);
inc = inc.stripWhiteSpace();
uint incLen = inc.length();
@@ -1217,7 +1217,7 @@ YY_RULE_SETUP
case 3:
YY_RULE_SETUP
#line 429 "config.l"
-{ QCString cmd=yytext;
+{ TQCString cmd=yytext;
cmd=cmd.left(cmd.length()-1).stripWhiteSpace();
ConfigOption *option = config->get(cmd);
if (option==0) // oops not known
@@ -1273,7 +1273,7 @@ YY_RULE_SETUP
case 4:
YY_RULE_SETUP
#line 481 "config.l"
-{ QCString cmd=yytext;
+{ TQCString cmd=yytext;
cmd=cmd.left(cmd.length()-2).stripWhiteSpace();
ConfigOption *option = config->get(cmd);
if (option==0) // oops not known
@@ -1446,7 +1446,7 @@ case 17:
YY_RULE_SETUP
#line 590 "config.l"
{
- QCString bs=yytext;
+ TQCString bs=yytext;
bs=bs.upper();
if (bs=="YES" || bs=="1")
*b=TRUE;
@@ -2388,17 +2388,17 @@ int main()
*/
#if 0
-static void writeBoolValue(QTextStream &t,bool v)
+static void writeBoolValue(TQTextStream &t,bool v)
{
if (v) t << "YES"; else t << "NO";
}
-static void writeIntValue(QTextStream &t,int i)
+static void writeIntValue(TQTextStream &t,int i)
{
t << i;
}
-static void writeStringValue(QTextStream &t,QCString &s)
+static void writeStringValue(TQTextStream &t,TQCString &s)
{
const char *p=s.data();
char c;
@@ -2413,7 +2413,7 @@ static void writeStringValue(QTextStream &t,QCString &s)
}
}
-static void writeStringList(QTextStream &t,QStrList &l)
+static void writeStringList(TQTextStream &t,TQStrList &l)
{
const char *p = l.first();
bool first=TRUE;
@@ -2432,7 +2432,7 @@ static void writeStringList(QTextStream &t,QStrList &l)
}
#endif
-void Config::writeTemplate(QTextStream &t,bool sl,bool upd)
+void Config::writeTemplate(TQTextStream &t,bool sl,bool upd)
{
t << "# Doxyfile " << versionString << endl << endl;
if (!sl)
@@ -2465,9 +2465,9 @@ void Config::convertStrToVal()
}
}
-static void substEnvVarsInString(QCString &s)
+static void substEnvVarsInString(TQCString &s)
{
- static QRegExp re("\\$\\([a-z_A-Z0-9]+\\)");
+ static TQRegExp re("\\$\\([a-z_A-Z0-9]+\\)");
if (s.isEmpty()) return;
int p=0;
int i,l;
@@ -2476,7 +2476,7 @@ static void substEnvVarsInString(QCString &s)
{
l = re.matchedLength();
//printf("Found environment var s.mid(%d,%d)=`%s'\n",i+2,l-3,s.mid(i+2,l-3).data());
- QCString env=getenv(s.mid(i+2,l-3));
+ TQCString env=getenv(s.mid(i+2,l-3));
substEnvVarsInString(env); // recursively expand variables if needed.
s = s.left(i)+env+s.right(s.length()-i-l);
p=i+env.length(); // next time start at the end of the expanded string
@@ -2486,12 +2486,12 @@ static void substEnvVarsInString(QCString &s)
//printf("substEnvVarInString(%s) end\n",s.data());
}
-static void substEnvVarsInStrList(QStrList &sl)
+static void substEnvVarsInStrList(TQStrList &sl)
{
char *s = sl.first();
while (s)
{
- QCString result(s);
+ TQCString result(s);
// an argument with quotes will have an extra space at the end, so wasQuoted will be TRUE.
bool wasQuoted = (result.find(' ')!=-1) || (result.find('\t')!=-1);
// here we strip the quote again
@@ -2605,7 +2605,7 @@ void Config::substituteEnvironmentVars()
}
}
-static void cleanUpPaths(QStrList &str)
+static void cleanUpPaths(TQStrList &str)
{
char *sfp = str.first();
while (sfp)
@@ -2620,20 +2620,20 @@ static void cleanUpPaths(QStrList &str)
p++;
}
}
- QCString path = sfp;
+ TQCString path = sfp;
if ((path.at(0)!='/' && (path.length()<=2 || path.at(1)!=':')) ||
path.at(path.length()-1)!='/'
)
{
- QFileInfo fi(path);
+ TQFileInfo fi(path);
if (fi.exists() && fi.isDir())
{
int i = str.at();
str.remove();
if (str.at()==i) // did not remove last item
- str.insert(i,QFile::encodeName(fi.absFilePath()+"/"));
+ str.insert(i,TQFile::encodeName(fi.absFilePath()+"/"));
else
- str.append(QFile::encodeName(fi.absFilePath()+"/"));
+ str.append(TQFile::encodeName(fi.absFilePath()+"/"));
}
}
sfp = str.next();
@@ -2647,7 +2647,7 @@ void Config::check()
// projectName[0]=toupper(projectName[0]);
//}
- QCString &warnFormat = Config_getString("WARN_FORMAT");
+ TQCString &warnFormat = Config_getString("WARN_FORMAT");
if (warnFormat.stripWhiteSpace().isEmpty())
{
warnFormat="$file:$line $text";
@@ -2668,7 +2668,7 @@ void Config::check()
}
}
- QCString &manExtension = Config_getString("MAN_EXTENSION");
+ TQCString &manExtension = Config_getString("MAN_EXTENSION");
// set default man page extension if non is given by the user
if (manExtension.isEmpty())
@@ -2676,7 +2676,7 @@ void Config::check()
manExtension=".3";
}
- QCString &paperType = Config_getEnum("PAPER_TYPE");
+ TQCString &paperType = Config_getEnum("PAPER_TYPE");
paperType=paperType.lower().stripWhiteSpace();
if (paperType.isEmpty())
{
@@ -2688,14 +2688,14 @@ void Config::check()
config_err("Error: Unknown page type specified");
}
- QCString &outputLanguage=Config_getEnum("OUTPUT_LANGUAGE");
+ TQCString &outputLanguage=Config_getEnum("OUTPUT_LANGUAGE");
outputLanguage=outputLanguage.stripWhiteSpace();
if (outputLanguage.isEmpty())
{
outputLanguage = "English";
}
- QCString &htmlFileExtension=Config_getString("HTML_FILE_EXTENSION");
+ TQCString &htmlFileExtension=Config_getString("HTML_FILE_EXTENSION");
htmlFileExtension=htmlFileExtension.stripWhiteSpace();
if (htmlFileExtension.isEmpty())
{
@@ -2703,11 +2703,11 @@ void Config::check()
}
// expand the relative stripFromPath values
- QStrList &stripFromPath = Config_getList("STRIP_FROM_PATH");
+ TQStrList &stripFromPath = Config_getList("STRIP_FROM_PATH");
char *sfp = stripFromPath.first();
if (sfp==0) // by default use the current path
{
- stripFromPath.append(QFile::encodeName(QDir::currentDirPath()+"/"));
+ stripFromPath.append(TQFile::encodeName(TQDir::currentDirPath()+"/"));
}
else
{
@@ -2715,14 +2715,14 @@ void Config::check()
}
// expand the relative stripFromPath values
- QStrList &stripFromIncPath = Config_getList("STRIP_FROM_INC_PATH");
+ TQStrList &stripFromIncPath = Config_getList("STRIP_FROM_INC_PATH");
cleanUpPaths(stripFromIncPath);
// Test to see if HTML header is valid
- QCString &headerFile = Config_getString("HTML_HEADER");
+ TQCString &headerFile = Config_getString("HTML_HEADER");
if (!headerFile.isEmpty())
{
- QFileInfo fi(headerFile);
+ TQFileInfo fi(headerFile);
if (!fi.exists())
{
config_err("Error: tag HTML_HEADER: header file `%s' "
@@ -2731,10 +2731,10 @@ void Config::check()
}
}
// Test to see if HTML footer is valid
- QCString &footerFile = Config_getString("HTML_FOOTER");
+ TQCString &footerFile = Config_getString("HTML_FOOTER");
if (!footerFile.isEmpty())
{
- QFileInfo fi(footerFile);
+ TQFileInfo fi(footerFile);
if (!fi.exists())
{
config_err("Error: tag HTML_FOOTER: footer file `%s' "
@@ -2743,10 +2743,10 @@ void Config::check()
}
}
// Test to see if LaTeX header is valid
- QCString &latexHeaderFile = Config_getString("LATEX_HEADER");
+ TQCString &latexHeaderFile = Config_getString("LATEX_HEADER");
if (!latexHeaderFile.isEmpty())
{
- QFileInfo fi(latexHeaderFile);
+ TQFileInfo fi(latexHeaderFile);
if (!fi.exists())
{
config_err("Error: tag LATEX_HEADER: header file `%s' "
@@ -2755,24 +2755,24 @@ void Config::check()
}
}
// check include path
- QStrList &includePath = Config_getList("INCLUDE_PATH");
+ TQStrList &includePath = Config_getList("INCLUDE_PATH");
char *s=includePath.first();
while (s)
{
- QFileInfo fi(s);
+ TQFileInfo fi(s);
if (!fi.exists()) config_err("Warning: tag INCLUDE_PATH: include path `%s' "
"does not exist\n",s);
s=includePath.next();
}
// check aliases
- QStrList &aliasList = Config_getList("ALIASES");
+ TQStrList &aliasList = Config_getList("ALIASES");
s=aliasList.first();
while (s)
{
- QRegExp re1("[a-z_A-Z][a-z_A-Z0-9]*[ \t]*="); // alias without argument
- QRegExp re2("[a-z_A-Z][a-z_A-Z0-9]*{[0-9]*}[ \t]*="); // alias with argument
- QCString alias=s;
+ TQRegExp re1("[a-z_A-Z][a-z_A-Z0-9]*[ \t]*="); // alias without argument
+ TQRegExp re2("[a-z_A-Z][a-z_A-Z0-9]*{[0-9]*}[ \t]*="); // alias with argument
+ TQCString alias=s;
alias=alias.stripWhiteSpace();
if (alias.find(re1)!=0 && alias.find(re2)!=0)
{
@@ -2783,7 +2783,7 @@ void Config::check()
}
// check dot image format
- QCString &dotImageFormat=Config_getEnum("DOT_IMAGE_FORMAT");
+ TQCString &dotImageFormat=Config_getEnum("DOT_IMAGE_FORMAT");
dotImageFormat=dotImageFormat.stripWhiteSpace();
if (dotImageFormat.isEmpty())
{
@@ -2797,10 +2797,10 @@ void Config::check()
// check dot path
- QCString &dotPath = Config_getString("DOT_PATH");
+ TQCString &dotPath = Config_getString("DOT_PATH");
if (!dotPath.isEmpty())
{
- QFileInfo dp(dotPath+"/dot"+portable_commandExtension());
+ TQFileInfo dp(dotPath+"/dot"+portable_commandExtension());
if (!dp.exists() || !dp.isFile())
{
config_err("Warning: the dot tool could not be found at %s\n",dotPath.data());
@@ -2808,7 +2808,7 @@ void Config::check()
}
else
{
- dotPath=QFile::encodeName( dp.dirPath(TRUE)+"/" );
+ dotPath=TQFile::encodeName( dp.dirPath(TRUE)+"/" );
#if defined(_WIN32) // convert slashes
uint i=0,l=dotPath.length();
for (i=0;i<l;i++) if (dotPath.at(i)=='/') dotPath.at(i)='\\';
@@ -2821,10 +2821,10 @@ void Config::check()
}
// check mscgen path
- QCString &mscgenPath = Config_getString("MSCGEN_PATH");
+ TQCString &mscgenPath = Config_getString("MSCGEN_PATH");
if (!mscgenPath.isEmpty())
{
- QFileInfo dp(mscgenPath+"/mscgen"+portable_commandExtension());
+ TQFileInfo dp(mscgenPath+"/mscgen"+portable_commandExtension());
if (!dp.exists() || !dp.isFile())
{
config_err("Warning: the mscgen tool could not be found at %s\n",mscgenPath.data());
@@ -2832,7 +2832,7 @@ void Config::check()
}
else
{
- mscgenPath=QFile::encodeName( dp.dirPath(TRUE)+"/" );
+ mscgenPath=TQFile::encodeName( dp.dirPath(TRUE)+"/" );
#if defined(_WIN32) // convert slashes
uint i=0,l=mscgenPath.length();
for (i=0;i<l;i++) if (mscgenPath.at(i)=='/') mscgenPath.at(i)='\\';
@@ -2846,18 +2846,18 @@ void Config::check()
// check input
- QStrList &inputSources=Config_getList("INPUT");
+ TQStrList &inputSources=Config_getList("INPUT");
if (inputSources.count()==0)
{
// use current dir as the default
- inputSources.append(QFile::encodeName( QDir::currentDirPath() ));
+ inputSources.append(TQFile::encodeName( TQDir::currentDirPath() ));
}
else
{
s=inputSources.first();
while (s)
{
- QFileInfo fi(s);
+ TQFileInfo fi(s);
if (!fi.exists())
{
config_err("Warning: tag INPUT: input source `%s' does not exist\n",s);
@@ -2867,7 +2867,7 @@ void Config::check()
}
// add default pattern if needed
- QStrList &filePatternList = Config_getList("FILE_PATTERNS");
+ TQStrList &filePatternList = Config_getList("FILE_PATTERNS");
if (filePatternList.isEmpty())
{
filePatternList.append("*.c");
@@ -2926,7 +2926,7 @@ void Config::check()
}
// add default pattern if needed
- QStrList &examplePatternList = Config_getList("EXAMPLE_PATTERNS");
+ TQStrList &examplePatternList = Config_getList("EXAMPLE_PATTERNS");
if (examplePatternList.isEmpty())
{
examplePatternList.append("*");
@@ -3033,7 +3033,7 @@ void Config::check()
// add default words if needed
- QStrList &annotationFromBrief = Config_getList("ABBREVIATE_BRIEF");
+ TQStrList &annotationFromBrief = Config_getList("ABBREVIATE_BRIEF");
if (annotationFromBrief.isEmpty())
{
annotationFromBrief.append("The $name class");
@@ -5080,10 +5080,10 @@ void Config::create()
// The IMAGE_PATTERNS tag is now officially obsolete.
}
-static QCString configFileToString(const char *name)
+static TQCString configFileToString(const char *name)
{
if (name==0 || name[0]==0) return 0;
- QFile f;
+ TQFile f;
bool fileOpened=FALSE;
if (name[0]=='-' && name[1]==0) // read from stdin
@@ -5092,7 +5092,7 @@ static QCString configFileToString(const char *name)
if (fileOpened)
{
const int bSize=4096;
- QCString contents(bSize);
+ TQCString contents(bSize);
int totalSize=0;
int size;
while ((size=f.readBlock(contents.data()+totalSize,bSize))==bSize)
@@ -5109,7 +5109,7 @@ static QCString configFileToString(const char *name)
}
else // read from file
{
- QFileInfo fi(name);
+ TQFileInfo fi(name);
if (!fi.exists() || !fi.isFile())
{
config_err("Error: file `%s' not found\n",name);
@@ -5120,7 +5120,7 @@ static QCString configFileToString(const char *name)
if (fileOpened)
{
int fsize=f.size();
- QCString contents(fsize+2);
+ TQCString contents(fsize+2);
f.readBlock(contents.data(),fsize);
f.close();
if (fsize==0 || contents[fsize-1]=='\n')
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;
};
diff --git a/parts/doxygen/doxygenconfigwidget.cpp b/parts/doxygen/doxygenconfigwidget.cpp
index 27f39863..8269bf0e 100644
--- a/parts/doxygen/doxygenconfigwidget.cpp
+++ b/parts/doxygen/doxygenconfigwidget.cpp
@@ -13,10 +13,10 @@
#include "doxygenconfigwidget.h"
-#include <qscrollview.h>
-#include <qvbox.h>
-#include <qwhatsthis.h>
-#include <qtextstream.h>
+#include <tqscrollview.h>
+#include <tqvbox.h>
+#include <tqwhatsthis.h>
+#include <tqtextstream.h>
#include <klocale.h>
#include <kdebug.h>
@@ -27,30 +27,30 @@
#include "messages.h"
-DoxygenConfigWidget::DoxygenConfigWidget(const QString &fileName, QWidget *parent, const char *name)
- : QTabWidget(parent, name)
+DoxygenConfigWidget::DoxygenConfigWidget(const TQString &fileName, TQWidget *parent, const char *name)
+ : TQTabWidget(parent, name)
{
m_hasChanged = false;
- m_dependencies = new QDict< QPtrList<IInput> >(257);
+ m_dependencies = new TQDict< TQPtrList<IInput> >(257);
m_dependencies->setAutoDelete(true);
- m_inputWidgets = new QDict< IInput >;
- m_switches = new QDict< QObject >;
+ m_inputWidgets = new TQDict< IInput >;
+ m_switches = new TQDict< TQObject >;
- QPtrListIterator<ConfigOption> options = Config::instance()->iterator();
- QScrollView *page = 0;
- QVBox *pagebox = 0;
+ TQPtrListIterator<ConfigOption> options = Config::instance()->iterator();
+ TQScrollView *page = 0;
+ TQVBox *pagebox = 0;
ConfigOption *option = 0;
for (options.toFirst(); (option=options.current()); ++options) {
switch(option->kind())
{
case ConfigOption::O_Info:
- page = new QScrollView(this, option->name());
+ page = new TQScrollView(this, option->name());
page->viewport()->setBackgroundMode(PaletteBackground);
- pagebox = new QVBox(0);
+ pagebox = new TQVBox(0);
Q_ASSERT(pagebox!=0);
page->addChild(pagebox);
addTab(page, message(option->name()));
- QWhatsThis::add(page, option->docs().simplifyWhiteSpace() );
+ TQWhatsThis::add(page, option->docs().simplifyWhiteSpace() );
break;
case ConfigOption::O_String:
{
@@ -67,8 +67,8 @@ DoxygenConfigWidget::DoxygenConfigWidget(const QString &fileName, QWidget *paren
*((ConfigString *)option)->valueRef(), // variable
sm // type
);
- QWhatsThis::add(inputString, option->docs().simplifyWhiteSpace());
- connect(inputString, SIGNAL(changed()), this, SLOT(changed()));
+ TQWhatsThis::add(inputString, option->docs().simplifyWhiteSpace());
+ connect(inputString, TQT_SIGNAL(changed()), this, TQT_SLOT(changed()));
m_inputWidgets->insert(option->name(), inputString);
addDependency(m_switches, option->dependsOn(), option->name());
}
@@ -82,11 +82,11 @@ DoxygenConfigWidget::DoxygenConfigWidget(const QString &fileName, QWidget *paren
*((ConfigEnum *)option)->valueRef(), // variable
InputString::StringFixed // type
);
- QStrListIterator sli=((ConfigEnum *)option)->iterator();
+ TQStrListIterator sli=((ConfigEnum *)option)->iterator();
for (sli.toFirst(); sli.current(); ++sli)
inputString->addValue(sli.current());
- QWhatsThis::add(inputString, option->docs().simplifyWhiteSpace());
- connect(inputString, SIGNAL(changed()), this, SLOT(changed()));
+ TQWhatsThis::add(inputString, option->docs().simplifyWhiteSpace());
+ connect(inputString, TQT_SIGNAL(changed()), this, TQT_SLOT(changed()));
m_inputWidgets->insert(option->name(),inputString);
addDependency(m_switches, option->dependsOn(), option->name());
}
@@ -108,8 +108,8 @@ DoxygenConfigWidget::DoxygenConfigWidget(const QString &fileName, QWidget *paren
*((ConfigList *)option)->valueRef(), // variable
lm // type
);
- QWhatsThis::add(inputStrList, option->docs().simplifyWhiteSpace());
- connect(inputStrList, SIGNAL(changed()), this, SLOT(changed()));
+ TQWhatsThis::add(inputStrList, option->docs().simplifyWhiteSpace());
+ connect(inputStrList, TQT_SIGNAL(changed()), this, TQT_SLOT(changed()));
m_inputWidgets->insert(option->name(),inputStrList);
addDependency(m_switches, option->dependsOn(), option->name());
}
@@ -123,8 +123,8 @@ DoxygenConfigWidget::DoxygenConfigWidget(const QString &fileName, QWidget *paren
pagebox, // widget
*((ConfigBool *)option)->valueRef() // variable
);
- QWhatsThis::add(inputBool, option->docs().simplifyWhiteSpace());
- connect(inputBool, SIGNAL(changed()), this, SLOT(changed()));
+ TQWhatsThis::add(inputBool, option->docs().simplifyWhiteSpace());
+ connect(inputBool, TQT_SIGNAL(changed()), this, TQT_SLOT(changed()));
m_inputWidgets->insert(option->name(), inputBool);
addDependency(m_switches, option->dependsOn(), option->name());
}
@@ -139,8 +139,8 @@ DoxygenConfigWidget::DoxygenConfigWidget(const QString &fileName, QWidget *paren
((ConfigInt *)option)->minVal(), // min value
((ConfigInt *)option)->maxVal() // max value
);
- QWhatsThis::add(inputInt, option->docs().simplifyWhiteSpace());
- connect(inputInt, SIGNAL(changed()), this, SLOT(changed()));
+ TQWhatsThis::add(inputInt, option->docs().simplifyWhiteSpace());
+ connect(inputInt, TQT_SIGNAL(changed()), this, TQT_SLOT(changed()));
m_inputWidgets->insert(option->name(), inputInt);
addDependency(m_switches, option->dependsOn(), option->name());
}
@@ -150,10 +150,10 @@ DoxygenConfigWidget::DoxygenConfigWidget(const QString &fileName, QWidget *paren
}
}
- QDictIterator<QObject> di(*m_switches);
+ TQDictIterator<TQObject> di(*m_switches);
for (; di.current(); ++di) {
- QObject *obj = di.current();
- connect(obj, SIGNAL(toggle(const QString&, bool)), this, SLOT(toggle(const QString&, bool)));
+ TQObject *obj = di.current();
+ connect(obj, TQT_SIGNAL(toggle(const TQString&, bool)), this, TQT_SLOT(toggle(const TQString&, bool)));
// UGLY HACK: assumes each item depends on a boolean without checking!
emit toggle(di.currentKey(), ((InputBool *)obj)->getState());
}
@@ -171,15 +171,15 @@ DoxygenConfigWidget::~DoxygenConfigWidget()
}
-QSize DoxygenConfigWidget::sizeHint() const
+TQSize DoxygenConfigWidget::sizeHint() const
{
// without this the whole dialog becomes much too large
- return QSize(QTabWidget::sizeHint().width(), 1);
+ return TQSize(TQTabWidget::sizeHint().width(), 1);
}
-void DoxygenConfigWidget::addDependency(QDict<QObject> *switches,
- const QCString &dep, const QCString &name)
+void DoxygenConfigWidget::addDependency(TQDict<TQObject> *switches,
+ const TQCString &dep, const TQCString &name)
{
if (dep.isEmpty())
return;
@@ -190,18 +190,18 @@ void DoxygenConfigWidget::addDependency(QDict<QObject> *switches,
Q_ASSERT(child!=0);
if (!switches->find(dep))
switches->insert(dep, parent->qobject());
- QPtrList<IInput> *list = m_dependencies->find(dep);
+ TQPtrList<IInput> *list = m_dependencies->find(dep);
if (!list) {
- list = new QPtrList<IInput>;
+ list = new TQPtrList<IInput>;
m_dependencies->insert(dep, list);
}
list->append(child);
}
-void DoxygenConfigWidget::toggle(const QString &name, bool state)
+void DoxygenConfigWidget::toggle(const TQString &name, bool state)
{
- QPtrList<IInput> *inputs = m_dependencies->find(name);
+ TQPtrList<IInput> *inputs = m_dependencies->find(name);
Q_ASSERT(inputs!=0);
IInput *input = inputs->first();
while (input) {
@@ -219,14 +219,14 @@ void DoxygenConfigWidget::changed()
void DoxygenConfigWidget::init()
{
- QDictIterator<IInput> di(*m_inputWidgets);
+ TQDictIterator<IInput> di(*m_inputWidgets);
for (; di.current(); ++di)
di.current()->init();
- QDictIterator<QObject> dio(*m_switches);
+ TQDictIterator<TQObject> dio(*m_switches);
for (; dio.current(); ++dio) {
- QObject *obj = dio.current();
- connect(obj, SIGNAL(toggle(const QString&, bool)), this, SLOT(toggle(const QString&, bool)));
+ TQObject *obj = dio.current();
+ connect(obj, TQT_SIGNAL(toggle(const TQString&, bool)), this, TQT_SLOT(toggle(const TQString&, bool)));
// UGLY HACK: assumes each item depends on a boolean without checking!
emit toggle(dio.currentKey(), ((InputBool *)obj)->getState());
}
@@ -237,11 +237,11 @@ void DoxygenConfigWidget::loadFile()
{
Config::instance()->init();
- QFile f(m_fileName);
+ TQFile f(m_fileName);
if (f.open(IO_ReadOnly)) {
- QTextStream is(&f);
+ TQTextStream is(&f);
- Config::instance()->parse(QFile::encodeName(m_fileName));
+ Config::instance()->parse(TQFile::encodeName(m_fileName));
Config::instance()->convertStrToVal();
f.close();
@@ -253,11 +253,11 @@ void DoxygenConfigWidget::loadFile()
void DoxygenConfigWidget::saveFile()
{
- QFile f(m_fileName);
+ TQFile f(m_fileName);
if (!f.open(IO_WriteOnly)) {
KMessageBox::information(0, i18n("Cannot write Doxyfile."));
} else {
- QTextStream t(&f);
+ TQTextStream t(&f);
Config::instance()->writeTemplate(t, true, false);
diff --git a/parts/doxygen/doxygenconfigwidget.h b/parts/doxygen/doxygenconfigwidget.h
index be75e203..4dd68178 100644
--- a/parts/doxygen/doxygenconfigwidget.h
+++ b/parts/doxygen/doxygenconfigwidget.h
@@ -14,9 +14,9 @@
#ifndef _DOXYGENCONFIGWIDGET_H_
#define _DOXYGENCONFIGWIDGET_H_
-#include <qtabwidget.h>
-#include <qdict.h>
-#include <qptrlist.h>
+#include <tqtabwidget.h>
+#include <tqdict.h>
+#include <tqptrlist.h>
class IInput;
@@ -26,29 +26,29 @@ class DoxygenConfigWidget : public QTabWidget
Q_OBJECT
public:
- DoxygenConfigWidget( const QString &fileName, QWidget *parent=0, const char *name=0 );
+ DoxygenConfigWidget( const TQString &fileName, TQWidget *parent=0, const char *name=0 );
~DoxygenConfigWidget();
public slots:
void accept();
private slots:
- void toggle(const QString&, bool);
+ void toggle(const TQString&, bool);
void changed();
private:
- QSize sizeHint() const;
+ TQSize sizeHint() const;
void loadFile();
void saveFile();
void init();
- void addDependency(QDict<QObject> *switches,
- const QCString &dep, const QCString &name);
+ void addDependency(TQDict<TQObject> *switches,
+ const TQCString &dep, const TQCString &name);
- QString m_fileName;
+ TQString m_fileName;
bool m_hasChanged;
- QDict<IInput> *m_inputWidgets;
- QDict< QPtrList<IInput> > *m_dependencies;
- QDict<QObject> *m_switches;
+ TQDict<IInput> *m_inputWidgets;
+ TQDict< TQPtrList<IInput> > *m_dependencies;
+ TQDict<TQObject> *m_switches;
};
#endif
diff --git a/parts/doxygen/doxygenpart.cpp b/parts/doxygen/doxygenpart.cpp
index 5582371b..833f4938 100644
--- a/parts/doxygen/doxygenpart.cpp
+++ b/parts/doxygen/doxygenpart.cpp
@@ -39,11 +39,11 @@
#include <kdialogbase.h>
#include <kdevplugininfo.h>
-#include <qvbox.h>
-#include <qfile.h>
-#include <qtextstream.h>
-#include <qpopupmenu.h>
-#include <qfileinfo.h>
+#include <tqvbox.h>
+#include <tqfile.h>
+#include <tqtextstream.h>
+#include <tqpopupmenu.h>
+#include <tqfileinfo.h>
#define PROJECTOPTIONS 1
@@ -51,7 +51,7 @@ typedef KDevGenericFactory<DoxygenPart> DoxygenFactory;
static const KDevPluginInfo data("kdevdoxygen");
K_EXPORT_COMPONENT_FACTORY( libkdevdoxygen, DoxygenFactory( data ) )
-DoxygenPart::DoxygenPart(QObject *parent, const char *name, const QStringList &)
+DoxygenPart::DoxygenPart(TQObject *parent, const char *name, const TQStringList &)
: KDevPlugin(&data, parent, name ? name : "DoxygenPart"), m_activeEditor(0), m_cursor(0)
{
setInstance(DoxygenFactory::instance());
@@ -59,44 +59,44 @@ DoxygenPart::DoxygenPart(QObject *parent, const char *name, const QStringList &)
KAction *action;
action = new KAction( i18n("Build API Documentation"), 0,
- this, SLOT(slotDoxygen()),
+ this, TQT_SLOT(slotDoxygen()),
actionCollection(), "build_doxygen" );
action->setToolTip(i18n("Build API documentation"));
action->setWhatsThis(i18n("<b>Build API documentation</b><p>Runs doxygen on a project Doxyfile to generate API documentation. "
"If the search engine is enabled in Doxyfile, this also runs doxytag to create it."));
action = new KAction( i18n("Clean API Documentation"), 0,
- this, SLOT(slotDoxClean()),
+ this, TQT_SLOT(slotDoxClean()),
actionCollection(), "clean_doxygen" );
action->setToolTip(i18n("Clean API documentation"));
action->setWhatsThis(i18n("<b>Clean API documentation</b><p>Removes all generated by doxygen files."));
-// connect( core(), SIGNAL(projectConfigWidget(KDialogBase*)), this, SLOT(projectConfigWidget(KDialogBase*)) );
+// connect( core(), TQT_SIGNAL(projectConfigWidget(KDialogBase*)), this, TQT_SLOT(projectConfigWidget(KDialogBase*)) );
_configProxy = new ConfigWidgetProxy( core() );
_configProxy->createProjectConfigPage( i18n("Doxygen"), PROJECTOPTIONS, info()->icon() );
- connect( _configProxy, SIGNAL(insertConfigWidget(const KDialogBase*, QWidget*, unsigned int )),
- this, SLOT(insertConfigWidget(const KDialogBase*, QWidget*, unsigned int )) );
+ connect( _configProxy, TQT_SIGNAL(insertConfigWidget(const KDialogBase*, TQWidget*, unsigned int )),
+ this, TQT_SLOT(insertConfigWidget(const KDialogBase*, TQWidget*, unsigned int )) );
- m_actionDocumentFunction = new KAction(i18n("Document Current Function"), 0, CTRL+SHIFT+Key_S, this, SLOT(slotDocumentFunction()), actionCollection(), "edit_document_function");
+ m_actionDocumentFunction = new KAction(i18n("Document Current Function"), 0, CTRL+SHIFT+Key_S, this, TQT_SLOT(slotDocumentFunction()), actionCollection(), "edit_document_function");
m_actionDocumentFunction->setToolTip( i18n("Create a documentation template above a function"));
m_actionDocumentFunction->setWhatsThis(i18n("<b>Document Current Function</b><p>Creates a documentation template according to a function's signature above a function definition/declaration."));
m_tmpDir.setAutoDelete(true);
- connect( partController(), SIGNAL(activePartChanged(KParts::Part*)), this, SLOT(slotActivePartChanged(KParts::Part* )));
- m_actionPreview = new KAction(i18n("Preview Doxygen Output"), 0, CTRL+ALT+Key_P, this, SLOT(slotRunPreview()), actionCollection(), "show_preview_doxygen_output");
+ connect( partController(), TQT_SIGNAL(activePartChanged(KParts::Part*)), this, TQT_SLOT(slotActivePartChanged(KParts::Part* )));
+ m_actionPreview = new KAction(i18n("Preview Doxygen Output"), 0, CTRL+ALT+Key_P, this, TQT_SLOT(slotRunPreview()), actionCollection(), "show_preview_doxygen_output");
m_actionPreview->setToolTip( i18n("Show a preview of the Doxygen output of this file") );
m_actionPreview->setWhatsThis( i18n("<b>Preview Doxygen output</b><p>Runs Doxygen over the current file and shows the created index.html.") );
//read Doxygen configuration, if none exists yet, create it with some defaults
adjustDoxyfile();
- QString fileName = project()->projectDirectory() + "/Doxyfile";
+ TQString fileName = project()->projectDirectory() + "/Doxyfile";
- QFile file(fileName);
+ TQFile file(fileName);
if (file.open(IO_ReadOnly)) {
- QTextStream is(&file);
+ TQTextStream is(&file);
- Config::instance()->parse(QFile::encodeName(fileName));
+ Config::instance()->parse(TQFile::encodeName(fileName));
Config::instance()->convertStrToVal();
file.close();
@@ -109,14 +109,14 @@ DoxygenPart::~DoxygenPart()
delete _configProxy;
}
-void DoxygenPart::insertConfigWidget( const KDialogBase * dlg, QWidget * page, unsigned int pagenumber )
+void DoxygenPart::insertConfigWidget( const KDialogBase * dlg, TQWidget * page, unsigned int pagenumber )
{
if ( pagenumber == PROJECTOPTIONS )
{
adjustDoxyfile();
DoxygenConfigWidget *w = new DoxygenConfigWidget(project()->projectDirectory() + "/Doxyfile", page );
- connect( dlg, SIGNAL(okClicked()), w, SLOT(accept()) );
+ connect( dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(accept()) );
}
}
@@ -125,8 +125,8 @@ void DoxygenPart::insertConfigWidget( const KDialogBase * dlg, QWidget * page, u
*/
void DoxygenPart::adjustDoxyfile()
{
- QString fileName = project()->projectDirectory() + "/Doxyfile";
- if (QFile::exists(fileName))
+ TQString fileName = project()->projectDirectory() + "/Doxyfile";
+ if (TQFile::exists(fileName))
return;
// Initialize configuration
@@ -156,7 +156,7 @@ void DoxygenPart::adjustDoxyfile()
if (input_files)
{
input_files->init();
- input_files->addValue(QFile::encodeName(project()->projectDirectory()));
+ input_files->addValue(TQFile::encodeName(project()->projectDirectory()));
}
// insert file patterns into "Input/FILE_PATTERNS"
@@ -195,17 +195,17 @@ void DoxygenPart::adjustDoxyfile()
ConfigString *gen_tag = dynamic_cast<ConfigString*>(Config::instance()->get("GENERATE_TAGFILE"));
if (gen_tag)
{
- gen_tag->setDefaultValue(QString(project()->projectName()+".tag").latin1());
+ gen_tag->setDefaultValue(TQString(project()->projectName()+".tag").latin1());
gen_tag->init();
}
// write doxy file
- QFile f2(fileName);
+ TQFile f2(fileName);
if (!f2.open(IO_WriteOnly))
KMessageBox::information(mainWindow()->main(), i18n("Cannot write Doxyfile."));
else
{
- QTextStream ts_file(&f2);
+ TQTextStream ts_file(&f2);
Config::instance()->writeTemplate(ts_file, true, true);
@@ -219,21 +219,21 @@ void DoxygenPart::slotDoxygen()
if ( !partController()->saveAllFiles() ) return;
bool searchDatabase = false;
- QString outputDirectory;
- QString htmlDirectory;
+ TQString outputDirectory;
+ TQString htmlDirectory;
adjustDoxyfile();
- QString fileName = project()->projectDirectory() + "/Doxyfile";
+ TQString fileName = project()->projectDirectory() + "/Doxyfile";
Config::instance()->init();
- QFile f(fileName);
+ TQFile f(fileName);
if (f.open(IO_ReadOnly))
{
- QTextStream is(&f);
+ TQTextStream is(&f);
- Config::instance()->parse(QFile::encodeName(fileName));
+ Config::instance()->parse(TQFile::encodeName(fileName));
Config::instance()->convertStrToVal();
f.close();
@@ -258,8 +258,8 @@ void DoxygenPart::slotDoxygen()
}
}
- QString dir = project()->projectDirectory();
- QString cmdline = "cd ";
+ TQString dir = project()->projectDirectory();
+ TQString cmdline = "cd ";
cmdline += KShellProcess::quote( dir );
cmdline += " && doxygen Doxyfile";
if (searchDatabase)
@@ -281,15 +281,15 @@ void DoxygenPart::slotDoxClean()
{
bool could_be_dirty = false;
- QString outputDirectory = Config_getString("OUTPUT_DIRECTORY");
+ TQString outputDirectory = Config_getString("OUTPUT_DIRECTORY");
if ( outputDirectory.isEmpty() )
outputDirectory = project()->projectDirectory();
if ( outputDirectory.right(1) != "/" )
outputDirectory += "/";
- QString cmdline = "cd " + KShellProcess::quote( outputDirectory );
+ TQString cmdline = "cd " + KShellProcess::quote( outputDirectory );
if ( Config_getBool("GENERATE_HTML") ) {
- QString htmlDirectory = Config_getString("HTML_OUTPUT");
+ TQString htmlDirectory = Config_getString("HTML_OUTPUT");
if ( htmlDirectory.isEmpty() )
htmlDirectory = "html";
if ( htmlDirectory.right(1) != "/" )
@@ -299,7 +299,7 @@ void DoxygenPart::slotDoxClean()
}
if ( Config_getBool("GENERATE_LATEX") ) {
- QString latexDirectory = Config_getString("LATEX_OUTPUT");
+ TQString latexDirectory = Config_getString("LATEX_OUTPUT");
if ( latexDirectory.isEmpty() )
latexDirectory = "latex";
if ( latexDirectory.right(1) != "/" )
@@ -309,7 +309,7 @@ void DoxygenPart::slotDoxClean()
}
if ( Config_getBool("GENERATE_RTF") ) {
- QString rtfDirectory = Config_getString("RTF_OUTPUT");
+ TQString rtfDirectory = Config_getString("RTF_OUTPUT");
if ( rtfDirectory.isEmpty() )
rtfDirectory = "rtf";
if ( rtfDirectory.right(1) != "/" )
@@ -319,7 +319,7 @@ void DoxygenPart::slotDoxClean()
}
if ( Config_getBool("GENERATE_MAN") ) {
- QString manDirectory = Config_getString("MAN_OUTPUT");
+ TQString manDirectory = Config_getString("MAN_OUTPUT");
if ( manDirectory.isEmpty() )
manDirectory = "man";
if ( manDirectory.right(1) != "/" )
@@ -329,7 +329,7 @@ void DoxygenPart::slotDoxClean()
}
if ( Config_getBool("GENERATE_XML") ) {
- QString xmlDirectory = Config_getString("XML_OUTPUT");
+ TQString xmlDirectory = Config_getString("XML_OUTPUT");
if ( xmlDirectory.isEmpty() )
xmlDirectory = "xml";
if ( xmlDirectory.right(1) != "/" )
@@ -384,16 +384,16 @@ void DoxygenPart::slotRunPreview( )
ConfigString* pStyle = dynamic_cast<ConfigString*>(config->get("HTML_STYLESHEET"));
//store config values to restore them later | override config values to get only the current file processed
- QCString dirVal;
+ TQCString dirVal;
if (poDir != 0) {
dirVal = *poDir->valueRef();
*poDir->valueRef() = m_tmpDir.name().ascii();
}
- QStrList inputVal;
+ TQStrList inputVal;
if (pInput != 0) {
inputVal = *pInput->valueRef();
- QStrList xl;
+ TQStrList xl;
xl.append(m_file.ascii());
*pInput->valueRef() = xl;
} else {
@@ -402,44 +402,44 @@ void DoxygenPart::slotRunPreview( )
"# directories like \"/usr/src/myproject\". Separate the files or directories\n"
"# with spaces.");
pInput = dynamic_cast<ConfigList*>(config->get("INPUT")); //pinput now has to be != 0
- QStrList xl;
+ TQStrList xl;
xl.append(m_file.ascii());
*pInput->valueRef() = xl;
}
- QCString header;
- QCString footer;
- QCString stylesheet;
+ TQCString header;
+ TQCString footer;
+ TQCString stylesheet;
//if header/footer/stylesheets are set, make sure they get found in the doxygen run
- QString projectDir = project()->projectDirectory();
+ TQString projectDir = project()->projectDirectory();
if (pHeader != 0 && !pHeader->valueRef()->isEmpty()){
header = *pHeader->valueRef();
- QFileInfo info (header);
+ TQFileInfo info (header);
if (info.isRelative())
- *pHeader->valueRef() = QString(projectDir + "/" + QString(header)).ascii();
+ *pHeader->valueRef() = TQString(projectDir + "/" + TQString(header)).ascii();
else
header = 0;
}
if (pFooter != 0 && !pFooter->valueRef()->isEmpty()){
footer = *pFooter->valueRef();
- QFileInfo info (footer);
+ TQFileInfo info (footer);
if (info.isRelative())
- *pFooter->valueRef() = QString(projectDir + "/" + QString(footer)).ascii();
+ *pFooter->valueRef() = TQString(projectDir + "/" + TQString(footer)).ascii();
else
footer = 0;
}
if (pStyle != 0 && !pStyle->valueRef()->isEmpty()){
stylesheet = *pStyle->valueRef();
- QFileInfo info (stylesheet);
+ TQFileInfo info (stylesheet);
if (info.isRelative())
- *pStyle->valueRef() = QString(projectDir +"/" + QString(stylesheet)).ascii();
+ *pStyle->valueRef() = TQString(projectDir +"/" + TQString(stylesheet)).ascii();
else
stylesheet = 0;
}
- QFile file(m_tmpDir.name() +"PreviewDoxyfile"); //file gets deleted automatically 'cause of tempdir
+ TQFile file(m_tmpDir.name() +"PreviewDoxyfile"); //file gets deleted automatically 'cause of tempdir
if (!file.open(IO_WriteOnly)){
//restore config values
if (pInput != 0)
@@ -452,13 +452,13 @@ void DoxygenPart::slotRunPreview( )
return;
}
- QTextStream ts_file(&file);
+ TQTextStream ts_file(&file);
config->writeTemplate(ts_file, false, false);
file.close();
if (inputVal.count() == 0) //pInput is always != 0
- *pInput->valueRef() = QStrList();
+ *pInput->valueRef() = TQStrList();
else
*pInput->valueRef() = inputVal;
@@ -474,7 +474,7 @@ void DoxygenPart::slotRunPreview( )
if (pStyle != 0 && !stylesheet.isNull())
*pStyle->valueRef() = stylesheet;
- connect(appFrontend, SIGNAL(processExited()), this, SLOT(slotPreviewProcessExited()));
+ connect(appFrontend, TQT_SIGNAL(processExited()), this, TQT_SLOT(slotPreviewProcessExited()));
appFrontend->startAppCommand("", "doxygen \"" + file.name() + "\"", false);
}
@@ -485,7 +485,7 @@ void DoxygenPart::slotActivePartChanged( KParts::Part * part )
if (doc != 0)
m_file = doc->url().path();
else
- m_file = QString::null;
+ m_file = TQString::null;
// <-
m_activeEditor = dynamic_cast<KTextEditor::EditInterface*>(part);
m_cursor = part ? dynamic_cast<KTextEditor::ViewCursorInterface*>(part->widget()) : 0;
@@ -532,16 +532,16 @@ void DoxygenPart::slotDocumentFunction(){
functionDef->getStartPosition(&line, &col);
else
return;
- QString funcLine = m_activeEditor->textLine(line);
+ TQString funcLine = m_activeEditor->textLine(line);
unsigned int pos = 0;
unsigned int length = funcLine.length();
while (pos < length && funcLine.at(pos).isSpace())
++pos;
//store chars used for indenting the line and put it in front of every created doc line
- QString indentChars = funcLine.left(pos);
- QString text = indentChars + "/**\n" + indentChars + " * \n";
+ TQString indentChars = funcLine.left(pos);
+ TQString text = indentChars + "/**\n" + indentChars + " * \n";
ArgumentList args;
- QString resultType;
+ TQString resultType;
if (function != 0) {
args = function->argumentList();
resultType = function->resultType();
diff --git a/parts/doxygen/doxygenpart.h b/parts/doxygen/doxygenpart.h
index 49fb87e8..4b2ed0bf 100644
--- a/parts/doxygen/doxygenpart.h
+++ b/parts/doxygen/doxygenpart.h
@@ -14,11 +14,11 @@
#ifndef _DOXYGENPART_H_
#define _DOXYGENPART_H_
-#include <qguardedptr.h>
+#include <tqguardedptr.h>
#include <kdialogbase.h>
#include <kprocess.h>
#include <ktempdir.h>
-#include <qstring.h>
+#include <tqstring.h>
#include "kdevplugin.h"
@@ -42,7 +42,7 @@ class DoxygenPart : public KDevPlugin
Q_OBJECT
public:
- DoxygenPart( QObject *parent, const char *name, const QStringList & );
+ DoxygenPart( TQObject *parent, const char *name, const TQStringList & );
~DoxygenPart();
private slots:
@@ -53,7 +53,7 @@ private slots:
* in the project root.
*/
// void projectConfigWidget(KDialogBase *dlg);
- void insertConfigWidget( const KDialogBase* dlg, QWidget * page, unsigned int );
+ void insertConfigWidget( const KDialogBase* dlg, TQWidget * page, unsigned int );
/** run doxygen to generate API documentation */
void slotDoxygen();
@@ -99,7 +99,7 @@ private:
ConfigWidgetProxy * _configProxy;
//needed for doxygen preview
- QString m_file;
+ TQString m_file;
KTempDir m_tmpDir;
KAction* m_action;
diff --git a/parts/doxygen/input.cpp b/parts/doxygen/input.cpp
index d5745bad..e316d69e 100644
--- a/parts/doxygen/input.cpp
+++ b/parts/doxygen/input.cpp
@@ -11,13 +11,13 @@
* *
***************************************************************************/
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qcombobox.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqcombobox.h>
#include <klineedit.h>
-#include <qpushbutton.h>
-#include <qspinbox.h>
-#include <qtooltip.h>
+#include <tqpushbutton.h>
+#include <tqspinbox.h>
+#include <tqtooltip.h>
#include <klocale.h>
#include <kfiledialog.h>
#include <kglobal.h>
@@ -110,18 +110,18 @@ static const char* const update_xpm_data[] =
const char **update_xpm = (const char **)update_xpm_data;
-InputBool::InputBool(const QCString &k, const QString &text, QWidget * parent, bool &flag)
- : QWidget(parent), state(flag), key(k)
+InputBool::InputBool(const TQCString &k, const TQString &text, TQWidget * parent, bool &flag)
+ : TQWidget(parent), state(flag), key(k)
{
- QHBoxLayout *layout = new QHBoxLayout(this);
- cb = new QCheckBox(text,this);
+ TQHBoxLayout *layout = new TQHBoxLayout(this);
+ cb = new TQCheckBox(text,this);
init();
layout->addWidget(cb);
layout->addStretch(1);
- connect( cb, SIGNAL(toggled(bool)), this, SLOT(valueChanged(bool)));
+ connect( cb, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(valueChanged(bool)));
}
@@ -151,13 +151,13 @@ void InputBool::setEnabled(bool b)
}
-InputInt::InputInt(const QString &label, QWidget *parent, int &val, int minVal, int maxVal)
- : QWidget(parent), m_val(val), m_minVal(minVal), m_maxVal(maxVal)
+InputInt::InputInt(const TQString &label, TQWidget *parent, int &val, int minVal, int maxVal)
+ : TQWidget(parent), m_val(val), m_minVal(minVal), m_maxVal(maxVal)
{
- QHBoxLayout *layout = new QHBoxLayout(this, 5);
+ TQHBoxLayout *layout = new TQHBoxLayout(this, 5);
- sp = new QSpinBox(minVal, maxVal, 1, this);
- lab = new QLabel(sp, label+":", this);
+ sp = new TQSpinBox(minVal, maxVal, 1, this);
+ lab = new TQLabel(sp, label+":", this);
init();
@@ -165,7 +165,7 @@ InputInt::InputInt(const QString &label, QWidget *parent, int &val, int minVal,
layout->addWidget(sp);
layout->addStretch(1);
- connect(sp, SIGNAL(valueChanged(int)), this, SLOT(valueChanged(int)));
+ connect(sp, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(valueChanged(int)));
}
@@ -196,43 +196,43 @@ void InputInt::setEnabled(bool state)
}
-InputString::InputString(const QString & label,
- QWidget *parent, QCString &s, StringMode m)
- : QWidget(parent), str(s), sm(m), m_values(0), m_index(0)
+InputString::InputString(const TQString & label,
+ TQWidget *parent, TQCString &s, StringMode m)
+ : TQWidget(parent), str(s), sm(m), m_values(0), m_index(0)
{
le = 0; br = 0; com = 0;
if (m == StringFixed) {
- QHBoxLayout *layout = new QHBoxLayout(this, 5);
- com = new QComboBox(this);
- lab = new QLabel(com,label+":", this);
+ TQHBoxLayout *layout = new TQHBoxLayout(this, 5);
+ com = new TQComboBox(this);
+ lab = new TQLabel(com,label+":", this);
layout->addWidget(lab);
layout->addWidget(com);
layout->addStretch(1);
} else {
- QGridLayout *layout = new QGridLayout(this, 1, m==StringFree? 1 : 3, 5);
+ TQGridLayout *layout = new TQGridLayout(this, 1, m==StringFree? 1 : 3, 5);
le = new KLineEdit(this);
- lab = new QLabel(le,label+":", this);
+ lab = new TQLabel(le,label+":", this);
layout->addWidget(lab, 0, 0);
le->setText(s);
layout->addWidget(le, 0, 1);
if (m == StringFile || m == StringDir) {
- br = new QPushButton(this);
+ br = new TQPushButton(this);
br->setPixmap(SmallIcon(m==StringFile? "document" : "folder"));
- QToolTip::add(br, m==StringFile? i18n("Browse to a file") : i18n("Browse to a folder"));
+ TQToolTip::add(br, m==StringFile? i18n("Browse to a file") : i18n("Browse to a folder"));
layout->addWidget(br, 0, 2);
}
}
if (le)
- connect( le, SIGNAL(textChanged(const QString&)),
- this, SLOT(textChanged(const QString&)) );
+ connect( le, TQT_SIGNAL(textChanged(const TQString&)),
+ this, TQT_SLOT(textChanged(const TQString&)) );
if (br)
- connect( br, SIGNAL(clicked()), this, SLOT(browse()) );
+ connect( br, TQT_SIGNAL(clicked()), this, TQT_SLOT(browse()) );
if (com)
- connect( com, SIGNAL(activated(const QString &)),
- this, SLOT(textChanged(const QString &)) );
+ connect( com, TQT_SIGNAL(activated(const TQString &)),
+ this, TQT_SLOT(textChanged(const TQString &)) );
}
InputString::~InputString()
@@ -259,7 +259,7 @@ void InputString::addValue(const char *s)
{
if (sm == StringFixed) {
if (!m_values)
- m_values = new QDict<int>;
+ m_values = new TQDict<int>;
m_values->setAutoDelete(true);
m_values->insert(s, new int(m_index++));
com->insertItem(s);
@@ -277,7 +277,7 @@ void InputString::clear()
}
-void InputString::textChanged(const QString &s)
+void InputString::textChanged(const TQString &s)
{
if (str!=s.latin1()) {
str = s.latin1();
@@ -300,7 +300,7 @@ void InputString::setEnabled(bool state)
void InputString::browse()
{
if (sm == StringFile) {
- QString fileName = KFileDialog::getOpenFileName();
+ TQString fileName = KFileDialog::getOpenFileName();
if (!fileName.isNull()) {
le->setText(fileName);
@@ -310,7 +310,7 @@ void InputString::browse()
}
}
} else { // sm==StringDir
- QString dirName = KFileDialog::getExistingDirectory();
+ TQString dirName = KFileDialog::getExistingDirectory();
if (!dirName.isNull()) {
le->setText( dirName );
@@ -323,75 +323,75 @@ void InputString::browse()
}
-InputStrList::InputStrList(const QString & label,
- QWidget *parent, QStrList &sl, ListMode lm)
- : QWidget(parent), strList(sl)
+InputStrList::InputStrList(const TQString & label,
+ TQWidget *parent, TQStrList &sl, ListMode lm)
+ : TQWidget(parent), strList(sl)
{
- QGridLayout *layout = new QGridLayout(this, 2, 2, 5);
+ TQGridLayout *layout = new TQGridLayout(this, 2, 2, 5);
- QWidget *dw = new QWidget(this); /* dummy widget used for layouting */
- QHBoxLayout *boxlayout = new QHBoxLayout(dw, 0, 5);
+ TQWidget *dw = new TQWidget(this); /* dummy widget used for layouting */
+ TQHBoxLayout *boxlayout = new TQHBoxLayout(dw, 0, 5);
le = new KLineEdit(dw);
- lab = new QLabel(le,label+":", this );
+ lab = new TQLabel(le,label+":", this );
layout->addWidget(lab, 0, 0);
boxlayout->addWidget(le, 1);
- add = new QPushButton(dw);
- add->setPixmap(QPixmap( add_xpm ));
- QToolTip::add(add, i18n("Add item"));
+ add = new TQPushButton(dw);
+ add->setPixmap(TQPixmap( add_xpm ));
+ TQToolTip::add(add, i18n("Add item"));
boxlayout->addWidget(add);
- del = new QPushButton(dw);
- del->setPixmap(QPixmap( del_xpm ));
- QToolTip::add(del, i18n("Delete selected item"));
+ del = new TQPushButton(dw);
+ del->setPixmap(TQPixmap( del_xpm ));
+ TQToolTip::add(del, i18n("Delete selected item"));
boxlayout->addWidget(del);
- upd = new QPushButton(dw);
- upd->setPixmap(QPixmap( update_xpm ));
- QToolTip::add(upd, i18n("Update selected item"));
+ upd = new TQPushButton(dw);
+ upd->setPixmap(TQPixmap( update_xpm ));
+ TQToolTip::add(upd, i18n("Update selected item"));
boxlayout->addWidget(upd);
- lb = new QListBox(this);
+ lb = new TQListBox(this);
lb->setMinimumSize(400, 100);
init();
- lb->setVScrollBarMode(QScrollView::Auto);
- lb->setHScrollBarMode(QScrollView::Auto);
+ lb->setVScrollBarMode(TQScrollView::Auto);
+ lb->setHScrollBarMode(TQScrollView::Auto);
brFile = 0;
brDir = 0;
if (lm != ListString) {
if (lm & ListFile) {
- brFile = new QPushButton(dw);
+ brFile = new TQPushButton(dw);
brFile->setPixmap(SmallIcon("document"));
- QToolTip::add(brFile, i18n("Browse to a file"));
+ TQToolTip::add(brFile, i18n("Browse to a file"));
boxlayout->addWidget(brFile);
}
if (lm & ListDir) {
- brDir = new QPushButton(dw);
+ brDir = new TQPushButton(dw);
brDir->setPixmap(SmallIcon("folder"));
- QToolTip::add(brDir, i18n("Browse to a folder"));
+ TQToolTip::add(brDir, i18n("Browse to a folder"));
boxlayout->addWidget(brDir);
}
}
layout->addWidget(dw, 0, 1);
layout->addWidget(lb, 1, 1);
- connect( le, SIGNAL(returnPressed()),
- this, SLOT(addString()) );
- connect( add, SIGNAL(clicked()),
- this, SLOT(addString()) );
- connect( del, SIGNAL(clicked()),
- this, SLOT(delString()) );
- connect( upd, SIGNAL(clicked()),
- this, SLOT(updateString()) );
+ connect( le, TQT_SIGNAL(returnPressed()),
+ this, TQT_SLOT(addString()) );
+ connect( add, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(addString()) );
+ connect( del, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(delString()) );
+ connect( upd, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(updateString()) );
if (brFile)
- connect( brFile, SIGNAL(clicked()),
- this, SLOT(browseFiles()) );
+ connect( brFile, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(browseFiles()) );
if (brDir)
- connect( brDir, SIGNAL(clicked()),
- this, SLOT(browseDir()) );
- connect( lb, SIGNAL(selected(const QString &)),
- this, SLOT(selectText(const QString &)) );
+ connect( brDir, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(browseDir()) );
+ connect( lb, TQT_SIGNAL(selected(const TQString &)),
+ this, TQT_SLOT(selectText(const TQString &)) );
strList = sl;
}
@@ -446,7 +446,7 @@ void InputStrList::updateString()
}
-void InputStrList::selectText(const QString &s)
+void InputStrList::selectText(const TQString &s)
{
le->setText(s);
}
@@ -469,10 +469,10 @@ void InputStrList::setEnabled(bool state)
void InputStrList::browseFiles()
{
- QStringList fileNames = KFileDialog::getOpenFileNames();
+ TQStringList fileNames = KFileDialog::getOpenFileNames();
if (!fileNames.isEmpty()) {
- QStringList::Iterator it;
+ TQStringList::Iterator it;
for (it = fileNames.begin(); it != fileNames.end(); ++it) {
lb->insertItem(*it);
strList.append(( *it ).latin1());
@@ -485,7 +485,7 @@ void InputStrList::browseFiles()
void InputStrList::browseDir()
{
- QString dirName = KFileDialog::getExistingDirectory();
+ TQString dirName = KFileDialog::getExistingDirectory();
if (!dirName.isNull()) {
lb->insertItem(dirName);
diff --git a/parts/doxygen/input.h b/parts/doxygen/input.h
index 15c3a263..473d94dd 100644
--- a/parts/doxygen/input.h
+++ b/parts/doxygen/input.h
@@ -14,8 +14,8 @@
#ifndef _INPUT_H
#define _INPUT_H
-#include <qcheckbox.h>
-#include <qdict.h>
+#include <tqcheckbox.h>
+#include <tqdict.h>
class QComboBox;
class QLabel;
@@ -29,49 +29,49 @@ class IInput
public:
virtual void init() = 0;
virtual void setEnabled(bool) = 0;
- virtual QObject *qobject() = 0;
+ virtual TQObject *qobject() = 0;
};
-class InputBool : public QWidget, public IInput
+class InputBool : public TQWidget, public IInput
{
Q_OBJECT
public:
- InputBool(const QCString &key, const QString &text, QWidget *parent, bool &flag);
+ InputBool(const TQCString &key, const TQString &text, TQWidget *parent, bool &flag);
~InputBool();
void init();
virtual void setEnabled(bool b);
- virtual QObject *qobject() { return this; }
+ virtual TQObject *qobject() { return this; }
virtual bool getState() const { return state; }
signals:
void changed();
- void toggle(const QString &, bool);
+ void toggle(const TQString &, bool);
private slots:
void valueChanged(bool);
private:
bool &state;
- QCString key;
- QCheckBox *cb;
+ TQCString key;
+ TQCheckBox *cb;
};
-class InputInt : public QWidget, public IInput
+class InputInt : public TQWidget, public IInput
{
Q_OBJECT
public:
- InputInt(const QString &text, QWidget *parent,
+ InputInt(const TQString &text, TQWidget *parent,
int &val, int minVal, int maxVal);
~InputInt();
void init();
virtual void setEnabled(bool);
- QObject *qobject() { return this; }
+ TQObject *qobject() { return this; }
signals:
void changed();
@@ -80,15 +80,15 @@ private slots:
void valueChanged(int val);
private:
- QLabel *lab;
- QSpinBox *sp;
+ TQLabel *lab;
+ TQSpinBox *sp;
int &m_val;
int m_minVal;
int m_maxVal;
};
-class InputString : public QWidget, public IInput
+class InputString : public TQWidget, public IInput
{
Q_OBJECT
@@ -99,36 +99,36 @@ public:
StringFixed=3
};
- InputString(const QString &text, QWidget *parent,
- QCString &s, StringMode m=StringFree);
+ InputString(const TQString &text, TQWidget *parent,
+ TQCString &s, StringMode m=StringFree);
~InputString();
void init();
void addValue(const char *s);
void setEnabled(bool);
- QObject *qobject() { return this; }
+ TQObject *qobject() { return this; }
signals:
void changed();
private slots:
- void textChanged(const QString&);
+ void textChanged(const TQString&);
void browse();
void clear();
private:
- QLabel *lab;
+ TQLabel *lab;
KLineEdit *le;
- QPushButton *br;
- QComboBox *com;
- QCString &str;
+ TQPushButton *br;
+ TQComboBox *com;
+ TQCString &str;
StringMode sm;
- QDict<int> *m_values;
+ TQDict<int> *m_values;
int m_index;
};
-class InputStrList : public QWidget, public IInput
+class InputStrList : public TQWidget, public IInput
{
Q_OBJECT
@@ -139,13 +139,13 @@ public:
ListFileDir=ListFile|ListDir
};
- InputStrList(const QString &text, QWidget *parent,
- QStrList &sl, ListMode v=ListString);
+ InputStrList(const TQString &text, TQWidget *parent,
+ TQStrList &sl, ListMode v=ListString);
~InputStrList();
void init();
void setEnabled(bool);
- QObject *qobject() { return this; }
+ TQObject *qobject() { return this; }
signals:
void changed();
@@ -154,20 +154,20 @@ private slots:
void addString();
void delString();
void updateString();
- void selectText(const QString &s);
+ void selectText(const TQString &s);
void browseFiles();
void browseDir();
private:
- QLabel *lab;
+ TQLabel *lab;
KLineEdit *le;
- QPushButton *add;
- QPushButton *del;
- QPushButton *upd;
- QPushButton *brFile;
- QPushButton *brDir;
- QListBox *lb;
- QStrList &strList;
+ TQPushButton *add;
+ TQPushButton *del;
+ TQPushButton *upd;
+ TQPushButton *brFile;
+ TQPushButton *brDir;
+ TQListBox *lb;
+ TQStrList &strList;
};
#endif
diff --git a/parts/doxygen/messages.cpp b/parts/doxygen/messages.cpp
index 050e1ba6..8819b109 100644
--- a/parts/doxygen/messages.cpp
+++ b/parts/doxygen/messages.cpp
@@ -1,23 +1,23 @@
-#include <qmap.h>
+#include <tqmap.h>
#include <kdebug.h>
#include <klocale.h>
-static QMap<QCString,QString> sMessages;
+static TQMap<TQCString,TQString> sMessages;
// Note: this function seems to be completely unnecessary, but messages.insert
// is a template function, so doing the template expansion just once reduced
// the compile time of this trivial file from >5m to <30s on my machine. mhk.
-static void addMessage(const QCString key, const QString &message)
+static void addMessage(const TQCString key, const TQString &message)
{
sMessages.insert(key, message);
}
-QString message(const QCString &key)
+TQString message(const TQCString &key)
{
static bool initialized = false;
diff --git a/parts/doxygen/messages.h b/parts/doxygen/messages.h
index 38ad6b84..ab8de52d 100644
--- a/parts/doxygen/messages.h
+++ b/parts/doxygen/messages.h
@@ -2,10 +2,10 @@
#define __DOXYGEN_MESSAGES_H__
-#include <qstring.h>
+#include <tqstring.h>
-QString message(const QCString &key);
+TQString message(const TQCString &key);
#endif