CTabControl Class Reference
[Simple Extensions and Wrappers Wround FLTK]

Search Toolkit Book for CTabControl

#include <tab_control.hpp>

Inheritance diagram for CTabControl:

Inheritance graph
[legend]
Collaboration diagram for CTabControl:

Collaboration graph
[legend]
List of all members.

Detailed Description

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
STabDescrx_GetTab (int index)
int x_GetTabIndex (const Fl_Widget *pane) const
void x_SelectTab (int index)
STabDescrx_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 CMenuItemx_CreatePopupMenu ()
void x_OnTabSelected ()
void x_OnCloseTab ()

Static Protected Member Functions

static void x_InitSettings ()

Protected Attributes

TDescrVector m_Descrs
int m_Selected
vector< TRowIndexesm_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


Member Typedef Documentation

typedef vector<STabDescr*> CTabControl::TDescrVector [protected]
 

pre-class settings - colors etc.

Definition at line 226 of file tab_control.hpp.

typedef vector<int> CTabControl::TRowIndexes [protected]
 

Definition at line 227 of file tab_control.hpp.


Member Enumeration Documentation

enum CTabControl::EHitResult [protected]
 

Enumerator:
eClient 
eTab 
eEmptySpace 
eCloseBtn 
eNothing 

Definition at line 199 of file tab_control.hpp.

enum CTabControl::EResizePolicy
 

Enumerator:
fShrink 
fMultiRow  Truncate labels if there is not enough space.
fExpand  place Tabs on multiple rows if there is not enough space

Definition at line 84 of file tab_control.hpp.

enum CTabControl::ETabPosition
 

Enumerator:
eBottom 

Definition at line 81 of file tab_control.hpp.


Constructor & Destructor Documentation

CTabControl::CTabControl  ) 
 

Definition at line 100 of file tab_control.cpp.

References x_Init().

CTabControl::CTabControl int  x,
int  y,
int  w,
int  h,
const char *  label = 0
 

Definition at line 110 of file tab_control.cpp.

References x_Init().

CTabControl::~CTabControl  )  [virtual]
 

Definition at line 121 of file tab_control.cpp.

References m_CloseBtn, m_Descrs, and NON_CONST_ITERATE.


Member Function Documentation

bool CTabControl::AddTab Fl_Widget *  pane,
const string &  label,
const string &  tooltip = "",
CFLTKImageHandle  handle = CFLTKImageHandle()
[virtual]
 

Definition at line 184 of file tab_control.cpp.

References handle(), x_GetTabsCount(), and x_InsertTab().

Referenced by CWMTabControl::Insert().

void CTabControl::AddTCListener IListener listener  ) 
 

Definition at line 327 of file tab_control.cpp.

References m_Listeners.

Referenced by CSubmitBlockDlg::x_CreateWindow().

CTabControl::DECLARE_EVENT_MAP  )  [protected]
 

Reimplemented in CWMTabControl.

void CTabControl::draw  )  [virtual]
 

Definition at line 538 of file tab_control.cpp.

References x_DrawFrame(), and x_DrawTabs().

void CTabControl::EnableCloseButton bool  enable  )  [virtual]
 

Definition at line 178 of file tab_control.cpp.

References m_EnableCloseBtn.

Referenced by CWMTabControl::CWMTabControl().

int CTabControl::GetResizePolicies  )  const [virtual]
 

Definition at line 172 of file tab_control.cpp.

References m_ResizePolicies.

Referenced by CWMTabControlDescr::CWMTabControlDescr().

const Fl_Widget * CTabControl::GetSelectedTab  )  const [virtual]
 

Definition at line 314 of file tab_control.cpp.

References m_Descrs, m_Selected, and x_IsIndexValid().

Fl_Widget * CTabControl::GetSelectedTab  )  [virtual]
 

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().

int CTabControl::GetSelectedTabIndex  )  const [virtual]
 

Definition at line 302 of file tab_control.cpp.

References m_Selected.

Referenced by x_HandleKeyEvent().

Fl_Widget * CTabControl::GetTab int  index  )  [virtual]
 

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().

CFLTKImageHandle CTabControl::GetTabIcon int  index  )  const [virtual]
 

Definition at line 285 of file tab_control.cpp.

References m_Descrs, and x_IsIndexValid().

int CTabControl::GetTabIndex const Fl_Widget *  pane  )  const [virtual]
 

Definition at line 245 of file tab_control.cpp.

References x_GetTabIndex().

Referenced by CWindowManager::ActivateClients(), CWindowManager::GetCaptionPanelMenu(), and CWMTabControl::GetChildPos().

string CTabControl::GetTabLabel int  index  )  const [virtual]
 

Definition at line 251 of file tab_control.cpp.

References kEmptyStr, m_Descrs, and x_IsIndexValid().

int CTabControl::GetTabsCount  )  const [virtual]
 

Definition at line 233 of file tab_control.cpp.

References x_GetTabsCount().

Referenced by CWMTabControl::GetPosToChildMap(), CGBenchWindowManager::InstantiateLayout(), CWMTabControl::IsAvailable(), CWindowManager::OnInsertSplitter(), CTabControlEx::SetState(), CTabControlEx::UpdateButtons(), x_HandleKeyEvent(), x_HandleMouseRelease(), CWindowManager::x_MoveClientToTopLevel(), CWindowManager::x_PutClientInTab(), and CWMDockContainer::x_UnwrapClientFromTabControl().

string CTabControl::GetTabTooltip int  index  )  const [virtual]
 

Definition at line 268 of file tab_control.cpp.

References kEmptyStr, m_Descrs, and x_IsIndexValid().

int CTabControl::handle int   )  [virtual]
 

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().

bool CTabControl::InsertTab Fl_Widget *  pane,
int  pos,
const string &  label,
const string &  tooltip = "",
CFLTKImageHandle  handle = CFLTKImageHandle()
[virtual]
 

Definition at line 197 of file tab_control.cpp.

References handle(), x_GetTabsCount(), and x_InsertTab().

void CTabControl::RemoveAllTabs  )  [virtual]
 

Definition at line 227 of file tab_control.cpp.

References x_RemoveAllTabs().

Referenced by CWMTabControl::RemoveAll(), and CWMDockContainer::x_UnwrapClientFromTabControl().

bool CTabControl::RemoveTab int  index  )  [virtual]
 

Definition at line 221 of file tab_control.cpp.

References x_RemoveTab().

bool CTabControl::RemoveTab Fl_Widget *  pane  )  [virtual]
 

Definition at line 211 of file tab_control.cpp.

References x_GetTabIndex(), and x_RemoveTab().

Referenced by CWMTabControl::Remove(), and CWMDockContainer::Remove().

void CTabControl::RemoveTCListener IListener listener  ) 
 

Definition at line 333 of file tab_control.cpp.

References m_Listeners.

void CTabControl::resize int  new_x,
int  new_y,
int  new_w,
int  new_h
[virtual]
 

Definition at line 740 of file tab_control.cpp.

References pythonpp::resize(), and x_Layout().

void CTabControl::SelectTab int  index  )  [virtual]
 

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().

void CTabControl::SetResizePolicies int  policies  )  [virtual]
 

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().

void CTabControl::SetTabIcon int  index,
const CFLTKImageHandle icon
[virtual]
 

Definition at line 293 of file tab_control.cpp.

References m_Descrs, x_IsIndexValid(), and x_Layout().

void CTabControl::SetTabLabel int  index,
const string &  label
[virtual]
 

Definition at line 259 of file tab_control.cpp.

References m_Descrs, x_IsIndexValid(), and x_Layout().

void CTabControl::SetTabTooltip int  index,
const string &  label
[virtual]
 

Definition at line 276 of file tab_control.cpp.

References m_Descrs, x_IsIndexValid(), and x_Layout().

string CTabControl::TC_GetTooltip int &  x,
int &  y,
int &  w,
int &  h
[virtual]
 

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().

const Fl_Widget * CTabControl::TC_GetWidget  )  const [virtual]
 

Returns pointer to the widget hosting ITooltipClient.

Default implementation returns "this";

Implements ITooltipClient.

Definition at line 1167 of file tab_control.cpp.

bool CTabControl::TC_NeedTooltip int  x,
int  y
[virtual]
 

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().

CMenuItem * CTabControl::x_CreatePopupMenu  )  [protected, virtual]
 

Reimplemented in CWMTabControl.

Definition at line 1138 of file tab_control.cpp.

Referenced by x_OnShowPopupMenu().

void CTabControl::x_DrawFrame  )  [protected, virtual]
 

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().

void CTabControl::x_DrawTab int  index  )  [protected, virtual]
 

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().

void CTabControl::x_DrawTabs  )  [protected, virtual]
 

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().

void CTabControl::x_GetClientRect int &  cl_x,
int &  cl_y,
int &  cl_w,
int &  cl_h
[protected]
 

Definition at line 991 of file tab_control.cpp.

References kClientOffset, and x_GetTabAreaH().

Referenced by x_HitTest(), x_Layout(), and x_SelectTab().

CPoint CTabControl::x_GetControlMinSize bool  with_tabs  )  const [protected]
 

Definition at line 1000 of file tab_control.cpp.

References kClientOffset, and x_GetTabAreaH().

Referenced by CTabControlEx::GetMinimalSize(), and CTabControlEx::GetStateBySize().

const Fl_Widget * CTabControl::x_GetPane int  index  )  const [protected]
 

Definition at line 349 of file tab_control.cpp.

References _ASSERT, m_Descrs, and x_IsIndexValid().

Fl_Widget * CTabControl::x_GetPane int  index  )  [protected]
 

Definition at line 339 of file tab_control.cpp.

References _ASSERT, m_Descrs, and x_IsIndexValid().

Referenced by CWMTabControl::GetChildren(), CWMTabControl::GetPosToChildMap(), and GetTab().

Fl_Widget * CTabControl::x_GetSelectedPane  )  [protected]
 

Definition at line 522 of file tab_control.cpp.

References m_Descrs, m_Selected, and x_IsIndexValid().

Referenced by x_Layout(), and x_SelectTab().

CTabControl::STabDescr * CTabControl::x_GetSelectedTab  )  [protected]
 

Definition at line 512 of file tab_control.cpp.

References m_Descrs, m_Selected, and x_IsIndexValid().

CTabControl::STabDescr * CTabControl::x_GetTab int  index  )  [protected]
 

Definition at line 359 of file tab_control.cpp.

References _ASSERT, m_Descrs, and x_IsIndexValid().

int CTabControl::x_GetTabAreaH  )  const [protected]
 

Definition at line 881 of file tab_control.cpp.

References m_TabAreaH.

Referenced by x_DrawFrame(), x_GetClientRect(), and x_GetControlMinSize().

int CTabControl::x_GetTabIndex const Fl_Widget *  pane  )  const [protected]
 

Definition at line 369 of file tab_control.cpp.

References m_Descrs, and x_GetTabsCount().

Referenced by GetTabIndex(), and RemoveTab().

int CTabControl::x_GetTabRowH  )  const [protected]
 

Definition at line 887 of file tab_control.cpp.

References kTabRowH.

int CTabControl::x_GetTabsCount  )  const [inline, protected]
 

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().

int CTabControl::x_HandleKeyEvent int  event  )  [protected]
 

Definition at line 949 of file tab_control.cpp.

References GetSelectedTabIndex(), GetTabsCount(), SelectTab(), and x_LayoutTabs().

Referenced by handle().

int CTabControl::x_HandleMouseMove  )  [protected]
 

int CTabControl::x_HandleMousePush  )  [protected]
 

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().

int CTabControl::x_HandleMouseRelease  )  [protected]
 

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().

CTabControl::EHitResult CTabControl::x_HitTest int  pos_x,
int  pos_y,
int &  i_tab
[protected]
 

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().

void CTabControl::x_Init  )  [protected]
 

Definition at line 138 of file tab_control.cpp.

References CTooltip::eStayOnMove, eSysColor_Control, and CWidgetSettings::GetSystemColor().

Referenced by CTabControl().

void CTabControl::x_InitSettings  )  [static, protected]
 

Definition at line 82 of file tab_control.cpp.

References color, eColor_ActiveBack, eColor_ActiveBorder, eColor_ActiveText, eColor_Back, eColor_Border, eColor_Text, eSysColor_3DDkShadow, eSysColor_Back, eSysColor_ControlFrame, eSysColor_Text, CWidgetSettings::GetColor(), CWidgetSettings::IsEmpty(), CWidgetSettings::SetColor(), CWidgetSettings::SetColorToSystem(), and sm_Settings.

bool CTabControl::x_InsertTab Fl_Widget *  pane,
int  index,
const string &  label,
const string &  tooltip,
const CFLTKImageHandle handle
[protected]
 

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().

bool CTabControl::x_IsIndexValid int  index  )  const [protected]
 

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().

void CTabControl::x_Layout  )  [protected]
 

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().

void CTabControl::x_LayoutTabs  )  [protected]
 

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().

int CTabControl::x_MeasureTabWidth int  index  )  [protected]
 

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().

void CTabControl::x_OnCloseTab  )  [protected]
 

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().

void CTabControl::x_OnShowPopupMenu  )  [protected, virtual]
 

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().

void CTabControl::x_OnTabSelected  )  [protected]
 

Definition at line 496 of file tab_control.cpp.

References m_Listeners, m_Selected, and NON_CONST_ITERATE.

Referenced by x_SelectTab().

void CTabControl::x_RemoveAllTabs  )  [protected]
 

Definition at line 447 of file tab_control.cpp.

References m_Descrs.

Referenced by RemoveAllTabs().

bool CTabControl::x_RemoveTab int  index  )  [protected]
 

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().

void CTabControl::x_SelectTab int  index  )  [protected]
 

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().


Member Data Documentation

CButton CTabControl::m_CloseBtn [protected]
 

Definition at line 247 of file tab_control.hpp.

Referenced by x_HitTest(), and ~CTabControl().

TDescrVector CTabControl::m_Descrs [protected]
 

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().

bool CTabControl::m_EnableCloseBtn [protected]
 

Definition at line 246 of file tab_control.hpp.

Referenced by EnableCloseButton(), x_DrawTab(), x_HitTest(), and x_MeasureTabWidth().

CGUIEvent CTabControl::m_Event [protected]
 

Definition at line 240 of file tab_control.hpp.

Referenced by handle(), x_HandleMousePush(), and x_HandleMouseRelease().

EHitResult CTabControl::m_Highlight [protected]
 

Definition at line 241 of file tab_control.hpp.

Referenced by x_DrawFrame(), x_DrawTab(), and x_OnShowPopupMenu().

int CTabControl::m_iHitTab [protected]
 

Definition at line 235 of file tab_control.hpp.

Referenced by TC_GetTooltip(), and TC_NeedTooltip().

list<IListener*> CTabControl::m_Listeners [protected]
 

Definition at line 244 of file tab_control.hpp.

Referenced by AddTCListener(), RemoveTCListener(), x_OnCloseTab(), and x_OnTabSelected().

int CTabControl::m_PopupPos [protected]
 

Definition at line 242 of file tab_control.hpp.

Referenced by CWMTabControl::OnCommand(), CWMTabControl::OnUpdateCommand(), CWMTabControl::x_CreatePopupMenu(), and x_OnShowPopupMenu().

int CTabControl::m_ResizePolicies [protected]
 

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().

int CTabControl::m_Selected [protected]
 

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().

int CTabControl::m_TabAreaH [protected]
 

Definition at line 238 of file tab_control.hpp.

Referenced by x_GetTabAreaH().

CTooltip CTabControl::m_Tooltip [protected]
 

Definition at line 234 of file tab_control.hpp.

Referenced by handle().

vector<TRowIndexes> CTabControl::m_vRows [protected]
 

Definition at line 231 of file tab_control.hpp.

Referenced by x_LayoutTabs().

CWidgetSettings CTabControl::sm_Settings [static, protected]
 

CTabControl.

Definition at line 223 of file tab_control.hpp.

Referenced by x_DrawFrame(), x_DrawTab(), and x_InitSettings().


The documentation for this class was generated from the following files:
Generated on Mon Nov 9 14:25:37 2009 for NCBI C++ ToolKit by  doxygen 1.4.6
Modified on Mon Nov 09 15:48:26 2009 by modify_doxy.py rev. 173732