NCBI C++ ToolKit
|
Search Toolkit Book for CSuspectCompoundConstraintPanel
#include <gui/packages/pkg_sequence_edit/suspect_product_rules_constraint_panel.hpp>
Public Member Functions | |
CSuspectCompoundConstraintPanel () | |
CSuspectCompoundConstraintPanel (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL) | |
bool | Create (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL) |
~CSuspectCompoundConstraintPanel () | |
void | Init () |
void | CreateControls () |
wxBitmap | GetBitmapResource (const wxString &name) |
wxIcon | GetIconResource (const wxString &name) |
void | ClearValues (void) |
void | OnAddConstraint (wxCommandEvent &event) |
void | OnRemoveConstraint (wxCommandEvent &event) |
void | OnEditConstraint (wxCommandEvent &event) |
void | AddConstraint (pair< string, CRef< objects::CConstraint_choice > > item, int id) |
void | SetConstraints (const objects::CConstraint_choice_set &constraints) |
bool | IsSetConstraints () |
CRef< objects::CConstraint_choice_set > | GetConstraints () |
Static Public Member Functions | |
static bool | ShowToolTips () |
Private Attributes | |
wxCheckListBox * | m_CheckListBox |
map< string, CRef< objects::CConstraint_choice > > | m_label_to_constraint |
Definition at line 70 of file suspect_product_rules_constraint_panel.hpp.
CSuspectCompoundConstraintPanel::CSuspectCompoundConstraintPanel | ( | ) |
CSuspectCompoundConstraintPanel event table definition
CSuspectCompoundConstraintPanel constructors
Definition at line 73 of file suspect_product_rules_constraint_panel.cpp.
References Init().
CSuspectCompoundConstraintPanel::CSuspectCompoundConstraintPanel | ( | wxWindow * | parent, |
wxWindowID | id = wxID_ANY , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
Definition at line 78 of file suspect_product_rules_constraint_panel.cpp.
References Create(), Init(), and ncbi::grid::netcache::search::fields::size.
CSuspectCompoundConstraintPanel::~CSuspectCompoundConstraintPanel | ( | ) |
CSuspectCompoundConstraintPanel destructor
Definition at line 109 of file suspect_product_rules_constraint_panel.cpp.
void CSuspectCompoundConstraintPanel::AddConstraint | ( | pair< string, CRef< objects::CConstraint_choice > > | item, |
int | id | ||
) |
Definition at line 238 of file suspect_product_rules_constraint_panel.cpp.
References map_checker< Container >::erase(), map_checker< Container >::insert(), label, m_CheckListBox, and m_label_to_constraint.
Referenced by CSuspectAddConstraint::OnAccept().
void CSuspectCompoundConstraintPanel::ClearValues | ( | void | ) |
Definition at line 154 of file suspect_product_rules_constraint_panel.cpp.
References map_checker< Container >::clear(), m_CheckListBox, and m_label_to_constraint.
bool CSuspectCompoundConstraintPanel::Create | ( | wxWindow * | parent, |
wxWindowID | id = wxID_ANY , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
CSuspectCompoundConstraintPanel creator
Definition at line 89 of file suspect_product_rules_constraint_panel.cpp.
References CreateControls(), and ncbi::grid::netcache::search::fields::size.
Referenced by CSuspectCompoundConstraintPanel().
void CSuspectCompoundConstraintPanel::CreateControls | ( | ) |
Control creation for CSuspectCompoundConstraintPanel
Definition at line 132 of file suspect_product_rules_constraint_panel.cpp.
References _, ID_CONSTRAINT_ADD, ID_CONSTRAINT_LIST, ID_CONSTRAINT_REMOVE, and m_CheckListBox.
Referenced by Create().
wxBitmap CSuspectCompoundConstraintPanel::GetBitmapResource | ( | const wxString & | name | ) |
Get bitmap resources
Definition at line 173 of file suspect_product_rules_constraint_panel.cpp.
CRef< objects::CConstraint_choice_set > CSuspectCompoundConstraintPanel::GetConstraints | ( | ) |
Definition at line 283 of file suspect_product_rules_constraint_panel.cpp.
References m_label_to_constraint.
Referenced by CAddSuspectProductRule::OnAccept().
wxIcon CSuspectCompoundConstraintPanel::GetIconResource | ( | const wxString & | name | ) |
Get icon resources
Definition at line 186 of file suspect_product_rules_constraint_panel.cpp.
void CSuspectCompoundConstraintPanel::Init | ( | void | ) |
Member initialisation
Definition at line 120 of file suspect_product_rules_constraint_panel.cpp.
References m_CheckListBox, and NULL.
Referenced by CSuspectCompoundConstraintPanel().
bool CSuspectCompoundConstraintPanel::IsSetConstraints | ( | ) |
Definition at line 278 of file suspect_product_rules_constraint_panel.cpp.
References map_checker< Container >::empty(), and m_label_to_constraint.
Referenced by CAddSuspectProductRule::OnAccept().
void CSuspectCompoundConstraintPanel::OnAddConstraint | ( | wxCommandEvent & | event | ) |
Definition at line 196 of file suspect_product_rules_constraint_panel.cpp.
void CSuspectCompoundConstraintPanel::OnEditConstraint | ( | wxCommandEvent & | event | ) |
Definition at line 254 of file suspect_product_rules_constraint_panel.cpp.
References label, m_label_to_constraint, CSuspectAddConstraint::SetConstraint(), and CSuspectAddConstraint::SetEditId().
void CSuspectCompoundConstraintPanel::OnRemoveConstraint | ( | wxCommandEvent & | event | ) |
Definition at line 202 of file suspect_product_rules_constraint_panel.cpp.
References _, map_checker< Container >::erase(), i, set< Key, Compare >::insert(), label, m_CheckListBox, and m_label_to_constraint.
void CSuspectCompoundConstraintPanel::SetConstraints | ( | const objects::CConstraint_choice_set & | constraints | ) |
Definition at line 264 of file suspect_product_rules_constraint_panel.cpp.
References map_checker< Container >::clear(), CSuspectAddConstraint::GetDescription(), label, m_CheckListBox, and m_label_to_constraint.
Referenced by CAddSuspectProductRule::SetRule().
|
static |
Should we show tooltips?
Definition at line 164 of file suspect_product_rules_constraint_panel.cpp.
|
private |
Definition at line 95 of file suspect_product_rules_constraint_panel.hpp.
Referenced by AddConstraint(), ClearValues(), CreateControls(), Init(), OnRemoveConstraint(), and SetConstraints().
|
private |
Definition at line 96 of file suspect_product_rules_constraint_panel.hpp.
Referenced by AddConstraint(), ClearValues(), GetConstraints(), IsSetConstraints(), OnEditConstraint(), OnRemoveConstraint(), and SetConstraints().