CMakeSetupDialog.h 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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 OnOK();
  62. afx_msg void OnPaint();
  63. afx_msg HCURSOR OnQueryDragIcon();
  64. afx_msg void OnBrowseWhereSource();
  65. virtual void OnBuildProjects();
  66. afx_msg void OnBrowseWhereBuild();
  67. afx_msg void OnChangeWhereBuild();
  68. afx_msg void OnSelendokWhereBuild();
  69. afx_msg void OnChangeWhereSource();
  70. afx_msg void OnSelendokWhereSource();
  71. afx_msg void OnSize(UINT nType, int cx, int cy);
  72. afx_msg void OnGetMinMaxInfo( MINMAXINFO FAR* lpMMI );
  73. //}}AFX_MSG
  74. DECLARE_MESSAGE_MAP()
  75. int m_oldCX;
  76. int m_oldCY;
  77. float m_deltaXRemainder;
  78. };
  79. //{{AFX_INSERT_LOCATION}}
  80. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  81. #endif // !defined(AFX_CMakeSetupDialogDLG_H__AC17A6F6_4634_11D4_8F21_00A0CC33FCD3__INCLUDED_)