1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Jorgen Bodde
8 // Copyright: (c) Jorgen Bodde
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _LAYOUTTEST_H_
13 #define _LAYOUTTEST_H_
15 #if defined(__GNUG__) && !defined(__APPLE__)
16 #pragma interface "layouttest.cpp"
27 * Forward declarations
30 ////@begin forward declarations
31 ////@end forward declarations
37 ////@begin control identifiers
38 #define ID_DIALOG 10001
39 #define SYMBOL_LAYOUTTEST_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX
40 #define SYMBOL_LAYOUTTEST_TITLE _("Layout Test")
41 #define SYMBOL_LAYOUTTEST_IDNAME ID_DIALOG
42 #define SYMBOL_LAYOUTTEST_SIZE wxSize(400, 300)
43 #define SYMBOL_LAYOUTTEST_POSITION wxDefaultPosition
44 #define ID_PANEL1 10006
45 #define ID_BUTTON 10007
46 ////@end control identifiers
53 #define wxCLOSE_BOX 0x1000
55 #ifndef wxFIXED_MINSIZE
56 #define wxFIXED_MINSIZE 0
60 * LayoutTest class declaration
63 class LayoutTest
: public wxPanel
65 DECLARE_CLASS( LayoutTest
)
71 LayoutTest( wxWindow
* parent
, wxWindowID id
= SYMBOL_LAYOUTTEST_IDNAME
, const wxString
& caption
= SYMBOL_LAYOUTTEST_TITLE
, const wxPoint
& pos
= SYMBOL_LAYOUTTEST_POSITION
, const wxSize
& size
= SYMBOL_LAYOUTTEST_SIZE
, long style
= SYMBOL_LAYOUTTEST_STYLE
);
74 bool Create( wxWindow
* parent
, wxWindowID id
= SYMBOL_LAYOUTTEST_IDNAME
, const wxString
& caption
= SYMBOL_LAYOUTTEST_TITLE
, const wxPoint
& pos
= SYMBOL_LAYOUTTEST_POSITION
, const wxSize
& size
= SYMBOL_LAYOUTTEST_SIZE
, long style
= SYMBOL_LAYOUTTEST_STYLE
);
76 /// Creates the controls and sizers
77 void CreateControls();
79 ////@begin LayoutTest event handler declarations
81 ////@end LayoutTest event handler declarations
83 ////@begin LayoutTest member function declarations
86 /// Retrieves bitmap resources
87 wxBitmap
GetBitmapResource( const wxString
& name
);
89 /// Retrieves icon resources
90 wxIcon
GetIconResource( const wxString
& name
);
91 ////@end LayoutTest member function declarations
93 /// Should we show tooltips?
94 static bool ShowToolTips();
96 ////@begin LayoutTest member variables
97 ////@end LayoutTest member variables