]> git.saurik.com Git - wxWidgets.git/blame - include/wx/panel.h
Split wxPanel in wxPanelBase and platform-specific files.
[wxWidgets.git] / include / wx / panel.h
CommitLineData
99d80019
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/panel.h
3// Purpose: Base header for wxPanel
4// Author: Julian Smart
5// Modified by:
6// Created:
7// RCS-ID: $Id$
8// Copyright: (c) Julian Smart
5b87bd6c 9// (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
99d80019
JS
10// Licence: wxWindows Licence
11/////////////////////////////////////////////////////////////////////////////
12
34138703
JS
13#ifndef _WX_PANEL_H_BASE_
14#define _WX_PANEL_H_BASE_
c801d85f 15
5b87bd6c
VZ
16// ----------------------------------------------------------------------------
17// headers and forward declarations
18// ----------------------------------------------------------------------------
c801d85f 19
5b87bd6c
VZ
20#include "wx/window.h"
21#include "wx/containr.h"
22
23class WXDLLIMPEXP_FWD_CORE wxControlContainer;
24
25extern WXDLLIMPEXP_DATA_CORE(const char) wxPanelNameStr[];
26
27// ----------------------------------------------------------------------------
28// wxPanel contains other controls and implements TAB traversal between them
29// ----------------------------------------------------------------------------
30
31class WXDLLIMPEXP_CORE wxPanelBase : public wxWindow
32{
33public:
34 wxPanelBase();
35
36 // Derived classes should also provide this constructor:
37 /*
38 wxPanelBase(wxWindow *parent,
39 wxWindowID winid = wxID_ANY,
40 const wxPoint& pos = wxDefaultPosition,
41 const wxSize& size = wxDefaultSize,
42 long style = wxTAB_TRAVERSAL | wxNO_BORDER,
43 const wxString& name = wxPanelNameStr);
44 */
45
46 // Pseudo ctor
47 bool Create(wxWindow *parent,
48 wxWindowID winid = wxID_ANY,
49 const wxPoint& pos = wxDefaultPosition,
50 const wxSize& size = wxDefaultSize,
51 long style = wxTAB_TRAVERSAL | wxNO_BORDER,
52 const wxString& name = wxPanelNameStr);
53
54
55 // implementation from now on
56 // --------------------------
57
58 virtual void InitDialog();
59
60 WX_DECLARE_CONTROL_CONTAINER();
61
62private:
63 wxDECLARE_EVENT_TABLE();
64
65 wxDECLARE_NO_COPY_CLASS(wxPanelBase);
66};
67
68#if defined(__WXUNIVERSAL__)
69 #include "wx/univ/panel.h"
70#elif defined(__WXMSW__)
71 #include "wx/msw/panel.h"
72#else
73 #include "wx/generic/panelg.h"
c801d85f 74#endif
5b87bd6c
VZ
75
76#endif // _WX_PANELH_BASE_