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

Search Toolkit Book for CStringConstraintSelect

#include <gui/packages/pkg_sequence_edit/string_constraint_select.hpp>

+ Inheritance diagram for CStringConstraintSelect:
+ Collaboration diagram for CStringConstraintSelect:

Public Member Functions

 CStringConstraintSelect ()
 Constructors. More...
 
 CStringConstraintSelect (wxWindow *parent, CSeqTableGridPanel *grid_panel, wxArrayString &choices, wxWindowID id=10000, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
 
bool Create (wxWindow *parent, wxWindowID id=10000, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
 Creation. More...
 
 ~CStringConstraintSelect ()
 Destructor. More...
 
void Init ()
 Initialises member variables. More...
 
void CreateControls ()
 Creates the controls and sizers. More...
 
void OnSelectAll (wxCommandEvent &event)
 
void OnUnselectAll (wxCommandEvent &event)
 
void OnApply (wxCommandEvent &event)
 
wxBitmap GetBitmapResource (const wxString &name)
 Retrieves bitmap resources. More...
 
wxIcon GetIconResource (const wxString &name)
 Retrieves icon resources. More...
 
void SetColumns (wxArrayString &columns)
 
void UpdateCountSelectedDisplay (int num)
 

Static Public Member Functions

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

Private Member Functions

int GetConstrainedColumn ()
 
void GetSelectedRows (set< int > &selected)
 

Private Attributes

CStringConstraintPanelm_StringConstraintPanel
 
CSeqTableGridPanelm_GridPanel
 
wxGrid * m_Grid
 
wxArrayString * m_Choices
 
wxRadioButton * m_CheckWhereButton
 
wxRadioButton * m_UncheckWhereButton
 
wxRadioButton * m_AddButton
 
wxRadioButton * m_ExtractButton
 
wxChoice * m_ChoiceList
 
wxStaticText * m_Num
 

Detailed Description

CStringConstraintSelect class declaration

Definition at line 79 of file string_constraint_select.hpp.

Constructor & Destructor Documentation

◆ CStringConstraintSelect() [1/2]

CStringConstraintSelect::CStringConstraintSelect ( )

Constructors.

Definition at line 84 of file string_constraint_select.cpp.

References Init().

◆ CStringConstraintSelect() [2/2]

CStringConstraintSelect::CStringConstraintSelect ( wxWindow *  parent,
CSeqTableGridPanel grid_panel,
wxArrayString &  choices,
wxWindowID  id = 10000,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxSize(400, 300),
long  style = wxTAB_TRAVERSAL 
)

◆ ~CStringConstraintSelect()

CStringConstraintSelect::~CStringConstraintSelect ( )

Destructor.

Definition at line 121 of file string_constraint_select.cpp.

Member Function Documentation

◆ Create()

bool CStringConstraintSelect::Create ( wxWindow *  parent,
wxWindowID  id = 10000,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxSize(400, 300),
long  style = wxTAB_TRAVERSAL 
)

Creation.

Definition at line 101 of file string_constraint_select.cpp.

References CreateControls(), and ncbi::grid::netcache::search::fields::size.

Referenced by CStringConstraintSelect().

◆ CreateControls()

void CStringConstraintSelect::CreateControls ( )

◆ GetBitmapResource()

wxBitmap CStringConstraintSelect::GetBitmapResource ( const wxString &  name)

Retrieves bitmap resources.

Definition at line 216 of file string_constraint_select.cpp.

◆ GetConstrainedColumn()

int CStringConstraintSelect::GetConstrainedColumn ( )
private

Definition at line 255 of file string_constraint_select.cpp.

References i, m_ChoiceList, and m_Grid.

Referenced by OnApply().

◆ GetIconResource()

wxIcon CStringConstraintSelect::GetIconResource ( const wxString &  name)

Retrieves icon resources.

Definition at line 229 of file string_constraint_select.cpp.

◆ GetSelectedRows()

void CStringConstraintSelect::GetSelectedRows ( set< int > &  selected)
private

Definition at line 269 of file string_constraint_select.cpp.

References i, set< Key, Compare >::insert(), and m_Grid.

Referenced by OnApply().

◆ Init()

void CStringConstraintSelect::Init ( void  )

Initialises member variables.

Definition at line 132 of file string_constraint_select.cpp.

Referenced by CStringConstraintSelect().

◆ OnApply()

void CStringConstraintSelect::OnApply ( wxCommandEvent &  event)

◆ OnSelectAll()

void CStringConstraintSelect::OnSelectAll ( wxCommandEvent &  event)

◆ OnUnselectAll()

void CStringConstraintSelect::OnUnselectAll ( wxCommandEvent &  event)

◆ SetColumns()

void CStringConstraintSelect::SetColumns ( wxArrayString &  columns)
inline

Definition at line 121 of file string_constraint_select.hpp.

References columns, and m_ChoiceList.

Referenced by SrcEditDialog::ResetSubPanels().

◆ ShowToolTips()

bool CStringConstraintSelect::ShowToolTips ( )
static

Should we show tooltips?

Definition at line 207 of file string_constraint_select.cpp.

◆ UpdateCountSelectedDisplay()

void CStringConstraintSelect::UpdateCountSelectedDisplay ( int  num)

Member Data Documentation

◆ m_AddButton

wxRadioButton * CStringConstraintSelect::m_AddButton
private

Definition at line 134 of file string_constraint_select.hpp.

Referenced by CreateControls(), and OnApply().

◆ m_CheckWhereButton

wxRadioButton* CStringConstraintSelect::m_CheckWhereButton
private

Definition at line 134 of file string_constraint_select.hpp.

Referenced by CreateControls(), and OnApply().

◆ m_ChoiceList

wxChoice* CStringConstraintSelect::m_ChoiceList
private

Definition at line 135 of file string_constraint_select.hpp.

Referenced by CreateControls(), GetConstrainedColumn(), and SetColumns().

◆ m_Choices

wxArrayString* CStringConstraintSelect::m_Choices
private

Definition at line 133 of file string_constraint_select.hpp.

Referenced by CreateControls().

◆ m_ExtractButton

wxRadioButton * CStringConstraintSelect::m_ExtractButton
private

Definition at line 134 of file string_constraint_select.hpp.

Referenced by CreateControls().

◆ m_Grid

wxGrid* CStringConstraintSelect::m_Grid
private

◆ m_GridPanel

CSeqTableGridPanel* CStringConstraintSelect::m_GridPanel
private

Definition at line 131 of file string_constraint_select.hpp.

Referenced by OnApply(), OnSelectAll(), and OnUnselectAll().

◆ m_Num

wxStaticText* CStringConstraintSelect::m_Num
private

Definition at line 136 of file string_constraint_select.hpp.

Referenced by CreateControls(), and UpdateCountSelectedDisplay().

◆ m_StringConstraintPanel

CStringConstraintPanel* CStringConstraintSelect::m_StringConstraintPanel
private

Definition at line 130 of file string_constraint_select.hpp.

Referenced by CreateControls(), and OnApply().

◆ m_UncheckWhereButton

wxRadioButton * CStringConstraintSelect::m_UncheckWhereButton
private

Definition at line 134 of file string_constraint_select.hpp.

Referenced by CreateControls().


The documentation for this class was generated from the following files:
Modified on Mon May 20 04:58:36 2024 by modify_doxy.py rev. 669887