NCBI C++ ToolKit
Public Types | Public Member Functions | Static Public Attributes | Protected Types | Protected Member Functions | Protected Attributes | List of all members
CSelectionPanel Class Reference

Search Toolkit Book for CSelectionPanel

CSelectionPanel. More...

#include "selection_panel.hpp"
(Private to src/gui/core.)

+ Inheritance diagram for CSelectionPanel:
+ Collaboration diagram for CSelectionPanel:

Public Types

enum  EDisplayMode { eInvalidDisplayMode = -1 , eTable , eBriefText , eText }
 

Public Member Functions

 CSelectionPanel (ISelectionClient *view)
 
virtual void Create (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize)
 
virtual bool Destroy ()
 
void Init ()
 Initialises member variables. More...
 
void CreateControls ()
 Creates the controls and sizers. More...
 
void SetSelectionService (CSelectionService *service)
 
void GetSelection (TConstScopedObjects &buf) const
 
void Update ()
 
void OnSelServiceStateChange (CSelectionServiceEvent &update)
 
wxWindow * GetCurrentCtrl ()
 
IRegSettings interface implementation
virtual void SetRegistryPath (const string &reg_path)
 
virtual void LoadSettings ()
 
virtual void SaveSettings () const
 
Command handlers
void OnContextMenu (wxContextMenuEvent &event)
 
void OnTargetChanged (wxCommandEvent &event)
 
void OnModeChanged (wxCommandEvent &event)
 
- Public Member Functions inherited from IRegSettings
virtual ~IRegSettings ()
 

Static Public Attributes

static const int scm_ModeCmd = 13000
 

Protected Types

typedef map< int, ISelectionClient * > TIndexToClient
 

Protected Member Functions

void x_InitCurrentWidget ()
 
bool x_ResetSelObjects ()
 
void x_ResetTargetChoice ()
 
void x_ResetObjectWidget ()
 
void x_InitTextWidget ()
 

Protected Attributes

ISelectionClientm_SelView
 
CSelectionServicem_Service
 
TConstScopedObjects m_SelObjects
 
wxChoice * m_TargetChoice
 
CWeakIRef< ISelectionClientm_CurrentClientWeakPtr
 
EDisplayMode m_DisplayMode
 
CObjectListWidgetm_ListWidget
 
CTextItemPanelm_TextWidget
 
string m_RegPath
 
std::unique_ptr< async_jobm_Future
 

Detailed Description

CSelectionPanel.

Definition at line 57 of file selection_panel.hpp.

Member Typedef Documentation

◆ TIndexToClient

Definition at line 121 of file selection_panel.hpp.

Member Enumeration Documentation

◆ EDisplayMode

Enumerator
eInvalidDisplayMode 
eTable 
eBriefText 
eText 

Definition at line 66 of file selection_panel.hpp.

Constructor & Destructor Documentation

◆ CSelectionPanel()

CSelectionPanel::CSelectionPanel ( ISelectionClient view)

Definition at line 116 of file selection_panel.cpp.

References Init().

Member Function Documentation

◆ Create()

void CSelectionPanel::Create ( wxWindow *  parent,
wxWindowID  id = wxID_ANY,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize 
)
virtual

◆ CreateControls()

void CSelectionPanel::CreateControls ( )

◆ Destroy()

bool CSelectionPanel::Destroy ( void  )
virtual

Definition at line 141 of file selection_panel.cpp.

Referenced by CSelectionView::DestroyViewWindow().

◆ GetCurrentCtrl()

wxWindow * CSelectionPanel::GetCurrentCtrl ( )

Definition at line 227 of file selection_panel.cpp.

References eTable, m_DisplayMode, m_ListWidget, and m_TextWidget.

◆ GetSelection()

void CSelectionPanel::GetSelection ( TConstScopedObjects buf) const

◆ Init()

void CSelectionPanel::Init ( void  )

◆ LoadSettings()

void CSelectionPanel::LoadSettings ( )
virtual

◆ OnContextMenu()

void CSelectionPanel::OnContextMenu ( wxContextMenuEvent &  event)

Definition at line 285 of file selection_panel.cpp.

References CleanupSeparators(), data, and NULL.

◆ OnModeChanged()

void CSelectionPanel::OnModeChanged ( wxCommandEvent &  event)

◆ OnSelServiceStateChange()

void CSelectionPanel::OnSelServiceStateChange ( CSelectionServiceEvent update)

◆ OnTargetChanged()

void CSelectionPanel::OnTargetChanged ( wxCommandEvent &  event)

Definition at line 306 of file selection_panel.cpp.

References x_ResetObjectWidget().

◆ SaveSettings()

void CSelectionPanel::SaveSettings ( ) const
virtual

◆ SetRegistryPath()

void CSelectionPanel::SetRegistryPath ( const string reg_path)
virtual

Implements IRegSettings.

Definition at line 245 of file selection_panel.cpp.

References m_RegPath.

Referenced by CSelectionView::SetRegistryPath().

◆ SetSelectionService()

void CSelectionPanel::SetSelectionService ( CSelectionService service)

Definition at line 235 of file selection_panel.cpp.

References m_CurrentClientWeakPtr, m_Service, NULL, and Update().

Referenced by CSelectionView::SetWorkbench().

◆ Update()

void CSelectionPanel::Update ( void  )

◆ x_InitCurrentWidget()

void CSelectionPanel::x_InitCurrentWidget ( )
protected

◆ x_InitTextWidget()

void CSelectionPanel::x_InitTextWidget ( )
protected

◆ x_ResetObjectWidget()

void CSelectionPanel::x_ResetObjectWidget ( )
protected

◆ x_ResetSelObjects()

bool CSelectionPanel::x_ResetSelObjects ( )
protected

◆ x_ResetTargetChoice()

void CSelectionPanel::x_ResetTargetChoice ( )
protected

Member Data Documentation

◆ m_CurrentClientWeakPtr

CWeakIRef<ISelectionClient> CSelectionPanel::m_CurrentClientWeakPtr
protected

◆ m_DisplayMode

EDisplayMode CSelectionPanel::m_DisplayMode
protected

◆ m_Future

std::unique_ptr<async_job> CSelectionPanel::m_Future
protected

Definition at line 139 of file selection_panel.hpp.

Referenced by x_InitTextWidget().

◆ m_ListWidget

CObjectListWidget* CSelectionPanel::m_ListWidget
protected

◆ m_RegPath

string CSelectionPanel::m_RegPath
protected

Definition at line 137 of file selection_panel.hpp.

Referenced by LoadSettings(), SaveSettings(), and SetRegistryPath().

◆ m_SelObjects

TConstScopedObjects CSelectionPanel::m_SelObjects
protected

Definition at line 125 of file selection_panel.hpp.

Referenced by x_InitCurrentWidget(), x_InitTextWidget(), and x_ResetSelObjects().

◆ m_SelView

ISelectionClient* CSelectionPanel::m_SelView
protected

◆ m_Service

CSelectionService* CSelectionPanel::m_Service
protected

◆ m_TargetChoice

wxChoice* CSelectionPanel::m_TargetChoice
protected

Definition at line 127 of file selection_panel.hpp.

Referenced by CreateControls(), Init(), x_ResetSelObjects(), and x_ResetTargetChoice().

◆ m_TextWidget

CTextItemPanel* CSelectionPanel::m_TextWidget
protected

◆ scm_ModeCmd

const int CSelectionPanel::scm_ModeCmd = 13000
static

Definition at line 64 of file selection_panel.hpp.

Referenced by CreateControls(), and OnModeChanged().


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