Debian Codegraph @

wxcrafter/src/NewFormWizard.h

raw
1 #ifndef NEWFORMWIZARD_H
2 #define NEWFORMWIZARD_H
3 #include "wxcrafter_gui.h"
4 #include <imanager.h>
5
6 struct NewFormDetails {
7 wxString virtualFolder;
8 wxString filename;
9 wxString className;
10 wxString inheritedClassName;
11 int formType;
12 wxString formTitle;
13 wxString wxcpFile;
14 };
15
16 class NewFormWizard : public NewFormWizardBaseClass
17 {
18 protected:
19 virtual void OnBrowseWxcpFile(wxCommandEvent& event);
20 virtual void OnSelectVDUI(wxUpdateUIEvent& event);
21 virtual void OnStandloneAppUI(wxUpdateUIEvent& event);
22 virtual void OnInheritedClassNameUI(wxUpdateUIEvent& event);
23 virtual void OnFilenameUI(wxUpdateUIEvent& event);
24 virtual void OnTitleUI(wxUpdateUIEvent& event);
25 virtual void OnNewWxcpProject(wxCommandEvent& event);
26 virtual void OnInheritedNameFocus(wxFocusEvent& event);
27 virtual void OnFilenameFocus(wxFocusEvent& event);
28 IManager* m_mgr;
29
30 bool IsAuiToolBar() const;
31 bool IsPanel() const;
32 bool IsFrame() const;
33 bool IsDialog() const;
34 bool IsPopupWindow() const;
35 bool IsImageList() const;
36 bool IsWizard() const;
37
38 protected:
39 void OnFormTypeSelected(wxCommandEvent& event);
40 void OnSelectVirtualFolder(wxCommandEvent& event);
41 void OnFinishClicked(wxWizardEvent& event);
42 void OnWizardPageChanging(wxWizardEvent& event);
43 void OnMakeSkeletonAppUI(wxUpdateUIEvent& event);
44
45 public:
46 NewFormWizard(wxWindow* parent, IManager* mgr, int type);
47 virtual ~NewFormWizard();
48
49 NewFormDetails GetFormDetails() const
50 {
51 NewFormDetails fd;
52 fd.className = GetClassName();
53 fd.virtualFolder = GetVirtualFolder();
54 fd.filename = GetGeneratedFileBaseName();
55 fd.formType = GetFormType();
56 fd.formTitle = GetTitle();
57 fd.wxcpFile = GetWxcpFile();
58 fd.inheritedClassName = GetInheritedClassName();
59 return fd;
60 }
61
62 int GetFormType() const;
63 wxString GetVirtualFolder() const;
64 wxString GetGeneratedFileBaseName() const;
65 wxString GetClassName() const;
66 wxString GetTitle() const;
67 wxString GetWxcpFile() const;
68 wxString GetInheritedClassName() const;
69 };
70 #endif // NEWFORMWIZARD_H