diff options
Diffstat (limited to 'src/tools/list/compile_config.h')
-rw-r--r-- | src/tools/list/compile_config.h | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/src/tools/list/compile_config.h b/src/tools/list/compile_config.h index 13beff4..7e032a1 100644 --- a/src/tools/list/compile_config.h +++ b/src/tools/list/compile_config.h @@ -24,32 +24,32 @@ public: bool hasCustomArguments(Tool::Category category) const { return boolValue(category, "has_custom_arguments", false); } void setHasCustomArguments(Tool::Category category, bool custom) { setValue(category, "has_custom_arguments", custom); } - QStringList customArguments(Tool::Category category) const { return listValues(category, "custom_arguments", QStringList()); } - void setCustomArguments(Tool::Category category, const QStringList &args) { return setListValues(category, "custom_arguments", args); } - QStringList rawIncludeDirs(Tool::Category category) const { return listValues(category, "includes", "$(SRCPATH)"); } - QStringList includeDirs(Tool::Category category, const QString &prefix, const QString &suffix = QString::null, const QString &separator = QString::null) const; - void setRawIncludeDirs(Tool::Category category, const QStringList &dirs) { setListValues(category, "includes", dirs); } - QString rawCustomOptions(Tool::Category category) const { return value(category, "custom_options", QString::null); } - QStringList customOptions(Tool::Category category) const; - void setRawCustomOptions(Tool::Category category, const QString &value) { setValue(category, "custom_options", value); } - QString rawCustomLibraries(Tool::Category category) const { return value(category, "custom_libraries", QString::null); } - QStringList customLibraries(Tool::Category category) const; - void setRawCustomLibraries(Tool::Category category, const QString &value) { setValue(category, "custom_libraries", value); } + TQStringList customArguments(Tool::Category category) const { return listValues(category, "custom_arguments", TQStringList()); } + void setCustomArguments(Tool::Category category, const TQStringList &args) { return setListValues(category, "custom_arguments", args); } + TQStringList rawIncludeDirs(Tool::Category category) const { return listValues(category, "includes", "$(SRCPATH)"); } + TQStringList includeDirs(Tool::Category category, const TQString &prefix, const TQString &suffix = TQString(), const TQString &separator = TQString()) const; + void setRawIncludeDirs(Tool::Category category, const TQStringList &dirs) { setListValues(category, "includes", dirs); } + TQString rawCustomOptions(Tool::Category category) const { return value(category, "custom_options", TQString()); } + TQStringList customOptions(Tool::Category category) const; + void setRawCustomOptions(Tool::Category category, const TQString &value) { setValue(category, "custom_options", value); } + TQString rawCustomLibraries(Tool::Category category) const { return value(category, "custom_libraries", TQString()); } + TQStringList customLibraries(Tool::Category category) const; + void setRawCustomLibraries(Tool::Category category, const TQString &value) { setValue(category, "custom_libraries", value); } uint warningLevel(Tool::Category category) const { return uintValue(category, "warning_level", 0); } - void setWarningLevel(Tool::Category category, uint level) { setValue(category, "warning_level", QString::number(level)); } + void setWarningLevel(Tool::Category category, uint level) { setValue(category, "warning_level", TQString::number(level)); } HexBuffer::Format hexFormat() const; void setHexFormat(HexBuffer::Format format); static const Tool::Group &toolGroup(const Project *project); static void setToolGroup(Project *project, const Tool::Group &group) { setGlobalValue(project, "tool", group.name()); } - static QString device(const Project *project); - static void setDevice(Project *project, const QString &device) { setGlobalValue(project, "device", device); } - static QStringList customCommands(Project *project) { return globalListValues(project, "custom_shell_commands", QStringList()); } - static void setCustomCommands(Project *project, const QStringList &commands) { setGlobalListValues(project, "custom_shell_commands", commands); } - static QString globalValue(const Project *project, const QString &key, const QString &defaultValue); - static void setGlobalValue(Project *project, const QString &key, const QString &value); - static QStringList globalListValues(const Project *project, const QString &key, const QStringList &defaultValues); - static void setGlobalListValues(Project *project, const QString &key, const QStringList &value); + static TQString device(const Project *project); + static void setDevice(Project *project, const TQString &device) { setGlobalValue(project, "device", device); } + static TQStringList customCommands(Project *project) { return globalListValues(project, "custom_shell_commands", TQStringList()); } + static void setCustomCommands(Project *project, const TQStringList &commands) { setGlobalListValues(project, "custom_shell_commands", commands); } + static TQString globalValue(const Project *project, const TQString &key, const TQString &defaultValue); + static void setGlobalValue(Project *project, const TQString &key, const TQString &value); + static TQStringList globalListValues(const Project *project, const TQString &key, const TQStringList &defaultValues); + static void setGlobalListValues(Project *project, const TQString &key, const TQStringList &value); static PURL::Directory directory(const Tool::Group &group, DirectoryType type); static void setDirectory(const Tool::Group &group, DirectoryType type, const PURL::Directory &dir); @@ -62,19 +62,19 @@ protected: const Tool::Group *_group; Project *_project; - void setValue(Tool::Category category, const QString &key, const QString &value); - QString value(Tool::Category category, const QString &key, const QString &defaultValue) const; - void setListValues(Tool::Category category, const QString &key, const QStringList &values); - QStringList listValues(Tool::Category category, const QString &key, const QStringList &defaultValues) const; - void setValue(Tool::Category category, const QString &key, bool value) { setValue(category, key, QString(value ? "true" : "false")); } - bool boolValue(Tool::Category category, const QString &key, bool defaultValue) const; - void setValue(Tool::Category category, const QString &key, uint value) { setValue(category, key, QString::number(value)); } - uint uintValue(Tool::Category category, const QString &key, uint defaultValue) const; + void setValue(Tool::Category category, const TQString &key, const TQString &value); + TQString value(Tool::Category category, const TQString &key, const TQString &defaultValue) const; + void setListValues(Tool::Category category, const TQString &key, const TQStringList &values); + TQStringList listValues(Tool::Category category, const TQString &key, const TQStringList &defaultValues) const; + void setValue(Tool::Category category, const TQString &key, bool value) { setValue(category, key, TQString(value ? "true" : "false")); } + bool boolValue(Tool::Category category, const TQString &key, bool defaultValue) const; + void setValue(Tool::Category category, const TQString &key, uint value) { setValue(category, key, TQString::number(value)); } + uint uintValue(Tool::Category category, const TQString &key, uint defaultValue) const; - static QString value(const QString &group, const QString &subGroup, const QString &key, const QString &defaultValue); - static void setValue(const QString &group, const QString &subGroup, const QString &key, const QString &value); - static QStringList listValues(const QString &group, const QString &subGroup, const QString &key, const QStringList &defaultValues); - static void setListValues(const QString &group, const QString &subGroup, const QString &key, const QStringList &values); + static TQString value(const TQString &group, const TQString &subGroup, const TQString &key, const TQString &defaultValue); + static void setValue(const TQString &group, const TQString &subGroup, const TQString &key, const TQString &value); + static TQStringList listValues(const TQString &group, const TQString &subGroup, const TQString &key, const TQStringList &defaultValues); + static void setListValues(const TQString &group, const TQString &subGroup, const TQString &key, const TQStringList &values); friend class Tool::Group; }; |