NCBI C++ ToolKit
|
Search Toolkit Book for CMacroLocationConstraintPanel
#include <gui/widgets/edit/macro_loc_constraint_panel.hpp>
Public Types | |
enum | { ID_LENGTHCONSTR = 10890 , ID_5DISTCONSTR = 10891 , ID_3DISTCONSTR = 10892 } |
Public Member Functions | |
CMacroLocationConstraintPanel () | |
Constructors. More... | |
CMacroLocationConstraintPanel (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) |
~CMacroLocationConstraintPanel () | |
Destructor. More... | |
void | Init () |
Initialises member variables. More... | |
void | CreateControls () |
Creates the controls and sizers. More... | |
void | OnLengthSelected (wxCommandEvent &event) |
wxEVT_COMMAND_CHOICE_SELECTED event handler for wxID_ANY More... | |
void | On5DistSelected (wxCommandEvent &event) |
void | On3DistSelected (wxCommandEvent &event) |
wxBitmap | GetBitmapResource (const wxString &name) |
Retrieves bitmap resources. More... | |
wxIcon | GetIconResource (const wxString &name) |
Retrieves icon resources. More... | |
virtual pair< string, string > | GetMatcher (const pair< string, string > &target, size_t num) |
virtual vector< CFuncWithArgs > | GetFuncWithArgs (const pair< string, string > &target, size_t num) const |
virtual void | SetMatcher (const vector< CFuncWithArgs > &func_info) |
string | GetLocationConstraint () |
string | GetDescription () const |
Public Member Functions inherited from CMacroMatcherPanelBase | |
virtual | ~CMacroMatcherPanelBase () |
virtual void | SetFieldName (const string &field) |
virtual void | PopulateFeatureListbox (objects::CSeq_entry_Handle seh) |
virtual void | SetFieldNames (const vector< string > &field_names) |
virtual void | GetVars (vector< string > &vars, size_t num) |
virtual string | GetQualName (const pair< string, string > &target) |
Static Public Member Functions | |
static bool | ShowToolTips () |
Should we show tooltips? More... | |
Static Public Member Functions inherited from CMacroMatcherPanelBase | |
static const EMMatcherPanelType | s_GetMatcherPanels (const CFuncWithArgs &func_info) |
Private Attributes | |
wxChoice * | m_Strand |
wxChoice * | m_NucOrProt |
wxChoice * | m_5Partial |
wxChoice * | m_3Partial |
wxChoice * | m_LocType |
wxChoice * | m_LengthType |
wxTextCtrl * | m_Length |
wxChoice * | m_5DistType |
wxTextCtrl * | m_5Dist |
wxChoice * | m_3DistType |
wxTextCtrl * | m_3Dist |
CMacroLocationConstraintPanel class declaration
Definition at line 61 of file macro_loc_constraint_panel.hpp.
anonymous enum |
Enumerator | |
---|---|
ID_LENGTHCONSTR | |
ID_5DISTCONSTR | |
ID_3DISTCONSTR |
Definition at line 119 of file macro_loc_constraint_panel.hpp.
CMacroLocationConstraintPanel::CMacroLocationConstraintPanel | ( | ) |
CMacroLocationConstraintPanel::CMacroLocationConstraintPanel | ( | wxWindow * | parent, |
wxWindowID | id = wxID_ANY , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
Definition at line 80 of file macro_loc_constraint_panel.cpp.
References Create(), Init(), and ncbi::grid::netcache::search::fields::size.
CMacroLocationConstraintPanel::~CMacroLocationConstraintPanel | ( | ) |
Destructor.
Definition at line 107 of file macro_loc_constraint_panel.cpp.
bool CMacroLocationConstraintPanel::Create | ( | wxWindow * | parent, |
wxWindowID | id = wxID_ANY , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
Definition at line 91 of file macro_loc_constraint_panel.cpp.
References CreateControls(), and ncbi::grid::netcache::search::fields::size.
Referenced by CMacroLocationConstraintPanel().
void CMacroLocationConstraintPanel::CreateControls | ( | ) |
Creates the controls and sizers.
Definition at line 140 of file macro_loc_constraint_panel.cpp.
References _, ID_3DISTCONSTR, ID_5DISTCONSTR, ID_LENGTHCONSTR, m_3Dist, m_3DistType, m_3Partial, m_5Dist, m_5DistType, m_5Partial, m_Length, m_LengthType, m_LocType, m_NucOrProt, m_Strand, and wxID_ANY.
Referenced by Create().
wxBitmap CMacroLocationConstraintPanel::GetBitmapResource | ( | const wxString & | name | ) |
Retrieves bitmap resources.
Definition at line 308 of file macro_loc_constraint_panel.cpp.
string CMacroLocationConstraintPanel::GetDescription | ( | void | ) | const |
Definition at line 627 of file macro_loc_constraint_panel.cpp.
References label, m_3Dist, m_3DistType, m_3Partial, m_5Dist, m_5DistType, m_5Partial, m_Length, m_LengthType, m_LocType, m_NucOrProt, and m_Strand.
Referenced by GetMatcher().
|
virtual |
Reimplemented from CMacroMatcherPanelBase.
Definition at line 469 of file macro_loc_constraint_panel.cpp.
References CMacroFunction_LocationType::GetFuncName(), NMacroArgs::kConstr_Distance, NMacroArgs::kConstr_LocType, NMacroArgs::kConstr_Strand, m_3Dist, m_3DistType, m_3Partial, m_5Dist, m_5DistType, m_5Partial, CFuncWithArgs::m_FArgs, CFuncWithArgs::m_FName, m_Length, m_LengthType, m_LocType, CFuncWithArgs::m_Negate, m_NucOrProt, CFuncWithArgs::m_ParentFnc, m_Strand, CMacroFunction_LocationDistConstraint::sm_FromStart, CMacroFunction_LocationDistConstraint::sm_FromStop, CMacroFunction_LocPartialTest::sm_PartialStart, CMacroFunction_LocPartialTest::sm_PartialStop, CMacroFunction_LocationSeqType::sm_SeqAa, and CMacroFunction_LocationSeqType::sm_SeqNa.
wxIcon CMacroLocationConstraintPanel::GetIconResource | ( | const wxString & | name | ) |
Retrieves icon resources.
Definition at line 321 of file macro_loc_constraint_panel.cpp.
string CMacroLocationConstraintPanel::GetLocationConstraint | ( | ) |
Definition at line 567 of file macro_loc_constraint_panel.cpp.
References CMacroFunction_LocationType::GetFuncName(), NStr::Join(), m_3Dist, m_3DistType, m_3Partial, m_5Dist, m_5DistType, m_5Partial, m_Length, m_LengthType, m_LocType, m_NucOrProt, m_Strand, CMacroFunction_LocationDistConstraint::sm_FromStart, CMacroFunction_LocationDistConstraint::sm_FromStop, CMacroFunction_LocPartialTest::sm_PartialStart, CMacroFunction_LocPartialTest::sm_PartialStop, CMacroFunction_LocationSeqType::sm_SeqAa, CMacroFunction_LocationSeqType::sm_SeqNa, and string.
Referenced by GetMatcher().
|
virtual |
Implements CMacroMatcherPanelBase.
Definition at line 368 of file macro_loc_constraint_panel.cpp.
References GetDescription(), and GetLocationConstraint().
void CMacroLocationConstraintPanel::Init | ( | void | ) |
Initialises member variables.
Definition at line 118 of file macro_loc_constraint_panel.cpp.
References m_3Dist, m_3DistType, m_3Partial, m_5Dist, m_5DistType, m_5Partial, m_Length, m_LengthType, m_LocType, m_NucOrProt, m_Strand, and NULL.
Referenced by CMacroLocationConstraintPanel().
void CMacroLocationConstraintPanel::On3DistSelected | ( | wxCommandEvent & | event | ) |
Definition at line 354 of file macro_loc_constraint_panel.cpp.
References m_3Dist, and m_3DistType.
void CMacroLocationConstraintPanel::On5DistSelected | ( | wxCommandEvent & | event | ) |
Definition at line 342 of file macro_loc_constraint_panel.cpp.
References m_5Dist, and m_5DistType.
void CMacroLocationConstraintPanel::OnLengthSelected | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_CHOICE_SELECTED event handler for wxID_ANY
Definition at line 330 of file macro_loc_constraint_panel.cpp.
References m_Length, and m_LengthType.
|
virtual |
Reimplemented from CMacroMatcherPanelBase.
Definition at line 373 of file macro_loc_constraint_panel.cpp.
References NStr::EqualNocase(), CMacroFunction_LocationType::GetFuncName(), NMacroArgs::kConstr_Distance, NMacroArgs::kConstr_LocType, NMacroArgs::kConstr_Strand, m_3Dist, m_3DistType, m_3Partial, m_5Dist, m_5DistType, m_5Partial, m_Length, m_LengthType, m_LocType, m_NucOrProt, m_Strand, CMacroFunction_LocationDistConstraint::sm_FromStart, CMacroFunction_LocationDistConstraint::sm_FromStop, CMacroFunction_LocPartialTest::sm_PartialStart, CMacroFunction_LocPartialTest::sm_PartialStop, CMacroFunction_LocationSeqType::sm_SeqAa, and CMacroFunction_LocationSeqType::sm_SeqNa.
|
static |
Should we show tooltips?
Definition at line 299 of file macro_loc_constraint_panel.cpp.
|
private |
Definition at line 135 of file macro_loc_constraint_panel.hpp.
Referenced by CreateControls(), GetDescription(), GetFuncWithArgs(), GetLocationConstraint(), Init(), On3DistSelected(), and SetMatcher().
|
private |
Definition at line 134 of file macro_loc_constraint_panel.hpp.
Referenced by CreateControls(), GetDescription(), GetFuncWithArgs(), GetLocationConstraint(), Init(), On3DistSelected(), and SetMatcher().
|
private |
Definition at line 128 of file macro_loc_constraint_panel.hpp.
Referenced by CreateControls(), GetDescription(), GetFuncWithArgs(), GetLocationConstraint(), Init(), and SetMatcher().
|
private |
Definition at line 133 of file macro_loc_constraint_panel.hpp.
Referenced by CreateControls(), GetDescription(), GetFuncWithArgs(), GetLocationConstraint(), Init(), On5DistSelected(), and SetMatcher().
|
private |
Definition at line 132 of file macro_loc_constraint_panel.hpp.
Referenced by CreateControls(), GetDescription(), GetFuncWithArgs(), GetLocationConstraint(), Init(), On5DistSelected(), and SetMatcher().
|
private |
Definition at line 127 of file macro_loc_constraint_panel.hpp.
Referenced by CreateControls(), GetDescription(), GetFuncWithArgs(), GetLocationConstraint(), Init(), and SetMatcher().
|
private |
Definition at line 131 of file macro_loc_constraint_panel.hpp.
Referenced by CreateControls(), GetDescription(), GetFuncWithArgs(), GetLocationConstraint(), Init(), OnLengthSelected(), and SetMatcher().
|
private |
Definition at line 130 of file macro_loc_constraint_panel.hpp.
Referenced by CreateControls(), GetDescription(), GetFuncWithArgs(), GetLocationConstraint(), Init(), OnLengthSelected(), and SetMatcher().
|
private |
Definition at line 129 of file macro_loc_constraint_panel.hpp.
Referenced by CreateControls(), GetDescription(), GetFuncWithArgs(), GetLocationConstraint(), Init(), and SetMatcher().
|
private |
Definition at line 126 of file macro_loc_constraint_panel.hpp.
Referenced by CreateControls(), GetDescription(), GetFuncWithArgs(), GetLocationConstraint(), Init(), and SetMatcher().
|
private |
Definition at line 125 of file macro_loc_constraint_panel.hpp.
Referenced by CreateControls(), GetDescription(), GetFuncWithArgs(), GetLocationConstraint(), Init(), and SetMatcher().