KDECore
kconfig_compiler.cpp File Reference
#include <qfile.h>
#include <qtextstream.h>
#include <qdom.h>
#include <qregexp.h>
#include <kaboutdata.h>
#include <kapplication.h>
#include <kdebug.h>
#include <klocale.h>
#include <kcmdlineargs.h>
#include <kglobal.h>
#include <kconfig.h>
#include <ksimpleconfig.h>
#include <kstandarddirs.h>
#include <iostream>
Go to the source code of this file.
Functions | |
static void | addQuotes (QString &s) |
QString | cppType (const QString &type) |
QString | defaultValue (const QString &type) |
static QString | dumpNode (const QDomNode &node) |
static QString | enumName (const QString &n) |
static QString | filenameOnly (QString path) |
static QString | getFunction (const QString &n, const QString &className=QString::null) |
QString | indent (QString text, int spaces) |
QString | itemAccessorBody (CfgEntry *e) |
static QString | itemDeclaration (const CfgEntry *e) |
static QString | itemPath (const CfgEntry *e) |
QString | itemType (const QString &type) |
static QString | itemVar (const CfgEntry *e) |
static QString | literalString (const QString &s) |
int | main (int argc, char **argv) |
QString | memberAccessorBody (CfgEntry *e) |
QString | memberMutatorBody (CfgEntry *e) |
QString | newItem (const QString &type, const QString &name, const QString &key, const QString &defaultValue, const QString ¶m=QString::null) |
QString | param (const QString &type) |
QString | paramString (const QString &group, const QValueList< Param > ¶meters) |
QString | paramString (const QString &s, const CfgEntry *e, int i) |
CfgEntry * | parseEntry (const QString &group, const QDomElement &element) |
static void | preProcessDefault (QString &defaultValue, const QString &name, const QString &type, const QValueList< CfgEntry::Choice > &choices, QString &code) |
static QString | quoteString (const QString &s) |
static QString | setFunction (const QString &n, const QString &className=QString::null) |
QString | userTextsFunctions (CfgEntry *e, QString itemVarStr=QString::null, QString i=QString::null) |
static QString | varName (const QString &n) |
static QString | varPath (const QString &n) |
Variables | |
QStringList | allNames |
QString | Const |
bool | dpointer |
bool | globalEnums |
bool | itemAccessors |
static const KCmdLineOptions | options [] |
QString | This |
QRegExp * | validNameRegexp |
Function Documentation
static void addQuotes | ( | QString & | s | ) | [static] |
Definition at line 245 of file kconfig_compiler.cpp.
Definition at line 665 of file kconfig_compiler.cpp.
Definition at line 273 of file kconfig_compiler.cpp.
Definition at line 216 of file kconfig_compiler.cpp.
Definition at line 285 of file kconfig_compiler.cpp.
static QString getFunction | ( | const QString & | n, | |
const QString & | className = QString::null | |||
) | [static] |
Definition at line 234 of file kconfig_compiler.cpp.
Definition at line 935 of file kconfig_compiler.cpp.
QString itemAccessorBody | ( | CfgEntry * | e | ) |
Definition at line 922 of file kconfig_compiler.cpp.
static QString itemDeclaration | ( | const CfgEntry * | e | ) | [static] |
Definition at line 702 of file kconfig_compiler.cpp.
static QString itemPath | ( | const CfgEntry * | e | ) | [static] |
Definition at line 742 of file kconfig_compiler.cpp.
Definition at line 692 of file kconfig_compiler.cpp.
static QString itemVar | ( | const CfgEntry * | e | ) | [static] |
Definition at line 718 of file kconfig_compiler.cpp.
Definition at line 261 of file kconfig_compiler.cpp.
int main | ( | int | argc, | |
char ** | argv | |||
) |
Definition at line 953 of file kconfig_compiler.cpp.
QString memberAccessorBody | ( | CfgEntry * | e | ) |
Definition at line 840 of file kconfig_compiler.cpp.
QString memberMutatorBody | ( | CfgEntry * | e | ) |
Definition at line 857 of file kconfig_compiler.cpp.
QString newItem | ( | const QString & | type, | |
const QString & | name, | |||
const QString & | key, | |||
const QString & | defaultValue, | |||
const QString & | param = QString::null | |||
) |
Definition at line 754 of file kconfig_compiler.cpp.
QString paramString | ( | const QString & | group, | |
const QValueList< Param > & | parameters | |||
) |
Definition at line 791 of file kconfig_compiler.cpp.
Definition at line 770 of file kconfig_compiler.cpp.
CfgEntry* parseEntry | ( | const QString & | group, | |
const QDomElement & | element | |||
) |
Definition at line 357 of file kconfig_compiler.cpp.
static void preProcessDefault | ( | QString & | defaultValue, | |
const QString & | name, | |||
const QString & | type, | |||
const QValueList< CfgEntry::Choice > & | choices, | |||
QString & | code | |||
) | [static] |
Definition at line 293 of file kconfig_compiler.cpp.
Definition at line 251 of file kconfig_compiler.cpp.
static QString setFunction | ( | const QString & | n, | |
const QString & | className = QString::null | |||
) | [static] |
Definition at line 223 of file kconfig_compiler.cpp.
QString userTextsFunctions | ( | CfgEntry * | e, | |
QString | itemVarStr = QString::null , |
|||
QString | i = QString::null | |||
) |
Definition at line 814 of file kconfig_compiler.cpp.
Definition at line 190 of file kconfig_compiler.cpp.
Definition at line 204 of file kconfig_compiler.cpp.
Variable Documentation
Definition at line 55 of file kconfig_compiler.cpp.
Definition at line 58 of file kconfig_compiler.cpp.
Definition at line 54 of file kconfig_compiler.cpp.
Definition at line 52 of file kconfig_compiler.cpp.
Definition at line 53 of file kconfig_compiler.cpp.
const KCmdLineOptions options[] [static] |
Initial value:
{ { "d", 0, 0 }, { "directory <dir>", I18N_NOOP("Directory to generate files in"), "." }, { "+file.kcfg", I18N_NOOP("Input kcfg XML file"), 0 }, { "+file.kcfgc", I18N_NOOP("Code generation options file"), 0 }, KCmdLineLastOption }
Definition at line 42 of file kconfig_compiler.cpp.
Definition at line 57 of file kconfig_compiler.cpp.
Definition at line 56 of file kconfig_compiler.cpp.