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