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/CMakeSetupDialog.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/CMakeSetupDialog.h')
-rw-r--r-- | Source/QtDialog/CMakeSetupDialog.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Source/QtDialog/CMakeSetupDialog.h b/Source/QtDialog/CMakeSetupDialog.h index a8221be..d1efcce 100644 --- a/Source/QtDialog/CMakeSetupDialog.h +++ b/Source/QtDialog/CMakeSetupDialog.h @@ -15,8 +15,12 @@ =========================================================================*/ +#ifndef CMakeSetupDialog_h +#define CMakeSetupDialog_h + #include "QCMake.h" #include <QMainWindow> +#include <QThread> #include "ui_CMakeSetupDialog.h" class QCMakeThread; @@ -48,6 +52,7 @@ protected slots: void setBinaryDirectory(const QString& dir); void showProgress(const QString& msg, float percent); void setEnabledState(bool); + void promptForGenerator(); protected: void closeEvent(QCloseEvent*); @@ -57,3 +62,23 @@ protected: QToolButton* InterruptButton; }; +// QCMake instance on a thread +class QCMakeThread : public QThread +{ + Q_OBJECT +public: + QCMakeThread(QObject* p); + QCMake* cmakeInstance() const; + +signals: + void cmakeInitialized(); + +protected slots: + void processEvents(); + +protected: + virtual void run(); + QCMake* CMakeInstance; +}; + +#endif // CMakeSetupDialog_h |