CMakeSetupDialog.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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 CMakeCommandLineInfo;
  12. class CMakeSetupDialog : public CDialog
  13. {
  14. // Construction
  15. public:
  16. CMakeSetupDialog(const CMakeCommandLineInfo& cmdInfo,
  17. CWnd* pParent = NULL);
  18. protected:
  19. //! Load cache file from m_WhereBuild and display in GUI editor
  20. void LoadCacheFromDiskToGUI();
  21. //! Save GUI values to cmCacheManager and then save to disk.
  22. void SaveCacheFromGUI();
  23. void SaveToRegistry();
  24. void LoadFromRegistry();
  25. bool Browse(CString&, const char* title);
  26. void ReadRegistryValue(HKEY hKey,
  27. CString *val,
  28. const char *key,
  29. const char *aadefault);
  30. // Dialog Data
  31. //{{AFX_DATA(CMakeSetupDialog)
  32. enum { IDD = IDD_CMakeSetupDialog_DIALOG };
  33. CComboBox m_GeneratorChoice;
  34. CButton m_OKButton;
  35. CButton m_CancelButton;
  36. CString m_WhereSource;
  37. CString m_WhereBuild;
  38. CButton m_ListFrame;
  39. bool m_BuildPathChanged;
  40. CComboBox m_WhereSourceControl;
  41. CComboBox m_WhereBuildControl;
  42. CPropertyList m_CacheEntriesList;
  43. CStatic m_MouseHelp;
  44. CStatic m_VersionDisplay;
  45. CButton m_Configure;
  46. CString m_GeneratorChoiceString;
  47. //}}AFX_DATA
  48. // ClassWizard generated virtual function overrides
  49. //{{AFX_VIRTUAL(CMakeSetupDialog)
  50. protected:
  51. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  52. //}}AFX_VIRTUAL
  53. // Implementation
  54. protected:
  55. void RunCMake(bool generateProjectFiles);
  56. // copy from the cache manager to the cache edit list box
  57. void FillCacheGUIFromCacheManager();
  58. // copy from the list box to the cache manager
  59. void FillCacheManagerFromCacheGUI();
  60. HICON m_hIcon;
  61. CString m_RegistryKey;
  62. CString m_PathToExecutable;
  63. // Generated message map functions
  64. //{{AFX_MSG(CMakeSetupDialog)
  65. virtual BOOL OnInitDialog();
  66. afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
  67. afx_msg void OnCancel();
  68. afx_msg void OnPaint();
  69. afx_msg HCURSOR OnQueryDragIcon();
  70. afx_msg void OnBrowseWhereSource();
  71. virtual void OnConfigure();
  72. afx_msg void OnBrowseWhereBuild();
  73. afx_msg void OnChangeWhereBuild();
  74. afx_msg void OnSelendokWhereBuild();
  75. afx_msg void OnChangeWhereSource();
  76. afx_msg void OnSelendokWhereSource();
  77. afx_msg void OnSize(UINT nType, int cx, int cy);
  78. afx_msg void OnGetMinMaxInfo( MINMAXINFO FAR* lpMMI );
  79. afx_msg void OnOk();
  80. afx_msg void OnEditchangeGenerator();
  81. //}}AFX_MSG
  82. DECLARE_MESSAGE_MAP()
  83. int m_oldCX;
  84. int m_oldCY;
  85. float m_deltaXRemainder;
  86. };
  87. //{{AFX_INSERT_LOCATION}}
  88. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  89. #endif // !defined(AFX_CMakeSetupDialogDLG_H__AC17A6F6_4634_11D4_8F21_00A0CC33FCD3__INCLUDED_)