NCBI C++ ToolKit
Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
CMacroStringConstraintPanel Class Reference

Search Toolkit Book for CMacroStringConstraintPanel

#include <gui/packages/pkg_sequence_edit/suspect_product_rule_editor.hpp>

+ Inheritance diagram for CMacroStringConstraintPanel:
+ Collaboration diagram for CMacroStringConstraintPanel:

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

 CMacroStringConstraintPanel ()
 Constructors. More...
 
 CMacroStringConstraintPanel (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)
 Creation. More...
 
 ~CMacroStringConstraintPanel ()
 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 ClearValues (void)
 
void SetChoices (const vector< string > &choices)
 
void ShowChoiceOrText (void)
 
wxBitmap GetBitmapResource (const wxString &name)
 Retrieves bitmap resources. More...
 
wxIcon GetIconResource (const wxString &name)
 Retrieves icon resources. More...
 
CRef< objects::CString_constraint > GetStringConstraint ()
 
virtual void AddWordSubstSet (CRef< objects::CWord_substitution_set > word_subst)
 
virtual CRef< CSearch_funcGetSearchFunc ()
 
virtual void SetSearchFunc (const CSearch_func &search_func)
 
- Public Member Functions inherited from CWordSubstitutionSetConsumer
virtual ~CWordSubstitutionSetConsumer ()
 
- Public Member Functions inherited from CSearch_func_provider
virtual ~CSearch_func_provider ()
 

Static Public Member Functions

static bool ShowToolTips ()
 Should we show tooltips? More...
 

Private Attributes

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_WordSubst
 
wxBoxSizer * m_TextSizer
 
bool m_is_choice
 
CRef< objects::CWord_substitution_set > m_word_subst
 

Detailed Description

CMacroStringConstraintPanel class declaration

Definition at line 247 of file suspect_product_rule_editor.hpp.

Member Enumeration Documentation

◆ 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 284 of file suspect_product_rule_editor.hpp.

Constructor & Destructor Documentation

◆ CMacroStringConstraintPanel() [1/2]

CMacroStringConstraintPanel::CMacroStringConstraintPanel ( )

Constructors.

CMacroStringConstraintPanel constructors

Definition at line 1357 of file suspect_product_rule_editor.cpp.

References Init().

◆ CMacroStringConstraintPanel() [2/2]

CMacroStringConstraintPanel::CMacroStringConstraintPanel ( wxWindow *  parent,
wxWindowID  id = wxID_ANY,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxTAB_TRAVERSAL 
)

◆ ~CMacroStringConstraintPanel()

CMacroStringConstraintPanel::~CMacroStringConstraintPanel ( )

Destructor.

CMacroStringConstraintPanel destructor

Definition at line 1393 of file suspect_product_rule_editor.cpp.

Member Function Documentation

◆ AddWordSubstSet()

void CMacroStringConstraintPanel::AddWordSubstSet ( CRef< objects::CWord_substitution_set >  word_subst)
virtual

Implements CWordSubstitutionSetConsumer.

Definition at line 1767 of file suspect_product_rule_editor.cpp.

References m_word_subst.

◆ ClearValues()

void CMacroStringConstraintPanel::ClearValues ( void  )

◆ Create()

bool CMacroStringConstraintPanel::Create ( wxWindow *  parent,
wxWindowID  id = wxID_ANY,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxTAB_TRAVERSAL 
)

◆ CreateControls()

void CMacroStringConstraintPanel::CreateControls ( )

◆ GetBitmapResource()

wxBitmap CMacroStringConstraintPanel::GetBitmapResource ( const wxString &  name)

Retrieves bitmap resources.

Get bitmap resources

Definition at line 1612 of file suspect_product_rule_editor.cpp.

◆ GetIconResource()

wxIcon CMacroStringConstraintPanel::GetIconResource ( const wxString &  name)

Retrieves icon resources.

Get icon resources

Definition at line 1624 of file suspect_product_rule_editor.cpp.

◆ GetSearchFunc()

CRef< CSearch_func > CMacroStringConstraintPanel::GetSearchFunc ( )
virtual

◆ GetStringConstraint()

CRef< CString_constraint > CMacroStringConstraintPanel::GetStringConstraint ( void  )

◆ Init()

void CMacroStringConstraintPanel::Init ( void  )

◆ OnClear()

void CMacroStringConstraintPanel::OnClear ( wxCommandEvent &  event)

Definition at line 1527 of file suspect_product_rule_editor.cpp.

References ClearValues().

◆ OnMatchTypeSelected()

void CMacroStringConstraintPanel::OnMatchTypeSelected ( wxCommandEvent &  event)

Definition at line 1595 of file suspect_product_rule_editor.cpp.

References ShowChoiceOrText().

Referenced by CreateControls().

◆ OnWordSubstitution()

void CMacroStringConstraintPanel::OnWordSubstitution ( wxCommandEvent &  event)

Definition at line 1761 of file suspect_product_rule_editor.cpp.

References m_word_subst.

◆ SetChoices()

void CMacroStringConstraintPanel::SetChoices ( const vector< string > &  choices)

◆ SetSearchFunc()

void CMacroStringConstraintPanel::SetSearchFunc ( const CSearch_func search_func)
virtual

Implements CSearch_func_provider.

Definition at line 1710 of file suspect_product_rule_editor.cpp.

References eMatchType_Contains, eMatchType_DoesNotContain, eMatchType_DoesNotEndWith, eMatchType_DoesNotEqual, eMatchType_DoesNotStartWith, eMatchType_EndsWith, eMatchType_Equals, eMatchType_IsNotOneOf, eMatchType_IsOneOf, eMatchType_StartsWith, eString_location_contains, eString_location_ends, eString_location_equals, eString_location_inlist, eString_location_starts, CString_constraint_Base::GetCase_sensitive(), CString_constraint_Base::GetIgnore_punct(), CString_constraint_Base::GetIgnore_space(), CString_constraint_Base::GetIgnore_weasel(), CString_constraint_Base::GetIgnore_words(), CString_constraint_Base::GetIs_all_caps(), CString_constraint_Base::GetIs_all_lower(), CString_constraint_Base::GetIs_all_punct(), CString_constraint_Base::GetMatch_location(), CString_constraint_Base::GetMatch_text(), CString_constraint_Base::GetNot_present(), CSearch_func_Base::GetString_constraint(), CString_constraint_Base::GetWhole_word(), CString_constraint_Base::IsSetCase_sensitive(), CString_constraint_Base::IsSetIgnore_punct(), CString_constraint_Base::IsSetIgnore_space(), CString_constraint_Base::IsSetIgnore_weasel(), CString_constraint_Base::IsSetIgnore_words(), CString_constraint_Base::IsSetIs_all_caps(), CString_constraint_Base::IsSetIs_all_lower(), CString_constraint_Base::IsSetIs_all_punct(), CString_constraint_Base::IsSetMatch_location(), CString_constraint_Base::IsSetMatch_text(), CString_constraint_Base::IsSetNot_present(), CString_constraint_Base::IsSetWhole_word(), CSearch_func_Base::IsString_constraint(), m_AllLower, m_AllPunct, m_AllUpper, m_IgnoreCase, m_IgnorePunct, m_IgnoreSpace, m_IgnoreSyn, m_is_choice, m_MatchText, m_MatchType, m_WholeWord, m_word_subst, and CRef< C, Locker >::Reset().

◆ ShowChoiceOrText()

void CMacroStringConstraintPanel::ShowChoiceOrText ( void  )

◆ ShowToolTips()

bool CMacroStringConstraintPanel::ShowToolTips ( )
static

Should we show tooltips?

Should we show tooltips?

Definition at line 1604 of file suspect_product_rule_editor.cpp.

Member Data Documentation

◆ m_AllLower

wxRadioButton* CMacroStringConstraintPanel::m_AllLower
private

◆ m_AllPunct

wxRadioButton* CMacroStringConstraintPanel::m_AllPunct
private

◆ m_AllUpper

wxRadioButton* CMacroStringConstraintPanel::m_AllUpper
private

◆ m_AnyLetters

wxRadioButton* CMacroStringConstraintPanel::m_AnyLetters
private

Definition at line 326 of file suspect_product_rule_editor.hpp.

Referenced by ClearValues(), CreateControls(), and Init().

◆ m_ClearButton

wxButton* CMacroStringConstraintPanel::m_ClearButton
private

Definition at line 331 of file suspect_product_rule_editor.hpp.

Referenced by CreateControls(), and Init().

◆ m_IgnoreCase

wxCheckBox* CMacroStringConstraintPanel::m_IgnoreCase
private

◆ m_IgnorePunct

wxCheckBox* CMacroStringConstraintPanel::m_IgnorePunct
private

◆ m_IgnoreSpace

wxCheckBox* CMacroStringConstraintPanel::m_IgnoreSpace
private

◆ m_IgnoreSyn

wxCheckBox* CMacroStringConstraintPanel::m_IgnoreSyn
private

◆ m_is_choice

bool CMacroStringConstraintPanel::m_is_choice
private

◆ m_MatchChoice

wxComboBox* CMacroStringConstraintPanel::m_MatchChoice
private

◆ m_MatchText

wxTextCtrl* CMacroStringConstraintPanel::m_MatchText
private

◆ m_MatchType

wxChoice* CMacroStringConstraintPanel::m_MatchType
private

◆ m_TextSizer

wxBoxSizer* CMacroStringConstraintPanel::m_TextSizer
private

◆ m_WholeWord

wxCheckBox* CMacroStringConstraintPanel::m_WholeWord
private

◆ m_word_subst

CRef<objects::CWord_substitution_set> CMacroStringConstraintPanel::m_word_subst
private

◆ m_WordSubst

wxButton* CMacroStringConstraintPanel::m_WordSubst
private

Definition at line 332 of file suspect_product_rule_editor.hpp.

Referenced by CreateControls(), and Init().


The documentation for this class was generated from the following files:
Modified on Wed Jun 19 16:59:42 2024 by modify_doxy.py rev. 669887