2005-05-04 14:57:50 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/panel.h
|
|
|
|
// Purpose: Base header for wxPanel
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created:
|
|
|
|
// Copyright: (c) Julian Smart
|
2011-03-19 20:00:38 -04:00
|
|
|
// (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
|
2005-05-04 14:57:50 -04:00
|
|
|
// Licence: wxWindows Licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
1998-08-14 20:23:28 -04:00
|
|
|
#ifndef _WX_PANEL_H_BASE_
|
|
|
|
#define _WX_PANEL_H_BASE_
|
1998-05-20 10:01:55 -04:00
|
|
|
|
2011-03-19 20:00:38 -04:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// headers and forward declarations
|
|
|
|
// ----------------------------------------------------------------------------
|
1998-05-20 10:01:55 -04:00
|
|
|
|
2011-03-19 20:00:38 -04:00
|
|
|
#include "wx/window.h"
|
|
|
|
#include "wx/containr.h"
|
|
|
|
|
|
|
|
class WXDLLIMPEXP_FWD_CORE wxControlContainer;
|
|
|
|
|
|
|
|
extern WXDLLIMPEXP_DATA_CORE(const char) wxPanelNameStr[];
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// wxPanel contains other controls and implements TAB traversal between them
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
2011-07-24 18:19:33 -04:00
|
|
|
class WXDLLIMPEXP_CORE wxPanelBase : public wxNavigationEnabled<wxWindow>
|
2011-03-19 20:00:38 -04:00
|
|
|
{
|
|
|
|
public:
|
2011-07-24 18:19:33 -04:00
|
|
|
wxPanelBase() { }
|
2011-03-19 20:00:38 -04:00
|
|
|
|
|
|
|
// Derived classes should also provide this constructor:
|
|
|
|
/*
|
|
|
|
wxPanelBase(wxWindow *parent,
|
|
|
|
wxWindowID winid = wxID_ANY,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = wxTAB_TRAVERSAL | wxNO_BORDER,
|
|
|
|
const wxString& name = wxPanelNameStr);
|
|
|
|
*/
|
|
|
|
|
|
|
|
// Pseudo ctor
|
|
|
|
bool Create(wxWindow *parent,
|
|
|
|
wxWindowID winid = wxID_ANY,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = wxTAB_TRAVERSAL | wxNO_BORDER,
|
|
|
|
const wxString& name = wxPanelNameStr);
|
|
|
|
|
|
|
|
|
|
|
|
// implementation from now on
|
|
|
|
// --------------------------
|
|
|
|
|
|
|
|
virtual void InitDialog();
|
|
|
|
|
|
|
|
private:
|
|
|
|
wxDECLARE_NO_COPY_CLASS(wxPanelBase);
|
|
|
|
};
|
|
|
|
|
|
|
|
#if defined(__WXUNIVERSAL__)
|
|
|
|
#include "wx/univ/panel.h"
|
|
|
|
#elif defined(__WXMSW__)
|
|
|
|
#include "wx/msw/panel.h"
|
|
|
|
#else
|
2011-03-19 20:00:49 -04:00
|
|
|
#define wxHAS_GENERIC_PANEL
|
2011-03-19 20:00:38 -04:00
|
|
|
#include "wx/generic/panelg.h"
|
1998-05-20 10:01:55 -04:00
|
|
|
#endif
|
2011-03-19 20:00:38 -04:00
|
|
|
|
|
|
|
#endif // _WX_PANELH_BASE_
|