]>
git.saurik.com Git - wxWidgets.git/blob - contrib/samples/deprecated/proplist/proplist.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Property sheet sample
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
15 #include "wx/deprecated/proplist.h"
16 #include "wx/deprecated/propform.h"
20 // Define a new application
22 class MyApp
: public wxApp
28 void RegisterValidators(void);
29 void PropertyListTest(bool useDialog
);
30 void PropertyFormTest(bool useDialog
);
33 wxWindow
* m_childWindow
;
39 class MyFrame
: public wxFrame
42 MyFrame(wxFrame
*frame
, const wxString
& title
, const wxPoint
& pos
, const wxSize
& size
, long type
);
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
);
55 class PropListFrame
: public wxPropertyListFrame
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
)
65 void OnCloseWindow(wxCloseEvent
& event
);
70 class PropListDialog
: public wxPropertyListDialog
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
)
80 void OnCloseWindow(wxCloseEvent
& event
);
85 class PropFormFrame
: public wxPropertyFormFrame
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
)
95 void OnCloseWindow(wxCloseEvent
& event
);
96 void OnSize(wxSizeEvent
& event
);
101 class PropFormDialog
: public wxPropertyFormDialog
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
)
111 void OnCloseWindow(wxCloseEvent
& event
);
113 DECLARE_EVENT_TABLE()
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