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 "../cmMakefile.h"
  9. #include "PropertyList.h"
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CMakeSetupDialog dialog
  12. class CMakeSetupDialog : public CDialog
  13. {
  14. // Construction
  15. public:
  16. CMakeSetupDialog(CWnd* pParent = NULL); // standard constructor
  17. protected:
  18. bool Browse(CString&, const char* title);
  19. void SaveToRegistry();
  20. void LoadFromRegistry();
  21. void InitMakefile();
  22. void ReadRegistryValue(HKEY hKey,
  23. CString *val,
  24. const char *key,
  25. const char *aadefault);
  26. // Dialog Data
  27. //{{AFX_DATA(CMakeSetupDialog)
  28. enum { IDD = IDD_CMakeSetupDialog_DIALOG };
  29. cmMakefile m_Makefile;
  30. bool m_InitMakefile;
  31. bool m_GUIInitialized;
  32. CString m_WhereSource;
  33. CString m_WhereBuild;
  34. CString m_WhereSourceLast;
  35. CString m_WhereBuildLast;
  36. CPropertyList m_CacheEntriesList;
  37. //}}AFX_DATA
  38. // ClassWizard generated virtual function overrides
  39. //{{AFX_VIRTUAL(CMakeSetupDialog)
  40. protected:
  41. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  42. //}}AFX_VIRTUAL
  43. // Implementation
  44. protected:
  45. HICON m_hIcon;
  46. CString m_RegistryKey;
  47. // Generated message map functions
  48. //{{AFX_MSG(CMakeSetupDialog)
  49. virtual BOOL OnInitDialog();
  50. afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
  51. afx_msg void OnPaint();
  52. afx_msg HCURSOR OnQueryDragIcon();
  53. afx_msg void OnChangeEdit1();
  54. afx_msg void OnBrowse();
  55. virtual void OnOK();
  56. virtual void OnBuildProjects();
  57. afx_msg void OnButton3();
  58. // copy from the cache manager to the cache edit list box
  59. void FillCacheEditorFromCacheManager();
  60. // copy from the list box to the cache manager
  61. void FillCacheManagerFromCacheEditor();
  62. //}}AFX_MSG
  63. DECLARE_MESSAGE_MAP()
  64. };
  65. //{{AFX_INSERT_LOCATION}}
  66. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  67. #endif // !defined(AFX_CMakeSetupDialogDLG_H__AC17A6F6_4634_11D4_8F21_00A0CC33FCD3__INCLUDED_)