28 #ifndef _STRING_CONSTRAINT_PANEL_H_
29 #define _STRING_CONSTRAINT_PANEL_H_
42 #include <wx/choice.h>
43 #include <wx/textctrl.h>
44 #include <wx/checkbox.h>
47 #include <wx/combobox.h>
63 #define SYMBOL_CSTRINGCONSTRAINTPANEL_STYLE wxTAB_TRAVERSAL
64 #define SYMBOL_CSTRINGCONSTRAINTPANEL_TITLE _("StringConstraintPanel")
65 #define SYMBOL_CSTRINGCONSTRAINTPANEL_IDNAME ID_CSTRINGCONSTRAINTPANEL
66 #define SYMBOL_CSTRINGCONSTRAINTPANEL_SIZE wxSize(400,300)
67 #define SYMBOL_CSTRINGCONSTRAINTPANEL_POSITION wxDefaultPosition
88 bool cap_constraints =
false );
91 bool Create( wxWindow* parent,
107 void OnClear( wxCommandEvent& event );
120 void SetChoices(
const vector<string>& choices,
const vector<string>& values);
User-defined methods of the data storage class.
void SetStringSelection(const wxString &str)
@ eMatchType_DoesNotContain
@ eMatchType_DoesNotStartWith
@ eMatchType_DoesNotEqual
@ eMatchType_Is_first_each_cap
@ eMatchType_DoesNotEndWith
wxCheckBox * m_IgnoreSpace
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
wxComboBox * m_MatchChoice
void OnMatchTypeSelected(wxCommandEvent &event)
~CStringConstraintPanel()
Destructor.
void OnClear(wxCommandEvent &event)
CRef< edit::CStringConstraint > GetStringConstraint()
CStringConstraintPanel()
Constructors.
void ShowChoiceOrText(void)
void SetChoices(const vector< string > &choices, const vector< string > &values)
string GetMacroStringConstraint(const string &field_name)
@ ID_STRING_CONSTRAINT_CLEAR_BUTTON
@ ID_STRING_CONSTRAINT_CHECKBOX6
@ ID_STRING_CONSTRAINT_MATCH_CHOICE
@ ID_CSTRINGCONSTRAINTPANEL
@ ID_STRING_CONSTRAINT_MATCH_TEXT
@ ID_STRING_CONSTRAINT_CHECKBOX5
wxCheckBox * m_IgnoreCase
void Init()
Initialises member variables.
map< string, string > m_ChoiceToValue
bool Match(const string &str)
string x_ReplaceChoices(const string &orig)
static bool ShowToolTips()
Should we show tooltips?
bool Create(wxWindow *parent, wxWindowID id=ID_CSTRINGCONSTRAINTPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
Creation.
bool m_ParentAECRDlg
flag is set if parent is the AECRDlg, for having specific features
void CreateControls()
Creates the controls and sizers.
Include a standard set of the NCBI C++ Toolkit most basic headers.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
where boath are integers</td > n< td ></td > n</tr > n< tr > n< td > tse</td > n< td > optional</td > n< td > String</td > n< td class=\"description\"> TSE option controls what blob is orig
const struct ncbi::grid::netcache::search::fields::SIZE size
static const char * str(char *buf, int n)
#define SYMBOL_CSTRINGCONSTRAINTPANEL_POSITION
#define SYMBOL_CSTRINGCONSTRAINTPANEL_STYLE
#define SYMBOL_CSTRINGCONSTRAINTPANEL_IDNAME
#define SYMBOL_CSTRINGCONSTRAINTPANEL_SIZE