NCBI C++ ToolKit
|
Search Toolkit Book for CDockNotebook
CDockNotebook - an extended version of wxAuiNotebook capable of working with Dock Manager and Window Manager. More...
#include <gui/widgets/wx/dock_notebook.hpp>
Public Member Functions | |
CDockNotebook (CDockContainer &container) | |
virtual | ~CDockNotebook () |
void | InsertPageAtHitPoint (wxWindow *page, const wxString &caption) |
void | RefreshPageByWindow (wxWindow *page) |
virtual EDockEffect | DropTest (const wxPoint &screen_pt, wxWindow *&target) |
void | OnPageClose (wxAuiNotebookEvent &event) |
void | OnPageChanged (wxAuiNotebookEvent &event) |
void | OnPageChanging (wxAuiNotebookEvent &event) |
void | OnTabBeginDrag (wxAuiNotebookEvent &event) |
void | OnTabEndDrag (wxAuiNotebookEvent &event) |
void | OnTabDragMotion (wxAuiNotebookEvent &event) |
void | MakeSelectionVisible () |
IDockableWindow implementation | |
@( | |
virtual CDockContainer * | GetDockContainer () |
virtual void | SetDockContainer (CDockContainer *cont) |
IDockContWindow implementation | |
virtual void | Cont_Remove (wxWindow *child) |
virtual void | Cont_Replace (wxWindow *old_child, wxWindow *new_child) |
Public Member Functions inherited from IDockableWindow | |
virtual | ~IDockableWindow () |
Public Member Functions inherited from IDockContWindow | |
virtual | ~IDockContWindow () |
Public Member Functions inherited from IDockDropTarget | |
virtual | ~IDockDropTarget () |
Public Attributes | |
CDockContainer * | m_DockContainer |
bool | m_OutsideDrag |
int | m_HitTabIndex |
Protected Member Functions | |
string | x_GetPageNameByWindow (wxWindow *window) |
Private Member Functions | |
DECLARE_EVENT_TABLE () | |
CDockNotebook - an extended version of wxAuiNotebook capable of working with Dock Manager and Window Manager.
Definition at line 51 of file dock_notebook.hpp.
CDockNotebook::CDockNotebook | ( | CDockContainer & | container | ) |
Definition at line 80 of file dock_notebook.cpp.
References wxT.
|
virtual |
Definition at line 98 of file dock_notebook.cpp.
|
virtual |
Implements IDockContWindow.
Definition at line 115 of file dock_notebook.cpp.
References m_DockContainer.
|
virtual |
Implements IDockContWindow.
Definition at line 134 of file dock_notebook.cpp.
References label, m_DockContainer, ToWxString(), and x_GetPageNameByWindow().
|
private |
|
virtual |
Implements IDockDropTarget.
Definition at line 211 of file dock_notebook.cpp.
References eNoEffect, ePutInTab, m_HitTabIndex, and NULL.
|
virtual |
Implements IDockableWindow.
Definition at line 104 of file dock_notebook.cpp.
References m_DockContainer.
void CDockNotebook::InsertPageAtHitPoint | ( | wxWindow * | page, |
const wxString & | caption | ||
) |
Definition at line 198 of file dock_notebook.cpp.
References m_HitTabIndex.
Referenced by CDockContainer::x_Visible_AddChildToContainer().
void CDockNotebook::MakeSelectionVisible | ( | ) |
Definition at line 437 of file dock_notebook.cpp.
References NULL.
Referenced by CDockContainer::x_Visible_AddChildToContainer().
void CDockNotebook::OnPageChanged | ( | wxAuiNotebookEvent & | event | ) |
Definition at line 287 of file dock_notebook.cpp.
References BroadcastCommandToChildWindows(), eCmdParentHide, eCmdParentShow, CDockContainer::GetClientsInWindow(), IWMClient::GetWindow(), and m_DockContainer.
void CDockNotebook::OnPageChanging | ( | wxAuiNotebookEvent & | event | ) |
Definition at line 256 of file dock_notebook.cpp.
References CDockContainer::GetClientsInWindow(), IWMClient::GetWindow(), and m_DockContainer.
void CDockNotebook::OnPageClose | ( | wxAuiNotebookEvent & | event | ) |
Definition at line 245 of file dock_notebook.cpp.
References m_DockContainer, and CDockContainer::OnTabClosePressed().
void CDockNotebook::OnTabBeginDrag | ( | wxAuiNotebookEvent & | event | ) |
Definition at line 326 of file dock_notebook.cpp.
References m_OutsideDrag.
void CDockNotebook::OnTabDragMotion | ( | wxAuiNotebookEvent & | event | ) |
Definition at line 343 of file dock_notebook.cpp.
References _ASSERT, m_DockContainer, and m_OutsideDrag.
void CDockNotebook::OnTabEndDrag | ( | wxAuiNotebookEvent & | event | ) |
Definition at line 430 of file dock_notebook.cpp.
References m_DockContainer, and CDockContainer::OnUpdateTabOrder().
void CDockNotebook::RefreshPageByWindow | ( | wxWindow * | page | ) |
Definition at line 150 of file dock_notebook.cpp.
References label, ToWxString(), and x_GetPageNameByWindow().
Referenced by CWindowManager::RefreshClient().
|
virtual |
Implements IDockableWindow.
Definition at line 110 of file dock_notebook.cpp.
References m_DockContainer.
|
protected |
Definition at line 167 of file dock_notebook.cpp.
References IWMClient::eContent, IWMClient::eDefault, IWMClient::eDetailed, IWMClient::eTypeAndContent, CDockPanel::GetClient(), IWMClient::GetClientLabel(), CGuiRegistry::GetInstance(), CGuiRegistry::GetInt(), and l().
Referenced by Cont_Replace(), and RefreshPageByWindow().
CDockContainer* CDockNotebook::m_DockContainer |
Definition at line 95 of file dock_notebook.hpp.
Referenced by Cont_Remove(), Cont_Replace(), GetDockContainer(), OnPageChanged(), OnPageChanging(), OnPageClose(), OnTabDragMotion(), OnTabEndDrag(), and SetDockContainer().
int CDockNotebook::m_HitTabIndex |
Definition at line 98 of file dock_notebook.hpp.
Referenced by DropTest(), and InsertPageAtHitPoint().
bool CDockNotebook::m_OutsideDrag |
Definition at line 97 of file dock_notebook.hpp.
Referenced by OnTabBeginDrag(), and OnTabDragMotion().