summaryrefslogtreecommitdiffstats
path: root/src/mangen.cpp
diff options
context:
space:
mode:
authormueller <mueller@afe2bf4a-e733-0410-8a33-86f594647bc7>1999-12-15 19:29:47 (GMT)
committermueller <mueller@afe2bf4a-e733-0410-8a33-86f594647bc7>1999-12-15 19:29:47 (GMT)
commitdaf91dc906e217e81f77f491e0abf505a91289b8 (patch)
tree223d088e44a6b0956dd0437ed4851244b2e7f36c /src/mangen.cpp
parenta6cb7ef1dc7c3d6b6ff949646b9b2deda3fc0bf3 (diff)
downloadDoxygen-daf91dc906e217e81f77f491e0abf505a91289b8.zip
Doxygen-daf91dc906e217e81f77f491e0abf505a91289b8.tar.gz
Doxygen-daf91dc906e217e81f77f491e0abf505a91289b8.tar.bz2
mods for doxygen-0.49-990728
Diffstat (limited to 'src/mangen.cpp')
-rw-r--r--src/mangen.cpp29
1 files changed, 16 insertions, 13 deletions
diff --git a/src/mangen.cpp b/src/mangen.cpp
index d1bc4c6..056bc90 100644
--- a/src/mangen.cpp
+++ b/src/mangen.cpp
@@ -14,8 +14,10 @@
*
*/
-#include <qdir.h>
#include <stdlib.h>
+
+#include "qtbc.h"
+#include <qdir.h>
#include "message.h"
#include "mangen.h"
#include "config.h"
@@ -24,7 +26,7 @@
ManGenerator::ManGenerator() : OutputGenerator()
{
- dir=manOutputDir+"/man3";
+ dir=Config::manOutputDir+"/man3";
firstCol=TRUE;
paragraph=FALSE;
col=0;
@@ -37,7 +39,7 @@ ManGenerator::~ManGenerator()
void ManGenerator::append(const OutputGenerator *g)
{
- QString r=g->getContents();
+ QCString r=g->getContents();
if (upperCase)
t << r.upper();
else
@@ -52,23 +54,23 @@ void ManGenerator::append(const OutputGenerator *g)
void ManGenerator::init()
{
- QDir d(manOutputDir);
- if (!d.exists() && !d.mkdir(manOutputDir))
+ QDir d(Config::manOutputDir);
+ if (!d.exists() && !d.mkdir(Config::manOutputDir))
{
- err("Could not create output directory %s\n",manOutputDir.data());
+ err("Could not create output directory %s\n",Config::manOutputDir.data());
exit(1);
}
- d.setPath(manOutputDir+"/man3");
- if (!d.exists() && !d.mkdir(manOutputDir+"/man3"))
+ d.setPath(Config::manOutputDir+"/man3");
+ if (!d.exists() && !d.mkdir(Config::manOutputDir+"/man3"))
{
- err("Could not create output directory %s/man3\n",manOutputDir.data());
+ err("Could not create output directory %s/man3\n",Config::manOutputDir.data());
exit(1);
}
}
void ManGenerator::startFile(const char *name,const char *,bool)
{
- QString fileName=name;
+ QCString fileName=name;
if (fileName.left(6)=="class_")
{
fileName=fileName.right(fileName.length()-6);
@@ -78,7 +80,8 @@ void ManGenerator::startFile(const char *name,const char *,bool)
{
fileName=fileName.left(i);
}
- if (fileName.right(2)!=manExtension) fileName+=manExtension;
+ if (convertToQCString(fileName.right(2))!=Config::manExtension)
+ fileName+=Config::manExtension;
startPlainFile(fileName);
firstCol=TRUE;
}
@@ -95,10 +98,10 @@ void ManGenerator::writeDoxyAnchor(const char *, const char *,const char *)
void ManGenerator::endTitleHead(const char *name)
{
t << ".TH " << name << " 3 \"" << dateToString(FALSE) << "\" \"";
- if (projectName.isEmpty())
+ if (Config::projectName.isEmpty())
t << "Doxygen";
else
- t << projectName;
+ t << Config::projectName;
t << "\" \\\" -*- nroff -*-" << endl;
t << ".ad l" << endl;
t << ".nh" << endl;