diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2001-04-25 20:09:17 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2001-04-25 20:09:17 (GMT) |
commit | 5c83326fb43296bec07fe084497f8b3ea5b05e88 (patch) | |
tree | 6867026ecfa8bfd5f0ac8654acd275cdc4f768bb /Source/MFCDialog/CMakeSetupDialog.h | |
parent | 61091234c37ebd104885418809a718910361e4ff (diff) | |
download | CMake-5c83326fb43296bec07fe084497f8b3ea5b05e88.zip CMake-5c83326fb43296bec07fe084497f8b3ea5b05e88.tar.gz CMake-5c83326fb43296bec07fe084497f8b3ea5b05e88.tar.bz2 |
ENH: clean up cmake GUI and remove the parsing of CMakeLists.txt files by configure
Diffstat (limited to 'Source/MFCDialog/CMakeSetupDialog.h')
-rw-r--r-- | Source/MFCDialog/CMakeSetupDialog.h | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/Source/MFCDialog/CMakeSetupDialog.h b/Source/MFCDialog/CMakeSetupDialog.h index 5b8a6cd..d04c1c3 100644 --- a/Source/MFCDialog/CMakeSetupDialog.h +++ b/Source/MFCDialog/CMakeSetupDialog.h @@ -7,7 +7,8 @@ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 -#include "../cmMakefile.h" + + #include "PropertyList.h" ///////////////////////////////////////////////////////////////////////////// // CMakeSetupDialog dialog @@ -18,10 +19,13 @@ class CMakeSetupDialog : public CDialog public: CMakeSetupDialog(CWnd* pParent = NULL); // standard constructor protected: - bool Browse(CString&, const char* title); + //! Load cache file from m_WhereBuild and display in GUI editor + void LoadCacheFromDiskToGUI(); + //! Save GUI values to cmCacheManager and then save to disk. + void SaveCacheFromGUI(); void SaveToRegistry(); void LoadFromRegistry(); - void InitMakefile(); + bool Browse(CString&, const char* title); void ReadRegistryValue(HKEY hKey, CString *val, const char *key, @@ -29,13 +33,9 @@ protected: // Dialog Data //{{AFX_DATA(CMakeSetupDialog) enum { IDD = IDD_CMakeSetupDialog_DIALOG }; - cmMakefile m_Makefile; - bool m_InitMakefile; - bool m_GUIInitialized; CString m_WhereSource; CString m_WhereBuild; - CString m_WhereSourceLast; - CString m_WhereBuildLast; + bool m_BuildPathChanged; CPropertyList m_CacheEntriesList; //}}AFX_DATA @@ -48,6 +48,12 @@ protected: // Implementation protected: + // copy from the cache manager to the cache edit list box + void FillCacheGUIFromCacheManager(); + // copy from the list box to the cache manager + void FillCacheManagerFromCacheGUI(); + + HICON m_hIcon; CString m_RegistryKey; // Generated message map functions @@ -56,17 +62,11 @@ protected: afx_msg void OnSysCommand(UINT nID, LPARAM lParam); afx_msg void OnPaint(); afx_msg HCURSOR OnQueryDragIcon(); - afx_msg void OnChangeEdit1(); - afx_msg void OnBrowse(); - virtual void OnOK(); + afx_msg void OnBrowseWhereSource(); virtual void OnBuildProjects(); - afx_msg void OnButton3(); - - // copy from the cache manager to the cache edit list box - void FillCacheEditorFromCacheManager(); - // copy from the list box to the cache manager - void FillCacheManagerFromCacheEditor(); - + afx_msg void OnBrowseWhereBuild(); + afx_msg void OnChangeWhereBuild(); + afx_msg void OnChangeWhereSource(); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; |