/////////////////////////////////////////////////////////////////////////////
-// Name: wx/generic/mdig.h
+// Name: wx/generic/tabmdi.h
// Purpose: Generic MDI (Multiple Document Interface) classes
// Author: Hans Van Leemputten
// Modified by: Benjamin I. Williams / Kirix Corporation
#ifndef _WX_AUITABMDI_H_
#define _WX_AUITABMDI_H_
+#if wxUSE_AUI
+
// ----------------------------------------------------------------------------
// headers
// ----------------------------------------------------------------------------
#include "wx/frame.h"
#include "wx/panel.h"
#include "wx/notebook.h"
-#include "wx/aui/notebook.h"
-
-extern WXDLLEXPORT_DATA(const wxChar) wxFrameNameStr[];
-extern WXDLLEXPORT_DATA(const wxChar) wxStatusLineNameStr[];
+#include "wx/aui/auibook.h"
//-----------------------------------------------------------------------------
// classes
//-----------------------------------------------------------------------------
-class WXDLLEXPORT wxTabMDIParentFrame;
-class WXDLLEXPORT wxTabMDIClientWindow;
-class WXDLLEXPORT wxTabMDIChildFrame;
+class WXDLLIMPEXP_AUI wxTabMDIParentFrame;
+class WXDLLIMPEXP_AUI wxTabMDIClientWindow;
+class WXDLLIMPEXP_AUI wxTabMDIChildFrame;
//-----------------------------------------------------------------------------
// wxTabMDIParentFrame
//-----------------------------------------------------------------------------
-class WXDLLEXPORT wxTabMDIParentFrame : public wxFrame
+class WXDLLIMPEXP_AUI wxTabMDIParentFrame : public wxFrame
{
public:
wxTabMDIParentFrame();
const wxString& name = wxFrameNameStr);
~wxTabMDIParentFrame();
-
+
bool Create(wxWindow *parent,
wxWindowID winid,
const wxString& title,
protected:
wxTabMDIClientWindow *m_pClientWindow;
wxTabMDIChildFrame *m_pActiveChild;
-
+
#if wxUSE_MENUS
wxMenu *m_pWindowMenu;
wxMenuBar *m_pMyMenuBar;
// wxTabMDIChildFrame
//-----------------------------------------------------------------------------
-class WXDLLEXPORT wxTabMDIChildFrame : public wxPanel
+class WXDLLIMPEXP_AUI wxTabMDIChildFrame : public wxPanel
{
public:
wxTabMDIChildFrame();
virtual void Activate();
virtual bool Destroy();
-
+
#if wxUSE_STATUSBAR
// no status bars
virtual wxStatusBar* CreateStatusBar(int WXUNUSED(number) = 1,
void OnMenuHighlight(wxMenuEvent& evt);
void OnActivate(wxActivateEvent& evt);
void OnCloseWindow(wxCloseEvent& evt);
-
+
void SetMDIParentFrame(wxTabMDIParentFrame* parent);
wxTabMDIParentFrame* GetMDIParentFrame() const;
// wxTabMDIClientWindow
//-----------------------------------------------------------------------------
-class WXDLLEXPORT wxTabMDIClientWindow : public wxAuiMultiNotebook
+class WXDLLIMPEXP_AUI wxTabMDIClientWindow : public wxAuiMultiNotebook
{
public:
wxTabMDIClientWindow();
wxTabMDIClientWindow(wxTabMDIParentFrame *parent, long style = 0);
~wxTabMDIClientWindow();
-
+
virtual bool CreateClient(wxTabMDIParentFrame *parent,
long style = wxVSCROLL | wxHSCROLL);
protected:
- void PageChanged(int old_selection, int new_selection);
+ void PageChanged(int old_selection, int new_selection);
void OnPageChanged(wxAuiNotebookEvent& event);
void OnSize(wxSizeEvent& evt);
DECLARE_DYNAMIC_CLASS(wxTabMDIClientWindow)
DECLARE_EVENT_TABLE()
};
+#endif // wxUSE_AUI
#endif // _WX_AUITABMDI_H_