/[pcsx2_0.9.7]/branch/r3113_0.9.7_beta/3rdparty/wxWidgets/include/wx/generic/panelg.h
ViewVC logotype

Contents of /branch/r3113_0.9.7_beta/3rdparty/wxWidgets/include/wx/generic/panelg.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 32 - (show annotations) (download)
Tue Sep 7 03:29:01 2010 UTC (9 years, 10 months ago) by william
File MIME type: text/plain
File size: 2817 byte(s)
branching from upstream revision (http://pcsx2.googlecode.com/svn/trunk
): r3113 to
https://svn.netsolutions.dnsalias.com/websvn/ps2/pcsx2/pcsx2_0.9.7/branch/r3113_0.9.7_beta
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/generic/panelg.h
3 // Purpose: wxPanel: a container for child controls
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 01/02/97
7 // RCS-ID: $Id: panelg.h 49563 2007-10-31 20:46:21Z VZ $
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_GENERIC_PANEL_H_
13 #define _WX_GENERIC_PANEL_H_
14
15 // ----------------------------------------------------------------------------
16 // headers and forward declarations
17 // ----------------------------------------------------------------------------
18
19 #include "wx/window.h"
20 #include "wx/containr.h"
21
22 class WXDLLIMPEXP_FWD_CORE wxControlContainer;
23
24 extern WXDLLEXPORT_DATA(const wxChar) wxPanelNameStr[];
25
26 // ----------------------------------------------------------------------------
27 // wxPanel contains other controls and implements TAB traversal between them
28 // ----------------------------------------------------------------------------
29
30 class WXDLLEXPORT wxPanel : public wxWindow
31 {
32 public:
33 wxPanel() { Init(); }
34
35 // Old-style constructor (no default values for coordinates to avoid
36 // ambiguity with the new one)
37 wxPanel(wxWindow *parent,
38 int x, int y, int width, int height,
39 long style = wxTAB_TRAVERSAL | wxNO_BORDER,
40 const wxString& name = wxPanelNameStr)
41 {
42 Init();
43
44 Create(parent, wxID_ANY, wxPoint(x, y), wxSize(width, height), style, name);
45 }
46
47 // Constructor
48 wxPanel(wxWindow *parent,
49 wxWindowID winid = wxID_ANY,
50 const wxPoint& pos = wxDefaultPosition,
51 const wxSize& size = wxDefaultSize,
52 long style = wxTAB_TRAVERSAL | wxNO_BORDER,
53 const wxString& name = wxPanelNameStr)
54 {
55 Init();
56
57 Create(parent, winid, pos, size, style, name);
58 }
59
60 // Pseudo ctor
61 bool Create(wxWindow *parent,
62 wxWindowID winid = wxID_ANY,
63 const wxPoint& pos = wxDefaultPosition,
64 const wxSize& size = wxDefaultSize,
65 long style = wxTAB_TRAVERSAL | wxNO_BORDER,
66 const wxString& name = wxPanelNameStr);
67
68 virtual ~wxPanel();
69
70 // implementation from now on
71 // --------------------------
72
73 // calls layout for layout constraints and sizers
74 void OnSize(wxSizeEvent& event);
75
76 virtual void InitDialog();
77
78 #ifdef __WXUNIVERSAL__
79 virtual bool IsCanvasWindow() const { return true; }
80 #endif
81
82
83 WX_DECLARE_CONTROL_CONTAINER();
84
85 protected:
86 // common part of all ctors
87 void Init();
88
89 private:
90 DECLARE_DYNAMIC_CLASS_NO_COPY(wxPanel)
91 DECLARE_EVENT_TABLE()
92 };
93
94 #endif
95 // _WX_GENERIC_PANEL_H_

  ViewVC Help
Powered by ViewVC 1.1.22