NCBI C++ ToolKit
Classes | Public Types | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
CMinPanelContainer Class Reference

Search Toolkit Book for CMinPanelContainer

CMinPanelContainer. More...

#include <gui/widgets/wx/min_panel_container.hpp>

+ Inheritance diagram for CMinPanelContainer:
+ Collaboration diagram for CMinPanelContainer:

Classes

struct  SItem
 

Public Types

typedef wxPanel TParent
 

Public Member Functions

 CMinPanelContainer (wxWindow *parent, CDockManager &manager)
 
virtual ~CMinPanelContainer ()
 
void AddClient (CDockPanel &panel)
 
void RemoveClient (CDockPanel &panel)
 
bool HasClient (CDockPanel &panel) const
 
virtual bool Layout ()
 
virtual wxSize DoGetBestSize () const
 
void OnPaint (wxPaintEvent &event)
 
void OnSize (wxSizeEvent &event)
 
void OnContextMenu (wxContextMenuEvent &event)
 
void OnLeftClick (wxMouseEvent &event)
 
void OnDockPanelCommand (wxCommandEvent &event)
 
void OnRestoreWindow (wxCommandEvent &event)
 
void OnShowWindowsDlg (wxCommandEvent &event)
 
void OnUpdateWindowCommand (wxUpdateUIEvent &event)
 

Protected Types

typedef vector< SItem * > TItems
 

Protected Member Functions

const SItemx_FindItemByPanel (CDockPanel *panel) const
 
SItemx_FindItemByPos (const wxPoint &pt)
 
wxSize x_MeasureItem (wxDC &dc, const SItem &descr)
 
void x_DrawItem (wxDC &dc, SItem &descr)
 

Protected Attributes

CDockManagerm_DockManager
 
TItems m_Items
 
wxSize m_PrefSize
 
wxFont m_Font
 
CDockPanelm_MenuPanel
 
map< int, CDockPanel * > m_CmdToPanel
 panel for which context menu is shown More...
 

Private Member Functions

 DECLARE_EVENT_TABLE ()
 

Detailed Description

CMinPanelContainer.

Definition at line 50 of file min_panel_container.hpp.

Member Typedef Documentation

◆ TItems

typedef vector<SItem*> CMinPanelContainer::TItems
protected

Definition at line 85 of file min_panel_container.hpp.

◆ TParent

typedef wxPanel CMinPanelContainer::TParent

Definition at line 55 of file min_panel_container.hpp.

Constructor & Destructor Documentation

◆ CMinPanelContainer()

CMinPanelContainer::CMinPanelContainer ( wxWindow *  parent,
CDockManager manager 
)

◆ ~CMinPanelContainer()

CMinPanelContainer::~CMinPanelContainer ( )
virtual

Definition at line 88 of file min_panel_container.cpp.

Member Function Documentation

◆ AddClient()

void CMinPanelContainer::AddClient ( CDockPanel panel)

◆ DECLARE_EVENT_TABLE()

CMinPanelContainer::DECLARE_EVENT_TABLE ( )
private

◆ DoGetBestSize()

wxSize CMinPanelContainer::DoGetBestSize ( ) const
virtual

Definition at line 266 of file min_panel_container.cpp.

References m_PrefSize.

◆ HasClient()

bool CMinPanelContainer::HasClient ( CDockPanel panel) const

◆ Layout()

bool CMinPanelContainer::Layout ( void  )
virtual

◆ OnContextMenu()

void CMinPanelContainer::OnContextMenu ( wxContextMenuEvent &  event)

◆ OnDockPanelCommand()

void CMinPanelContainer::OnDockPanelCommand ( wxCommandEvent &  event)

◆ OnLeftClick()

void CMinPanelContainer::OnLeftClick ( wxMouseEvent &  event)

◆ OnPaint()

void CMinPanelContainer::OnPaint ( wxPaintEvent &  event)

Definition at line 272 of file min_panel_container.cpp.

References i, m_Items, and x_DrawItem().

◆ OnRestoreWindow()

void CMinPanelContainer::OnRestoreWindow ( wxCommandEvent &  event)

◆ OnShowWindowsDlg()

void CMinPanelContainer::OnShowWindowsDlg ( wxCommandEvent &  event)

◆ OnSize()

void CMinPanelContainer::OnSize ( wxSizeEvent &  event)

Definition at line 149 of file min_panel_container.cpp.

References Layout().

◆ OnUpdateWindowCommand()

void CMinPanelContainer::OnUpdateWindowCommand ( wxUpdateUIEvent &  event)

◆ RemoveClient()

void CMinPanelContainer::RemoveClient ( CDockPanel panel)

◆ x_DrawItem()

void CMinPanelContainer::x_DrawItem ( wxDC &  dc,
SItem descr 
)
protected

◆ x_FindItemByPanel()

const CMinPanelContainer::SItem * CMinPanelContainer::x_FindItemByPanel ( CDockPanel panel) const
protected

Definition at line 157 of file min_panel_container.cpp.

References ITERATE, CMinPanelContainer::SItem::m_DockPanel, m_Items, and NULL.

Referenced by HasClient().

◆ x_FindItemByPos()

CMinPanelContainer::SItem * CMinPanelContainer::x_FindItemByPos ( const wxPoint &  pt)
protected

◆ x_MeasureItem()

wxSize CMinPanelContainer::x_MeasureItem ( wxDC &  dc,
const SItem descr 
)
protected

Member Data Documentation

◆ m_CmdToPanel

map<int, CDockPanel*> CMinPanelContainer::m_CmdToPanel
protected

panel for which context menu is shown

maps automatically generated cmd ids to Dock Panels

Definition at line 103 of file min_panel_container.hpp.

Referenced by OnContextMenu(), and OnRestoreWindow().

◆ m_DockManager

CDockManager& CMinPanelContainer::m_DockManager
protected

◆ m_Font

wxFont CMinPanelContainer::m_Font
protected

Definition at line 98 of file min_panel_container.hpp.

Referenced by Layout(), and x_DrawItem().

◆ m_Items

TItems CMinPanelContainer::m_Items
protected

◆ m_MenuPanel

CDockPanel* CMinPanelContainer::m_MenuPanel
protected

◆ m_PrefSize

wxSize CMinPanelContainer::m_PrefSize
protected

Definition at line 97 of file min_panel_container.hpp.

Referenced by DoGetBestSize(), and Layout().


The documentation for this class was generated from the following files:
Modified on Fri Sep 20 14:58:26 2024 by modify_doxy.py rev. 669887