diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2002-11-14 23:18:49 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2002-11-14 23:18:49 (GMT) |
commit | c91ca248f6b0cb9a1eebf47dce9a56e51e40b1db (patch) | |
tree | 20962dedb748112e81a87b80fd97967b07b0ad7a /Source/WXDialog/cmWXMainFrame.h | |
parent | 9f6e61361c2672d98c80014da693fb2beebfe9a9 (diff) | |
download | CMake-c91ca248f6b0cb9a1eebf47dce9a56e51e40b1db.zip CMake-c91ca248f6b0cb9a1eebf47dce9a56e51e40b1db.tar.gz CMake-c91ca248f6b0cb9a1eebf47dce9a56e51e40b1db.tar.bz2 |
Add progress reporting
Diffstat (limited to 'Source/WXDialog/cmWXMainFrame.h')
-rw-r--r-- | Source/WXDialog/cmWXMainFrame.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Source/WXDialog/cmWXMainFrame.h b/Source/WXDialog/cmWXMainFrame.h index a192e8b..8f97fd0 100644 --- a/Source/WXDialog/cmWXMainFrame.h +++ b/Source/WXDialog/cmWXMainFrame.h @@ -33,6 +33,7 @@ class wxScrolledWindow; class wxSizer; class wxStaticBox; class wxStaticText; +class wxApp; /** \class cmMainFrame * \brief GUI for CMake with wxWindows toolkit @@ -82,11 +83,16 @@ public: void ConnectEventTo(wxWindow*, wxEventType, wxObjectEventFunction); //! Callback for the error message. - static void MessageCallback(const char* m, const char* title, bool& nomore, void* cd); + static void MessageCallback(const char* m, const char* title, + bool& nomore, void* cd); + static void ProgressCallback(const char* m, float prog, void* clientData); void DisplayMessage(const char* m, const char* title, bool& nomore); //! Retrieve the current build directory. const std::string& GetBuildDir() { return this->m_WhereBuild; } + + //! Set the application for progress + void SetApplication(wxApp* app) { m_Application = app; } private: //! Load cache file from m_WhereBuild and display in GUI editor @@ -221,6 +227,8 @@ private: cmake* m_CMakeInstance; wxTimer* m_ExitTimer; + wxApp* m_Application; + enum Events { ID_MainFrame, ID_Resize, |