CWMTabControl Class Reference

Search Toolkit Book for CWMTabControl

#include <wm_tab_control.hpp>

Inheritance diagram for CWMTabControl:

Inheritance graph
[legend]
Collaboration diagram for CWMTabControl:

Collaboration graph
[legend]
List of all members.

Detailed Description

CWMTabControl - CWindowManager-compatible tab control.

Definition at line 69 of file wm_tab_control.hpp.

Public Member Functions

 CWMTabControl ()
 CWMTabControl.
 CWMTabControl (int x, int y, int w, int h, const char *label=0)
virtual ~CWMTabControl ()
virtual bool OnCommand (const TCmdID CmdID)
virtual bool OnUpdateCommand (const TCmdID cmd, ICmdUI *pCmdUI)
void OnCloseTab ()
IWMContainer implementation
virtual void SetManager (IWindowManager *manager)
virtual bool IsOccupied (const IWMPosition &pos) const
virtual bool IsAvailable (const IWMPosition &pos) const
virtual TChildGetChild (const IWMPosition &pos)
virtual IWMPositionGetChildPos (const TChild *child) const
virtual bool Insert (TChild *widget, const IWMPosition &pos, const string &label)
virtual bool Remove (const IWMPosition &pos)
virtual bool Remove (TChild *child)
virtual void RemoveAll ()
virtual bool MoveToPos (TChild *child, const IWMPosition &pos)
virtual int GetChildrenCount () const
virtual void GetChildren (vector< TChild * > &children)
virtual void GetPosToChildMap (TPosToChildMap &map) const
virtual IWMContainerDescrGetDescr () const

Protected Member Functions

 DECLARE_EVENT_MAP ()
virtual CMenuItemx_CreatePopupMenu ()
void x_OnCloseTab ()

Protected Attributes

IWindowManagerm_WindowManager


Constructor & Destructor Documentation

CWMTabControl::CWMTabControl  ) 
 

CWMTabControl.

Definition at line 83 of file wm_tab_control.cpp.

References CTabControl::EnableCloseButton().

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

Definition at line 91 of file wm_tab_control.cpp.

References CTabControl::EnableCloseButton().

CWMTabControl::~CWMTabControl  )  [virtual]
 

Definition at line 99 of file wm_tab_control.cpp.


Member Function Documentation

CWMTabControl::DECLARE_EVENT_MAP  )  [protected]
 

Reimplemented from CTabControl.

CWMTabControl::TChild * CWMTabControl::GetChild const IWMPosition pos  )  [virtual]
 

Implements IWMContainer.

Definition at line 135 of file wm_tab_control.cpp.

References CWMTabPos::GetPos(), CTabControl::GetTab(), and pos.

IWMPosition * CWMTabControl::GetChildPos const TChild child  )  const [virtual]
 

Definition at line 145 of file wm_tab_control.cpp.

References CTabControl::GetTabIndex().

void CWMTabControl::GetChildren vector< TChild * > &  children  )  [virtual]
 

Implements IWMContainer.

Definition at line 202 of file wm_tab_control.cpp.

References CTabControl::x_GetPane(), and CTabControl::x_GetTabsCount().

int CWMTabControl::GetChildrenCount  )  const [virtual]
 

Implements IWMContainer.

Definition at line 196 of file wm_tab_control.cpp.

References CTabControl::x_GetTabsCount().

IWMContainerDescr * CWMTabControl::GetDescr  )  const [virtual]
 

Implements IWMContainer.

Definition at line 274 of file wm_tab_control.cpp.

void CWMTabControl::GetPosToChildMap TPosToChildMap map  )  const [virtual]
 

Definition at line 213 of file wm_tab_control.cpp.

References CTabControl::GetTabsCount(), and CTabControl::x_GetPane().

bool CWMTabControl::Insert TChild widget,
const IWMPosition pos,
const string &  label
[virtual]
 

Definition at line 152 of file wm_tab_control.cpp.

References CTabControl::AddTab(), CWMCaptionPanel::GetClient(), IWMClient::GetIcon(), IsAvailable(), and pos.

bool CWMTabControl::IsAvailable const IWMPosition pos  )  const [virtual]
 

Implements IWMContainer.

Definition at line 124 of file wm_tab_control.cpp.

References CWMTabPos::GetPos(), CTabControl::GetTabsCount(), and pos.

Referenced by Insert().

bool CWMTabControl::IsOccupied const IWMPosition pos  )  const [virtual]
 

Implements IWMContainer.

Definition at line 114 of file wm_tab_control.cpp.

References CWMTabPos::GetPos(), pos, and CTabControl::x_IsIndexValid().

bool CWMTabControl::MoveToPos TChild child,
const IWMPosition pos
[virtual]
 

Definition at line 225 of file wm_tab_control.cpp.

void CWMTabControl::OnCloseTab  ) 
 

bool CWMTabControl::OnCommand const TCmdID  CmdID  )  [virtual]
 

Reimplemented from CCommandTarget.

Definition at line 254 of file wm_tab_control.cpp.

References CTabControl::m_PopupPos, m_WindowManager, CCommandTarget::OnCommand(), and IWindowManager::OnContainerCommand().

bool CWMTabControl::OnUpdateCommand const TCmdID  cmd,
ICmdUI pCmdUI
[virtual]
 

Reimplemented from CCommandTarget.

Definition at line 264 of file wm_tab_control.cpp.

References CTabControl::m_PopupPos, m_WindowManager, IWindowManager::OnContainerUpdateCommand(), and CCommandTarget::OnUpdateCommand().

bool CWMTabControl::Remove TChild child  )  [virtual]
 

Definition at line 190 of file wm_tab_control.cpp.

References CTabControl::RemoveTab().

bool CWMTabControl::Remove const IWMPosition pos  )  [virtual]
 

Implements IWMContainer.

Definition at line 180 of file wm_tab_control.cpp.

References CWMTabPos::GetPos(), pos, and CTabControl::RemoveTab().

void CWMTabControl::RemoveAll  )  [virtual]
 

Implements IWMContainer.

Definition at line 174 of file wm_tab_control.cpp.

References CTabControl::RemoveAllTabs().

void CWMTabControl::SetManager IWindowManager manager  )  [virtual]
 

Implements IWMContainer.

Definition at line 108 of file wm_tab_control.cpp.

Referenced by CWindowManager::OnContainerCommand(), CWindowManager::x_CreateRootContainers(), and CWindowManager::x_WrapClientInTabControl().

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

Reimplemented from CTabControl.

Definition at line 237 of file wm_tab_control.cpp.

References CMenuItem::AddSubItem(), IWindowManager::GetPopupItems(), ITERATE, CTabControl::m_PopupPos, and m_WindowManager.

void CWMTabControl::x_OnCloseTab  )  [protected]
 

close the panel asyncronously

Reimplemented from CTabControl.

Definition at line 280 of file wm_tab_control.cpp.

References eCmdCPanelClose, eCmdDelContainer, CTabControl::GetSelectedTab(), m_WindowManager, IWindowManager::OnCaptionPanelCommand(), IWindowManager::OnContainerCommand(), pos, and CTabControl::x_OnCloseTab().


Member Data Documentation

IWindowManager* CWMTabControl::m_WindowManager [protected]
 

Definition at line 112 of file wm_tab_control.hpp.

Referenced by OnCommand(), OnUpdateCommand(), x_CreatePopupMenu(), and x_OnCloseTab().


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