]>
git.saurik.com Git - wxWidgets.git/blob - samples/proplist/test.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Property sheet sample
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
13 #pragma interface "test.h"
19 #include "wx/proplist.h"
20 #include "wx/propform.h"
24 // Define a new application
26 class MyApp
: public wxApp
32 void RegisterValidators(void);
33 void PropertyListTest(bool useDialog
);
34 void PropertyFormTest(bool useDialog
);
37 wxWindow
* m_childWindow
;
43 class MyFrame
: public wxFrame
46 MyFrame(wxFrame
*frame
, const wxString
& title
, const wxPoint
& pos
, const wxSize
& size
, long type
);
48 void OnCloseWindow(wxCloseEvent
& event
);
49 void OnQuit(wxCommandEvent
& event
);
50 void OnDialogList(wxCommandEvent
& event
);
51 void OnFrameList(wxCommandEvent
& event
);
52 void OnDialogForm(wxCommandEvent
& event
);
53 void OnFrameForm(wxCommandEvent
& event
);
54 void OnAbout(wxCommandEvent
& event
);
59 class PropListFrame
: public wxPropertyListFrame
62 PropListFrame(wxPropertyListView
*v
, wxFrame
*parent
, const wxString
& title
,
63 const wxPoint
& pos
= wxDefaultPosition
, const wxSize
& size
= wxDefaultSize
,
64 long style
= wxDEFAULT_FRAME_STYLE
, const wxString
& name
= "frame"):
65 wxPropertyListFrame(v
, parent
, title
, pos
, size
, style
, name
)
69 void OnCloseWindow(wxCloseEvent
& event
);
74 class PropListDialog
: public wxPropertyListDialog
77 PropListDialog(wxPropertyListView
*v
, wxWindow
*parent
, const wxString
& title
,
78 const wxPoint
& pos
= wxDefaultPosition
, const wxSize
& size
= wxDefaultSize
,
79 long style
= wxDEFAULT_DIALOG_STYLE
, const wxString
& name
= "dialogBox"):
80 wxPropertyListDialog(v
, parent
, title
, pos
, size
, style
, name
)
84 void OnCloseWindow(wxCloseEvent
& event
);
89 class PropFormFrame
: public wxPropertyFormFrame
92 PropFormFrame(wxPropertyFormView
*v
, wxFrame
*parent
, const wxString
& title
,
93 const wxPoint
& pos
= wxDefaultPosition
, const wxSize
& size
= wxDefaultSize
,
94 long style
= wxDEFAULT_FRAME
, const wxString
& name
= "frame"):
95 wxPropertyFormFrame(v
, parent
, title
, pos
, size
, style
, name
)
99 void OnCloseWindow(wxCloseEvent
& event
);
101 DECLARE_EVENT_TABLE()
104 class PropFormDialog
: public wxPropertyFormDialog
107 PropFormDialog(wxPropertyFormView
*v
, wxWindow
*parent
, const wxString
& title
,
108 const wxPoint
& pos
= wxDefaultPosition
, const wxSize
& size
= wxDefaultSize
,
109 long style
= wxDEFAULT_DIALOG_STYLE
, const wxString
& name
= "dialogBox"):
110 wxPropertyFormDialog(v
, parent
, title
, pos
, size
, style
, name
)
114 void OnCloseWindow(wxCloseEvent
& event
);
116 DECLARE_EVENT_TABLE()
119 #define PROPERTY_QUIT 1
120 #define PROPERTY_ABOUT 2
121 #define PROPERTY_TEST_DIALOG_LIST 3
122 #define PROPERTY_TEST_FRAME_LIST 4
123 #define PROPERTY_TEST_DIALOG_FORM 5
124 #define PROPERTY_TEST_FRAME_FORM 6