]>
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 /////////////////////////////////////////////////////////////////////////////
12 #if defined(__GNUG__) && !defined(__APPLE__)
13 #pragma interface "proplist_sample.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
= _T("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
= _T("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_STYLE
, const wxString
& name
= _T("frame")):
95 wxPropertyFormFrame(v
, parent
, title
, pos
, size
, style
, name
)
99 void OnCloseWindow(wxCloseEvent
& event
);
100 void OnSize(wxSizeEvent
& event
);
102 DECLARE_EVENT_TABLE()
105 class PropFormDialog
: public wxPropertyFormDialog
108 PropFormDialog(wxPropertyFormView
*v
, wxWindow
*parent
, const wxString
& title
,
109 const wxPoint
& pos
= wxDefaultPosition
, const wxSize
& size
= wxDefaultSize
,
110 long style
= wxDEFAULT_DIALOG_STYLE
, const wxString
& name
= _T("dialogBox")):
111 wxPropertyFormDialog(v
, parent
, title
, pos
, size
, style
, name
)
115 void OnCloseWindow(wxCloseEvent
& event
);
117 DECLARE_EVENT_TABLE()
120 #define PROPERTY_QUIT 1
121 #define PROPERTY_ABOUT 2
122 #define PROPERTY_TEST_DIALOG_LIST 3
123 #define PROPERTY_TEST_FRAME_LIST 4
124 #define PROPERTY_TEST_DIALOG_FORM 5
125 #define PROPERTY_TEST_FRAME_FORM 6