]> git.saurik.com Git - wxWidgets.git/blob - contrib/samples/foldbar/foldpanelbar/foldtestpanel.h
added foldbar contrib
[wxWidgets.git] / contrib / samples / foldbar / foldpanelbar / foldtestpanel.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: foldtestpanel.h
3 // Purpose:
4 // Author: Jorgen Bodde
5 // Modified by:
6 // Created: 06/18/04 22:37:15
7 // RCS-ID:
8 // Copyright:
9 // Licence:
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _FOLDTESTPANEL_H_
13 #define _FOLDTESTPANEL_H_
14
15 #if defined(__GNUG__) && !defined(__APPLE__)
16 #pragma interface "foldtestpanel.cpp"
17 #endif
18
19 /*!
20 * Includes
21 */
22
23 #include "wx/foldbar/captionbar.h"
24
25 ////@begin includes
26 ////@end includes
27
28 /*!
29 * Forward declarations
30 */
31
32 ////@begin forward declarations
33 class wxBoxSizer;
34 ////@end forward declarations
35
36 /*!
37 * Control identifiers
38 */
39
40 ////@begin control identifiers
41 #define ID_TESTPANEL 10000
42 #define SYMBOL_FOLDTESTPANEL_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX
43 #define SYMBOL_FOLDTESTPANEL_TITLE _("FoldTestPanel")
44 #define SYMBOL_FOLDTESTPANEL_IDNAME ID_TESTPANEL
45 #define SYMBOL_FOLDTESTPANEL_SIZE wxSize(400, 300)
46 #define SYMBOL_FOLDTESTPANEL_POSITION wxDefaultPosition
47 #define ID_PANEL 10002
48 #define ID_CHOICE 10003
49 #define ID_TEXTCTRL 10016
50 #define ID_RADIOBUTTON 10004
51 #define ID_RADIOBUTTON1 10005
52 ////@end control identifiers
53
54 /*!
55 * Compatibility
56 */
57
58 #ifndef wxCLOSE_BOX
59 #define wxCLOSE_BOX 0x1000
60 #endif
61 #ifndef wxFIXED_MINSIZE
62 #define wxFIXED_MINSIZE 0
63 #endif
64
65 /*!
66 * FoldTestPanel class declaration
67 */
68
69 class FoldTestPanel: public wxPanel
70 {
71 DECLARE_CLASS( FoldTestPanel )
72 DECLARE_EVENT_TABLE()
73
74 private:
75 wxImageList *_images;
76 wxRect _oldsize;
77
78 void OnCaptionPanel(wxCaptionBarEvent &event);
79
80 public:
81 /// Constructors
82 FoldTestPanel( );
83 FoldTestPanel( wxWindow* parent, wxWindowID id = SYMBOL_FOLDTESTPANEL_IDNAME, const wxString& caption = SYMBOL_FOLDTESTPANEL_TITLE, const wxPoint& pos = SYMBOL_FOLDTESTPANEL_POSITION, const wxSize& size = SYMBOL_FOLDTESTPANEL_SIZE, long style = SYMBOL_FOLDTESTPANEL_STYLE );
84
85 /// Creation
86 bool Create( wxWindow* parent, wxWindowID id = SYMBOL_FOLDTESTPANEL_IDNAME, const wxString& caption = SYMBOL_FOLDTESTPANEL_TITLE, const wxPoint& pos = SYMBOL_FOLDTESTPANEL_POSITION, const wxSize& size = SYMBOL_FOLDTESTPANEL_SIZE, long style = SYMBOL_FOLDTESTPANEL_STYLE );
87
88 /// Creates the controls and sizers
89 void CreateControls();
90
91 ////@begin FoldTestPanel event handler declarations
92
93 ////@end FoldTestPanel event handler declarations
94
95 ////@begin FoldTestPanel member function declarations
96
97
98 /// Retrieves bitmap resources
99 wxBitmap GetBitmapResource( const wxString& name );
100
101 /// Retrieves icon resources
102 wxIcon GetIconResource( const wxString& name );
103 ////@end FoldTestPanel member function declarations
104
105 /// Should we show tooltips?
106 static bool ShowToolTips();
107
108 ////@begin FoldTestPanel member variables
109 wxBoxSizer* blaat;
110 ////@end FoldTestPanel member variables
111 };
112
113 #endif
114 // _FOLDTESTPANEL_H_