int active_idx) = 0;
virtual int GetBestTabCtrlSize(wxWindow* wnd,
- wxAuiNotebookPageArray& pages) = 0;
+ wxAuiNotebookPageArray& pages,
+ const wxSize& required_bmp_size) = 0;
};
int active_idx);
int GetBestTabCtrlSize(wxWindow* wnd,
- wxAuiNotebookPageArray& pages);
+ wxAuiNotebookPageArray& pages,
+ const wxSize& required_bmp_size);
protected:
wxFont m_measuring_font;
wxColour m_base_colour;
wxPen m_base_colour_pen;
+ wxPen m_border_pen;
wxBrush m_base_colour_brush;
wxBitmap m_active_close_bmp;
wxBitmap m_disabled_close_bmp;
int active_idx);
int GetBestTabCtrlSize(wxWindow* wnd,
- wxAuiNotebookPageArray& pages);
+ wxAuiNotebookPageArray& pages,
+ const wxSize& required_bmp_size);
protected:
void SetArtProvider(wxAuiTabArt* art);
wxAuiTabArt* GetArtProvider() const;
-
+
+ virtual void SetUniformBitmapSize(const wxSize& size);
+ virtual void SetTabCtrlHeight(int height);
+
protected:
// these can be overridden
- virtual void SetTabCtrlHeight(int height);
+ virtual void UpdateTabCtrlHeight();
virtual int CalculateTabCtrlHeight();
+ virtual wxSize CalculateNewSplitSize();
protected:
wxAuiTabCtrl* GetActiveTabCtrl();
bool FindTab(wxWindow* page, wxAuiTabCtrl** ctrl, int* idx);
void RemoveEmptyTabFrames();
-
+ void UpdateHintWindowSize();
+
protected:
-
void OnChildFocus(wxChildFocusEvent& evt);
void OnRender(wxAuiManagerEvent& evt);
void OnEraseBackground(wxEraseEvent& evt);
int m_tab_id_counter;
wxWindow* m_dummy_wnd;
+ wxSize m_requested_bmp_size;
+ int m_requested_tabctrl_height;
wxFont m_selected_font;
wxFont m_normal_font;
int m_tab_ctrl_height;
-
+
int m_last_drag_x;
unsigned int m_flags;