- #if !defined(AFX_MYNEWDLG_H__7893DCC3_DCA0_11D2_89B6_BA5CD223B548__INCLUDED_)
- #define AFX_MYNEWDLG_H__7893DCC3_DCA0_11D2_89B6_BA5CD223B548__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // MyNewDlg.h : header file
- #include "MiniCAD.h"
- #include "resource.h"
- /////////////////////////////////////////////////////////////////////////////
- // CMyNewFileDlg dialog
- class CMyNewFileDlg : public CPropertyPage
- {
- DECLARE_DYNCREATE(CMyNewFileDlg)
- protected:
- CMiniCADApp* pApp;
- // Construction
- public:
- CMyNewFileDlg();
- ~CMyNewFileDlg();
- // Dialog Data
- //{{AFX_DATA(CMyNewFileDlg)
- enum { IDD = IDD_MYNEWFILE };
- CString m_Name;
- CString m_FilePath;
- CString m_FileName;
- int m_Size;
- //}}AFX_DATA
- // Overrides
- // ClassWizard generate virtual function overrides
- //{{AFX_VIRTUAL(CMyNewFileDlg)
- public:
- virtual void OnCancel();
- virtual BOOL OnApply();
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- // Generated message map functions
- //{{AFX_MSG(CMyNewFileDlg)
- virtual BOOL OnInitDialog();
- afx_msg void OnBrowse();
- afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
- afx_msg void OnTemplatecheck();
- afx_msg void OnChangeDocumentPath();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- // CMyNewComponentDlg dialog
- class CMyNewComponentDlg : public CPropertyPage
- {
- DECLARE_DYNCREATE(CMyNewComponentDlg)
- // Construction
- public:
- CMyNewComponentDlg();
- ~CMyNewComponentDlg();
- // Dialog Data
- //{{AFX_DATA(CMyNewComponentDlg)
- enum { IDD = IDD_MYNEWCOMPONENT };
- // NOTE - ClassWizard will add data members here.
- // DO NOT EDIT what you see in these blocks of generated code !
- //}}AFX_DATA
- // Overrides
- // ClassWizard generate virtual function overrides
- //{{AFX_VIRTUAL(CMyNewComponentDlg)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- // Generated message map functions
- //{{AFX_MSG(CMyNewComponentDlg)
- // NOTE: the ClassWizard will add member functions here
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- // CMyNewSheet
- class CMyNewSheet : public CPropertySheet
- {
- DECLARE_DYNAMIC(CMyNewSheet)
- // Construction
- public:
- CMyNewSheet(UINT nIDCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);
- CMyNewSheet(LPCTSTR pszCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);
- // Attributes
- public:
- CMyNewFileDlg m_NewFileDlg;
- CMyNewComponentDlg m_NewComponentDlg;
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CMyNewSheet)
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~CMyNewSheet();
- // Generated message map functions
- protected:
- //{{AFX_MSG(CMyNewSheet)
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////
- // CMyNewProjectDlg dialog
- class CMyNewProjectDlg : public CDialog
- {
- // Construction
- public:
- CMyNewProjectDlg(CWnd* pParent = NULL);
- ~CMyNewProjectDlg();
- BOOL NewProject(CProjectInfo* pInfo);
- protected:
- CMiniCADApp* pApp;
- protected:
- CProjectInfo* pProjectInfo;
- BOOL flag;
- // Dialog Data
- //{{AFX_DATA(CMyNewProjectDlg)
- enum { IDD = IDD_MYNEWPROJECT };
- CString m_ProjectName;
- CString m_ProjectPath;
- CString m_ProjectFileName;
- //}}AFX_DATA
- // Overrides
- // ClassWizard generate virtual function overrides
- //{{AFX_VIRTUAL(CMyNewProjectDlg)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- // Generated message map functions
- //{{AFX_MSG(CMyNewProjectDlg)
- virtual void OnOK();
- virtual void OnCancel();
- virtual BOOL OnInitDialog();
- afx_msg void OnBrowse();
- afx_msg void OnChangeProjectPath();
- afx_msg void OnChangeProjectName();
- afx_msg void OnChangeProjectFilename();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- // CMyAddFileDlg dialog
- class CMyAddFileDlg : public CDialog
- {
- // Construction
- public:
- CMyAddFileDlg(CWnd* pParent = NULL); // standard constructor
- BOOL AddFile(CFileInfo* pInfo);
- protected:
- CMiniCADApp* pApp;
- protected:
- CFileInfo* pFileInfo;
- BOOL flag;
- // Dialog Data
- //{{AFX_DATA(CMyAddFileDlg)
- enum { IDD = IDD_MYADDFILE };
- CString m_Name;
- CString m_FileName;
- int m_SizeIndex;
- CString m_FilePath;
- //}}AFX_DATA
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CMyAddFileDlg)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- // Generated message map functions
- //{{AFX_MSG(CMyAddFileDlg)
- virtual void OnOK();
- virtual void OnCancel();
- virtual BOOL OnInitDialog();
- afx_msg void OnBrowse();
- afx_msg void OnChangeFilepath();
- afx_msg void OnChangeName();
- afx_msg void OnChangeFilename();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_MYNEWDLG_H__7893DCC3_DCA0_11D2_89B6_BA5CD223B548__INCLUDED_)