NCBI C++ ToolKit
|
Search Toolkit Book for ISelectionClient
ISelectionClient - represents an object that support a notion of selection. More...
#include <gui/core/selection_service.hpp>
Public Member Functions | |
virtual | ~ISelectionClient () |
virtual void | GetSelection (TConstScopedObjects &objects) const =0 |
shall return data objects representing selected things, return one data object for every selected thing. More... | |
virtual void | SetSelectionService (ISelectionService *service)=0 |
virtual string | GetSelClientLabel ()=0 |
returns a string identifying the client in UI More... | |
virtual void | GetSelection (CSelectionEvent &evt) const =0 |
get selection for broadcasting More... | |
virtual void | SetSelection (CSelectionEvent &evt)=0 |
set broadcasted selection More... | |
virtual void | GetMainObject (TConstScopedObjects &objects) const =0 |
Adds the main data objects represented by the client to "objects". More... | |
virtual void | GetActiveObjects (TConstScopedObjects &objects) const |
virtual void | GetActiveObjects (vector< TConstScopedObjects > &sel) |
Prioritized active objects. More... | |
virtual void | BroadcastSelection () |
ISelectionClient - represents an object that support a notion of selection.
ISelectionClient provides functions for setiing and getting selections
Definition at line 88 of file selection_service.hpp.
|
inlinevirtual |
Definition at line 91 of file selection_service.hpp.
|
inlinevirtual |
Reimplemented in CSelectionClient, CProjectView, and CDataMiningView.
Definition at line 129 of file selection_service.hpp.
|
inlinevirtual |
Reimplemented in CTextView, and CSimpleProjectView.
Definition at line 114 of file selection_service.hpp.
References GetMainObject(), and GetSelection().
Referenced by CSelectionService::GetActiveObjects(), and GetViewObjects().
|
inlinevirtual |
Prioritized active objects.
Reimplemented in CTextView, and CSimpleProjectView.
Definition at line 121 of file selection_service.hpp.
References GetMainObject(), and GetSelection().
|
pure virtual |
Adds the main data objects represented by the client to "objects".
Implementation shall not clear the container as it can be used for accumulating objects.
Implemented in CTableViewWithTextViewNav, CVcfTableView, CTextView, CSequinDesktopView, CSeqTextView, CMPCrossAlignView, CTableView, CSimpleProjectView, CSelectionView, CProjectTreeView, CDataMiningView, CProjectView, and CSelectionClient.
Referenced by CProjectService::FindView(), CProjectService::FindViews(), GetActiveObjects(), GetViewObjects(), CLocalFileRestorer::RestoreFile(), sAddScopedObjectCommands(), and CProjectTreePanel::x_RefreshProjectTables().
|
pure virtual |
returns a string identifying the client in UI
Implemented in CSelectionView, CSelectionClient, CProjectViewBase, CProjectTreeView, and CDataMiningView.
Referenced by CSelectionPanel::x_ResetTargetChoice().
|
pure virtual |
get selection for broadcasting
Implemented in CTableViewWithTextViewNav, CVcfTableView, CTextView, CSelectionView, CSequinDesktopView, CViewGraphic, CFeatTableView, CSeqTextView, CPhyTreeView, CMultiAlignView, CMPCrossAlignView, CDotMatrixView, CCrossAlignView, CAnnotCompareView, CAlignSpanView, CTableView, CSimpleProjectView, CSelectionClient, CProjectView, CProjectTreeView, and CDataMiningView.
|
pure virtual |
shall return data objects representing selected things, return one data object for every selected thing.
Implementation shall not clear the container as it can be used for accumulating objects.
Implemented in CTableViewWithTextViewNav, CVcfTableView, CTextView, CSequinDesktopView, CViewGraphic, CFeatTableView, CSeqTextView, CPhyTreeView, CMultiAlignView, CMPCrossAlignView, CDotMatrixView, CCrossAlignView, CAnnotCompareView, CAlignSpanView, CTableView, CSimpleProjectView, CSelectionView, CSelectionClient, CProjectTreeView, CDataMiningView, and CProjectView.
Referenced by GetActiveObjects(), CSelectionService::GetCurrentSelection(), and sAddScopedObjectCommands().
|
pure virtual |
set broadcasted selection
Implemented in CSelectionView, CMPCrossAlignView, CProjectView, CProjectTreeView, CDataMiningView, and CSelectionClient.
Referenced by CSelectionService::x_Broadcast().
|
pure virtual |
Implemented in CSelectionView, CSelectionClient, CProjectView, CProjectTreeView, and CDataMiningView.