2005-05-04 18:57:50 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/panel.h
|
|
|
|
// Purpose: Base header for wxPanel
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created:
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) Julian Smart
|
2011-03-20 00:00:38 +00:00
|
|
|
// (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
|
2005-05-04 18:57:50 +00:00
|
|
|
// Licence: wxWindows Licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
1998-08-15 00:23:28 +00:00
|
|
|
#ifndef _WX_PANEL_H_BASE_
|
|
|
|
#define _WX_PANEL_H_BASE_
|
1998-05-20 14:01:55 +00:00
|
|
|
|
2011-03-20 00:00:38 +00:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// headers and forward declarations
|
|
|
|
// ----------------------------------------------------------------------------
|
1998-05-20 14:01:55 +00:00
|
|
|
|
2011-03-20 00:00:38 +00: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 22:19:33 +00:00
|
|
|
class WXDLLIMPEXP_CORE wxPanelBase : public wxNavigationEnabled<wxWindow>
|
2011-03-20 00:00:38 +00:00
|
|
|
{
|
|
|
|
public:
|
2011-07-24 22:19:33 +00:00
|
|
|
wxPanelBase() { }
|
2011-03-20 00:00:38 +00: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-20 00:00:49 +00:00
|
|
|
#define wxHAS_GENERIC_PANEL
|
2011-03-20 00:00:38 +00:00
|
|
|
#include "wx/generic/panelg.h"
|
1998-05-20 14:01:55 +00:00
|
|
|
#endif
|
2011-03-20 00:00:38 +00:00
|
|
|
|
|
|
|
#endif // _WX_PANELH_BASE_
|