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

Search Toolkit Book for CObjectListWidgetSel

#include <gui/widgets/object_list/object_list_widget_sel.hpp>

+ Inheritance diagram for CObjectListWidgetSel:
+ Collaboration diagram for CObjectListWidgetSel:

Public Member Functions

 CObjectListWidgetSel ()
 Constructors. More...
 
 CObjectListWidgetSel (wxWindow *parent, wxWindowID id=ID_COBJECTLISTWIDGETSEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(350, 200), long style=wxTAB_TRAVERSAL)
 
bool Create (wxWindow *parent, wxWindowID id=ID_COBJECTLISTWIDGETSEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(350, 200), long style=wxTAB_TRAVERSAL)
 Creation. More...
 
 ~CObjectListWidgetSel ()
 Destructor. More...
 
void Init ()
 Initialises member variables. More...
 
virtual void SetRegistryPath (const string &path)
 IRegSettings. More...
 
virtual void SaveSettings () const
 
virtual void LoadSettings ()
 
void SetTitle (const wxString &value)
 
void SetFilterDuplicates (bool filter)
 
void CreateControls ()
 Creates the controls and sizers. More...
 
virtual bool TransferDataToWindow ()
 Transfer data to the window. More...
 
virtual bool TransferDataFromWindow ()
 Transfer data from the window. More...
 
void SetAccessionValidator (IObjectListAccValidator *validator)
 
void ShowNuclProtButtons (void)
 
void EnableGroups (bool enable=true)
 
void SetDefaultSelection (const wxString &selection)
 
void OnAccessionUpdated (wxCommandEvent &event)
 wxEVT_COMMAND_TEXT_UPDATED event handler for ID_ADDACC_CTRL More...
 
void OnAddAccessionClick (wxCommandEvent &event)
 wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_ADDACC_BTN More...
 
void OnFilterUpdated (wxCommandEvent &event)
 wxEVT_COMMAND_TEXT_UPDATED event handler for ID_FILTER More...
 
void OnNucleotidesSelected (wxCommandEvent &event)
 wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_NUC_RDBTN More...
 
void OnProteinsSelected (wxCommandEvent &event)
 wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_PROT_RDBTN More...
 
void OnSelectAll (wxCommandEvent &event)
 wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON_SELECT_ALL More...
 
void OnGroupClick (wxCommandEvent &event)
 wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_TOGGLEGRP More...
 
void OnCategorySelected (wxCommandEvent &event)
 wxEVT_COMMAND_CHOICE_SELECTED event handler for ID_CATCHOICE More...
 
void OnSelectionUpdate (wxListEvent &event)
 
CIRef< IObjectCombinatorGetCombinator () const
 
void SetCombinator (CIRef< IObjectCombinator > value)
 
bool GetDoSelectAll () const
 
void SetDoSelectAll (bool value)
 
TObjectsMap GetGroupsMap () const
 
void SetGroupsMap (TObjectsMap value)
 
TConstScopedObjects GetSelection () const
 
void SetSelection (TConstScopedObjects value)
 
wxBitmap GetBitmapResource (const wxString &name)
 Retrieves bitmap resources. More...
 
wxIcon GetIconResource (const wxString &name)
 Retrieves icon resources. More...
 
const TObjectListMapGetObjects () const
 
void SetObjects (const TObjectListMap &value)
 
void SetObjects (const TObjectsMap *value)
 
- Public Member Functions inherited from IRegSettings
virtual ~IRegSettings ()
 

Static Public Member Functions

static bool ShowToolTips ()
 Should we show tooltips? More...
 

Private Types

enum  {
  ID_COBJECTLISTWIDGETSEL = 10000 , ID_STATICBOX1 = 10001 , ID_ADDACC_CTRL = 10002 , ID_ADDACC_BTN = 10003 ,
  ID_FILTER = 10004 , ID_NUC_RDBTN = 10005 , ID_PROT_RDBTN = 10006 , ID_BUTTON_SELECT_ALL = 10011 ,
  ID_TOGGLEGRP = 10007 , ID_CATCHOICE = 10008 , ID_OBJTABLE = 10009 , ID_GRPTABLE = 10010
}
 Control identifiers. More...
 
typedef map< string, SConstScopedObjectTObjectLabelsMap
 

Private Member Functions

void x_SetUpObjectList (CObjectList *obj_list)
 
CRef< CObjectListx_FilterObjectList (CObjectList *obj_list, string pattern)
 
CRef< CObjectListx_GetObjectList (const wxString &category, TObjectListMap &obj_listmap)
 
void x_CopyUniqueObjects (const CObjectList &src_list, CObjectList &dst_list, TObjectLabelsMap &object_labels)
 
CRef< CObjectListx_FilterDuplicates (TObjectListMap &obj_listmap)
 
void x_FillWithObjects (const wxString &conv)
 
void x_PopulateObjects (CObjectList *obj_list)
 
void x_PopulateGroups ()
 
void x_UpdateUI ()
 
void x_UpdateAddBtn ()
 
void x_UpdateSequences ()
 
void x_UpdateTotalRows ()
 

Private Attributes

wxTextCtrl * m_Accession
 
wxButton * m_AddBtn
 
wxTextCtrl * m_FilterText
 
wxRadioButton * m_NucRadio
 
wxRadioButton * m_ProtRadio
 
wxToggleButton * m_ToggleGroups
 
wxChoice * m_CatChoice
 
CObjectListWidgetm_ObjTable
 
CwxTableListCtrlm_GrpTable
 
wxStaticText * m_TotalRows
 
CIRef< IObjectCombinatorm_Combinator
 
bool m_DoSelectAll
 
TObjectsMap m_GroupsMap
 
CGroupTableModelm_GrpTableModel
 
TConstScopedObjects m_Selection
 
TObjectListMap m_ObjectListMap
 
TObjectListMap m_NucObjects
 
TObjectListMap m_ProtObjects
 
wxString m_DefaultSelection
 
bool m_ObjectsPacked
 
bool m_GroupsPacked
 
string m_RegPath
 
bool m_SingleSel
 
bool m_FilterDuplicates
 
string m_Pattern
 
IObjectListAccValidatorm_AccValidator
 
CRef< objects::CScope > m_Scope
 

Detailed Description

Definition at line 104 of file object_list_widget_sel.hpp.

Member Typedef Documentation

◆ TObjectLabelsMap

Definition at line 247 of file object_list_widget_sel.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private

Control identifiers.

Enumerator
ID_COBJECTLISTWIDGETSEL 
ID_STATICBOX1 
ID_ADDACC_CTRL 
ID_ADDACC_BTN 
ID_FILTER 
ID_NUC_RDBTN 
ID_PROT_RDBTN 
ID_BUTTON_SELECT_ALL 
ID_TOGGLEGRP 
ID_CATCHOICE 
ID_OBJTABLE 
ID_GRPTABLE 

Definition at line 231 of file object_list_widget_sel.hpp.

Constructor & Destructor Documentation

◆ CObjectListWidgetSel() [1/2]

CObjectListWidgetSel::CObjectListWidgetSel ( )

Constructors.

CObjectListWidgetSel type definition

CObjectListWidgetSel event table definition

CObjectListWidgetSel constructors

Definition at line 310 of file object_list_widget_sel.cpp.

References Init().

◆ CObjectListWidgetSel() [2/2]

CObjectListWidgetSel::CObjectListWidgetSel ( wxWindow *  parent,
wxWindowID  id = ID_COBJECTLISTWIDGETSEL,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxSize(350, 200),
long  style = wxTAB_TRAVERSAL 
)

◆ ~CObjectListWidgetSel()

CObjectListWidgetSel::~CObjectListWidgetSel ( )

Destructor.

CObjectListWidgetSel destructor

Definition at line 353 of file object_list_widget_sel.cpp.

Member Function Documentation

◆ Create()

bool CObjectListWidgetSel::Create ( wxWindow *  parent,
wxWindowID  id = ID_COBJECTLISTWIDGETSEL,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxSize(350, 200),
long  style = wxTAB_TRAVERSAL 
)

◆ CreateControls()

void CObjectListWidgetSel::CreateControls ( )

◆ EnableGroups()

void CObjectListWidgetSel::EnableGroups ( bool  enable = true)

◆ GetBitmapResource()

wxBitmap CObjectListWidgetSel::GetBitmapResource ( const wxString &  name)

Retrieves bitmap resources.

Get bitmap resources

Definition at line 995 of file object_list_widget_sel.cpp.

◆ GetCombinator()

CIRef<IObjectCombinator> CObjectListWidgetSel::GetCombinator ( ) const
inline

Definition at line 185 of file object_list_widget_sel.hpp.

References m_Combinator.

◆ GetDoSelectAll()

bool CObjectListWidgetSel::GetDoSelectAll ( ) const
inline

Definition at line 188 of file object_list_widget_sel.hpp.

References m_DoSelectAll.

◆ GetGroupsMap()

TObjectsMap CObjectListWidgetSel::GetGroupsMap ( ) const
inline

Definition at line 191 of file object_list_widget_sel.hpp.

References m_GroupsMap.

◆ GetIconResource()

wxIcon CObjectListWidgetSel::GetIconResource ( const wxString &  name)

Retrieves icon resources.

Get icon resources

Definition at line 1008 of file object_list_widget_sel.cpp.

◆ GetObjects()

const TObjectListMap& CObjectListWidgetSel::GetObjects ( ) const
inline

Definition at line 204 of file object_list_widget_sel.hpp.

References m_ObjectListMap.

◆ GetSelection()

TConstScopedObjects CObjectListWidgetSel::GetSelection ( void  ) const
inline

◆ Init()

void CObjectListWidgetSel::Init ( void  )

◆ LoadSettings()

void CObjectListWidgetSel::LoadSettings ( )
virtual

◆ OnAccessionUpdated()

void CObjectListWidgetSel::OnAccessionUpdated ( wxCommandEvent &  event)

wxEVT_COMMAND_TEXT_UPDATED event handler for ID_ADDACC_CTRL

Definition at line 1118 of file object_list_widget_sel.cpp.

References x_UpdateAddBtn().

◆ OnAddAccessionClick()

void CObjectListWidgetSel::OnAddAccessionClick ( wxCommandEvent &  event)

◆ OnCategorySelected()

void CObjectListWidgetSel::OnCategorySelected ( wxCommandEvent &  event)

wxEVT_COMMAND_CHOICE_SELECTED event handler for ID_CATCHOICE

Definition at line 561 of file object_list_widget_sel.cpp.

References x_FillWithObjects(), and x_UpdateUI().

◆ OnFilterUpdated()

void CObjectListWidgetSel::OnFilterUpdated ( wxCommandEvent &  event)

wxEVT_COMMAND_TEXT_UPDATED event handler for ID_FILTER

Definition at line 1017 of file object_list_widget_sel.cpp.

References m_CatChoice, m_FilterText, m_Pattern, ToStdString(), x_FillWithObjects(), x_PopulateGroups(), and x_UpdateUI().

◆ OnGroupClick()

void CObjectListWidgetSel::OnGroupClick ( wxCommandEvent &  event)

wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_TOGGLEGRP

wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_TOGGLEGRP

Definition at line 1105 of file object_list_widget_sel.cpp.

References m_GroupsPacked, m_GrpTable, m_ObjTable, and x_PopulateGroups().

◆ OnNucleotidesSelected()

void CObjectListWidgetSel::OnNucleotidesSelected ( wxCommandEvent &  event)

wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_NUC_RDBTN

Definition at line 1124 of file object_list_widget_sel.cpp.

References x_UpdateSequences().

◆ OnProteinsSelected()

void CObjectListWidgetSel::OnProteinsSelected ( wxCommandEvent &  event)

wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_PROT_RDBTN

Definition at line 1129 of file object_list_widget_sel.cpp.

References x_UpdateSequences().

◆ OnSelectAll()

void CObjectListWidgetSel::OnSelectAll ( wxCommandEvent &  event)

wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON_SELECT_ALL

Definition at line 1134 of file object_list_widget_sel.cpp.

References m_ObjTable, and CwxTableListCtrl::SelectAll().

◆ OnSelectionUpdate()

void CObjectListWidgetSel::OnSelectionUpdate ( wxListEvent &  event)

Definition at line 1150 of file object_list_widget_sel.cpp.

References x_UpdateTotalRows().

◆ SaveSettings()

void CObjectListWidgetSel::SaveSettings ( ) const
virtual

◆ SetAccessionValidator()

void CObjectListWidgetSel::SetAccessionValidator ( IObjectListAccValidator validator)

◆ SetCombinator()

void CObjectListWidgetSel::SetCombinator ( CIRef< IObjectCombinator value)
inline

Definition at line 186 of file object_list_widget_sel.hpp.

References m_Combinator, and rapidjson::value.

Referenced by CConversionResultPanel::Create().

◆ SetDefaultSelection()

void CObjectListWidgetSel::SetDefaultSelection ( const wxString &  selection)
inline

◆ SetDoSelectAll()

void CObjectListWidgetSel::SetDoSelectAll ( bool  value)
inline

◆ SetFilterDuplicates()

void CObjectListWidgetSel::SetFilterDuplicates ( bool  filter)
inline

Definition at line 131 of file object_list_widget_sel.hpp.

References m_FilterDuplicates.

◆ SetGroupsMap()

void CObjectListWidgetSel::SetGroupsMap ( TObjectsMap  value)
inline

Definition at line 192 of file object_list_widget_sel.hpp.

References m_GroupsMap, and rapidjson::value.

◆ SetObjects() [1/2]

void CObjectListWidgetSel::SetObjects ( const TObjectListMap value)
inline

◆ SetObjects() [2/2]

void CObjectListWidgetSel::SetObjects ( const TObjectsMap value)

◆ SetRegistryPath()

virtual void CObjectListWidgetSel::SetRegistryPath ( const string path)
inlinevirtual

◆ SetSelection()

void CObjectListWidgetSel::SetSelection ( TConstScopedObjects  value)
inline

Definition at line 195 of file object_list_widget_sel.hpp.

References m_Selection, and rapidjson::value.

◆ SetTitle()

void CObjectListWidgetSel::SetTitle ( const wxString &  value)

◆ ShowNuclProtButtons()

void CObjectListWidgetSel::ShowNuclProtButtons ( void  )

◆ ShowToolTips()

bool CObjectListWidgetSel::ShowToolTips ( )
static

Should we show tooltips?

Should we show tooltips?

Definition at line 986 of file object_list_widget_sel.cpp.

Referenced by CreateControls().

◆ TransferDataFromWindow()

bool CObjectListWidgetSel::TransferDataFromWindow ( )
virtual

◆ TransferDataToWindow()

bool CObjectListWidgetSel::TransferDataToWindow ( )
virtual

◆ x_CopyUniqueObjects()

void CObjectListWidgetSel::x_CopyUniqueObjects ( const CObjectList src_list,
CObjectList dst_list,
CObjectListWidgetSel::TObjectLabelsMap object_labels 
)
private

◆ x_FillWithObjects()

void CObjectListWidgetSel::x_FillWithObjects ( const wxString &  conv)
private

◆ x_FilterDuplicates()

CRef< CObjectList > CObjectListWidgetSel::x_FilterDuplicates ( TObjectListMap obj_listmap)
private

◆ x_FilterObjectList()

CRef< CObjectList > CObjectListWidgetSel::x_FilterObjectList ( CObjectList obj_list,
string  pattern 
)
private

◆ x_GetObjectList()

CRef< CObjectList > CObjectListWidgetSel::x_GetObjectList ( const wxString &  category,
TObjectListMap obj_listmap 
)
private

◆ x_PopulateGroups()

void CObjectListWidgetSel::x_PopulateGroups ( )
private

◆ x_PopulateObjects()

void CObjectListWidgetSel::x_PopulateObjects ( CObjectList obj_list)
private

◆ x_SetUpObjectList()

void CObjectListWidgetSel::x_SetUpObjectList ( CObjectList obj_list)
private

◆ x_UpdateAddBtn()

void CObjectListWidgetSel::x_UpdateAddBtn ( )
private

Definition at line 545 of file object_list_widget_sel.cpp.

References m_Accession, and m_AddBtn.

Referenced by OnAccessionUpdated(), and x_UpdateUI().

◆ x_UpdateSequences()

void CObjectListWidgetSel::x_UpdateSequences ( )
private

Definition at line 937 of file object_list_widget_sel.cpp.

References m_CatChoice, and x_FillWithObjects().

Referenced by OnNucleotidesSelected(), and OnProteinsSelected().

◆ x_UpdateTotalRows()

void CObjectListWidgetSel::x_UpdateTotalRows ( )
private

Definition at line 1140 of file object_list_widget_sel.cpp.

References m_GrpTable, m_ObjTable, m_ToggleGroups, and m_TotalRows.

Referenced by OnSelectionUpdate().

◆ x_UpdateUI()

void CObjectListWidgetSel::x_UpdateUI ( )
private

Member Data Documentation

◆ m_Accession

wxTextCtrl* CObjectListWidgetSel::m_Accession
private

◆ m_AccValidator

IObjectListAccValidator* CObjectListWidgetSel::m_AccValidator
private

◆ m_AddBtn

wxButton* CObjectListWidgetSel::m_AddBtn
private

Definition at line 215 of file object_list_widget_sel.hpp.

Referenced by CreateControls(), Init(), x_UpdateAddBtn(), and x_UpdateUI().

◆ m_CatChoice

wxChoice* CObjectListWidgetSel::m_CatChoice
private

◆ m_Combinator

CIRef<IObjectCombinator> CObjectListWidgetSel::m_Combinator
private

Definition at line 225 of file object_list_widget_sel.hpp.

Referenced by GetCombinator(), Init(), SetCombinator(), and x_PopulateGroups().

◆ m_DefaultSelection

wxString CObjectListWidgetSel::m_DefaultSelection
private

Definition at line 254 of file object_list_widget_sel.hpp.

Referenced by Init(), SetDefaultSelection(), and TransferDataToWindow().

◆ m_DoSelectAll

bool CObjectListWidgetSel::m_DoSelectAll
private

◆ m_FilterDuplicates

bool CObjectListWidgetSel::m_FilterDuplicates
private

Definition at line 277 of file object_list_widget_sel.hpp.

Referenced by SetFilterDuplicates(), and x_GetObjectList().

◆ m_FilterText

wxTextCtrl* CObjectListWidgetSel::m_FilterText
private

Definition at line 216 of file object_list_widget_sel.hpp.

Referenced by CreateControls(), and OnFilterUpdated().

◆ m_GroupsMap

TObjectsMap CObjectListWidgetSel::m_GroupsMap
private

◆ m_GroupsPacked

bool CObjectListWidgetSel::m_GroupsPacked
private

Definition at line 273 of file object_list_widget_sel.hpp.

Referenced by OnGroupClick(), x_FillWithObjects(), and x_PopulateGroups().

◆ m_GrpTable

CwxTableListCtrl* CObjectListWidgetSel::m_GrpTable
private

◆ m_GrpTableModel

CGroupTableModel* CObjectListWidgetSel::m_GrpTableModel
private

◆ m_NucObjects

TObjectListMap CObjectListWidgetSel::m_NucObjects
private

Definition at line 251 of file object_list_widget_sel.hpp.

Referenced by SetObjects(), TransferDataToWindow(), and x_FillWithObjects().

◆ m_NucRadio

wxRadioButton* CObjectListWidgetSel::m_NucRadio
private

◆ m_ObjectListMap

TObjectListMap CObjectListWidgetSel::m_ObjectListMap
private

◆ m_ObjectsPacked

bool CObjectListWidgetSel::m_ObjectsPacked
private

Definition at line 272 of file object_list_widget_sel.hpp.

Referenced by x_PopulateObjects().

◆ m_ObjTable

CObjectListWidget* CObjectListWidgetSel::m_ObjTable
private

◆ m_Pattern

string CObjectListWidgetSel::m_Pattern
private

Definition at line 279 of file object_list_widget_sel.hpp.

Referenced by OnFilterUpdated(), and x_FillWithObjects().

◆ m_ProtObjects

TObjectListMap CObjectListWidgetSel::m_ProtObjects
private

Definition at line 252 of file object_list_widget_sel.hpp.

Referenced by SetObjects(), TransferDataToWindow(), and x_FillWithObjects().

◆ m_ProtRadio

wxRadioButton* CObjectListWidgetSel::m_ProtRadio
private

◆ m_RegPath

string CObjectListWidgetSel::m_RegPath
private

Definition at line 275 of file object_list_widget_sel.hpp.

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

◆ m_Scope

CRef<objects::CScope> CObjectListWidgetSel::m_Scope
private

Definition at line 283 of file object_list_widget_sel.hpp.

Referenced by Init(), and OnAddAccessionClick().

◆ m_Selection

TConstScopedObjects CObjectListWidgetSel::m_Selection
private

Definition at line 229 of file object_list_widget_sel.hpp.

Referenced by GetSelection(), SetSelection(), and TransferDataFromWindow().

◆ m_SingleSel

bool CObjectListWidgetSel::m_SingleSel
private

Definition at line 276 of file object_list_widget_sel.hpp.

Referenced by Create(), and CreateControls().

◆ m_ToggleGroups

wxToggleButton* CObjectListWidgetSel::m_ToggleGroups
private

◆ m_TotalRows

wxStaticText* CObjectListWidgetSel::m_TotalRows
private

Definition at line 223 of file object_list_widget_sel.hpp.

Referenced by CreateControls(), x_UpdateTotalRows(), and x_UpdateUI().


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