CGBenchWindowManager Class Reference

Search Toolkit Book for CGBenchWindowManager

#include <gbench_frame.hpp>

Inheritance diagram for CGBenchWindowManager:

Inheritance graph
[legend]
Collaboration diagram for CGBenchWindowManager:

Collaboration graph
[legend]
List of all members.

Detailed Description

CGBenchWindowManager.

Definition at line 106 of file gbench_frame.hpp.

Public Member Functions

 CGBenchWindowManager (CGBenchWorkspaceWindow &workspace)
 CGBenchWindowManager.
virtual void GetPopupItems (IWMContainer &container, const IWMPosition &pos, vector< CMenuItem * > &items)
virtual bool OnContainerCommand (IWMContainer &container, const IWMPosition &pos, TCmdID cmd)
virtual bool OnContainerUpdateCommand (IWMContainer &container, const IWMPosition &pos, TCmdID cmd, ICmdUI *cmd_ui)
void LoadTemplates ()
void InstantiateLayout (IWMContainer *cont, const IWMPosition *pos, const objects::CUser_object &obj)
void OnConfigTemplates ()
CWMTemplateRegistryGetRegistry ()

Protected Member Functions

virtual objects::CUser_object * x_ChildToUserObject (const IWMContainer::TChild *child) const
virtual Fl_Widget * x_CreateWindowFromUserObject (IWMContainer *cont, const IWMPosition *pos, const objects::CUser_object &obj)
virtual void x_OnSaveLayout (IWMContainer &cont, const IWMPosition *pos)
CUser_objectViewToUserObject (const CView &view) const
string ViewClassFromUserObject (const CUser_object &obj) const
void x_OnInsertContainer (IWMContainer &container, const IWMPosition &pos)
 DECLARE_EVENT_MAP ()

Protected Attributes

CGBenchWorkspaceWindowm_Workspace
CWMTemplateRegistry m_TemplRegistry
bool m_SaveViews


Constructor & Destructor Documentation

CGBenchWindowManager::CGBenchWindowManager CGBenchWorkspaceWindow workspace  ) 
 

CGBenchWindowManager.

Definition at line 378 of file gbench_frame.cpp.


Member Function Documentation

CGBenchWindowManager::DECLARE_EVENT_MAP  )  [protected]
 

Reimplemented from CWindowManager.

void CGBenchWindowManager::GetPopupItems IWMContainer container,
const IWMPosition pos,
vector< CMenuItem * > &  items
[virtual]
 

Reimplemented from CWindowManager.

Definition at line 389 of file gbench_frame.cpp.

References CWindowManager::GetPopupItems().

CWMTemplateRegistry & CGBenchWindowManager::GetRegistry  ) 
 

Definition at line 468 of file gbench_frame.cpp.

References m_TemplRegistry.

Referenced by CGBenchWorkspaceWindow::OnApplyTemplate().

void CGBenchWindowManager::InstantiateLayout IWMContainer cont,
const IWMPosition pos,
const objects::CUser_object &  obj
 

Definition at line 509 of file gbench_frame.cpp.

References eDialog_Ok, eIcon_Stop, eWrap, CTabControl::GetTabsCount(), CWindowManager::m_RootCont, NcbiMessageBox(), pos, and x_CreateWindowFromUserObject().

Referenced by CGBenchWorkspaceWindow::OnApplyTemplate(), and x_OnInsertContainer().

void CGBenchWindowManager::LoadTemplates  )  [inline]
 

Definition at line 119 of file gbench_frame.hpp.

References CWMTemplateRegistry::LoadTemplates(), and m_TemplRegistry.

Referenced by CGBenchWorkspaceWindow::Init().

void CGBenchWindowManager::OnConfigTemplates  ) 
 

Definition at line 458 of file gbench_frame.cpp.

References CDialog::CenterOnActive(), eOK, m_TemplRegistry, CWMTemplateRegistry::SaveCustomTemplates(), and CDialog::ShowModal().

bool CGBenchWindowManager::OnContainerCommand IWMContainer container,
const IWMPosition pos,
TCmdID  cmd
[virtual]
 

Reimplemented from CWindowManager.

Definition at line 412 of file gbench_frame.cpp.

References _ASSERT, CGBenchWorkspaceWindow::CreateNewView(), eCmdInsertTemplate, m_Workspace, CWindowManager::OnContainerCommand(), pos, and x_OnInsertContainer().

bool CGBenchWindowManager::OnContainerUpdateCommand IWMContainer container,
const IWMPosition pos,
TCmdID  cmd,
ICmdUI cmd_ui
[virtual]
 

Reimplemented from CWindowManager.

Definition at line 431 of file gbench_frame.cpp.

References _ASSERT, m_Workspace, CCommandTarget::OnUpdateCommand(), pos, and CWindowManager::x_OnContainerUpdateCommand().

string CGBenchWindowManager::ViewClassFromUserObject const CUser_object obj  )  const [protected]
 

Definition at line 586 of file gbench_frame.cpp.

References _ASSERT, CUser_field_Base::GetData(), CUser_object::GetField(), CUser_object_Base::GetType(), kPluginTag, and kViewTag.

CUser_object * CGBenchWindowManager::ViewToUserObject const CView view  )  const [protected]
 

Definition at line 576 of file gbench_frame.cpp.

References CUser_object::AddField(), CViewBase::GetPluginName(), kPluginTag, kViewTag, and CUser_object_Base::SetType().

Referenced by x_ChildToUserObject().

CUser_object * CGBenchWindowManager::x_ChildToUserObject const IWMContainer::TChild child  )  const [protected, virtual]
 

Reimplemented from CWindowManager.

Definition at line 533 of file gbench_frame.cpp.

References m_SaveViews, ViewToUserObject(), CWindowManager::x_ChildToUserObject(), and CWindowManager::x_GetClientByWidget().

virtual Fl_Widget* CGBenchWindowManager::x_CreateWindowFromUserObject IWMContainer cont,
const IWMPosition pos,
const objects::CUser_object &  obj
[protected, virtual]
 

Reimplemented from CWindowManager.

Referenced by InstantiateLayout().

void CGBenchWindowManager::x_OnInsertContainer IWMContainer container,
const IWMPosition pos
[protected]
 

Definition at line 444 of file gbench_frame.cpp.

References CDialog::CenterOnActive(), eOK, CTemplateDlg::GetSelectedName(), CWMTemplateRegistry::GetTemplateLayout(), InstantiateLayout(), m_TemplRegistry, pos, and CDialog::ShowModal().

Referenced by OnContainerCommand().

void CGBenchWindowManager::x_OnSaveLayout IWMContainer cont,
const IWMPosition pos
[protected, virtual]
 

Reimplemented from CWindowManager.

Definition at line 473 of file gbench_frame.cpp.

References CDialog::Center(), eOK, IWMContainer::GetChild(), CSaveTemplateDlg::GetComment(), CSaveTemplateDlg::GetName(), CWMTemplateRegistry::GetNames(), IWMContainer::IsOccupied(), CSaveTemplateDlg::IsSaveViews(), m_SaveViews, m_TemplRegistry, pos, and CDialog::ShowModal().


Member Data Documentation

bool CGBenchWindowManager::m_SaveViews [protected]
 

Definition at line 146 of file gbench_frame.hpp.

Referenced by x_ChildToUserObject(), and x_OnSaveLayout().

CWMTemplateRegistry CGBenchWindowManager::m_TemplRegistry [protected]
 

Definition at line 144 of file gbench_frame.hpp.

Referenced by GetRegistry(), LoadTemplates(), OnConfigTemplates(), x_OnInsertContainer(), and x_OnSaveLayout().

CGBenchWorkspaceWindow* CGBenchWindowManager::m_Workspace [protected]
 

Definition at line 143 of file gbench_frame.hpp.

Referenced by OnContainerCommand(), and OnContainerUpdateCommand().


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