CMakeSetupDialog.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. CButton m_ListFrame;
  34. bool m_BuildPathChanged;
  35. CComboBox m_WhereSourceControl;
  36. CComboBox m_WhereBuildControl;
  37. CPropertyList m_CacheEntriesList;
  38. CStatic m_MouseHelp;
  39. CStatic m_VersionDisplay;
  40. CButton m_BuildProjects;
  41. CButton m_CancelButton;
  42. //}}AFX_DATA
  43. // ClassWizard generated virtual function overrides
  44. //{{AFX_VIRTUAL(CMakeSetupDialog)
  45. protected:
  46. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  47. //}}AFX_VIRTUAL
  48. // Implementation
  49. protected:
  50. // copy from the cache manager to the cache edit list box
  51. void FillCacheGUIFromCacheManager();
  52. // copy from the list box to the cache manager
  53. void FillCacheManagerFromCacheGUI();
  54. HICON m_hIcon;
  55. CString m_RegistryKey;
  56. CString m_PathToExecutable;
  57. // Generated message map functions
  58. //{{AFX_MSG(CMakeSetupDialog)
  59. virtual BOOL OnInitDialog();
  60. afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
  61. afx_msg void OnPaint();
  62. afx_msg HCURSOR OnQueryDragIcon();
  63. afx_msg void OnBrowseWhereSource();
  64. virtual void OnBuildProjects();
  65. afx_msg void OnBrowseWhereBuild();
  66. afx_msg void OnChangeWhereBuild();
  67. afx_msg void OnSelendokWhereBuild();
  68. afx_msg void OnChangeWhereSource();
  69. afx_msg void OnSelendokWhereSource();
  70. afx_msg void OnSize(UINT nType, int cx, int cy);
  71. afx_msg void OnGetMinMaxInfo( MINMAXINFO FAR* lpMMI );
  72. //}}AFX_MSG
  73. DECLARE_MESSAGE_MAP()
  74. int m_oldCX;
  75. int m_oldCY;
  76. float m_deltaXRemainder;
  77. };
  78. //{{AFX_INSERT_LOCATION}}
  79. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  80. #endif // !defined(AFX_CMakeSetupDialogDLG_H__AC17A6F6_4634_11D4_8F21_00A0CC33FCD3__INCLUDED_)