1998-05-20 10:01:55 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: tabg.h
|
2008-12-28 06:32:37 -05:00
|
|
|
// Purpose: Generic tabbed dialogs; used by wxMotif's wxNotebook
|
1998-05-20 10:01:55 -04:00
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 01/02/97
|
|
|
|
// RCS-ID: $Id$
|
2005-05-04 14:57:50 -04:00
|
|
|
// Copyright: (c) Julian Smart
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
1998-05-20 10:01:55 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef __TABGH_G__
|
|
|
|
#define __TABGH_G__
|
|
|
|
|
|
|
|
#define WXTAB_VERSION 1.1
|
|
|
|
|
2003-08-13 17:28:56 -04:00
|
|
|
#include "wx/hashmap.h"
|
1998-05-20 10:01:55 -04:00
|
|
|
#include "wx/string.h"
|
1998-10-26 12:10:25 -05:00
|
|
|
#include "wx/dialog.h"
|
2003-01-06 11:36:23 -05:00
|
|
|
#include "wx/panel.h"
|
2003-08-13 17:28:56 -04:00
|
|
|
#include "wx/list.h"
|
1998-05-20 10:01:55 -04:00
|
|
|
|
2007-07-09 06:09:52 -04:00
|
|
|
class WXDLLIMPEXP_FWD_CORE wxTabView;
|
1998-05-20 10:01:55 -04:00
|
|
|
|
|
|
|
/*
|
|
|
|
* A wxTabControl is the internal and visual representation
|
|
|
|
* of the tab.
|
|
|
|
*/
|
1998-11-29 17:21:32 -05:00
|
|
|
|
2008-03-26 11:06:00 -04:00
|
|
|
class WXDLLIMPEXP_CORE wxTabControl: public wxObject
|
1998-05-20 10:01:55 -04:00
|
|
|
{
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxTabControl)
|
|
|
|
public:
|
2009-01-19 08:55:27 -05:00
|
|
|
wxTabControl(wxTabView *v = NULL);
|
2006-09-05 16:47:48 -04:00
|
|
|
virtual ~wxTabControl(void);
|
1998-11-29 17:21:32 -05:00
|
|
|
|
1998-05-20 10:01:55 -04:00
|
|
|
virtual void OnDraw(wxDC& dc, bool lastInRow);
|
1999-02-22 06:01:13 -05:00
|
|
|
void SetLabel(const wxString& str) { m_controlLabel = str; }
|
|
|
|
wxString GetLabel(void) const { return m_controlLabel; }
|
1998-05-20 10:01:55 -04:00
|
|
|
|
1999-02-22 06:01:13 -05:00
|
|
|
void SetFont(const wxFont& f) { m_labelFont = f; }
|
|
|
|
wxFont *GetFont(void) const { return (wxFont*) & m_labelFont; }
|
1998-05-20 10:01:55 -04:00
|
|
|
|
1999-02-22 06:01:13 -05:00
|
|
|
void SetSelected(bool sel) { m_isSelected = sel; }
|
|
|
|
bool IsSelected(void) const { return m_isSelected; }
|
1998-05-20 10:01:55 -04:00
|
|
|
|
1999-02-22 06:01:13 -05:00
|
|
|
void SetPosition(int x, int y) { m_offsetX = x; m_offsetY = y; }
|
|
|
|
void SetSize(int x, int y) { m_width = x; m_height = y; }
|
1998-11-29 17:21:32 -05:00
|
|
|
|
1999-02-22 06:01:13 -05:00
|
|
|
void SetRowPosition(int r) { m_rowPosition = r; }
|
|
|
|
int GetRowPosition() const { return m_rowPosition; }
|
|
|
|
void SetColPosition(int c) { m_colPosition = c; }
|
|
|
|
int GetColPosition() const { return m_colPosition; }
|
1998-11-29 17:21:32 -05:00
|
|
|
|
1999-02-22 06:01:13 -05:00
|
|
|
int GetX(void) const { return m_offsetX; }
|
|
|
|
int GetY(void) const { return m_offsetY; }
|
|
|
|
int GetWidth(void) const { return m_width; }
|
|
|
|
int GetHeight(void) const { return m_height; }
|
1998-11-29 17:21:32 -05:00
|
|
|
|
1999-02-22 06:01:13 -05:00
|
|
|
int GetId(void) const { return m_id; }
|
|
|
|
void SetId(int i) { m_id = i; }
|
1998-11-29 17:21:32 -05:00
|
|
|
|
1998-05-20 10:01:55 -04:00
|
|
|
virtual bool HitTest(int x, int y) const ;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
wxTabView* m_view;
|
|
|
|
wxString m_controlLabel;
|
|
|
|
bool m_isSelected;
|
1998-10-27 12:58:46 -05:00
|
|
|
wxFont m_labelFont;
|
1998-05-20 10:01:55 -04:00
|
|
|
int m_offsetX; // Offsets from top-left of tab view area (the area below the tabs)
|
|
|
|
int m_offsetY;
|
|
|
|
int m_width;
|
|
|
|
int m_height;
|
|
|
|
int m_id;
|
|
|
|
int m_rowPosition; // Position in row from 0
|
|
|
|
int m_colPosition; // Position in col from 0
|
|
|
|
};
|
1998-11-29 17:21:32 -05:00
|
|
|
|
1998-05-20 10:01:55 -04:00
|
|
|
/*
|
|
|
|
* Each wxTabLayer is a list of tabs. E.g. there
|
|
|
|
* are 3 layers in the MS Word Options dialog.
|
|
|
|
*/
|
1998-11-29 17:21:32 -05:00
|
|
|
|
2008-03-26 11:06:00 -04:00
|
|
|
class WXDLLIMPEXP_CORE wxTabLayer: public wxList
|
1998-05-20 10:01:55 -04:00
|
|
|
{
|
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* The wxTabView controls and draws the tabbed object
|
|
|
|
*/
|
|
|
|
|
2003-08-13 17:28:56 -04:00
|
|
|
WX_DECLARE_LIST(wxTabLayer, wxTabLayerList);
|
|
|
|
|
1998-05-20 10:01:55 -04:00
|
|
|
#define wxTAB_STYLE_DRAW_BOX 1 // Draws 3D boxes round tab layers
|
|
|
|
#define wxTAB_STYLE_COLOUR_INTERIOR 2 // Colours interior of tabs, otherwise draws outline
|
|
|
|
|
2008-03-26 11:06:00 -04:00
|
|
|
class WXDLLIMPEXP_CORE wxTabView: public wxObject
|
1998-05-20 10:01:55 -04:00
|
|
|
{
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxTabView)
|
|
|
|
public:
|
|
|
|
wxTabView(long style = wxTAB_STYLE_DRAW_BOX | wxTAB_STYLE_COLOUR_INTERIOR);
|
2006-09-05 16:47:48 -04:00
|
|
|
virtual ~wxTabView();
|
1998-05-20 10:01:55 -04:00
|
|
|
|
2003-01-16 15:44:47 -05:00
|
|
|
inline int GetNumberOfLayers() const { return m_layers.GetCount(); }
|
2003-11-02 10:34:11 -05:00
|
|
|
inline wxTabLayerList& GetLayers() { return m_layers; }
|
1998-05-20 10:01:55 -04:00
|
|
|
|
|
|
|
inline void SetWindow(wxWindow* wnd) { m_window = wnd; }
|
|
|
|
inline wxWindow* GetWindow(void) const { return m_window; }
|
2004-06-17 12:22:36 -04:00
|
|
|
|
1998-05-20 10:01:55 -04:00
|
|
|
// Automatically positions tabs
|
2009-01-19 08:55:27 -05:00
|
|
|
wxTabControl *AddTab(int id, const wxString& label, wxTabControl *existingTab = NULL);
|
1998-11-24 16:55:10 -05:00
|
|
|
|
|
|
|
// Remove the tab without deleting the window
|
|
|
|
bool RemoveTab(int id);
|
2004-06-17 12:22:36 -04:00
|
|
|
|
|
|
|
void ClearTabs(bool deleteTabs = true);
|
1998-05-20 10:01:55 -04:00
|
|
|
|
1998-11-25 16:42:56 -05:00
|
|
|
bool SetTabText(int id, const wxString& label);
|
|
|
|
wxString GetTabText(int id) const;
|
|
|
|
|
1998-05-20 10:01:55 -04:00
|
|
|
// Layout tabs (optional, e.g. if resizing window)
|
1999-05-09 18:17:03 -04:00
|
|
|
void LayoutTabs();
|
1998-05-20 10:01:55 -04:00
|
|
|
|
|
|
|
// Draw all tabs
|
|
|
|
virtual void Draw(wxDC& dc);
|
2004-06-17 12:22:36 -04:00
|
|
|
|
|
|
|
// Process mouse event, return false if we didn't process it
|
1998-05-20 10:01:55 -04:00
|
|
|
virtual bool OnEvent(wxMouseEvent& event);
|
|
|
|
|
|
|
|
// Called when a tab is activated
|
|
|
|
virtual void OnTabActivate(int activateId, int deactivateId);
|
|
|
|
// Allows vetoing
|
2004-06-17 12:22:36 -04:00
|
|
|
virtual bool OnTabPreActivate(int WXUNUSED(activateId), int WXUNUSED(deactivateId) ) { return true; };
|
1998-05-20 10:01:55 -04:00
|
|
|
|
|
|
|
// Allows use of application-supplied wxTabControl classes.
|
|
|
|
virtual wxTabControl *OnCreateTabControl(void) { return new wxTabControl(this); }
|
|
|
|
|
|
|
|
void SetHighlightColour(const wxColour& col);
|
|
|
|
void SetShadowColour(const wxColour& col);
|
|
|
|
void SetBackgroundColour(const wxColour& col);
|
|
|
|
inline void SetTextColour(const wxColour& col) { m_textColour = col; }
|
2004-06-17 12:22:36 -04:00
|
|
|
|
1998-05-20 10:01:55 -04:00
|
|
|
inline wxColour GetHighlightColour(void) const { return m_highlightColour; }
|
|
|
|
inline wxColour GetShadowColour(void) const { return m_shadowColour; }
|
|
|
|
inline wxColour GetBackgroundColour(void) const { return m_backgroundColour; }
|
|
|
|
inline wxColour GetTextColour(void) const { return m_textColour; }
|
2006-04-16 18:18:29 -04:00
|
|
|
inline const wxPen *GetHighlightPen(void) const { return m_highlightPen; }
|
|
|
|
inline const wxPen *GetShadowPen(void) const { return m_shadowPen; }
|
|
|
|
inline const wxPen *GetBackgroundPen(void) const { return m_backgroundPen; }
|
|
|
|
inline const wxBrush *GetBackgroundBrush(void) const { return m_backgroundBrush; }
|
2004-06-17 12:22:36 -04:00
|
|
|
|
1998-12-03 05:13:41 -05:00
|
|
|
inline void SetViewRect(const wxRect& rect) { m_tabViewRect = rect; }
|
1998-05-20 10:01:55 -04:00
|
|
|
inline wxRect GetViewRect(void) const { return m_tabViewRect; }
|
2004-06-17 12:22:36 -04:00
|
|
|
|
1998-05-20 10:01:55 -04:00
|
|
|
// Calculate tab width to fit to view, and optionally adjust the view
|
|
|
|
// to fit the tabs exactly.
|
2004-06-17 12:22:36 -04:00
|
|
|
int CalculateTabWidth(int noTabs, bool adjustView = false);
|
1998-05-20 10:01:55 -04:00
|
|
|
|
|
|
|
inline void SetTabStyle(long style) { m_tabStyle = style; }
|
|
|
|
inline long GetTabStyle(void) const { return m_tabStyle; }
|
2004-06-17 12:22:36 -04:00
|
|
|
|
1998-05-20 10:01:55 -04:00
|
|
|
inline void SetTabSize(int w, int h) { m_tabWidth = w; m_tabHeight = h; }
|
|
|
|
inline int GetTabWidth(void) const { return m_tabWidth; }
|
|
|
|
inline int GetTabHeight(void) const { return m_tabHeight; }
|
|
|
|
inline void SetTabSelectionHeight(int h) { m_tabSelectionHeight = h; }
|
|
|
|
inline int GetTabSelectionHeight(void) const { return m_tabSelectionHeight; }
|
1998-10-26 12:10:25 -05:00
|
|
|
|
|
|
|
// Returns the total height of the tabs component -- this may be several
|
|
|
|
// times the height of a tab, if there are several tab layers (rows).
|
|
|
|
int GetTotalTabHeight();
|
2004-06-17 12:22:36 -04:00
|
|
|
|
1998-05-20 10:01:55 -04:00
|
|
|
inline int GetTopMargin(void) const { return m_topMargin; }
|
|
|
|
inline void SetTopMargin(int margin) { m_topMargin = margin; }
|
2004-06-17 12:22:36 -04:00
|
|
|
|
|
|
|
void SetTabSelection(int sel, bool activateTool = true);
|
1998-05-20 10:01:55 -04:00
|
|
|
inline int GetTabSelection() const { return m_tabSelection; }
|
2004-06-17 12:22:36 -04:00
|
|
|
|
1998-05-20 10:01:55 -04:00
|
|
|
// Find tab control for id
|
|
|
|
wxTabControl *FindTabControlForId(int id) const ;
|
|
|
|
|
|
|
|
// Find tab control for layer, position (starting from zero)
|
|
|
|
wxTabControl *FindTabControlForPosition(int layer, int position) const ;
|
2004-06-17 12:22:36 -04:00
|
|
|
|
1998-05-20 10:01:55 -04:00
|
|
|
inline int GetHorizontalTabOffset() const { return m_tabHorizontalOffset; }
|
|
|
|
inline int GetHorizontalTabSpacing() const { return m_tabHorizontalSpacing; }
|
|
|
|
inline void SetHorizontalTabOffset(int sp) { m_tabHorizontalOffset = sp; }
|
|
|
|
inline void SetHorizontalTabSpacing(int sp) { m_tabHorizontalSpacing = sp; }
|
2004-06-17 12:22:36 -04:00
|
|
|
|
1998-05-20 10:01:55 -04:00
|
|
|
inline void SetVerticalTabTextSpacing(int s) { m_tabVerticalTextSpacing = s; }
|
|
|
|
inline int GetVerticalTabTextSpacing() const { return m_tabVerticalTextSpacing; }
|
2004-06-17 12:22:36 -04:00
|
|
|
|
1998-10-27 12:58:46 -05:00
|
|
|
inline wxFont *GetTabFont() const { return (wxFont*) & m_tabFont; }
|
|
|
|
inline void SetTabFont(const wxFont& f) { m_tabFont = f; }
|
1998-05-20 10:01:55 -04:00
|
|
|
|
1998-10-27 12:58:46 -05:00
|
|
|
inline wxFont *GetSelectedTabFont() const { return (wxFont*) & m_tabSelectedFont; }
|
|
|
|
inline void SetSelectedTabFont(const wxFont& f) { m_tabSelectedFont = f; }
|
1998-05-20 10:01:55 -04:00
|
|
|
// Find the node and the column at which this control is positioned.
|
2003-08-13 17:28:56 -04:00
|
|
|
wxList::compatibility_iterator FindTabNodeAndColumn(wxTabControl *control, int *col) const ;
|
2004-06-17 12:22:36 -04:00
|
|
|
|
1998-05-20 10:01:55 -04:00
|
|
|
// Do the necessary to change to this tab
|
|
|
|
virtual bool ChangeTab(wxTabControl *control);
|
|
|
|
|
|
|
|
// Move the selected tab to the bottom layer, if necessary,
|
|
|
|
// without calling app activation code
|
|
|
|
bool MoveSelectionTab(wxTabControl *control);
|
|
|
|
|
|
|
|
inline int GetNumberOfTabs() const { return m_noTabs; }
|
|
|
|
|
|
|
|
protected:
|
|
|
|
// List of layers, from front to back.
|
2003-08-13 17:28:56 -04:00
|
|
|
wxTabLayerList m_layers;
|
2004-06-17 12:22:36 -04:00
|
|
|
|
1998-05-20 10:01:55 -04:00
|
|
|
// Selected tab
|
|
|
|
int m_tabSelection;
|
|
|
|
|
|
|
|
// Usual tab height
|
|
|
|
int m_tabHeight;
|
|
|
|
|
|
|
|
// The height of the selected tab
|
|
|
|
int m_tabSelectionHeight;
|
|
|
|
|
|
|
|
// Usual tab width
|
|
|
|
int m_tabWidth;
|
2004-06-17 12:22:36 -04:00
|
|
|
|
1998-05-20 10:01:55 -04:00
|
|
|
// Space between tabs
|
|
|
|
int m_tabHorizontalSpacing;
|
2004-06-17 12:22:36 -04:00
|
|
|
|
1998-05-20 10:01:55 -04:00
|
|
|
// Space between top of normal tab and text
|
|
|
|
int m_tabVerticalTextSpacing;
|
2004-06-17 12:22:36 -04:00
|
|
|
|
1998-05-20 10:01:55 -04:00
|
|
|
// Horizontal offset of each tab row above the first
|
|
|
|
int m_tabHorizontalOffset;
|
|
|
|
|
|
|
|
// The distance between the bottom of the first tab row
|
|
|
|
// and the top of the client area (i.e. the margin)
|
|
|
|
int m_topMargin;
|
|
|
|
|
|
|
|
// The position and size of the view above which the tabs are placed.
|
|
|
|
// I.e., the internal client area of the sheet.
|
|
|
|
wxRect m_tabViewRect;
|
2004-06-17 12:22:36 -04:00
|
|
|
|
1998-05-20 10:01:55 -04:00
|
|
|
// Bitlist of styles
|
|
|
|
long m_tabStyle;
|
|
|
|
|
|
|
|
// Colours
|
|
|
|
wxColour m_highlightColour;
|
|
|
|
wxColour m_shadowColour;
|
|
|
|
wxColour m_backgroundColour;
|
|
|
|
wxColour m_textColour;
|
2004-06-17 12:22:36 -04:00
|
|
|
|
1998-05-20 10:01:55 -04:00
|
|
|
// Pen and brush cache
|
2006-04-16 18:18:29 -04:00
|
|
|
const wxPen* m_highlightPen;
|
|
|
|
const wxPen* m_shadowPen;
|
|
|
|
const wxPen* m_backgroundPen;
|
|
|
|
const wxBrush* m_backgroundBrush;
|
2004-06-17 12:22:36 -04:00
|
|
|
|
1998-10-27 12:58:46 -05:00
|
|
|
wxFont m_tabFont;
|
|
|
|
wxFont m_tabSelectedFont;
|
2004-06-17 12:22:36 -04:00
|
|
|
|
1998-05-20 10:01:55 -04:00
|
|
|
int m_noTabs;
|
|
|
|
|
|
|
|
wxWindow* m_window;
|
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* A dialog box class that is tab-friendly
|
|
|
|
*/
|
2004-06-17 12:22:36 -04:00
|
|
|
|
2008-03-26 11:06:00 -04:00
|
|
|
class WXDLLIMPEXP_CORE wxTabbedDialog : public wxDialog
|
1998-05-20 10:01:55 -04:00
|
|
|
{
|
2006-09-05 16:47:48 -04:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxTabbedDialog)
|
2004-06-17 12:22:36 -04:00
|
|
|
|
1998-05-20 10:01:55 -04:00
|
|
|
public:
|
2006-09-05 16:47:48 -04:00
|
|
|
wxTabbedDialog(wxWindow *parent,
|
|
|
|
wxWindowID id,
|
|
|
|
const wxString& title,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long windowStyle = wxDEFAULT_DIALOG_STYLE,
|
|
|
|
const wxString& name = wxDialogNameStr);
|
|
|
|
virtual ~wxTabbedDialog();
|
|
|
|
|
|
|
|
wxTabView *GetTabView() const { return m_tabView; }
|
|
|
|
void SetTabView(wxTabView *v) { m_tabView = v; }
|
|
|
|
|
|
|
|
void OnCloseWindow(wxCloseEvent& event);
|
|
|
|
void OnMouseEvent(wxMouseEvent& event);
|
|
|
|
void OnPaint(wxPaintEvent& event);
|
1998-05-20 10:01:55 -04:00
|
|
|
|
|
|
|
protected:
|
2006-09-05 16:47:48 -04:00
|
|
|
wxTabView* m_tabView;
|
2004-06-17 12:22:36 -04:00
|
|
|
|
2006-09-05 16:47:48 -04:00
|
|
|
private:
|
|
|
|
DECLARE_EVENT_TABLE()
|
1998-05-20 10:01:55 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* A panel class that is tab-friendly
|
|
|
|
*/
|
|
|
|
|
2008-03-26 11:06:00 -04:00
|
|
|
class WXDLLIMPEXP_CORE wxTabbedPanel : public wxPanel
|
1998-05-20 10:01:55 -04:00
|
|
|
{
|
2006-09-05 16:47:48 -04:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxTabbedPanel)
|
2004-06-17 12:22:36 -04:00
|
|
|
|
1998-05-20 10:01:55 -04:00
|
|
|
public:
|
2006-09-05 16:47:48 -04:00
|
|
|
wxTabbedPanel(wxWindow *parent,
|
|
|
|
wxWindowID id,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long windowStyle = 0,
|
|
|
|
const wxString& name = wxPanelNameStr);
|
|
|
|
virtual ~wxTabbedPanel();
|
1998-05-20 10:01:55 -04:00
|
|
|
|
2006-09-05 16:47:48 -04:00
|
|
|
wxTabView *GetTabView() const { return m_tabView; }
|
|
|
|
void SetTabView(wxTabView *v) { m_tabView = v; }
|
2004-06-17 12:22:36 -04:00
|
|
|
|
2006-09-05 16:47:48 -04:00
|
|
|
void OnMouseEvent(wxMouseEvent& event);
|
|
|
|
void OnPaint(wxPaintEvent& event);
|
1998-05-20 10:01:55 -04:00
|
|
|
|
|
|
|
protected:
|
2006-09-05 16:47:48 -04:00
|
|
|
wxTabView* m_tabView;
|
2004-06-17 12:22:36 -04:00
|
|
|
|
2006-09-05 16:47:48 -04:00
|
|
|
private:
|
|
|
|
DECLARE_EVENT_TABLE()
|
1998-05-20 10:01:55 -04:00
|
|
|
};
|
|
|
|
|
2003-08-13 17:28:56 -04:00
|
|
|
WX_DECLARE_HASH_MAP(int, wxWindow*, wxIntegerHash, wxIntegerEqual,
|
|
|
|
wxIntToWindowHashMap);
|
|
|
|
|
2008-03-26 11:06:00 -04:00
|
|
|
class WXDLLIMPEXP_CORE wxPanelTabView : public wxTabView
|
1998-05-20 10:01:55 -04:00
|
|
|
{
|
2006-09-05 16:47:48 -04:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxPanelTabView)
|
|
|
|
|
1998-05-20 10:01:55 -04:00
|
|
|
public:
|
2006-09-05 16:47:48 -04:00
|
|
|
wxPanelTabView(wxPanel *pan, long style = wxTAB_STYLE_DRAW_BOX | wxTAB_STYLE_COLOUR_INTERIOR);
|
|
|
|
virtual ~wxPanelTabView(void);
|
1998-05-20 10:01:55 -04:00
|
|
|
|
2006-09-05 16:47:48 -04:00
|
|
|
// Called when a tab is activated
|
|
|
|
virtual void OnTabActivate(int activateId, int deactivateId);
|
1998-05-20 10:01:55 -04:00
|
|
|
|
2006-09-05 16:47:48 -04:00
|
|
|
// Specific to this class
|
|
|
|
void AddTabWindow(int id, wxWindow *window);
|
|
|
|
wxWindow *GetTabWindow(int id) const ;
|
|
|
|
void ClearWindows(bool deleteWindows = true);
|
|
|
|
wxWindow *GetCurrentWindow() const { return m_currentWindow; }
|
2004-06-17 12:22:36 -04:00
|
|
|
|
2006-09-05 16:47:48 -04:00
|
|
|
void ShowWindowForTab(int id);
|
|
|
|
// wxList& GetWindows() const { return (wxList&) m_tabWindows; }
|
1998-05-20 10:01:55 -04:00
|
|
|
|
|
|
|
protected:
|
2006-09-05 16:47:48 -04:00
|
|
|
// List of panels, one for each tab. Indexed
|
|
|
|
// by tab ID.
|
|
|
|
wxIntToWindowHashMap m_tabWindows;
|
|
|
|
wxWindow* m_currentWindow;
|
|
|
|
wxPanel* m_panel;
|
1998-05-20 10:01:55 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|