]> git.saurik.com Git - wxWidgets.git/blame_incremental - samples/layout/layout.h
USE_OPENGL is 0 by default
[wxWidgets.git] / samples / layout / layout.h
... / ...
CommitLineData
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
13class MyApp: public wxApp
14{
15public:
16 MyApp();
17 bool OnInit();
18};
19
20// the main frame class
21class MyFrame : public wxFrame
22{
23public:
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
33private:
34 DECLARE_EVENT_TABLE()
35};
36
37// a frame using constraints for layout
38class MyConstraintsFrame : public wxFrame
39{
40public:
41 MyConstraintsFrame(const wxChar *title, int x, int y );
42};
43
44// a frame using flex sizers for layout
45class MyFlexSizerFrame : public wxFrame
46{
47public:
48 MyFlexSizerFrame(const wxChar *title, int x, int y );
49
50private:
51 void InitFlexSizer(wxFlexGridSizer *sizer);
52};
53
54// a dialog using notebook sizer for layout
55class MySizerDialog : public wxDialog
56{
57public:
58 MySizerDialog(wxWindow *parent, const wxChar *title);
59};
60
61// controls an menu constants
62enum
63{
64 LAYOUT_QUIT = 100,
65 LAYOUT_ABOUT,
66 LAYOUT_TEST_CONSTRAINTS,
67 LAYOUT_TEST_SIZER,
68 LAYOUT_TEST_NB_SIZER
69};
70