NCBI C++ ToolKit
Public Types | Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
CMacroAdvStringConstraintPanel< T > Class Template Reference

Search Toolkit Book for CMacroAdvStringConstraintPanel

+ Inheritance diagram for CMacroAdvStringConstraintPanel< T >:
+ Collaboration diagram for CMacroAdvStringConstraintPanel< T >:

Public Types

enum  EMatchType {
  eMatchType_Contains = 0 , eMatchType_DoesNotContain , eMatchType_Equals , eMatchType_DoesNotEqual ,
  eMatchType_StartsWith , eMatchType_EndsWith , eMatchType_IsOneOf , eMatchType_IsNotOneOf ,
  eMatchType_DoesNotStartWith , eMatchType_DoesNotEndWith
}
 

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, stringGetMatcher (const pair< string, string > &target, size_t num)
 
virtual vector< CFuncWithArgsGetFuncWithArgs (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 Types

enum  {
  ID_CADVSTRINGCONSTRAINTPANEL = 6300 , ID_STRING_CONSTRAINT_MATCH_CHOICE , ID_STRING_CONSTRAINT_MATCH_TEXT , ID_STRING_CONSTRAINT_CHECKBOX5 ,
  ID_STRING_CONSTRAINT_CHECKBOX6 , ID_STRING_CONSTRAINT_CHECKBOX7 , ID_STRING_CONSTRAINT_CHECKBOX8 , ID_STRING_CONSTRAINT_CHECKBOX9 ,
  ID_STRING_CONSTRAINT_RADIO0 , ID_STRING_CONSTRAINT_RADIO1 , ID_STRING_CONSTRAINT_RADIO2 , ID_STRING_CONSTRAINT_RADIO3 ,
  ID_STRING_CONSTRAINT_CLEAR_BUTTON , ID_STRING_CONSTRAINT_WORDSUBST_BUTTON , ID_CONSTRAINT_TYPE , ID_OPENFILEBTMBTN ,
  ID_CONSTRAINT_TABLENAME , ID_CONSTRAINT_TABLECOL
}
 

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

Tm_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, stringm_choice_to_value
 
string m_SynonymFile
 
CRef< CWord_substitution_setm_SynonymList
 

Detailed Description

template<typename T>
class CMacroAdvStringConstraintPanel< T >

CMacroAdvStringConstraintPanel class declaration

Definition at line 101 of file macro_add_constraint_panel.cpp.

Member Enumeration Documentation

◆ anonymous enum

template<typename T >
anonymous enum
private
Enumerator
ID_CADVSTRINGCONSTRAINTPANEL 
ID_STRING_CONSTRAINT_MATCH_CHOICE 
ID_STRING_CONSTRAINT_MATCH_TEXT 
ID_STRING_CONSTRAINT_CHECKBOX5 
ID_STRING_CONSTRAINT_CHECKBOX6 
ID_STRING_CONSTRAINT_CHECKBOX7 
ID_STRING_CONSTRAINT_CHECKBOX8 
ID_STRING_CONSTRAINT_CHECKBOX9 
ID_STRING_CONSTRAINT_RADIO0 
ID_STRING_CONSTRAINT_RADIO1 
ID_STRING_CONSTRAINT_RADIO2 
ID_STRING_CONSTRAINT_RADIO3 
ID_STRING_CONSTRAINT_CLEAR_BUTTON 
ID_STRING_CONSTRAINT_WORDSUBST_BUTTON 
ID_CONSTRAINT_TYPE 
ID_OPENFILEBTMBTN 
ID_CONSTRAINT_TABLENAME 
ID_CONSTRAINT_TABLECOL 

Definition at line 219 of file macro_add_constraint_panel.cpp.

◆ EMatchType

template<typename T >
enum CMacroAdvStringConstraintPanel::EMatchType
Enumerator
eMatchType_Contains 
eMatchType_DoesNotContain 
eMatchType_Equals 
eMatchType_DoesNotEqual 
eMatchType_StartsWith 
eMatchType_EndsWith 
eMatchType_IsOneOf 
eMatchType_IsNotOneOf 
eMatchType_DoesNotStartWith 
eMatchType_DoesNotEndWith 

Definition at line 141 of file macro_add_constraint_panel.cpp.

Constructor & Destructor Documentation

◆ CMacroAdvStringConstraintPanel() [1/2]

Constructors.

CMacroAdvStringConstraintPanel constructors

Definition at line 571 of file macro_add_constraint_panel.cpp.

References Init().

◆ CMacroAdvStringConstraintPanel() [2/2]

template<typename T >
CMacroAdvStringConstraintPanel< T >::CMacroAdvStringConstraintPanel ( wxWindow *  parent,
wxWindowID  id = ID_CADVSTRINGCONSTRAINTPANEL,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxTAB_TRAVERSAL 
)

◆ ~CMacroAdvStringConstraintPanel()

template<typename T >
CMacroAdvStringConstraintPanel< T >::~CMacroAdvStringConstraintPanel ( )
inline

Destructor.

Definition at line 122 of file macro_add_constraint_panel.cpp.

Member Function Documentation

◆ AddWordSubstSet()

template<typename T >
void CMacroAdvStringConstraintPanel< T >::AddWordSubstSet ( const string filename,
CRef< CWord_substitution_set word_subst 
)
virtual

Definition at line 1460 of file macro_add_constraint_panel.cpp.

◆ ClearValues()

template<typename T >
void CMacroAdvStringConstraintPanel< T >::ClearValues ( void  )

Definition at line 800 of file macro_add_constraint_panel.cpp.

References _.

◆ Create()

template<typename T >
bool CMacroAdvStringConstraintPanel< T >::Create ( wxWindow *  parent,
wxWindowID  id = ID_CADVSTRINGCONSTRAINTPANEL,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxTAB_TRAVERSAL 
)

◆ CreateControls()

template<typename T >
void CMacroAdvStringConstraintPanel< T >::CreateControls

◆ EnableStringConstraint()

template<typename T >
void CMacroAdvStringConstraintPanel< T >::EnableStringConstraint ( bool  enable)
private

Definition at line 845 of file macro_add_constraint_panel.cpp.

◆ GetBitmapResource()

template<typename T >
wxBitmap CMacroAdvStringConstraintPanel< T >::GetBitmapResource ( const wxString &  name)

Retrieves bitmap resources.

Get bitmap resources

Definition at line 945 of file macro_add_constraint_panel.cpp.

◆ GetDescription()

template<typename T >
string CMacroAdvStringConstraintPanel< T >::GetDescription ( const string field)

◆ GetFuncWithArgs()

template<typename T >
vector< CFuncWithArgs > CMacroAdvStringConstraintPanel< T >::GetFuncWithArgs ( const pair< string, string > &  target,
size_t  num 
) const
virtual

◆ GetIconResource()

template<typename T >
wxIcon CMacroAdvStringConstraintPanel< T >::GetIconResource ( const wxString &  name)

Retrieves icon resources.

Get icon resources

Definition at line 958 of file macro_add_constraint_panel.cpp.

◆ GetMatcher()

template<typename T >
pair< string, string > CMacroAdvStringConstraintPanel< T >::GetMatcher ( const pair< string, string > &  target,
size_t  num 
)
virtual

◆ GetQualName()

template<typename T >
string CMacroAdvStringConstraintPanel< T >::GetQualName ( const pair< string, string > &  target)
virtual

Reimplemented from CMacroMatcherPanelBase.

Definition at line 1136 of file macro_add_constraint_panel.cpp.

References CFieldNamePanel::GetMacroFieldName(), and kEmptyStr.

◆ GetTextConstraint()

template<typename T >
string CMacroAdvStringConstraintPanel< T >::GetTextConstraint ( const string field,
size_t  num 
)

◆ GetVars()

template<typename T >
void CMacroAdvStringConstraintPanel< T >::GetVars ( vector< string > &  vars,
size_t  num 
)
virtual

◆ Init()

template<typename T >
void CMacroAdvStringConstraintPanel< T >::Init ( void  )

Initialises member variables.

Member initialisation

Definition at line 611 of file macro_add_constraint_panel.cpp.

References NULL.

◆ OnClear()

template<typename T >
void CMacroAdvStringConstraintPanel< T >::OnClear ( wxCommandEvent &  event)

Definition at line 794 of file macro_add_constraint_panel.cpp.

◆ OnConstraintType()

template<typename T >
void CMacroAdvStringConstraintPanel< T >::OnConstraintType ( wxCommandEvent &  event)

Definition at line 834 of file macro_add_constraint_panel.cpp.

◆ OnMatchTypeSelected()

template<typename T >
void CMacroAdvStringConstraintPanel< T >::OnMatchTypeSelected ( wxCommandEvent &  event)

Definition at line 911 of file macro_add_constraint_panel.cpp.

◆ OnOpenFile()

template<typename T >
void CMacroAdvStringConstraintPanel< T >::OnOpenFile ( wxCommandEvent &  event)

Definition at line 918 of file macro_add_constraint_panel.cpp.

References _, GetAbsolutePath(), and wxT.

◆ OnUpdateWordSubstButton()

template<typename T >
void CMacroAdvStringConstraintPanel< T >::OnUpdateWordSubstButton ( wxUpdateUIEvent &  event)

◆ OnWordSubstitution()

template<typename T >
void CMacroAdvStringConstraintPanel< T >::OnWordSubstitution ( wxCommandEvent &  event)

◆ PopulateFeatureListbox()

template<typename T >
void CMacroAdvStringConstraintPanel< T >::PopulateFeatureListbox ( CSeq_entry_Handle  seh)
virtual

◆ ReplaceChoices()

template<typename T >
string CMacroAdvStringConstraintPanel< T >::ReplaceChoices ( const string orig)
private

Definition at line 1442 of file macro_add_constraint_panel.cpp.

References orig, and result.

◆ SetChoices()

template<typename T >
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().

◆ SetFieldName()

template<typename T >
void CMacroAdvStringConstraintPanel< T >::SetFieldName ( const string field)
virtual

Reimplemented from CMacroMatcherPanelBase.

Definition at line 1467 of file macro_add_constraint_panel.cpp.

Referenced by CMacroAddConstraint::CreateControls().

◆ SetFieldNames()

template<typename T >
void CMacroAdvStringConstraintPanel< T >::SetFieldNames ( const vector< string > &  field_names)
virtual

◆ SetMacroFieldNames()

template<typename T >
void CMacroAdvStringConstraintPanel< T >::SetMacroFieldNames ( const vector< string > &  field_names)

◆ SetMacroSelf()

template<typename T >
void CMacroAdvStringConstraintPanel< T >::SetMacroSelf ( const string self)

◆ SetMatcher()

template<typename T >
void CMacroAdvStringConstraintPanel< T >::SetMatcher ( const vector< CFuncWithArgs > &  func_info)
virtual

◆ ShowChoiceOrText()

template<typename T >
void CMacroAdvStringConstraintPanel< T >::ShowChoiceOrText ( void  )

Definition at line 887 of file macro_add_constraint_panel.cpp.

◆ ShowToolTips()

template<typename T >
bool CMacroAdvStringConstraintPanel< T >::ShowToolTips
static

Should we show tooltips?

Should we show tooltips?

Definition at line 936 of file macro_add_constraint_panel.cpp.

◆ UpdateEditor()

template<typename T >
void CMacroAdvStringConstraintPanel< T >::UpdateEditor ( void  )
virtual

◆ wxDECLARE_NO_COPY_CLASS()

template<typename T >
CMacroAdvStringConstraintPanel< T >::wxDECLARE_NO_COPY_CLASS ( CMacroAdvStringConstraintPanel< T )
private

◆ x_GetMatchText()

template<typename T >
string CMacroAdvStringConstraintPanel< T >::x_GetMatchText
private

Definition at line 1121 of file macro_add_constraint_panel.cpp.

References NStr::ReplaceInPlace(), and ToStdString().

◆ x_GetVariable()

template<typename T >
string CMacroAdvStringConstraintPanel< T >::x_GetVariable
private

Definition at line 1407 of file macro_add_constraint_panel.cpp.

◆ x_SetControls()

template<typename T >
void CMacroAdvStringConstraintPanel< T >::x_SetControls ( const CFuncWithArgs::TInterpretedArgs args)
private

Member Data Documentation

◆ m_AllLower

template<typename T >
wxRadioButton* CMacroAdvStringConstraintPanel< T >::m_AllLower
private

Definition at line 208 of file macro_add_constraint_panel.cpp.

◆ m_AllPunct

template<typename T >
wxRadioButton* CMacroAdvStringConstraintPanel< T >::m_AllPunct
private

Definition at line 209 of file macro_add_constraint_panel.cpp.

◆ m_AllUpper

template<typename T >
wxRadioButton* CMacroAdvStringConstraintPanel< T >::m_AllUpper
private

Definition at line 207 of file macro_add_constraint_panel.cpp.

◆ m_AnyLetters

template<typename T >
wxRadioButton* CMacroAdvStringConstraintPanel< T >::m_AnyLetters
private

Definition at line 206 of file macro_add_constraint_panel.cpp.

◆ m_choice_to_value

template<typename T >
map<string, string> CMacroAdvStringConstraintPanel< T >::m_choice_to_value
private

Definition at line 241 of file macro_add_constraint_panel.cpp.

◆ m_ClearButton

template<typename T >
wxButton* CMacroAdvStringConstraintPanel< T >::m_ClearButton
private

Definition at line 211 of file macro_add_constraint_panel.cpp.

◆ m_Column

template<typename T >
wxTextCtrl* CMacroAdvStringConstraintPanel< T >::m_Column
private

Definition at line 215 of file macro_add_constraint_panel.cpp.

◆ m_ConstraintType

template<typename T >
wxRadioBox* CMacroAdvStringConstraintPanel< T >::m_ConstraintType
private

Definition at line 213 of file macro_add_constraint_panel.cpp.

◆ m_IgnoreCase

template<typename T >
wxCheckBox* CMacroAdvStringConstraintPanel< T >::m_IgnoreCase
private

Definition at line 201 of file macro_add_constraint_panel.cpp.

◆ m_IgnorePunct

template<typename T >
wxCheckBox* CMacroAdvStringConstraintPanel< T >::m_IgnorePunct
private

Definition at line 204 of file macro_add_constraint_panel.cpp.

◆ m_IgnoreSpace

template<typename T >
wxCheckBox* CMacroAdvStringConstraintPanel< T >::m_IgnoreSpace
private

Definition at line 202 of file macro_add_constraint_panel.cpp.

◆ m_IgnoreSyn

template<typename T >
wxCheckBox* CMacroAdvStringConstraintPanel< T >::m_IgnoreSyn
private

Definition at line 205 of file macro_add_constraint_panel.cpp.

◆ m_is_choice

template<typename T >
bool CMacroAdvStringConstraintPanel< T >::m_is_choice
private

Definition at line 240 of file macro_add_constraint_panel.cpp.

◆ m_MatchChoice

template<typename T >
wxComboBox* CMacroAdvStringConstraintPanel< T >::m_MatchChoice
private

Definition at line 210 of file macro_add_constraint_panel.cpp.

◆ m_MatchText

template<typename T >
wxTextCtrl* CMacroAdvStringConstraintPanel< T >::m_MatchText
private

Definition at line 200 of file macro_add_constraint_panel.cpp.

◆ m_MatchType

template<typename T >
wxChoice* CMacroAdvStringConstraintPanel< T >::m_MatchType
private

Definition at line 199 of file macro_add_constraint_panel.cpp.

◆ m_panel

template<typename T >
T* CMacroAdvStringConstraintPanel< T >::m_panel
private

Definition at line 197 of file macro_add_constraint_panel.cpp.

◆ m_SynonymFile

template<typename T >
string CMacroAdvStringConstraintPanel< T >::m_SynonymFile
private

Definition at line 242 of file macro_add_constraint_panel.cpp.

◆ m_SynonymList

template<typename T >
CRef<CWord_substitution_set> CMacroAdvStringConstraintPanel< T >::m_SynonymList
private

Definition at line 243 of file macro_add_constraint_panel.cpp.

◆ m_Tablename

template<typename T >
wxTextCtrl* CMacroAdvStringConstraintPanel< T >::m_Tablename
private

Definition at line 214 of file macro_add_constraint_panel.cpp.

◆ m_TableSizer

template<typename T >
wxFlexGridSizer* CMacroAdvStringConstraintPanel< T >::m_TableSizer
private

Definition at line 217 of file macro_add_constraint_panel.cpp.

◆ m_TextSizer

template<typename T >
wxBoxSizer* CMacroAdvStringConstraintPanel< T >::m_TextSizer
private

Definition at line 216 of file macro_add_constraint_panel.cpp.

◆ m_WholeWord

template<typename T >
wxCheckBox* CMacroAdvStringConstraintPanel< T >::m_WholeWord
private

Definition at line 203 of file macro_add_constraint_panel.cpp.

◆ m_WordSubstBtn

template<typename T >
wxButton* CMacroAdvStringConstraintPanel< T >::m_WordSubstBtn
private

Definition at line 212 of file macro_add_constraint_panel.cpp.


The documentation for this class was generated from the following file:
Modified on Fri Sep 20 14:57:20 2024 by modify_doxy.py rev. 669887