CMakeSetupDialog.h 2.8 KB

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