NCBI C++ ToolKit
|
Search Toolkit Book for CMacroAdvStringConstraintPanel
Public Member Functions | |
CMacroAdvStringConstraintPanel () | |
Constructors. More... | |
CMacroAdvStringConstraintPanel (wxWindow *parent, wxWindowID id=ID_CADVSTRINGCONSTRAINTPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL) | |
bool | Create (wxWindow *parent, wxWindowID id=ID_CADVSTRINGCONSTRAINTPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL) |
Creation. More... | |
~CMacroAdvStringConstraintPanel () | |
Destructor. More... | |
void | Init () |
Initialises member variables. More... | |
void | CreateControls () |
Creates the controls and sizers. More... | |
void | OnClear (wxCommandEvent &event) |
void | OnMatchTypeSelected (wxCommandEvent &event) |
void | OnWordSubstitution (wxCommandEvent &event) |
void | OnConstraintType (wxCommandEvent &event) |
void | OnOpenFile (wxCommandEvent &event) |
void | OnUpdateWordSubstButton (wxUpdateUIEvent &event) |
void | ClearValues (void) |
void | SetChoices (const vector< string > &choices, const vector< string > &values) |
void | ShowChoiceOrText (void) |
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 | GetVars (vector< string > &vars, size_t num) |
virtual string | GetQualName (const pair< string, string > &target) |
virtual void | SetMatcher (const vector< CFuncWithArgs > &func_info) |
virtual void | UpdateEditor (void) |
string | GetDescription (const string &field) |
string | GetTextConstraint (const string &field, size_t num) |
virtual void | AddWordSubstSet (const string &filename, CRef< CWord_substitution_set > word_subst) |
virtual void | SetFieldName (const string &field) |
virtual void | PopulateFeatureListbox (CSeq_entry_Handle seh) |
virtual void | SetFieldNames (const vector< string > &field_names) |
void | SetMacroFieldNames (const vector< string > &field_names) |
void | SetMacroSelf (const string &self) |
Public Member Functions inherited from CMacroMatcherPanelBase | |
virtual | ~CMacroMatcherPanelBase () |
virtual void | PopulateFeatureListbox (objects::CSeq_entry_Handle seh) |
Public Member Functions inherited from CFieldNamePanelParent | |
virtual | ~CFieldNamePanelParent () |
Public Member Functions inherited from CMacroWordSubstitutionSetConsumer | |
virtual | ~CMacroWordSubstitutionSetConsumer () |
virtual void | AddWordSubstSet (const string &filename, CRef< objects::CWord_substitution_set > word_subst)=0 |
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 Member Functions | |
wxDECLARE_NO_COPY_CLASS (CMacroAdvStringConstraintPanel) | |
void | EnableStringConstraint (bool enable) |
string | ReplaceChoices (const string &orig) |
string | x_GetMatchText () const |
string | x_GetVariable () const |
void | x_SetControls (const CFuncWithArgs::TInterpretedArgs &args) |
Private Attributes | |
T * | m_panel |
wxChoice * | m_MatchType |
wxTextCtrl * | m_MatchText |
wxCheckBox * | m_IgnoreCase |
wxCheckBox * | m_IgnoreSpace |
wxCheckBox * | m_WholeWord |
wxCheckBox * | m_IgnorePunct |
wxCheckBox * | m_IgnoreSyn |
wxRadioButton * | m_AnyLetters |
wxRadioButton * | m_AllUpper |
wxRadioButton * | m_AllLower |
wxRadioButton * | m_AllPunct |
wxComboBox * | m_MatchChoice |
wxButton * | m_ClearButton |
wxButton * | m_WordSubstBtn |
wxRadioBox * | m_ConstraintType |
wxTextCtrl * | m_Tablename |
wxTextCtrl * | m_Column |
wxBoxSizer * | m_TextSizer |
wxFlexGridSizer * | m_TableSizer |
bool | m_is_choice |
map< string, string > | m_choice_to_value |
string | m_SynonymFile |
CRef< CWord_substitution_set > | m_SynonymList |
CMacroAdvStringConstraintPanel class declaration
Definition at line 101 of file macro_add_constraint_panel.cpp.
|
private |
Definition at line 219 of file macro_add_constraint_panel.cpp.
enum CMacroAdvStringConstraintPanel::EMatchType |
Definition at line 141 of file macro_add_constraint_panel.cpp.
CMacroAdvStringConstraintPanel< T >::CMacroAdvStringConstraintPanel |
Constructors.
CMacroAdvStringConstraintPanel constructors
Definition at line 571 of file macro_add_constraint_panel.cpp.
References Init().
CMacroAdvStringConstraintPanel< T >::CMacroAdvStringConstraintPanel | ( | wxWindow * | parent, |
wxWindowID | id = ID_CADVSTRINGCONSTRAINTPANEL , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
Definition at line 577 of file macro_add_constraint_panel.cpp.
References Init(), and ncbi::grid::netcache::search::fields::size.
|
inline |
Destructor.
Definition at line 122 of file macro_add_constraint_panel.cpp.
|
virtual |
Definition at line 1460 of file macro_add_constraint_panel.cpp.
void CMacroAdvStringConstraintPanel< T >::ClearValues | ( | void | ) |
Definition at line 800 of file macro_add_constraint_panel.cpp.
References _.
bool CMacroAdvStringConstraintPanel< T >::Create | ( | wxWindow * | parent, |
wxWindowID | id = ID_CADVSTRINGCONSTRAINTPANEL , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
Creation.
CMacroAdvStringConstraintPanel creator
Definition at line 589 of file macro_add_constraint_panel.cpp.
References ncbi::grid::netcache::search::fields::size.
void CMacroAdvStringConstraintPanel< T >::CreateControls |
Creates the controls and sizers.
Definition at line 636 of file macro_add_constraint_panel.cpp.
References _, CFieldNamePanel::GetChoices(), CFieldNamePanel::GetMacroValues(), CSourceFieldNamePanel::HideSourceType(), NULL, CMacroAdvStringConstraintPanel< T >::OnUpdateWordSubstButton(), T, wxID_ANY, and wxT.
|
private |
Definition at line 845 of file macro_add_constraint_panel.cpp.
wxBitmap CMacroAdvStringConstraintPanel< T >::GetBitmapResource | ( | const wxString & | name | ) |
Retrieves bitmap resources.
Get bitmap resources
Definition at line 945 of file macro_add_constraint_panel.cpp.
string CMacroAdvStringConstraintPanel< T >::GetDescription | ( | const string & | field | ) |
Definition at line 1148 of file macro_add_constraint_panel.cpp.
References CMacroWordSubstitutionDlg::GetDescription(), NStr::Join(), and str().
|
virtual |
Reimplemented from CMacroMatcherPanelBase.
Definition at line 1001 of file macro_add_constraint_panel.cpp.
References NStr::BoolToString(), CFieldNamePanel::GetFieldName(), NMacroArgs::kConstr_IgnorePunct, NMacroArgs::kConstr_IgnoreSpace, NMacroArgs::kConstr_IgnoreWeasel, NMacroArgs::kConstr_Match, NMacroArgs::kConstr_StrCaseSens, NMacroArgs::kConstr_SynCaseSens, NMacroArgs::kConstr_SynFile, NMacroArgs::kConstr_SynMatch, NMacroArgs::kConstr_SynWholeWord, NMacroArgs::kConstr_WholeWord, NMacroArgs::kField, NMacroArgs::kNewValue, NMacroArgs::kTableName, CFuncWithArgs::m_FArgs, CFuncWithArgs::m_FName, CFuncWithArgs::m_Negate, nr(), ToStdString(), and NStr::UIntToString().
wxIcon CMacroAdvStringConstraintPanel< T >::GetIconResource | ( | const wxString & | name | ) |
Retrieves icon resources.
Get icon resources
Definition at line 958 of file macro_add_constraint_panel.cpp.
|
virtual |
Implements CMacroMatcherPanelBase.
Definition at line 981 of file macro_add_constraint_panel.cpp.
References CFieldNamePanel::GetFieldName(), CFieldNamePanel::GetMacroFieldLabel(), CFieldNamePanel::GetMacroFieldName(), NStr::Join(), kEmptyStr, and label.
|
virtual |
Reimplemented from CMacroMatcherPanelBase.
Definition at line 1136 of file macro_add_constraint_panel.cpp.
References CFieldNamePanel::GetMacroFieldName(), and kEmptyStr.
string CMacroAdvStringConstraintPanel< T >::GetTextConstraint | ( | const string & | field, |
size_t | num | ||
) |
Definition at line 1249 of file macro_add_constraint_panel.cpp.
References _ASSERT, NStr::BoolToString(), NStr::EqualCase(), NStr::IntToString(), kEmptyStr, NStr::Split(), str(), ToStdString(), and NStr::UIntToString().
|
virtual |
Reimplemented from CMacroMatcherPanelBase.
Definition at line 1379 of file macro_add_constraint_panel.cpp.
References NStr::EqualCase(), NStr::IntToString(), and NStr::UIntToString().
void CMacroAdvStringConstraintPanel< T >::Init | ( | void | ) |
Initialises member variables.
Member initialisation
Definition at line 611 of file macro_add_constraint_panel.cpp.
References NULL.
void CMacroAdvStringConstraintPanel< T >::OnClear | ( | wxCommandEvent & | event | ) |
Definition at line 794 of file macro_add_constraint_panel.cpp.
void CMacroAdvStringConstraintPanel< T >::OnConstraintType | ( | wxCommandEvent & | event | ) |
Definition at line 834 of file macro_add_constraint_panel.cpp.
void CMacroAdvStringConstraintPanel< T >::OnMatchTypeSelected | ( | wxCommandEvent & | event | ) |
Definition at line 911 of file macro_add_constraint_panel.cpp.
void CMacroAdvStringConstraintPanel< T >::OnOpenFile | ( | wxCommandEvent & | event | ) |
Definition at line 918 of file macro_add_constraint_panel.cpp.
References _, GetAbsolutePath(), and wxT.
void CMacroAdvStringConstraintPanel< T >::OnUpdateWordSubstButton | ( | wxUpdateUIEvent & | event | ) |
Definition at line 827 of file macro_add_constraint_panel.cpp.
Referenced by CMacroAdvStringConstraintPanel< T >::CreateControls().
void CMacroAdvStringConstraintPanel< T >::OnWordSubstitution | ( | wxCommandEvent & | event | ) |
Definition at line 1452 of file macro_add_constraint_panel.cpp.
References CMacroWordSubstitutionDlg::SetSubstitutionList().
|
virtual |
Definition at line 1668 of file macro_add_constraint_panel.cpp.
References CFeatureFieldNamePanel::ListPresentFeaturesFirst().
Referenced by CMacroAddConstraint::CreateControls().
|
private |
Definition at line 1442 of file macro_add_constraint_panel.cpp.
void CMacroAdvStringConstraintPanel< T >::SetChoices | ( | const vector< string > & | choices, |
const vector< string > & | values | ||
) |
Definition at line 869 of file macro_add_constraint_panel.cpp.
References _ASSERT, i, ITERATE, and ToWxString().
|
virtual |
Reimplemented from CMacroMatcherPanelBase.
Definition at line 1467 of file macro_add_constraint_panel.cpp.
Referenced by CMacroAddConstraint::CreateControls().
|
virtual |
Reimplemented from CMacroMatcherPanelBase.
Definition at line 1677 of file macro_add_constraint_panel.cpp.
References CFieldHandlerNamePanel::SetFieldNames().
Referenced by CMacroAddConstraint::CreateControls().
void CMacroAdvStringConstraintPanel< T >::SetMacroFieldNames | ( | const vector< string > & | field_names | ) |
Definition at line 1685 of file macro_add_constraint_panel.cpp.
References CFieldHandlerNamePanel::SetMacroFieldNames().
Referenced by CMacroAddConstraint::CreateControls().
void CMacroAdvStringConstraintPanel< T >::SetMacroSelf | ( | const string & | self | ) |
Definition at line 1693 of file macro_add_constraint_panel.cpp.
References CFieldHandlerNamePanel::SetMacroSelf().
Referenced by CMacroAddConstraint::CreateControls().
|
virtual |
Reimplemented from CMacroMatcherPanelBase.
Definition at line 1545 of file macro_add_constraint_panel.cpp.
References NStr::EqualNocase(), NMFncParse::kComparisonOp, NMacroArgs::kConstr_Match, NMacroArgs::kField, NMacroArgs::kNewValue, NMacroArgs::kTableName, NPOS, NStr::StartsWith(), and ToWxString().
void CMacroAdvStringConstraintPanel< T >::ShowChoiceOrText | ( | void | ) |
Definition at line 887 of file macro_add_constraint_panel.cpp.
|
static |
Should we show tooltips?
Should we show tooltips?
Definition at line 936 of file macro_add_constraint_panel.cpp.
|
virtual |
Implements CFieldNamePanelParent.
Definition at line 968 of file macro_add_constraint_panel.cpp.
References CFieldNamePanel::GetChoices(), and CFieldNamePanel::GetMacroValues().
|
private |
|
private |
Definition at line 1121 of file macro_add_constraint_panel.cpp.
References NStr::ReplaceInPlace(), and ToStdString().
|
private |
Definition at line 1407 of file macro_add_constraint_panel.cpp.
|
private |
Definition at line 1473 of file macro_add_constraint_panel.cpp.
References NStr::EndsWith(), NMacroArgs::kConstr_IgnorePunct, NMacroArgs::kConstr_IgnoreSpace, NMacroArgs::kConstr_IgnoreWeasel, NMacroArgs::kConstr_Match, NMacroArgs::kConstr_StrCaseSens, NMacroArgs::kConstr_SynCaseSens, NMacroArgs::kConstr_SynFile, NMacroArgs::kConstr_SynMatch, NMacroArgs::kConstr_SynWholeWord, NMacroArgs::kConstr_WholeWord, NMacroArgs::kField, NcbiErrorBox(), nr(), NStr::StringToBool(), ToWxString(), and NStr::UIntToString().
|
private |
Definition at line 208 of file macro_add_constraint_panel.cpp.
|
private |
Definition at line 209 of file macro_add_constraint_panel.cpp.
|
private |
Definition at line 207 of file macro_add_constraint_panel.cpp.
|
private |
Definition at line 206 of file macro_add_constraint_panel.cpp.
|
private |
Definition at line 241 of file macro_add_constraint_panel.cpp.
|
private |
Definition at line 211 of file macro_add_constraint_panel.cpp.
|
private |
Definition at line 215 of file macro_add_constraint_panel.cpp.
|
private |
Definition at line 213 of file macro_add_constraint_panel.cpp.
|
private |
Definition at line 201 of file macro_add_constraint_panel.cpp.
|
private |
Definition at line 204 of file macro_add_constraint_panel.cpp.
|
private |
Definition at line 202 of file macro_add_constraint_panel.cpp.
|
private |
Definition at line 205 of file macro_add_constraint_panel.cpp.
|
private |
Definition at line 240 of file macro_add_constraint_panel.cpp.
|
private |
Definition at line 210 of file macro_add_constraint_panel.cpp.
|
private |
Definition at line 200 of file macro_add_constraint_panel.cpp.
|
private |
Definition at line 199 of file macro_add_constraint_panel.cpp.
|
private |
Definition at line 197 of file macro_add_constraint_panel.cpp.
|
private |
Definition at line 242 of file macro_add_constraint_panel.cpp.
|
private |
Definition at line 243 of file macro_add_constraint_panel.cpp.
|
private |
Definition at line 214 of file macro_add_constraint_panel.cpp.
|
private |
Definition at line 217 of file macro_add_constraint_panel.cpp.
|
private |
Definition at line 216 of file macro_add_constraint_panel.cpp.
|
private |
Definition at line 203 of file macro_add_constraint_panel.cpp.
|
private |
Definition at line 212 of file macro_add_constraint_panel.cpp.