diff options
Diffstat (limited to 'addon/doxywizard')
-rw-r--r-- | addon/doxywizard/CMakeLists.txt | 80 | ||||
-rw-r--r-- | addon/doxywizard/Makefile.in | 40 | ||||
-rw-r--r-- | addon/doxywizard/config.l | 555 | ||||
-rw-r--r-- | addon/doxywizard/config_doxyw.l | 54 | ||||
-rw-r--r-- | addon/doxywizard/doxywizard.cpp | 2 | ||||
-rw-r--r-- | addon/doxywizard/doxywizard.pro.in | 40 | ||||
-rw-r--r-- | addon/doxywizard/inputbool.cpp | 2 | ||||
-rw-r--r-- | addon/doxywizard/inputbool.h | 2 | ||||
-rw-r--r-- | addon/doxywizard/inputint.cpp | 2 | ||||
-rw-r--r-- | addon/doxywizard/inputint.h | 2 | ||||
-rw-r--r-- | addon/doxywizard/inputstring.cpp | 2 | ||||
-rw-r--r-- | addon/doxywizard/inputstring.h | 2 | ||||
-rw-r--r-- | addon/doxywizard/inputstrlist.cpp | 2 | ||||
-rw-r--r-- | addon/doxywizard/inputstrlist.h | 2 | ||||
-rw-r--r-- | addon/doxywizard/version.h | 2 | ||||
-rw-r--r-- | addon/doxywizard/wizard.h | 2 |
16 files changed, 123 insertions, 668 deletions
diff --git a/addon/doxywizard/CMakeLists.txt b/addon/doxywizard/CMakeLists.txt new file mode 100644 index 0000000..055aac3 --- /dev/null +++ b/addon/doxywizard/CMakeLists.txt @@ -0,0 +1,80 @@ +if (build_wizard) + +include_directories( + . + ${CMAKE_SOURCE_DIR}/src + ${CMAKE_SOURCE_DIR}/qtools + ${GENERATED_SRC} +) + +set(GENERATED_SRC_WIZARD ${GENERATED_SRC}/doxywizard) +file(MAKE_DIRECTORY ${GENERATED_SRC_WIZARD}) + +add_definitions(-DQT_ARCH_X86_64 -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DUNICODE) +set(QT_USE_QTXML TRUE) +find_package(Qt4 REQUIRED) +include(${QT_USE_FILE}) + +# generate settings.h +file(GENERATE OUTPUT ${GENERATED_SRC_WIZARD}/settings.h +CONTENT "#ifndef SETTINGS_H +#define SETTINGS_H +#define USE_SQLITE3 ${sqlite3} +#define USE_LIBCLANG ${clang} +#define IS_SUPPORTED(x) \\ + ((USE_SQLITE3 && strcmp(\"USE_SQLITE3\",(x))==0) || \\ + (USE_LIBCLANG && strcmp(\"USE_LIBCLANG\",(x))==0) || \\ + 0) +#endif" ) +set_source_files_properties(${GENERATED_SRC_WIZARD}/settings.h PROPERTIES GENERATED 1) + +# generate version.cpp +file(GENERATE OUTPUT ${GENERATED_SRC_WIZARD}/version.cpp + CONTENT "char versionString[]=\"${VERSION}\";" +) +set_source_files_properties(${GENERATED_SRC_WIZARD}/version.cpp PROPERTIES GENERATED 1) + +# generate configdoc.cpp +add_custom_command( +COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/src/configgen.py -wiz ${CMAKE_SOURCE_DIR}/src/config.xml > ${GENERATED_SRC_WIZARD}/configdoc.cpp +OUTPUT ${GENERATED_SRC_WIZARD}/configdoc.cpp +) +set_source_files_properties(${GENERATED_SRC_WIZARD}/configdoc.cpp PROPERTIES GENERATED 1) + +FLEX_TARGET(config_doxyw config_doxyw.l ${GENERATED_SRC_WIZARD}/config_doxyw.cpp COMPILE_FLAGS "-Pconfig_doxywYY") + +QT4_WRAP_CPP(doxywizard_MOC +doxywizard.h +expert.h +helplabel.h +inputint.h +inputbool.h +inputstring.h +inputstrlist.h +wizard.h +) + +QT4_ADD_RESOURCES(doxywizard_RESOURCES_RCC doxywizard.qrc) + +add_executable(doxywizard +doxywizard.cpp +expert.cpp +wizard.cpp +inputbool.cpp +inputstring.cpp +inputint.cpp +inputstrlist.cpp +${GENERATED_SRC_WIZARD}/settings.h +${GENERATED_SRC_WIZARD}/version.cpp +${GENERATED_SRC_WIZARD}/config_doxyw.cpp +${GENERATED_SRC_WIZARD}/configdoc.cpp +${doxywizard_MOC} +${doxywizard_RESOURCES_RCC} +) +target_link_libraries(doxywizard +${QT_LIBRARIES} +) + +install(TARGETS doxywizard DESTINATION bin) + +endif() diff --git a/addon/doxywizard/Makefile.in b/addon/doxywizard/Makefile.in deleted file mode 100644 index 9b14174..0000000 --- a/addon/doxywizard/Makefile.in +++ /dev/null @@ -1,40 +0,0 @@ -# -# -# -# Copyright (C) 1997-2014 by Dimitri van Heesch. -# -# Permission to use, copy, modify, and distribute this software and its -# documentation under the terms of the GNU General Public License is hereby -# granted. No representations are made about the suitability of this software -# for any purpose. It is provided "as is" without express or implied warranty. -# See the GNU General Public License for more details. -# - -QMAKE=$(QTDIR)/bin/qmake $(MKSPECS) -INCBUFSIZE=$(PYTHON) ../../src/increasebuffer.py - -all: Makefile.doxywizard - $(MAKE) -f Makefile.doxywizard LEX=$(LEX) PYTHON=$(PYTHON) INCBUFSIZE="$(INCBUFSIZE)" - -Makefile.doxywizard: doxywizard.pro - $(QMAKE) doxywizard.pro -o Makefile.doxywizard - -qmake: - $(QMAKE) doxywizard.pro -o Makefile.doxywizard - -clean: Makefile.doxywizard - $(MAKE) -f Makefile.doxywizard clean - -distclean: Makefile.doxywizard - $(MAKE) -f Makefile.doxywizard distclean - $(RM) Makefile.doxywizard - -install: - $(INSTTOOL) -d $(INSTALL)/bin - $(INSTTOOL) -m 755 ../../bin/doxywizard $(INSTALL)/bin - $(INSTTOOL) -d $(INSTALL)/$(MAN1DIR) - cat ../../doc/doxywizard.1 | sed -e "s/DATE/$(DATE)/g" -e "s/VERSION/$(VERSION)/g" > doxywizard.1 - $(INSTTOOL) -m 644 doxywizard.1 $(INSTALL)/$(MAN1DIR)/doxywizard.1 - rm doxywizard.1 - -FORCE: diff --git a/addon/doxywizard/config.l b/addon/doxywizard/config.l deleted file mode 100644 index f11bc46..0000000 --- a/addon/doxywizard/config.l +++ /dev/null @@ -1,555 +0,0 @@ -/****************************************************************************** - * - * $Id: config_templ.l,v 1.8 2001/01/01 10:15:16 root Exp $ - * - * Copyright (C) 1997-2014 by Dimitri van Heesch. - * - * Permission to use, copy, modify, and distribute this software and its - * documentation under the terms of the GNU General Public License is hereby - * granted. No representations are made about the suitability of this software - * for any purpose. It is provided "as is" without express or implied warranty. - * See the GNU General Public License for more details. - * - */ - -%{ - -/* - * includes - */ -#include "config.h" -#include "input.h" -#include <QtCore> - -#define MAX_INCLUDE_DEPTH 10 - - -/* ----------------------------------------------------------------- - * - * static variables - */ - -struct ConfigFileState -{ - int lineNr; - FILE *file; - YY_BUFFER_STATE oldState; - YY_BUFFER_STATE newState; - QString fileName; -}; - -static const QHash<QString,Input*> *g_options; -static FILE *g_file; -static QString g_yyFileName; -static QString g_includeName; -static QVariant g_includePathList; -static QStack<ConfigFileState*> g_includeStack; -static int g_includeDepth; -static QVariant *g_arg; -static Input *g_curOption=0; -static QString g_elemStr; -static QTextCodec *g_codec = QTextCodec::codecForName("UTF-8"); -static QString g_codecName = QString::fromAscii("UTF-8"); -static int g_lastState; -static QByteArray g_tmpString; - -/* ----------------------------------------------------------------- - */ -#undef YY_INPUT -#define YY_INPUT(buf,result,max_size) result=yyread(buf,max_size); - -static int yyread(char *buf,int maxSize) -{ - // no file included - if (g_includeStack.isEmpty()) - { - return fread(buf,1,maxSize,g_file); - } - else - { - return fread(buf,1,maxSize,g_includeStack.top()->file); - } -} - -void config_err(const char *fmt, ...) -{ - va_list args; - va_start(args, fmt); - vfprintf(stderr, fmt, args); - va_end(args); -} -void config_warn(const char *fmt, ...) -{ - va_list args; - va_start(args, fmt); - vfprintf(stderr, fmt, args); - va_end(args); -} - -static void substEnvVarsInStrList(QStringList &sl); -static void substEnvVarsInString(QString &s); - -static void checkEncoding() -{ - Input *option = g_options->value(QString::fromAscii("DOXYFILE_ENCODING")); - if (option && option->value().toString()!=g_codecName) - { - QTextCodec *newCodec = QTextCodec::codecForName(option->value().toString().toAscii()); - if (newCodec) - { - g_codec = newCodec; - g_codecName = option->value().toString(); - } - } -} - -static FILE *tryPath(const QString &path,const QString &fileName) -{ - QString absName=!path.isEmpty() ? path+QString::fromAscii("/")+fileName : fileName; - QFileInfo fi(absName); - if (fi.exists() && fi.isFile()) - { - FILE *f = fopen(absName.toLocal8Bit(),"r"); - if (f==NULL) - config_err("Error: could not open file %s for reading\n",absName.toLatin1().data()); - else - return f; - } - return NULL; -} - -static FILE *findFile(const QString &fileName) -{ - if (QFileInfo(fileName).isAbsolute()) // absolute path - { - return tryPath(QString(), fileName); - } - - // relative path, try with include paths in the list - QStringList sl = g_includePathList.toStringList(); - substEnvVarsInStrList(sl); - foreach (QString s, sl) - { - FILE *f = tryPath(s,fileName); - if (f) return f; - } - // try cwd if g_includePathList fails - return tryPath(QString::fromAscii("."),fileName); -} - -static void readIncludeFile(const QString &incName) -{ - if (g_includeDepth==MAX_INCLUDE_DEPTH) - { - config_err("Error: maximum include depth (%d) reached, %s is not included. Aborting...\n", - MAX_INCLUDE_DEPTH,qPrintable(incName)); - exit(1); - } - - QString inc = incName; - substEnvVarsInString(inc); - inc = inc.trimmed(); - uint incLen = inc.length(); - if (inc.at(0)==QChar::fromAscii('"') && - inc.at(incLen-1)==QChar::fromAscii('"')) // strip quotes - { - inc=inc.mid(1,incLen-2); - } - - FILE *f = findFile(inc); - if (f) // see if the include file can be found - { - // For debugging -#if SHOW_INCLUDES - for (i=0;i<includeStack.count();i++) msg(" "); - msg("@INCLUDE = %s: parsing...\n",inc.toLatin1().data()); -#endif - - // store the state of the old file - ConfigFileState *fs=new ConfigFileState; - fs->oldState=YY_CURRENT_BUFFER; - fs->fileName=g_yyFileName; - fs->file=f; - // push the state on the stack - g_includeStack.push(fs); - // set the scanner to the include file - yy_switch_to_buffer(yy_create_buffer(f, YY_BUF_SIZE)); - fs->newState=YY_CURRENT_BUFFER; - g_yyFileName=inc; - g_includeDepth++; - } - else - { - config_err("Error: @INCLUDE = %s: not found!\n",inc.toLatin1().data()); - exit(1); - } -} - - -%} - -%option nounput -%option noyywrap -%option yylineno - -%x Start -%x SkipComment -%x SkipInvalid -%x GetString -%x GetStrList -%x GetQuotedString -%x GetEnvVar -%x Include - -%% - -<*>\0x0d -<Start,GetString,GetStrList,SkipInvalid>"#" { BEGIN(SkipComment); } -<Start>[a-z_A-Z][a-z_A-Z0-9]*[ \t]*"=" { QString cmd = g_codec->toUnicode(yytext); - cmd=cmd.left(cmd.length()-1).trimmed(); - g_curOption = g_options->value(cmd); - if (g_curOption==0) // oops not known - { - config_err("Warning: ignoring unsupported tag `%s' at line %d, file %s\n", - qPrintable(cmd),yylineno,qPrintable(g_yyFileName)); - BEGIN(SkipInvalid); - } - else // known tag - { - //option->setEncoding(encoding); - g_arg = &g_curOption->value(); - switch(g_curOption->kind()) - { - case Input::StrList: - g_elemStr = QString(); - *g_arg = QStringList(); - BEGIN(GetStrList); - break; - case Input::String: - BEGIN(GetString); - break; - case Input::Int: - BEGIN(GetString); - break; - case Input::Bool: - BEGIN(GetString); - break; - case Input::Obsolete: - config_err("Warning: Tag `%s' at line %d of file %s has become obsolete.\n" - "To avoid this warning please update your configuration " - "file using \"doxygen -u\"\n", qPrintable(cmd), - yylineno,qPrintable(g_yyFileName)); - BEGIN(SkipInvalid); - break; - } - } - } -<Start>[a-z_A-Z][a-z_A-Z0-9]*[ \t]*"+=" { QString cmd=g_codec->toUnicode(yytext); - cmd=cmd.left(cmd.length()-2).trimmed(); - g_curOption = g_options->value(cmd); - if (g_curOption==0) // oops not known - { - config_err("Warning: ignoring unsupported tag `%s' at line %d, file %s\n", - yytext,yylineno,qPrintable(g_yyFileName)); - BEGIN(SkipInvalid); - } - else // known tag - { - switch(g_curOption->kind()) - { - case Input::StrList: - g_arg = &g_curOption->value(); - g_elemStr=QString(); - BEGIN(GetStrList); - break; - case Input::String: - case Input::Int: - case Input::Bool: - config_err("Warning: operator += not supported for `%s'. Ignoring line at line %d, file %s\n", - yytext,yylineno,qPrintable(g_yyFileName)); - BEGIN(SkipInvalid); - break; - case Input::Obsolete: - config_err("Warning: Tag `%s' at line %d of file %s has become obsolete.\n" - "To avoid this warning please update your configuration " - "file using \"doxygen -u\"\n", - qPrintable(cmd),yylineno,qPrintable(g_yyFileName)); - BEGIN(SkipInvalid); - break; - } - } - } -<Start>"@INCLUDE_PATH"[ \t]*"=" { BEGIN(GetStrList); g_arg=&g_includePathList; *g_arg = QStringList(); g_elemStr=QString(); } - /* include a config file */ -<Start>"@INCLUDE"[ \t]*"=" { BEGIN(Include);} -<Include>([^ \"\t\r\n]+)|("\""[^\n\"]+"\"") { - readIncludeFile(g_codec->toUnicode(yytext)); - BEGIN(Start); - } -<<EOF>> { - //printf("End of include file\n"); - //printf("Include stack depth=%d\n",g_includeStack.count()); - if (g_includeStack.isEmpty()) - { - //printf("Terminating scanner!\n"); - yyterminate(); - } - else - { - ConfigFileState *fs = g_includeStack.pop(); - fclose(fs->file); - YY_BUFFER_STATE oldBuf = YY_CURRENT_BUFFER; - yy_switch_to_buffer( fs->oldState ); - yy_delete_buffer( oldBuf ); - g_yyFileName=fs->fileName; - delete fs; - g_includeDepth--; - } - } - -<Start>[a-z_A-Z0-9]+ { config_err("Warning: ignoring unknown tag `%s' at line %d, file %s\n",yytext,yylineno,qPrintable(g_yyFileName)); } -<GetString,SkipInvalid>\n { BEGIN(Start); } -<GetStrList>\n { - if (!g_elemStr.isEmpty()) - { - //printf("elemStr1=`%s'\n",elemStr.toLatin1().data()); - *g_arg = QVariant(g_arg->toStringList() << g_elemStr); - } - BEGIN(Start); - } -<GetStrList>[ \t]+ { - if (!g_elemStr.isEmpty()) - { - //printf("elemStr2=`%s'\n",elemStr.toLatin1().data()); - *g_arg = QVariant(g_arg->toStringList() << g_elemStr); - } - g_elemStr = QString(); - } -<GetString>[^ \"\t\r\n]+ { - *g_arg = QVariant(g_codec->toUnicode(yytext)); - checkEncoding(); - } -<GetString,GetStrList,SkipInvalid>"\"" { g_lastState=YY_START; - BEGIN(GetQuotedString); - g_tmpString=""; - } -<GetQuotedString>"\""|"\n" { - // we add a bogus space to signal that the string was quoted. This space will be stripped later on. - g_tmpString+=" "; - //printf("Quoted String = `%s'\n",tmpString.toLatin1().data()); - if (g_lastState==GetString) - { - *g_arg = g_codec->toUnicode(g_tmpString); - checkEncoding(); - } - else - { - g_elemStr+=g_codec->toUnicode(g_tmpString); - } - if (*yytext=='\n') - { - config_err("Warning: Missing end quote (\") on line %d, file %s\n",yylineno, - qPrintable(g_yyFileName)); - } - BEGIN(g_lastState); - } -<GetQuotedString>"\\\"" { - g_tmpString+='"'; - } -<GetQuotedString>. { g_tmpString+=*yytext; } -<GetStrList>[^ \#\"\t\r\n]+ { - g_elemStr+=g_codec->toUnicode(yytext); - } -<SkipComment>\n { BEGIN(Start); } -<SkipComment>\\[ \r\t]*\n { BEGIN(Start); } -<*>\\[ \r\t]*\n { } -<*>\n -<*>. - -%% - -/*@ ---------------------------------------------------------------------------- - */ - -static void substEnvVarsInString(QString &s) -{ - static QRegExp re(QString::fromAscii("\\$\\([a-z_A-Z0-9]+\\)")); - if (s.isEmpty()) return; - int p=0; - int i,l; - //printf("substEnvVarInString(%s) start\n",s.toLatin1().data()); - while ((i=re.indexIn(s,p))!=-1) - { - l = re.matchedLength(); - //printf("Found environment var s.mid(%d,%d)=`%s'\n",i+2,l-3,s.mid(i+2,l-3).toLatin1().data()); - QString env=g_codec->toUnicode(getenv(s.mid(i+2,l-3).toLatin1())); - 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 - } - s=s.trimmed(); // to strip the bogus space that was added when an argument - // has quotes - //printf("substEnvVarInString(%s) end\n",s.toLatin1().data()); -} - -static void substEnvVarsInStrList(QStringList &sl) -{ - QStringList out; - - foreach (QString result, sl) - { - // an argument with quotes will have an extra space at the end, so wasQuoted will be TRUE. - bool wasQuoted = (result.indexOf(QChar::fromAscii(' '))!=-1) || - (result.indexOf(QChar::fromAscii('\t'))!=-1); - // here we strip the quote again - substEnvVarsInString(result); - - //printf("Result %s was quoted=%d\n",result.toLatin1().data(),wasQuoted); - - if (!wasQuoted) /* as a result of the expansion, a single string - may have expanded into a list, which we'll - add to sl. If the original string already - contained multiple elements no further - splitting is done to allow quoted items with spaces! */ - { - int l=result.length(); - int i,p=0; - // skip spaces - // search for a "word" - for (i=0;i<l;i++) - { - QChar c=0; - // skip until start of new word - while (i<l && ((c=result.at(i))==QChar::fromAscii(' ') || c==QChar::fromAscii('\t'))) i++; - p=i; // p marks the start index of the word - // skip until end of a word - while (i<l && ((c=result.at(i))!=QChar::fromAscii(' ') && - c!=QChar::fromAscii('\t') && - c!=QChar::fromAscii('"'))) i++; - if (i<l) // not at the end of the string - { - if (c==QChar::fromAscii('"')) // word within quotes - { - p=i+1; - for (i++;i<l;i++) - { - c=result.at(i); - if (c==QChar::fromAscii('"')) // end quote - { - out += result.mid(p,i-p); - p=i+1; - break; - } - else if (c==QChar::fromAscii('\\')) // skip escaped stuff - { - i++; - } - } - } - else if (c==QChar::fromAscii(' ') || c==QChar::fromAscii('\t')) // separator - { - out += result.mid(p,i-p); - p=i+1; - } - } - } - if (p!=l) // add the leftover as a string - { - out += result.right(l-p); - } - } - else // just goto the next element in the list - { - out += result; - } - } - sl = out; -} - -//-------------------------------------------------------------------------- - -bool parseConfig( - const QString &fileName, - const QHash<QString,Input *> &options - ) -{ - QHashIterator<QString, Input*> i(options); - g_file = fopen(fileName.toLocal8Bit(),"r"); - if (g_file==NULL) return false; - - // reset all values - i.toFront(); - while (i.hasNext()) - { - i.next(); - if (i.value()) - { - i.value()->reset(); - } - } - - // parse config file - g_options = &options; - g_yyFileName = fileName; - g_includeStack.clear(); - g_includeDepth = 0; - configrestart( configin ); - BEGIN( Start ); - configlex(); - - // update the values in the UI - i.toFront(); - while (i.hasNext()) - { - i.next(); - if (i.value()) - { - //printf("Updating: %s\n",qPrintable(i.key())); - i.value()->update(); - } - else - { - printf("Invalid option: %s\n",qPrintable(i.key())); - } - } - fclose(g_file); - return true; -} - -void writeStringValue(QTextStream &t,QTextCodec *codec,const QString &s) -{ - QChar c; - bool needsEscaping=FALSE; - // convert the string back to it original encoding - //QByteArray se = codec->fromUnicode(s); - t.setCodec(codec); - const QChar *p=s.data(); - if (!s.isEmpty() && !p->isNull()) - { - while (!(c=*p++).isNull() && !needsEscaping) - { - needsEscaping = (c==QChar::fromAscii(' ') || - c==QChar::fromAscii('\n') || - c==QChar::fromAscii('\t') || - c==QChar::fromAscii('"')); - } - if (needsEscaping) - { - t << "\""; - p=s.data(); - while (!p->isNull()) - { - if (*p ==QChar::fromAscii(' ') && - *(p+1)==QChar::fromAscii('\0')) break; // skip inserted space at the end - if (*p ==QChar::fromAscii('"')) t << "\\"; // escape quotes - t << *p++; - } - t << "\""; - } - else - { - t << s; - } - } -} - diff --git a/addon/doxywizard/config_doxyw.l b/addon/doxywizard/config_doxyw.l index 400330f..829f807 100644 --- a/addon/doxywizard/config_doxyw.l +++ b/addon/doxywizard/config_doxyw.l @@ -2,7 +2,7 @@ * * $Id: config_templ.l,v 1.8 2001/01/01 10:15:16 root Exp $ * - * Copyright (C) 1997-2014 by Dimitri van Heesch. + * Copyright (C) 1997-2015 by Dimitri van Heesch. * * Permission to use, copy, modify, and distribute this software and its * documentation under the terms of the GNU General Public License is hereby @@ -12,6 +12,7 @@ * */ +%option never-interactive %{ /* @@ -21,6 +22,8 @@ #include "input.h" #include <QtCore> +#define YY_NO_UNISTD_H 1 + #define MAX_INCLUDE_DEPTH 10 @@ -71,18 +74,25 @@ static int yyread(char *buf,int maxSize) } } +static QString warning_str = QString::fromAscii("warning: "); +static QString error_str = QString::fromAscii("error: "); + void config_err(const char *fmt, ...) { + QString msg = error_str; + msg.append(QString::fromAscii(fmt)); va_list args; va_start(args, fmt); - vfprintf(stderr, fmt, args); - va_end(args); + vfprintf(stderr, qPrintable(msg), args); + va_end(args); } void config_warn(const char *fmt, ...) { + QString msg = warning_str; + msg.append(QString::fromAscii(fmt)); va_list args; va_start(args, fmt); - vfprintf(stderr, fmt, args); + vfprintf(stderr, qPrintable(msg), args); va_end(args); } @@ -111,7 +121,7 @@ static FILE *tryPath(const QString &path,const QString &fileName) { FILE *f = fopen(absName.toLocal8Bit(),"r"); if (f==NULL) - config_err("Error: could not open file %s for reading\n",absName.toLatin1().data()); + config_err("could not open file %s for reading\n",qPrintable(absName)); else return f; } @@ -141,7 +151,7 @@ static void readIncludeFile(const QString &incName) { if (g_includeDepth==MAX_INCLUDE_DEPTH) { - config_err("Error: maximum include depth (%d) reached, %s is not included. Aborting...\n", + config_err("maximum include depth (%d) reached, %s is not included. Aborting...\n", MAX_INCLUDE_DEPTH,qPrintable(incName)); exit(1); } @@ -162,7 +172,7 @@ static void readIncludeFile(const QString &incName) // For debugging #if SHOW_INCLUDES for (i=0;i<includeStack.count();i++) msg(" "); - msg("@INCLUDE = %s: parsing...\n",inc.toLatin1().data()); + msg("@INCLUDE = %s: parsing...\n",qPrintable(inc)); #endif // store the state of the old file @@ -180,7 +190,7 @@ static void readIncludeFile(const QString &incName) } else { - config_err("Error: @INCLUDE = %s: not found!\n",inc.toLatin1().data()); + config_err("@INCLUDE = %s: not found!\n",qPrintable(inc)); exit(1); } } @@ -210,7 +220,7 @@ static void readIncludeFile(const QString &incName) g_curOption = g_options->value(cmd); if (g_curOption==0) // oops not known { - config_err("Warning: ignoring unsupported tag `%s' at line %d, file %s\n", + config_warn("ignoring unsupported tag `%s' at line %d, file %s\n", qPrintable(cmd),yylineno,qPrintable(g_yyFileName)); BEGIN(SkipInvalid); } @@ -235,7 +245,7 @@ static void readIncludeFile(const QString &incName) BEGIN(GetString); break; case Input::Obsolete: - config_err("Warning: Tag `%s' at line %d of file %s has become obsolete.\n" + config_warn("Tag `%s' at line %d of file %s has become obsolete.\n" "To avoid this warning please update your configuration " "file using \"doxygen -u\"\n", qPrintable(cmd), yylineno,qPrintable(g_yyFileName)); @@ -249,7 +259,7 @@ static void readIncludeFile(const QString &incName) g_curOption = g_options->value(cmd); if (g_curOption==0) // oops not known { - config_err("Warning: ignoring unsupported tag `%s' at line %d, file %s\n", + config_warn("ignoring unsupported tag `%s' at line %d, file %s\n", yytext,yylineno,qPrintable(g_yyFileName)); BEGIN(SkipInvalid); } @@ -265,12 +275,12 @@ static void readIncludeFile(const QString &incName) case Input::String: case Input::Int: case Input::Bool: - config_err("Warning: operator += not supported for `%s'. Ignoring line at line %d, file %s\n", + config_warn("operator += not supported for `%s'. Ignoring line at line %d, file %s\n", yytext,yylineno,qPrintable(g_yyFileName)); BEGIN(SkipInvalid); break; case Input::Obsolete: - config_err("Warning: Tag `%s' at line %d of file %s has become obsolete.\n" + config_warn("Tag `%s' at line %d of file %s has become obsolete.\n" "To avoid this warning please update your configuration " "file using \"doxygen -u\"\n", qPrintable(cmd),yylineno,qPrintable(g_yyFileName)); @@ -307,12 +317,12 @@ static void readIncludeFile(const QString &incName) } } -<Start>[a-z_A-Z0-9]+ { config_err("Warning: ignoring unknown tag `%s' at line %d, file %s\n",yytext,yylineno,qPrintable(g_yyFileName)); } +<Start>[a-z_A-Z0-9]+ { config_warn("ignoring unknown tag `%s' at line %d, file %s\n",yytext,yylineno,qPrintable(g_yyFileName)); } <GetString,SkipInvalid>\n { BEGIN(Start); } <GetStrList>\n { if (!g_elemStr.isEmpty()) { - //printf("elemStr1=`%s'\n",elemStr.toLatin1().data()); + //printf("elemStr1=`%s'\n",qPrintable(elemStr)); *g_arg = QVariant(g_arg->toStringList() << g_elemStr); } BEGIN(Start); @@ -320,7 +330,7 @@ static void readIncludeFile(const QString &incName) <GetStrList>[ \t]+ { if (!g_elemStr.isEmpty()) { - //printf("elemStr2=`%s'\n",elemStr.toLatin1().data()); + //printf("elemStr2=`%s'\n",qPrintable(elemStr)); *g_arg = QVariant(g_arg->toStringList() << g_elemStr); } g_elemStr = QString(); @@ -336,7 +346,7 @@ static void readIncludeFile(const QString &incName) <GetQuotedString>"\""|"\n" { // we add a bogus space to signal that the string was quoted. This space will be stripped later on. g_tmpString+=" "; - //printf("Quoted String = `%s'\n",tmpString.toLatin1().data()); + //printf("Quoted String = `%s'\n",qPrintable(tmpString)); if (g_lastState==GetString) { *g_arg = g_codec->toUnicode(g_tmpString); @@ -348,7 +358,7 @@ static void readIncludeFile(const QString &incName) } if (*yytext=='\n') { - config_err("Warning: Missing end quote (\") on line %d, file %s\n",yylineno, + config_warn("Missing end quote (\") on line %d, file %s\n",yylineno, qPrintable(g_yyFileName)); } BEGIN(g_lastState); @@ -377,11 +387,11 @@ static void substEnvVarsInString(QString &s) if (s.isEmpty()) return; int p=0; int i,l; - //printf("substEnvVarInString(%s) start\n",s.toLatin1().data()); + //printf("substEnvVarInString(%s) start\n",qPrintable(s)); while ((i=re.indexIn(s,p))!=-1) { l = re.matchedLength(); - //printf("Found environment var s.mid(%d,%d)=`%s'\n",i+2,l-3,s.mid(i+2,l-3).toLatin1().data()); + //printf("Found environment var s.mid(%d,%d)=`%s'\n",i+2,l-3,qPrintable(s.mid(i+2,l-3))); QString env=g_codec->toUnicode(getenv(s.mid(i+2,l-3).toLatin1())); substEnvVarsInString(env); // recursively expand variables if needed. s = s.left(i)+env+s.right(s.length()-i-l); @@ -389,7 +399,7 @@ static void substEnvVarsInString(QString &s) } s=s.trimmed(); // to strip the bogus space that was added when an argument // has quotes - //printf("substEnvVarInString(%s) end\n",s.toLatin1().data()); + //printf("substEnvVarInString(%s) end\n",qPrintable(s)); } static void substEnvVarsInStrList(QStringList &sl) @@ -404,7 +414,7 @@ static void substEnvVarsInStrList(QStringList &sl) // here we strip the quote again substEnvVarsInString(result); - //printf("Result %s was quoted=%d\n",result.toLatin1().data(),wasQuoted); + //printf("Result %s was quoted=%d\n",qPrintable(result),wasQuoted); if (!wasQuoted) /* as a result of the expansion, a single string may have expanded into a list, which we'll diff --git a/addon/doxywizard/doxywizard.cpp b/addon/doxywizard/doxywizard.cpp index d0728ae..4c577cd 100644 --- a/addon/doxywizard/doxywizard.cpp +++ b/addon/doxywizard/doxywizard.cpp @@ -193,7 +193,7 @@ void MainWindow::about() t << QString::fromAscii("<qt><center>A tool to configure and run doxygen version ")+ QString::fromAscii(versionString)+ QString::fromAscii(" on your source files.</center><p><br>" - "<center>Written by<br> Dimitri van Heesch<br>© 2000-2014</center><p>" + "<center>Written by<br> Dimitri van Heesch<br>© 2000-2015</center><p>" "</qt>"); QMessageBox::about(this,tr("Doxygen GUI"),msg); } diff --git a/addon/doxywizard/doxywizard.pro.in b/addon/doxywizard/doxywizard.pro.in deleted file mode 100644 index 1ad36a9..0000000 --- a/addon/doxywizard/doxywizard.pro.in +++ /dev/null @@ -1,40 +0,0 @@ -###################################################################### -# Automatically generated by qmake (2.01a) zo okt 19 12:50:02 2008 -###################################################################### - -TEMPLATE = app -DESTDIR = ../../bin -TARGET = -DEPENDPATH += . -INCLUDEPATH += . ../../generated_src/doxywizard -QT += xml -CONFIG += $extraopts -OBJECTS_DIR = ../../objects/doxywizard -MOC_DIR = ../../moc/doxywizard -RCC_DIR = ../../rcc/doxywizard -DEFINES += QT_NO_CAST_FROM_ASCII QT_NO_CAST_TO_ASCII - -macx-g++ { - CONFIG += x86 x86_64 -} - -# Input -HEADERS += doxywizard.h version.h expert.h config.h helplabel.h \ - inputbool.h inputstring.h inputint.h inputstrlist.h wizard.h docintf.h -SOURCES += doxywizard.cpp expert.cpp wizard.cpp \ - inputbool.cpp inputstring.cpp inputint.cpp inputstrlist.cpp -RESOURCES += doxywizard.qrc -win32:RC_FILE += doxywizard.rc - -config.target = ../../generated_src/doxywizard/config_doxyw.cpp -config.commands = $(LEX) -Pconfig_doxywYY -t ../../addon/doxywizard/config_doxyw.l | $(PYTHON) ../../src/increasebuffer.py >../../generated_src/doxywizard/$*.cpp -config.depends = ../../addon/doxywizard/config_doxyw.l ../../src/increasebuffer.py -configdoc.target = ../../generated_src/doxywizard/configdoc.cpp -configdoc.commands = $(PYTHON) ../../src/configgen.py -wiz ../../src/config.xml > ../../generated_src/doxywizard/configdoc.cpp -configdoc.depends = ../../src/config.xml ../../src/configgen.py -version.target = ../../generated_src/doxywizard/version.cpp -version.commands = cd ../../src;$(PYTHON) version.py -version.depends = ../../configure -QMAKE_EXTRA_TARGETS += configdoc config version -GENERATED_SOURCES += $$configdoc.target $$config.target $$version.target - diff --git a/addon/doxywizard/inputbool.cpp b/addon/doxywizard/inputbool.cpp index be99b0a..ec2035a 100644 --- a/addon/doxywizard/inputbool.cpp +++ b/addon/doxywizard/inputbool.cpp @@ -2,7 +2,7 @@ * * * - * Copyright (C) 1997-2014 by Dimitri van Heesch. + * Copyright (C) 1997-2015 by Dimitri van Heesch. * * Permission to use, copy, modify, and distribute this software and its * documentation under the terms of the GNU General Public License is hereby diff --git a/addon/doxywizard/inputbool.h b/addon/doxywizard/inputbool.h index 03bb76e..5a90477 100644 --- a/addon/doxywizard/inputbool.h +++ b/addon/doxywizard/inputbool.h @@ -2,7 +2,7 @@ * * * - * Copyright (C) 1997-2014 by Dimitri van Heesch. + * Copyright (C) 1997-2015 by Dimitri van Heesch. * * Permission to use, copy, modify, and distribute this software and its * documentation under the terms of the GNU General Public License is hereby diff --git a/addon/doxywizard/inputint.cpp b/addon/doxywizard/inputint.cpp index e0c426c..8fa46e8 100644 --- a/addon/doxywizard/inputint.cpp +++ b/addon/doxywizard/inputint.cpp @@ -2,7 +2,7 @@ * * * - * Copyright (C) 1997-2014 by Dimitri van Heesch. + * Copyright (C) 1997-2015 by Dimitri van Heesch. * * Permission to use, copy, modify, and distribute this software and its * documentation under the terms of the GNU General Public License is hereby diff --git a/addon/doxywizard/inputint.h b/addon/doxywizard/inputint.h index 6662865..457c942 100644 --- a/addon/doxywizard/inputint.h +++ b/addon/doxywizard/inputint.h @@ -2,7 +2,7 @@ * * * - * Copyright (C) 1997-2014 by Dimitri van Heesch. + * Copyright (C) 1997-2015 by Dimitri van Heesch. * * Permission to use, copy, modify, and distribute this software and its * documentation under the terms of the GNU General Public License is hereby diff --git a/addon/doxywizard/inputstring.cpp b/addon/doxywizard/inputstring.cpp index 48ede55..75de0b5 100644 --- a/addon/doxywizard/inputstring.cpp +++ b/addon/doxywizard/inputstring.cpp @@ -2,7 +2,7 @@ * * * - * Copyright (C) 1997-2014 by Dimitri van Heesch. + * Copyright (C) 1997-2015 by Dimitri van Heesch. * * Permission to use, copy, modify, and distribute this software and its * documentation under the terms of the GNU General Public License is hereby diff --git a/addon/doxywizard/inputstring.h b/addon/doxywizard/inputstring.h index 90ea87d..dba31f6 100644 --- a/addon/doxywizard/inputstring.h +++ b/addon/doxywizard/inputstring.h @@ -2,7 +2,7 @@ * * * - * Copyright (C) 1997-2014 by Dimitri van Heesch. + * Copyright (C) 1997-2015 by Dimitri van Heesch. * * Permission to use, copy, modify, and distribute this software and its * documentation under the terms of the GNU General Public License is hereby diff --git a/addon/doxywizard/inputstrlist.cpp b/addon/doxywizard/inputstrlist.cpp index 0a0f01f..777af6a 100644 --- a/addon/doxywizard/inputstrlist.cpp +++ b/addon/doxywizard/inputstrlist.cpp @@ -2,7 +2,7 @@ * * * - * Copyright (C) 1997-2014 by Dimitri van Heesch. + * Copyright (C) 1997-2015 by Dimitri van Heesch. * * Permission to use, copy, modify, and distribute this software and its * documentation under the terms of the GNU General Public License is hereby diff --git a/addon/doxywizard/inputstrlist.h b/addon/doxywizard/inputstrlist.h index 0d7efe7..53f3bcc 100644 --- a/addon/doxywizard/inputstrlist.h +++ b/addon/doxywizard/inputstrlist.h @@ -2,7 +2,7 @@ * * * - * Copyright (C) 1997-2014 by Dimitri van Heesch. + * Copyright (C) 1997-2015 by Dimitri van Heesch. * * Permission to use, copy, modify, and distribute this software and its * documentation under the terms of the GNU General Public License is hereby diff --git a/addon/doxywizard/version.h b/addon/doxywizard/version.h index b31fe4f..16bf9df 100644 --- a/addon/doxywizard/version.h +++ b/addon/doxywizard/version.h @@ -2,7 +2,7 @@ * * * - * Copyright (C) 1997-2014 by Dimitri van Heesch. + * Copyright (C) 1997-2015 by Dimitri van Heesch. * * Permission to use, copy, modify, and distribute this software and its * documentation under the terms of the GNU General Public License is hereby diff --git a/addon/doxywizard/wizard.h b/addon/doxywizard/wizard.h index 4d5eb9d..11a42be 100644 --- a/addon/doxywizard/wizard.h +++ b/addon/doxywizard/wizard.h @@ -2,7 +2,7 @@ * * * - * Copyright (C) 1997-2014 by Dimitri van Heesch. + * Copyright (C) 1997-2015 by Dimitri van Heesch. * * Permission to use, copy, modify, and distribute this software and its * documentation under the terms of the GNU General Public License is hereby |