1
#ifndef CLAUI_TAB_ART_H
2
#define CLAUI_TAB_ART_H
4
#include <wx/aui/auibook.h>
7
// -- GUI helper classes and functions --
9
class wxAuiCommandCapture : public wxEvtHandler
13
wxAuiCommandCapture() { m_last_id = 0; }
14
int GetCommandId() const { return m_last_id; }
16
bool ProcessEvent(wxEvent& evt)
18
if (evt.GetEventType() == wxEVT_COMMAND_MENU_SELECTED)
20
m_last_id = evt.GetId();
25
return GetNextHandler()->ProcessEvent(evt);
34
class clAuiTabArt : public wxAuiTabArt
40
virtual ~clAuiTabArt();
43
void SetFlags(unsigned int flags);
44
void SetSizingInfo(const wxSize& tab_ctrl_size,
47
void SetNormalFont(const wxFont& font);
48
void SetSelectedFont(const wxFont& font);
49
void SetMeasuringFont(const wxFont& font);
56
void DrawTab(wxDC& dc,
58
const wxAuiNotebookPage& pane,
59
const wxRect& in_rect,
60
int close_button_state,
62
wxRect* out_button_rect,
68
const wxRect& in_rect,
79
const wxString& caption,
80
const wxBitmap& bitmap,
82
int close_button_state,
87
const wxAuiNotebookPageArray& items,
90
int GetBestTabCtrlSize(wxWindow* wnd,
91
const wxAuiNotebookPageArray& pages,
92
const wxSize& required_bmp_size);
97
wxFont m_selected_font;
98
wxFont m_measuring_font;
99
wxColour m_base_colour;
100
// Light colours by %
101
wxColour m_base_colour_2;
102
wxColour m_base_colour_3;
103
wxColour m_base_colour_4;
105
wxPen m_base_colour_pen;
107
wxBrush m_base_colour_brush;
108
wxBitmap m_active_close_bmp;
109
wxBitmap m_disabled_close_bmp;
110
wxBitmap m_active_left_bmp;
111
wxBitmap m_disabled_left_bmp;
112
wxBitmap m_active_right_bmp;
113
wxBitmap m_disabled_right_bmp;
114
wxBitmap m_active_windowlist_bmp;
115
wxBitmap m_disabled_windowlist_bmp;
117
int m_fixed_tab_width;
118
int m_tab_ctrl_height;
119
unsigned int m_flags;
122
#endif // CLAUI_TAB_ART_H