CMakeSetupDialog.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. // CMakeSetupDialogDlg.h : header file
  2. //
  3. #if !defined(AFX_CMakeSetupDialogDLG_H__AC17A6F6_4634_11D4_8F21_00A0CC33FCD3__INCLUDED_)
  4. #define AFX_CMakeSetupDialogDLG_H__AC17A6F6_4634_11D4_8F21_00A0CC33FCD3__INCLUDED_
  5. #if _MSC_VER > 1000
  6. #pragma once
  7. #endif // _MSC_VER > 1000
  8. #include "PropertyList.h"
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CMakeSetupDialog dialog
  11. class CMakeSetupDialog : public CDialog
  12. {
  13. // Construction
  14. public:
  15. CMakeSetupDialog(CWnd* pParent = NULL); // standard constructor
  16. protected:
  17. //! Load cache file from m_WhereBuild and display in GUI editor
  18. void LoadCacheFromDiskToGUI();
  19. //! Save GUI values to cmCacheManager and then save to disk.
  20. void SaveCacheFromGUI();
  21. void SaveToRegistry();
  22. void LoadFromRegistry();
  23. bool Browse(CString&, const char* title);
  24. void ReadRegistryValue(HKEY hKey,
  25. CString *val,
  26. const char *key,
  27. const char *aadefault);
  28. // Dialog Data
  29. //{{AFX_DATA(CMakeSetupDialog)
  30. enum { IDD = IDD_CMakeSetupDialog_DIALOG };
  31. CString m_WhereSource;
  32. CString m_WhereBuild;
  33. bool m_BuildPathChanged;
  34. CPropertyList m_CacheEntriesList;
  35. //}}AFX_DATA
  36. // ClassWizard generated virtual function overrides
  37. //{{AFX_VIRTUAL(CMakeSetupDialog)
  38. protected:
  39. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  40. //}}AFX_VIRTUAL
  41. // Implementation
  42. protected:
  43. // copy from the cache manager to the cache edit list box
  44. void FillCacheGUIFromCacheManager();
  45. // copy from the list box to the cache manager
  46. void FillCacheManagerFromCacheGUI();
  47. HICON m_hIcon;
  48. CString m_RegistryKey;
  49. // Generated message map functions
  50. //{{AFX_MSG(CMakeSetupDialog)
  51. virtual BOOL OnInitDialog();
  52. afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
  53. afx_msg void OnPaint();
  54. afx_msg HCURSOR OnQueryDragIcon();
  55. afx_msg void OnBrowseWhereSource();
  56. virtual void OnBuildProjects();
  57. afx_msg void OnBrowseWhereBuild();
  58. afx_msg void OnChangeWhereBuild();
  59. afx_msg void OnChangeWhereSource();
  60. //}}AFX_MSG
  61. DECLARE_MESSAGE_MAP()
  62. };
  63. //{{AFX_INSERT_LOCATION}}
  64. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  65. #endif // !defined(AFX_CMakeSetupDialogDLG_H__AC17A6F6_4634_11D4_8F21_00A0CC33FCD3__INCLUDED_)