]> git.saurik.com Git - wxWidgets.git/blob - samples/layout/layout.h
fixed /Mxx flag when using static RTL
[wxWidgets.git] / samples / layout / layout.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: layout.h
3 // Purpose: Layout 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 // Define a new application
13 class MyApp: public wxApp
14 {
15 public:
16 MyApp();
17 bool OnInit();
18 };
19
20 // the main frame class
21 class MyFrame : public wxFrame
22 {
23 public:
24 MyFrame();
25
26 void TestConstraints(wxCommandEvent& event);
27 void TestFlexSizers(wxCommandEvent& event);
28 void TestNotebookSizers(wxCommandEvent& event);
29
30 void OnAbout(wxCommandEvent& event);
31 void OnQuit(wxCommandEvent& event);
32
33 private:
34 DECLARE_EVENT_TABLE()
35 };
36
37 // a frame using constraints for layout
38 class MyConstraintsFrame : public wxFrame
39 {
40 public:
41 MyConstraintsFrame(const wxChar *title, int x, int y );
42 };
43
44 // a frame using flex sizers for layout
45 class MyFlexSizerFrame : public wxFrame
46 {
47 public:
48 MyFlexSizerFrame(const wxChar *title, int x, int y );
49
50 private:
51 void InitFlexSizer(wxFlexGridSizer *sizer);
52 };
53
54 // a dialog using notebook sizer for layout
55 class MySizerDialog : public wxDialog
56 {
57 public:
58 MySizerDialog(wxWindow *parent, const wxChar *title);
59 };
60
61 // controls an menu constants
62 enum
63 {
64 LAYOUT_QUIT = 100,
65 LAYOUT_ABOUT,
66 LAYOUT_TEST_CONSTRAINTS,
67 LAYOUT_TEST_SIZER,
68 LAYOUT_TEST_NB_SIZER
69 };
70