summaryrefslogtreecommitdiffstats
path: root/src/mangen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mangen.cpp')
-rw-r--r--src/mangen.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/mangen.cpp b/src/mangen.cpp
index 36e2334..4a80d6a 100644
--- a/src/mangen.cpp
+++ b/src/mangen.cpp
@@ -27,7 +27,7 @@
ManGenerator::ManGenerator() : OutputGenerator()
{
- dir=Config::manOutputDir+"/man3";
+ dir=Config::instance()->getString("MAN_OUTPUT")+"/man3";
firstCol=TRUE;
paragraph=FALSE;
col=0;
@@ -56,16 +56,16 @@ void ManGenerator::append(const OutputGenerator *g)
void ManGenerator::init()
{
- QDir d(Config::manOutputDir);
- if (!d.exists() && !d.mkdir(Config::manOutputDir))
+ QDir d(Config::instance()->getString("MAN_OUTPUT"));
+ if (!d.exists() && !d.mkdir(Config::instance()->getString("MAN_OUTPUT")))
{
- err("Could not create output directory %s\n",Config::manOutputDir.data());
+ err("Could not create output directory %s\n",Config::instance()->getString("MAN_OUTPUT").data());
exit(1);
}
- d.setPath(Config::manOutputDir+"/man3");
- if (!d.exists() && !d.mkdir(Config::manOutputDir+"/man3"))
+ d.setPath(Config::instance()->getString("MAN_OUTPUT")+"/man3");
+ if (!d.exists() && !d.mkdir(Config::instance()->getString("MAN_OUTPUT")+"/man3"))
{
- err("Could not create output directory %s/man3\n",Config::manOutputDir.data());
+ err("Could not create output directory %s/man3\n",Config::instance()->getString("MAN_OUTPUT").data());
exit(1);
}
}
@@ -105,9 +105,9 @@ void ManGenerator::startFile(const char *name,const char *,bool)
{
fileName=fileName.left(i);
}
- if (convertToQCString(fileName.right(2))!=Config::manExtension)
+ if (convertToQCString(fileName.right(2))!=Config::instance()->getString("MAN_EXTENSION"))
{
- fileName+=Config::manExtension;
+ fileName+=Config::instance()->getString("MAN_EXTENSION");
}
startPlainFile(fileName);
firstCol=TRUE;
@@ -121,10 +121,10 @@ void ManGenerator::endFile()
void ManGenerator::endTitleHead(const char *,const char *name)
{
t << ".TH \"" << name << "\" 3 \"" << dateToString(FALSE) << "\" \"";
- if (Config::projectName.isEmpty())
+ if (Config::instance()->getString("PROJECT_NAME").isEmpty())
t << "Doxygen";
else
- t << Config::projectName;
+ t << Config::instance()->getString("PROJECT_NAME");
t << "\" \\\" -*- nroff -*-" << endl;
t << ".ad l" << endl;
t << ".nh" << endl;
@@ -248,7 +248,7 @@ void ManGenerator::codify(const char *str)
switch(c)
{
case '\t': spacesToNextTabStop =
- Config::tabSize - (col%Config::tabSize);
+ Config::instance()->getInt("TAB_SIZE") - (col%Config::instance()->getInt("TAB_SIZE"));
t << spaces.left(spacesToNextTabStop);
col+=spacesToNextTabStop;
break;