diff options
author | Clinton Stimpson <clinton@elemtech.com> | 2007-11-02 15:50:17 (GMT) |
---|---|---|
committer | Clinton Stimpson <clinton@elemtech.com> | 2007-11-02 15:50:17 (GMT) |
commit | 800cbd0550466794cf853c6fb4dc0349e245220c (patch) | |
tree | 6a55206bc76ac9a72f99906f341a8b7115879f8d /Source/QtDialog/CMakeSetupDialog.h | |
parent | dcf21dd90b816d06b43716ce96e496fe3d591594 (diff) | |
download | CMake-800cbd0550466794cf853c6fb4dc0349e245220c.zip CMake-800cbd0550466794cf853c6fb4dc0349e245220c.tar.gz CMake-800cbd0550466794cf853c6fb4dc0349e245220c.tar.bz2 |
ENH: Beginnings of a Qt UI for CMake.
Diffstat (limited to 'Source/QtDialog/CMakeSetupDialog.h')
-rw-r--r-- | Source/QtDialog/CMakeSetupDialog.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/Source/QtDialog/CMakeSetupDialog.h b/Source/QtDialog/CMakeSetupDialog.h new file mode 100644 index 0000000..71a51d9 --- /dev/null +++ b/Source/QtDialog/CMakeSetupDialog.h @@ -0,0 +1,47 @@ + +#include <QMainWindow> +#include "ui_CMakeSetupDialog.h" +#include "QCMake.h" + +class QCMakeThread; +class CMakeCacheModel; +class QProgressBar; + +/// Qt user interface for CMake +class CMakeSetupDialog : public QMainWindow, public Ui::CMakeSetupDialog +{ + Q_OBJECT +public: + CMakeSetupDialog(); + ~CMakeSetupDialog(); + +signals: + void configure(); + void ok(); + void cancel(); + void propertiesChanged(const QCMakeCachePropertyList&); + +protected slots: + void initialize(); + void doConfigure(); + void doOk(); + void doCancel(); + void doHelp(); + void finishConfigure(int error); + void finishGenerate(int error); + void error(const QString& title, const QString& message, bool* cancel); + + void doSourceBrowse(); + void doBinaryBrowse(); + void updateSourceDirectory(const QString& dir); + void setBinaryDirectory(const QString& dir); + + void showProgress(const QString& msg, float percent); + +protected: + + QCMakeThread* CMakeThread; + QProgressBar* ProgressBar; + +}; + |