:m_FieldType(
type), m_MatchType(
type)
88SetExtraStyle(wxWS_EX_VALIDATE_RECURSIVELY);
89wxPanel::Create( parent,
id, pos,
size, style );
94GetSizer()->SetSizeHints(
this);
136wxBoxSizer* itemBoxSizer1 =
newwxBoxSizer(wxHORIZONTAL);
137itemPanel1->SetSizer(itemBoxSizer1);
139wxArrayString m_FieldFirstStrings;
140 m_FieldFirst=
newwxComboBox( itemPanel1,
ID_SNGLQUALCH1, wxEmptyString, wxDefaultPosition, wxSize(169, -1), m_FieldFirstStrings, wxCB_DROPDOWN);
141itemBoxSizer1->Add(
m_FieldFirst, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5);
143 m_FieldFirst->SetToolTip(
"Use 'Select' to choose qualifier");
145 m_Column=
newwxTextCtrl(itemPanel1,
ID_SNGLQUALCOL, wxEmptyString, wxDefaultPosition, wxSize(30, -1), 0);
146itemBoxSizer1->Add(
m_Column, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 5);
148 m_MatchCheck=
newwxCheckBox(itemPanel1,
wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0);
149itemBoxSizer1->Add(
m_MatchCheck, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 5);
152wxHyperlinkCtrl* link =
newwxHyperlinkCtrl(itemPanel1,
wxID_ANY,
wxT(
"Select"),
wxT(
"select"), wxDefaultPosition, wxDefaultSize, 0);
153itemBoxSizer1->Add(link, 0, wxALIGN_CENTER_VERTICAL, 5);
163wxArrayString arraystring;
178 stringfield = first_field;
225 autocol =
m_Column->GetValue().ToStdString();
226 const string& field =
m_FieldFirst->GetStringSelection().ToStdString();
228 if(it.m_GUIName == field) {
243 if(event.GetURL() !=
wxT(
"select")) {
249 if(dlg.ShowModal() == wxID_OK) {
string GetAsnPathToFieldName(const string &field, EMacroFieldType type, const string &target=kEmptyStr)
static CMacroEditorContext & GetInstance()
vector< string > GetFieldNames(EMacroFieldType type) const
static string NormalizePubFieldName(string orig_label)
static string GetLabelForType(EPubFieldType field_type)
EMacroFieldType GetMatchType() const
SFieldFromTable GetSelection() const
bool SetField(const string &field, EMacroFieldType type)
~CSingleQualPanel()
Destructor.
EMacroFieldType m_FieldType
CSingleQualPanel()
Constructors.
void OnFieldSelected(wxCommandEvent &event)
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
SFieldFromTable GetField()
void OnSelectClicked(wxHyperlinkEvent &event)
bool Create(wxWindow *parent, wxWindowID id=ID_CSINGLEQUALPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
Creation.
EMacroFieldType m_MatchType
void SetField(const string &first_field, int col)
wxComboBox * m_FieldFirst
wxCheckBox * m_MatchCheck
list< SFieldFromTable > m_AdditionalFields
void CreateControls()
Creates the controls and sizers.
static bool ShowToolTips()
Should we show tooltips?
bool InsertField(const string &field, int col, EMacroFieldType type, bool matching_field)
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
void Init()
Initialises member variables.
const char * kFieldTypeSeqId
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static string IntToString(int value, TNumToStringFlags flags=0, int base=10)
Convert int to string.
static bool StartsWith(const CTempString str, const CTempString start, ECase use_case=eCase)
Check if a string starts with a specified prefix value.
static bool EqualNocase(const CTempString s1, SIZE_TYPE pos, SIZE_TYPE n, const char *s2)
Case-insensitive equality of a substring with another string.
@ eNocase
Case insensitive compare.
const struct ncbi::grid::netcache::search::fields::SIZE size
wxString ToWxString(const string &s)
string ToStdString(const wxString &s)
void ToArrayString(const vector< string > &out, wxArrayString &in)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4