diff options
author | Clinton Stimpson <clinton@elemtech.com> | 2007-11-05 18:20:54 (GMT) |
---|---|---|
committer | Clinton Stimpson <clinton@elemtech.com> | 2007-11-05 18:20:54 (GMT) |
commit | cfa723d45792ef6969304fb7d9274778f662a116 (patch) | |
tree | 740899517a9a87583acad024d06e1cf4d2e0d011 /Source/QtDialog/QCMake.h | |
parent | 7bd73d3e0dd1cc1515575b58db41e80f17474532 (diff) | |
download | CMake-cfa723d45792ef6969304fb7d9274778f662a116.zip CMake-cfa723d45792ef6969304fb7d9274778f662a116.tar.gz CMake-cfa723d45792ef6969304fb7d9274778f662a116.tar.bz2 |
ENH: Prompt user for generator when there is none.
Many minor improvements, bug fixes, and style fixes.
Diffstat (limited to 'Source/QtDialog/QCMake.h')
-rw-r--r-- | Source/QtDialog/QCMake.h | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/Source/QtDialog/QCMake.h b/Source/QtDialog/QCMake.h index bfd2585..d28a917 100644 --- a/Source/QtDialog/QCMake.h +++ b/Source/QtDialog/QCMake.h @@ -26,6 +26,7 @@ #include <QString> #include <QVariant> #include <QList> +#include <QStringList> #include <QMetaType> class cmake; @@ -40,8 +41,14 @@ struct QCMakeCacheProperty QString Help; PropertyType Type; bool Advanced; - bool operator==(const QCMakeCacheProperty& other) const { return this->Key == other.Key; } - bool operator<(const QCMakeCacheProperty& other) const { return this->Key < other.Key; } + bool operator==(const QCMakeCacheProperty& other) const + { + return this->Key == other.Key; + } + bool operator<(const QCMakeCacheProperty& other) const + { + return this->Key < other.Key; + } }; // make types usable with QVariant @@ -79,15 +86,15 @@ public slots: public: /// get the list of cache properties - QCMakeCachePropertyList properties(); + QCMakeCachePropertyList properties() const; /// get the current binary directory - QString binaryDirectory(); + QString binaryDirectory() const; /// get the current source directory - QString sourceDirectory(); + QString sourceDirectory() const; /// get the current generator - QString generator(); + QString generator() const; /// get the available generators - QStringList availableGenerators(); + QStringList availableGenerators() const; signals: /// signal when properties change (during read from disk or configure process) @@ -112,11 +119,13 @@ protected: cmake* CMakeInstance; static void progressCallback(const char* msg, float percent, void* cd); - static void errorCallback(const char* msg, const char* title, bool&, void* cd); + static void errorCallback(const char* msg, const char* title, + bool&, void* cd); QString SourceDirectory; QString BinaryDirectory; QString Generator; + QStringList AvailableGenerators; QString CMakeExecutable; }; |