NCBI C++ ToolKit
|
Search Toolkit Book for CCompoundConstraintPanel
#include <gui/packages/pkg_sequence_edit/constraint_panel.hpp>
Public Member Functions | |
CCompoundConstraintPanel () | |
CCompoundConstraintPanel (wxWindow *parent, objects::CSeq_entry_Handle seh, 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) |
~CCompoundConstraintPanel () | |
void | Init () |
void | CreateControls () |
wxBitmap | GetBitmapResource (const wxString &name) |
wxIcon | GetIconResource (const wxString &name) |
void | SetSelection (int page) |
void | ClearValues (void) |
virtual CRef< CEditingActionConstraint > | GetConstraint (const string &field, CFieldNamePanel::EFieldType field_type, int subtype, const string &ncRNA_class) |
void | OnAddConstraint (wxCommandEvent &event) |
void | OnRemoveConstraint (wxCommandEvent &event) |
void | OnEditConstraint (wxCommandEvent &event) |
void | AddConstraint (pair< string, SFieldTypeAndMatcher > item, int id) |
Public Member Functions inherited from IConstraintPanelBase | |
virtual | ~IConstraintPanelBase () |
Static Public Member Functions | |
static bool | ShowToolTips () |
Private Attributes | |
wxCheckListBox * | m_CheckListBox |
objects::CSeq_entry_Handle | m_TopSeqEntry |
map< string, SFieldTypeAndMatcher > | m_label_to_constraint |
int | m_page |
Definition at line 172 of file constraint_panel.hpp.
CCompoundConstraintPanel::CCompoundConstraintPanel | ( | ) |
CCompoundConstraintPanel event table definition
CCompoundConstraintPanel constructors
Definition at line 546 of file constraint_panel.cpp.
References Init().
CCompoundConstraintPanel::CCompoundConstraintPanel | ( | wxWindow * | parent, |
objects::CSeq_entry_Handle | seh, | ||
wxWindowID | id = wxID_ANY , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
Definition at line 551 of file constraint_panel.cpp.
References Create(), Init(), and ncbi::grid::netcache::search::fields::size.
CCompoundConstraintPanel::~CCompoundConstraintPanel | ( | ) |
CCompoundConstraintPanel destructor
Definition at line 583 of file constraint_panel.cpp.
void CCompoundConstraintPanel::AddConstraint | ( | pair< string, SFieldTypeAndMatcher > | item, |
int | id | ||
) |
Definition at line 753 of file constraint_panel.cpp.
References map_checker< Container >::erase(), map_checker< Container >::insert(), label, m_CheckListBox, and m_label_to_constraint.
Referenced by CAddConstraint::OnAccept().
void CCompoundConstraintPanel::ClearValues | ( | void | ) |
Definition at line 629 of file constraint_panel.cpp.
References map_checker< Container >::clear(), m_CheckListBox, and m_label_to_constraint.
Referenced by CAdvancedConstraintPanel::ClearValues().
bool CCompoundConstraintPanel::Create | ( | wxWindow * | parent, |
wxWindowID | id = wxID_ANY , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
CCompoundConstraintPanel creator
Definition at line 563 of file constraint_panel.cpp.
References CreateControls(), and ncbi::grid::netcache::search::fields::size.
Referenced by CCompoundConstraintPanel().
void CCompoundConstraintPanel::CreateControls | ( | ) |
Control creation for CCompoundConstraintPanel
Definition at line 607 of file constraint_panel.cpp.
References _, ID_CONSTRAINT_ADD, ID_CONSTRAINT_LIST, ID_CONSTRAINT_REMOVE, and m_CheckListBox.
Referenced by Create().
wxBitmap CCompoundConstraintPanel::GetBitmapResource | ( | const wxString & | name | ) |
Get bitmap resources
Definition at line 648 of file constraint_panel.cpp.
|
virtual |
Implements IConstraintPanelBase.
Definition at line 676 of file constraint_panel.cpp.
References CreateEditingActionConstraint(), and m_label_to_constraint.
wxIcon CCompoundConstraintPanel::GetIconResource | ( | const wxString & | name | ) |
Get icon resources
Definition at line 661 of file constraint_panel.cpp.
void CCompoundConstraintPanel::Init | ( | void | ) |
Member initialisation
Definition at line 594 of file constraint_panel.cpp.
References m_CheckListBox, m_page, and NULL.
Referenced by CCompoundConstraintPanel().
void CCompoundConstraintPanel::OnAddConstraint | ( | wxCommandEvent & | event | ) |
Definition at line 709 of file constraint_panel.cpp.
References m_page, m_TopSeqEntry, and CAddConstraint::SetSelection().
void CCompoundConstraintPanel::OnEditConstraint | ( | wxCommandEvent & | event | ) |
Definition at line 769 of file constraint_panel.cpp.
References label, m_label_to_constraint, m_TopSeqEntry, CAddConstraint::SetConstraint(), and CAddConstraint::SetEditId().
void CCompoundConstraintPanel::OnRemoveConstraint | ( | wxCommandEvent & | event | ) |
Definition at line 716 of file constraint_panel.cpp.
References _, map_checker< Container >::erase(), i, set< Key, Compare >::insert(), label, m_CheckListBox, m_label_to_constraint, and ToWxString().
void CCompoundConstraintPanel::SetSelection | ( | int | page | ) |
Definition at line 670 of file constraint_panel.cpp.
References m_page.
Referenced by CAdvancedConstraintPanel::SetSelection().
|
static |
Should we show tooltips?
Definition at line 639 of file constraint_panel.cpp.
|
private |
Definition at line 196 of file constraint_panel.hpp.
Referenced by AddConstraint(), ClearValues(), CreateControls(), Init(), and OnRemoveConstraint().
|
private |
Definition at line 198 of file constraint_panel.hpp.
Referenced by AddConstraint(), ClearValues(), GetConstraint(), OnEditConstraint(), and OnRemoveConstraint().
|
private |
Definition at line 199 of file constraint_panel.hpp.
Referenced by Init(), OnAddConstraint(), and SetSelection().
|
private |
Definition at line 197 of file constraint_panel.hpp.
Referenced by OnAddConstraint(), and OnEditConstraint().