#include <tab_control.hpp>
Inheritance diagram for CTabControl:


Definition at line 66 of file tab_control.hpp.
Public Types | |
| enum | ETabPosition { eBottom } |
| enum | EResizePolicy { fShrink = 0x1, fMultiRow = 0x2, fExpand = 0x4 } |
Public Member Functions | |
| CTabControl () | |
| CTabControl (int x, int y, int w, int h, const char *label=0) | |
| virtual | ~CTabControl () |
| virtual void | SetResizePolicies (int policies) |
| takes a cobination of EResizePolicy flags | |
| virtual int | GetResizePolicies () const |
| virtual void | EnableCloseButton (bool enable) |
| virtual bool | AddTab (Fl_Widget *pane, const string &label, const string &tooltip="", CFLTKImageHandle handle=CFLTKImageHandle()) |
| virtual bool | InsertTab (Fl_Widget *pane, int pos, const string &label, const string &tooltip="", CFLTKImageHandle handle=CFLTKImageHandle()) |
| virtual bool | RemoveTab (Fl_Widget *pane) |
| virtual bool | RemoveTab (int index) |
| virtual void | RemoveAllTabs () |
| virtual int | GetTabsCount () const |
| virtual Fl_Widget * | GetTab (int index) |
| virtual int | GetTabIndex (const Fl_Widget *pane) const |
| virtual string | GetTabLabel (int index) const |
| virtual void | SetTabLabel (int index, const string &label) |
| virtual string | GetTabTooltip (int index) const |
| virtual void | SetTabTooltip (int index, const string &label) |
| virtual CFLTKImageHandle | GetTabIcon (int index) const |
| virtual void | SetTabIcon (int index, const CFLTKImageHandle &icon) |
| virtual int | GetSelectedTabIndex () const |
| virtual Fl_Widget * | GetSelectedTab () |
| virtual const Fl_Widget * | GetSelectedTab () const |
| virtual void | SelectTab (int index) |
| void | AddTCListener (IListener &listener) |
| void | RemoveTCListener (IListener &listener) |
Fl_Group functions | |
| virtual void | draw () |
| virtual void | resize (int new_x, int new_y, int new_w, int new_h) |
| virtual int | handle (int) |
ITooltipClient implementation | |
| virtual bool | TC_NeedTooltip (int x, int y) |
| Returns "true" if client wants to dispaly a tooltip. | |
| virtual string | TC_GetTooltip (int &x, int &y, int &w, int &h) |
| Returns tooltip string and coordinates for area tootlip associated with. | |
| virtual const Fl_Widget * | TC_GetWidget () const |
| Returns pointer to the widget hosting ITooltipClient. | |
Protected Types | |
| typedef vector< STabDescr * > | TDescrVector |
| pre-class settings - colors etc. | |
| typedef vector< int > | TRowIndexes |
| enum | EHitResult { eClient, eTab, eEmptySpace, eCloseBtn, eNothing } |
Protected Member Functions | |
| DECLARE_EVENT_MAP () | |
| void | x_Init () |
| bool | x_InsertTab (Fl_Widget *pane, int index, const string &label, const string &tooltip, const CFLTKImageHandle &handle) |
| bool | x_RemoveTab (int index) |
| void | x_RemoveAllTabs () |
| int | x_GetTabsCount () const |
| Fl_Widget * | x_GetPane (int index) |
| const Fl_Widget * | x_GetPane (int index) const |
| STabDescr * | x_GetTab (int index) |
| int | x_GetTabIndex (const Fl_Widget *pane) const |
| void | x_SelectTab (int index) |
| STabDescr * | x_GetSelectedTab () |
| Fl_Widget * | x_GetSelectedPane () |
| virtual void | x_DrawFrame () |
| virtual void | x_DrawTabs () |
| virtual void | x_DrawTab (int index) |
| draws Tab corresponding to a given index | |
| void | x_Layout () |
| void | x_LayoutTabs () |
| int | x_GetTabAreaH () const |
| int | x_GetTabRowH () const |
| int | x_MeasureTabWidth (int index) |
| void | x_GetClientRect (int &cl_x, int &cl_y, int &cl_w, int &cl_h) |
| CPoint | x_GetControlMinSize (bool with_tabs) const |
| bool | x_IsIndexValid (int index) const |
| EHitResult | x_HitTest (int pos_x, int pos_y, int &i_tab) |
| int | x_HandleMouseMove () |
| int | x_HandleMousePush () |
| int | x_HandleMouseRelease () |
| int | x_HandleKeyEvent (int event) |
| virtual void | x_OnShowPopupMenu () |
| virtual CMenuItem * | x_CreatePopupMenu () |
| void | x_OnTabSelected () |
| void | x_OnCloseTab () |
Static Protected Member Functions | |
| static void | x_InitSettings () |
Protected Attributes | |
| TDescrVector | m_Descrs |
| int | m_Selected |
| vector< TRowIndexes > | m_vRows |
| CTooltip | m_Tooltip |
| int | m_iHitTab |
| int | m_ResizePolicies |
| index of the tab hit by tooltip hit test | |
| int | m_TabAreaH |
| CGUIEvent | m_Event |
| EHitResult | m_Highlight |
| int | m_PopupPos |
| list< IListener * > | m_Listeners |
| bool | m_EnableCloseBtn |
| CButton | m_CloseBtn |
Static Protected Attributes | |
| static CWidgetSettings | sm_Settings |
| CTabControl. | |
Classes | |
| class | IListener |
| IListener - interface for observing changes in CTabControl. More... | |
| struct | STabDescr |
|
|
pre-class settings - colors etc.
Definition at line 226 of file tab_control.hpp. |
|
|
Definition at line 227 of file tab_control.hpp. |
|
|
Definition at line 199 of file tab_control.hpp. |
|
|
Definition at line 84 of file tab_control.hpp. |
|
|
Definition at line 81 of file tab_control.hpp. |
|
|
Definition at line 100 of file tab_control.cpp. References x_Init(). |
|
||||||||||||||||||||||||
|
Definition at line 110 of file tab_control.cpp. References x_Init(). |
|
|
Definition at line 121 of file tab_control.cpp. References m_CloseBtn, m_Descrs, and NON_CONST_ITERATE. |
|
||||||||||||||||||||
|
Definition at line 184 of file tab_control.cpp. References handle(), x_GetTabsCount(), and x_InsertTab(). Referenced by CWMTabControl::Insert(). |
|
|
Definition at line 327 of file tab_control.cpp. References m_Listeners. Referenced by CSubmitBlockDlg::x_CreateWindow(). |
|
|
Reimplemented in CWMTabControl. |
|
|
Definition at line 538 of file tab_control.cpp. References x_DrawFrame(), and x_DrawTabs(). |
|
|
Definition at line 178 of file tab_control.cpp. References m_EnableCloseBtn. Referenced by CWMTabControl::CWMTabControl(). |
|
|
Definition at line 172 of file tab_control.cpp. References m_ResizePolicies. Referenced by CWMTabControlDescr::CWMTabControlDescr(). |
|
|
Definition at line 314 of file tab_control.cpp. References m_Descrs, m_Selected, and x_IsIndexValid(). |
|
|
Definition at line 308 of file tab_control.cpp. References m_Descrs, m_Selected, and x_IsIndexValid(). Referenced by CTabControlEx::GetMinimalSize(), CTabControlEx::GetState(), CTabControlEx::GetStateBySize(), and CWMTabControl::x_OnCloseTab(). |
|
|
Definition at line 302 of file tab_control.cpp. References m_Selected. Referenced by x_HandleKeyEvent(). |
|
|
Definition at line 239 of file tab_control.cpp. References x_GetPane(). Referenced by CWMTabControl::GetChild(), CWMDockContainer::OnTabClosePressed(), CTabControlEx::SetState(), CTabControlEx::UpdateButtons(), and CWMDockContainer::x_UnwrapClientFromTabControl(). |
|
|
Definition at line 285 of file tab_control.cpp. References m_Descrs, and x_IsIndexValid(). |
|
|
Definition at line 245 of file tab_control.cpp. References x_GetTabIndex(). Referenced by CWindowManager::ActivateClients(), CWindowManager::GetCaptionPanelMenu(), and CWMTabControl::GetChildPos(). |
|
|
Definition at line 251 of file tab_control.cpp. References kEmptyStr, m_Descrs, and x_IsIndexValid(). |
|
|
|
Definition at line 268 of file tab_control.cpp. References kEmptyStr, m_Descrs, and x_IsIndexValid(). |
|
|
Definition at line 913 of file tab_control.cpp. References CTooltip::Handle(), m_Event, m_Tooltip, CGUIEvent::OnFLTKEvent(), x_HandleKeyEvent(), x_HandleMousePush(), and x_HandleMouseRelease(). Referenced by AddTab(), InsertTab(), and x_InsertTab(). |
|
||||||||||||||||||||||||
|
Definition at line 197 of file tab_control.cpp. References handle(), x_GetTabsCount(), and x_InsertTab(). |
|
|
Definition at line 227 of file tab_control.cpp. References x_RemoveAllTabs(). Referenced by CWMTabControl::RemoveAll(), and CWMDockContainer::x_UnwrapClientFromTabControl(). |
|
|
Definition at line 221 of file tab_control.cpp. References x_RemoveTab(). |
|
|
Definition at line 211 of file tab_control.cpp. References x_GetTabIndex(), and x_RemoveTab(). Referenced by CWMTabControl::Remove(), and CWMDockContainer::Remove(). |
|
|
Definition at line 333 of file tab_control.cpp. References m_Listeners. |
|
||||||||||||||||||||
|
Definition at line 740 of file tab_control.cpp. References pythonpp::resize(), and x_Layout(). |
|
|
Definition at line 320 of file tab_control.cpp. References x_LayoutTabs(), and x_SelectTab(). Referenced by CWindowManager::ActivateClients(), CSubmitBlockDlg::x_CreateWindow(), and x_HandleKeyEvent(). |
|
|
takes a cobination of EResizePolicy flags
Definition at line 162 of file tab_control.cpp. References m_ResizePolicies, and x_Layout(). Referenced by CWMTabControlDescr::CreateInstance(), and CWindowManager::x_CreateRootContainers(). |
|
||||||||||||
|
Definition at line 293 of file tab_control.cpp. References m_Descrs, x_IsIndexValid(), and x_Layout(). |
|
||||||||||||
|
Definition at line 259 of file tab_control.cpp. References m_Descrs, x_IsIndexValid(), and x_Layout(). |
|
||||||||||||
|
Definition at line 276 of file tab_control.cpp. References m_Descrs, x_IsIndexValid(), and x_Layout(). |
|
||||||||||||||||||||
|
Returns tooltip string and coordinates for area tootlip associated with. Client may choose not modify x, y, w, z, in that case tooltip will be associated with current mouse position. Implements ITooltipClient. Definition at line 1152 of file tab_control.cpp. References _ASSERT, m_Descrs, CTabControl::STabDescr::m_h, m_iHitTab, CTabControl::STabDescr::m_Label, CTabControl::STabDescr::m_w, CTabControl::STabDescr::m_x, CTabControl::STabDescr::m_y, and x_IsIndexValid(). |
|
|
Returns pointer to the widget hosting ITooltipClient. Default implementation returns "this"; Implements ITooltipClient. Definition at line 1167 of file tab_control.cpp. |
|
||||||||||||
|
Returns "true" if client wants to dispaly a tooltip. "x" and "y" are cordinates of the mouse pointer Implements ITooltipClient. Definition at line 1144 of file tab_control.cpp. References eTab, m_iHitTab, and x_HitTest(). |
|
|
Reimplemented in CWMTabControl. Definition at line 1138 of file tab_control.cpp. Referenced by x_OnShowPopupMenu(). |
|
|
Reimplemented in CTabControlEx. Definition at line 555 of file tab_control.cpp. References DrawHighlightFrame(), DrawHighlightRect(), eClient, eColor_ActiveBack, eColor_ActiveBorder, eColor_Back, eEmptySpace, CWidgetSettings::GetColor(), kClientOffset, kTabSpaceY, m_Descrs, m_Highlight, m_Selected, CTabControl::STabDescr::m_y, sm_Settings, x_GetTabAreaH(), and x_GetTabsCount(). Referenced by draw(), and CTabControlEx::x_DrawFrame(). |
|
|
draws Tab corresponding to a given index
Definition at line 641 of file tab_control.cpp. References DrawHighlightRect(), eColor_ActiveBack, eColor_ActiveBorder, eColor_ActiveText, eColor_Back, eColor_Border, eColor_Text, eTab, fl_draw_text(), Fl_DrawImage(), CWidgetSettings::GetColor(), kClientOffset, kCloseBtnSize, kIconOffset, kTabOffsetX, kTabOffsetY, m_Descrs, m_EnableCloseBtn, CTabControl::STabDescr::m_h, m_Highlight, CTabControl::STabDescr::m_Icon, CTabControl::STabDescr::m_Label, m_Selected, CTabControl::STabDescr::m_w, CTabControl::STabDescr::m_x, CTabControl::STabDescr::m_y, and sm_Settings. Referenced by x_DrawTabs(). |
|
|
Reimplemented in CTabControlEx. Definition at line 631 of file tab_control.cpp. References x_DrawTab(), and x_GetTabsCount(). Referenced by draw(), and CTabControlEx::x_DrawTabs(). |
|
||||||||||||||||||||
|
Definition at line 991 of file tab_control.cpp. References kClientOffset, and x_GetTabAreaH(). Referenced by x_HitTest(), x_Layout(), and x_SelectTab(). |
|
|
Definition at line 1000 of file tab_control.cpp. References kClientOffset, and x_GetTabAreaH(). Referenced by CTabControlEx::GetMinimalSize(), and CTabControlEx::GetStateBySize(). |
|
|
Definition at line 349 of file tab_control.cpp. References _ASSERT, m_Descrs, and x_IsIndexValid(). |
|
|
Definition at line 339 of file tab_control.cpp. References _ASSERT, m_Descrs, and x_IsIndexValid(). Referenced by CWMTabControl::GetChildren(), CWMTabControl::GetPosToChildMap(), and GetTab(). |
|
|
Definition at line 522 of file tab_control.cpp. References m_Descrs, m_Selected, and x_IsIndexValid(). Referenced by x_Layout(), and x_SelectTab(). |
|
|
Definition at line 512 of file tab_control.cpp. References m_Descrs, m_Selected, and x_IsIndexValid(). |
|
|
Definition at line 359 of file tab_control.cpp. References _ASSERT, m_Descrs, and x_IsIndexValid(). |
|
|
Definition at line 881 of file tab_control.cpp. References m_TabAreaH. Referenced by x_DrawFrame(), x_GetClientRect(), and x_GetControlMinSize(). |
|
|
Definition at line 369 of file tab_control.cpp. References m_Descrs, and x_GetTabsCount(). Referenced by GetTabIndex(), and RemoveTab(). |
|
|
Definition at line 887 of file tab_control.cpp. References kTabRowH. |
|
|
Definition at line 174 of file tab_control.hpp. References m_Descrs. Referenced by AddTab(), CWMTabControl::GetChildren(), CWMTabControl::GetChildrenCount(), GetTabsCount(), InsertTab(), x_DrawFrame(), x_DrawTabs(), x_GetTabIndex(), x_HitTest(), x_InsertTab(), x_IsIndexValid(), x_LayoutTabs(), x_OnShowPopupMenu(), x_RemoveTab(), and x_SelectTab(). |
|
|
Definition at line 949 of file tab_control.cpp. References GetSelectedTabIndex(), GetTabsCount(), SelectTab(), and x_LayoutTabs(). Referenced by handle(). |
|
|
|
|
|
Definition at line 1050 of file tab_control.cpp. References eClient, eEmptySpace, CGUIEvent::ePopupSignal, CGUIEvent::ePush, CGUIEvent::eSelectSignal, eTab, CGUIEvent::GetGUISignal(), m_Event, CGUIEvent::OnFLTKEvent(), x_HitTest(), x_LayoutTabs(), x_OnShowPopupMenu(), and x_SelectTab(). Referenced by handle(). |
|
|
Definition at line 1092 of file tab_control.cpp. References eClient, eEmptySpace, CGUIEvent::ePopupSignal, eTab, CGUIEvent::GetGUISignal(), GetTabsCount(), m_Event, x_HitTest(), and x_OnShowPopupMenu(). Referenced by handle(). |
|
||||||||||||||||
|
Definition at line 1017 of file tab_control.cpp. References eClient, eCloseBtn, eEmptySpace, eTab, m_CloseBtn, m_Descrs, m_EnableCloseBtn, PointInRect(), x_GetClientRect(), and x_GetTabsCount(). Referenced by TC_NeedTooltip(), x_HandleMousePush(), x_HandleMouseRelease(), and x_OnShowPopupMenu(). |
|
|
Definition at line 138 of file tab_control.cpp. References CTooltip::eStayOnMove, eSysColor_Control, and CWidgetSettings::GetSystemColor(). Referenced by CTabControl(). |
|
|
||||||||||||||||||||||||
|
Definition at line 379 of file tab_control.cpp. References _ASSERT, handle(), m_Descrs, CTabControl::STabDescr::m_Icon, CTabControl::STabDescr::m_Label, CTabControl::STabDescr::m_Pane, CTabControl::STabDescr::m_Tooltip, x_GetTabsCount(), x_LayoutTabs(), and x_SelectTab(). Referenced by AddTab(), and InsertTab(). |
|
|
Definition at line 985 of file tab_control.cpp. References x_GetTabsCount(). Referenced by GetSelectedTab(), GetTabIcon(), GetTabLabel(), GetTabTooltip(), CWMTabControl::IsOccupied(), SetTabIcon(), SetTabLabel(), SetTabTooltip(), TC_GetTooltip(), x_GetPane(), x_GetSelectedPane(), x_GetSelectedTab(), x_GetTab(), and x_RemoveTab(). |
|
|
Definition at line 754 of file tab_control.cpp. References x_GetClientRect(), x_GetSelectedPane(), and x_LayoutTabs(). Referenced by resize(), SetResizePolicies(), SetTabIcon(), SetTabLabel(), and SetTabTooltip(). |
|
|
Definition at line 768 of file tab_control.cpp. References fExpand, fMultiRow, fShrink, m_ResizePolicies, m_vRows, x_GetTabsCount(), and x_MeasureTabWidth(). Referenced by SelectTab(), x_HandleKeyEvent(), x_HandleMousePush(), x_InsertTab(), x_Layout(), and x_RemoveTab(). |
|
|
Definition at line 893 of file tab_control.cpp. References kIconOffset, kTabOffsetX, m_Descrs, m_EnableCloseBtn, CTabControl::STabDescr::m_Icon, CTabControl::STabDescr::m_Label, and m_Selected. Referenced by x_LayoutTabs(). |
|
|
Reimplemented in CWMTabControl. Definition at line 504 of file tab_control.cpp. References m_Listeners, m_Selected, and NON_CONST_ITERATE. Referenced by CWMTabControl::x_OnCloseTab(). |
|
|
Definition at line 1111 of file tab_control.cpp. References eNothing, eTab, CMenuItem::IsSubmenuEmpty(), m_Highlight, m_PopupPos, CPopupMenu::Popup(), x_CreatePopupMenu(), x_GetTabsCount(), and x_HitTest(). Referenced by x_HandleMousePush(), and x_HandleMouseRelease(). |
|
|
Definition at line 496 of file tab_control.cpp. References m_Listeners, m_Selected, and NON_CONST_ITERATE. Referenced by x_SelectTab(). |
|
|
Definition at line 447 of file tab_control.cpp. References m_Descrs. Referenced by RemoveAllTabs(). |
|
|
Definition at line 407 of file tab_control.cpp. References _ASSERT, m_Descrs, CTabControl::STabDescr::m_Pane, m_Selected, x_GetTabsCount(), x_IsIndexValid(), x_LayoutTabs(), and x_SelectTab(). Referenced by RemoveTab(). |
|
|
Definition at line 459 of file tab_control.cpp. References _ASSERT, IsChildWidget(), m_Selected, x_GetClientRect(), x_GetSelectedPane(), x_GetTabsCount(), and x_OnTabSelected(). Referenced by SelectTab(), x_HandleMousePush(), x_InsertTab(), and x_RemoveTab(). |
|
|
Definition at line 247 of file tab_control.hpp. Referenced by x_HitTest(), and ~CTabControl(). |
|
|
Definition at line 229 of file tab_control.hpp. Referenced by GetSelectedTab(), GetTabIcon(), GetTabLabel(), GetTabTooltip(), SetTabIcon(), SetTabLabel(), SetTabTooltip(), TC_GetTooltip(), x_DrawFrame(), x_DrawTab(), x_GetPane(), x_GetSelectedPane(), x_GetSelectedTab(), x_GetTab(), x_GetTabIndex(), x_GetTabsCount(), x_HitTest(), x_InsertTab(), x_MeasureTabWidth(), x_RemoveAllTabs(), x_RemoveTab(), and ~CTabControl(). |
|
|
Definition at line 246 of file tab_control.hpp. Referenced by EnableCloseButton(), x_DrawTab(), x_HitTest(), and x_MeasureTabWidth(). |
|
|
Definition at line 240 of file tab_control.hpp. Referenced by handle(), x_HandleMousePush(), and x_HandleMouseRelease(). |
|
|
Definition at line 241 of file tab_control.hpp. Referenced by x_DrawFrame(), x_DrawTab(), and x_OnShowPopupMenu(). |
|
|
Definition at line 235 of file tab_control.hpp. Referenced by TC_GetTooltip(), and TC_NeedTooltip(). |
|
|
Definition at line 244 of file tab_control.hpp. Referenced by AddTCListener(), RemoveTCListener(), x_OnCloseTab(), and x_OnTabSelected(). |
|
|
Definition at line 242 of file tab_control.hpp. Referenced by CWMTabControl::OnCommand(), CWMTabControl::OnUpdateCommand(), CWMTabControl::x_CreatePopupMenu(), and x_OnShowPopupMenu(). |
|
|
index of the tab hit by tooltip hit test
Definition at line 237 of file tab_control.hpp. Referenced by GetResizePolicies(), SetResizePolicies(), and x_LayoutTabs(). |
|
|
Definition at line 230 of file tab_control.hpp. Referenced by GetSelectedTab(), GetSelectedTabIndex(), x_DrawFrame(), x_DrawTab(), x_GetSelectedPane(), x_GetSelectedTab(), x_MeasureTabWidth(), x_OnCloseTab(), x_OnTabSelected(), x_RemoveTab(), and x_SelectTab(). |
|
|
Definition at line 238 of file tab_control.hpp. Referenced by x_GetTabAreaH(). |
|
|
Definition at line 234 of file tab_control.hpp. Referenced by handle(). |
|
|
Definition at line 231 of file tab_control.hpp. Referenced by x_LayoutTabs(). |
|
|
Definition at line 223 of file tab_control.hpp. Referenced by x_DrawFrame(), x_DrawTab(), and x_InitSettings(). |
1.4.6
Modified on Mon Nov 09 15:48:26 2009 by modify_doxy.py rev. 173732