Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

183 lines
4.4 KiB

  1. #if !defined(AFX_NEWTPROJECT_H__BB1A03B5_5555_4DE7_988D_D6F5117D0D77__INCLUDED_)
  2. #define AFX_NEWTPROJECT_H__BB1A03B5_5555_4DE7_988D_D6F5117D0D77__INCLUDED_
  3. #include "utility.h" // Added by ClassView
  4. #if _MSC_VER > 1000
  5. #pragma once
  6. #endif // _MSC_VER > 1000
  7. // NewPrjWTem.h : header file
  8. //
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CNewProject dialog
  11. class CNewProject : public CPropertyPage
  12. {
  13. // DECLARE_DYNCREATE(CNewProject)
  14. DECLARE_SERIAL(CNewProject)
  15. // Construction
  16. public:
  17. CString GetGPDpath() {return m_csGPDpath ; } ;
  18. CGPDContainer* GPDContainer () { return m_pcgc ; }
  19. CNewProject(); // standard constructor
  20. // Dialog Data
  21. //{{AFX_DATA(CNewProject)
  22. enum { IDD = IDD_NEW_PROJECT };
  23. CButton m_cbLocprj;
  24. CButton m_cbAddT;
  25. CListCtrl m_clcTemplate ;
  26. CString m_csPrjname;
  27. CString m_csPrjpath;
  28. CString m_cstname;
  29. CString m_cstpath;
  30. //}}AFX_DATA
  31. // Overrides
  32. // ClassWizard generated virtual function overrides
  33. //{{AFX_VIRTUAL(CNewProject)
  34. public:
  35. virtual BOOL OnSetActive();
  36. virtual void Serialize(CArchive& car);
  37. virtual void OnOK();
  38. protected:
  39. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  40. //}}AFX_VIRTUAL
  41. // Implementation
  42. protected:
  43. // Generated message map functions
  44. //{{AFX_MSG(CNewProject)
  45. afx_msg void OnGpdBrowser();
  46. afx_msg void OnDirBrowser() ;
  47. virtual BOOL OnInitDialog();
  48. afx_msg void OnCheckAdd();
  49. afx_msg void OnAddTemplate();
  50. afx_msg void OnChangeEditPrjName();
  51. afx_msg void OnChangeEditPrjLoc();
  52. afx_msg void OnClickListTemplate(NMHDR* pNMHDR, LRESULT* pResult);
  53. afx_msg void OnDblclkListTemplate(NMHDR* pNMHDR, LRESULT* pResult);
  54. //}}AFX_MSG
  55. DECLARE_MESSAGE_MAP()
  56. private:
  57. bool AddGpds(CString& csTemplate);
  58. void SetButton();
  59. CString m_csGPDpath;
  60. CGPDContainer* m_pcgc;
  61. CString m_csoldPrjpath;
  62. CPropertySheet* m_pcps;
  63. CStringArray m_csaTlst;
  64. CMapStringToString m_cmstsTemplate;
  65. };
  66. /////////////////////////////////////////////////////////////////////////////
  67. // CNewPrjWResource dialog
  68. class CNewPrjWResource : public CPropertyPage
  69. {
  70. DECLARE_DYNCREATE(CNewPrjWResource)
  71. // Construction
  72. public:
  73. CNewPrjWResource(); // standard constructor
  74. // Dialog Data
  75. //{{AFX_DATA(CNewPrjWResource)
  76. enum { IDD = IDD_NewResource };
  77. CButton m_cbCheckFonts;
  78. CString m_csUFMpath;
  79. CString m_csGTTpath;
  80. CString m_csGpdFileName;
  81. CString m_csModelName;
  82. CString m_csRCName;
  83. //}}AFX_DATA
  84. // Overrides
  85. // ClassWizard generated virtual function overrides
  86. //{{AFX_VIRTUAL(CNewPrjWResource)
  87. public:
  88. virtual BOOL OnSetActive();
  89. virtual BOOL OnWizardFinish();
  90. virtual LRESULT OnWizardBack();
  91. protected:
  92. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  93. //}}AFX_VIRTUAL
  94. // Implementation
  95. protected:
  96. // Generated message map functions
  97. //{{AFX_MSG(CNewPrjWResource)
  98. afx_msg void OnSerchUFM();
  99. afx_msg void OnSearchGTT();
  100. virtual BOOL OnInitDialog();
  101. afx_msg void OnCheckFonts();
  102. afx_msg void OnChangeEditGpd();
  103. afx_msg void OnChangeEditModel();
  104. afx_msg void OnChangeEditResourec();
  105. //}}AFX_MSG
  106. DECLARE_MESSAGE_MAP()
  107. public:
  108. CStringArray m_csaUFMFiles, m_csaGTTFiles ;
  109. private:
  110. CStringArray m_csaRcid;
  111. void CreateRCID(CString csgpd );
  112. CNewProject* m_pcnp;
  113. };
  114. class CNewProjectWizard : public CPropertySheet
  115. {
  116. DECLARE_DYNAMIC(CNewProjectWizard)
  117. // Construction
  118. public:
  119. CNewProjectWizard(UINT nIDCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);
  120. CNewProjectWizard(LPCTSTR pszCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);
  121. // Attributes
  122. CWnd* m_pParent;
  123. public:
  124. // Overrides
  125. // ClassWizard generated virtual function overrides
  126. //{{AFX_VIRTUAL(CNewProjectWizard)
  127. //}}AFX_VIRTUAL
  128. // Implementation
  129. public:
  130. CPropertyPage* GetProjectPage();
  131. // CPropertyPage * GetTemplatePage( ) { return (CPropertyPage*)&m_cpwt ; }
  132. virtual ~CNewProjectWizard();
  133. // Generated message map functions
  134. protected:
  135. //{{AFX_MSG(CNewProjectWizard)
  136. // NOTE - the ClassWizard will add and remove member functions here.
  137. //}}AFX_MSG
  138. DECLARE_MESSAGE_MAP()
  139. private:
  140. CNewPrjWResource m_cpwr ;
  141. };
  142. //{{AFX_INSERT_LOCATION}}
  143. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  144. #endif // !defined(AFX_NEWTPROJECT_H__BB1A03B5_5555_4DE7_988D_D6F5117D0D77__INCLUDED_)