summaryrefslogtreecommitdiffstats
path: root/addon/doxywizard/doxywizard.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2001-07-23 14:06:43 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2001-07-23 14:06:43 (GMT)
commitea8a1bc7ccbd7b64a31c293caa31240bde7397cf (patch)
tree8bdbe4421ef1ea29861efd26ccfc83849a184148 /addon/doxywizard/doxywizard.cpp
parent5346e18047c0e047db2f1b13dc2c767a73c5c305 (diff)
downloadDoxygen-ea8a1bc7ccbd7b64a31c293caa31240bde7397cf.zip
Doxygen-ea8a1bc7ccbd7b64a31c293caa31240bde7397cf.tar.gz
Doxygen-ea8a1bc7ccbd7b64a31c293caa31240bde7397cf.tar.bz2
Release-1.2.8-20010723
Diffstat (limited to 'addon/doxywizard/doxywizard.cpp')
-rw-r--r--addon/doxywizard/doxywizard.cpp29
1 files changed, 10 insertions, 19 deletions
diff --git a/addon/doxywizard/doxywizard.cpp b/addon/doxywizard/doxywizard.cpp
index 2495d87..3fcde0b 100644
--- a/addon/doxywizard/doxywizard.cpp
+++ b/addon/doxywizard/doxywizard.cpp
@@ -56,32 +56,23 @@ static bool loadConfig( QString loadFile )
);
return FALSE;
}
- QFile f( loadFile );
- if ( !f.open(IO_ReadOnly) )
- {
- QMessageBox::warning(0,
- "Warning","Cannot open input "+loadFile+
- " for reading!.",
- "abort"
- );
- exit(1);
- }
// set config values to their defaults
Config::instance()->init();
- // read file into a string buffer
- int fsize = fi.size();
- QCString contents(fsize+1); // add room for \0 terminator
- f.readBlock(contents.data(),fsize);
- contents[fsize]='\0';
-
// parse the config file
// this will initialize the various Config data members
- Config::instance()->parse(contents,loadFile);
+ if (Config::instance()->parse(loadFile))
+ {
+ QMessageBox::warning(0,
+ "Warning","Cannot open or read input "+loadFile+"!",
+ "abort"
+ );
+ return FALSE;
+ }
+
Config::instance()->convertStrToVal();
- f.close();
return TRUE;
}
@@ -322,7 +313,7 @@ void Wizard::about()
"<qt><center>A tool to create and edit configuration files "
"that can be read by doxygen.</center><p>"
"<center>Written by Dimitri van Heesch</center><p>"
- "<center>(c) 2000</center></qt>"
+ "<center>(c) 2000-2001</center></qt>"
);
}