]> git.saurik.com Git - wxWidgets.git/blob - contrib/samples/deprecated/proplist/proplist.h
Regenerate the msvc makefiles after TARGET_CPU option added
[wxWidgets.git] / contrib / samples / deprecated / proplist / proplist.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: proplist.h
3 // Purpose: Property sheet sample
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 04/01/98
7 // RCS-ID: $Id$
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _PROPTEST_H_
13 #define _PROPTEST_H_
14
15 #include "wx/deprecated/proplist.h"
16 #include "wx/deprecated/propform.h"
17
18 class MyChild;
19
20 // Define a new application
21 class MyFrame;
22 class MyApp: public wxApp
23 {
24 public:
25 MyApp(void);
26 bool OnInit(void);
27
28 void RegisterValidators(void);
29 void PropertyListTest(bool useDialog);
30 void PropertyFormTest(bool useDialog);
31
32 MyFrame* m_mainFrame;
33 wxWindow* m_childWindow;
34 };
35
36 DECLARE_APP(MyApp)
37
38 // Define a new frame
39 class MyFrame: public wxFrame
40 {
41 public:
42 MyFrame(wxFrame *frame, const wxString& title, const wxPoint& pos, const wxSize& size, long type);
43
44 void OnCloseWindow(wxCloseEvent& event);
45 void OnQuit(wxCommandEvent& event);
46 void OnDialogList(wxCommandEvent& event);
47 void OnFrameList(wxCommandEvent& event);
48 void OnDialogForm(wxCommandEvent& event);
49 void OnFrameForm(wxCommandEvent& event);
50 void OnAbout(wxCommandEvent& event);
51
52 DECLARE_EVENT_TABLE()
53 };
54
55 class PropListFrame: public wxPropertyListFrame
56 {
57 public:
58 PropListFrame(wxPropertyListView *v, wxFrame *parent, const wxString& title,
59 const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
60 long style = wxDEFAULT_FRAME_STYLE, const wxString& name = _T("frame")):
61 wxPropertyListFrame(v, parent, title, pos, size, style, name)
62 {
63 }
64
65 void OnCloseWindow(wxCloseEvent& event);
66
67 DECLARE_EVENT_TABLE()
68 };
69
70 class PropListDialog: public wxPropertyListDialog
71 {
72 public:
73 PropListDialog(wxPropertyListView *v, wxWindow *parent, const wxString& title,
74 const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
75 long style = wxDEFAULT_DIALOG_STYLE, const wxString& name = _T("dialogBox")):
76 wxPropertyListDialog(v, parent, title, pos, size, style, name)
77 {
78 }
79
80 void OnCloseWindow(wxCloseEvent& event);
81
82 DECLARE_EVENT_TABLE()
83 };
84
85 class PropFormFrame: public wxPropertyFormFrame
86 {
87 public:
88 PropFormFrame(wxPropertyFormView *v, wxFrame *parent, const wxString& title,
89 const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
90 long style = wxDEFAULT_FRAME_STYLE, const wxString& name = _T("frame")):
91 wxPropertyFormFrame(v, parent, title, pos, size, style, name)
92 {
93 }
94
95 void OnCloseWindow(wxCloseEvent& event);
96 void OnSize(wxSizeEvent& event);
97
98 DECLARE_EVENT_TABLE()
99 };
100
101 class PropFormDialog: public wxPropertyFormDialog
102 {
103 public:
104 PropFormDialog(wxPropertyFormView *v, wxWindow *parent, const wxString& title,
105 const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
106 long style = wxDEFAULT_DIALOG_STYLE, const wxString& name = _T("dialogBox")):
107 wxPropertyFormDialog(v, parent, title, pos, size, style, name)
108 {
109 }
110
111 void OnCloseWindow(wxCloseEvent& event);
112
113 DECLARE_EVENT_TABLE()
114 };
115
116 #define PROPERTY_QUIT 1
117 #define PROPERTY_ABOUT 2
118 #define PROPERTY_TEST_DIALOG_LIST 3
119 #define PROPERTY_TEST_FRAME_LIST 4
120 #define PROPERTY_TEST_DIALOG_FORM 5
121 #define PROPERTY_TEST_FRAME_FORM 6
122
123 #endif
124