<
typenameT>
74 CTripleConstraintPanel( wxWindow* parent, wxWindowID
id=
wxID_ANY,
constwxPoint& pos = wxDefaultPosition,
constwxSize&
size= wxDefaultSize,
longstyle = wxTAB_TRAVERSAL );
75 bool Create( wxWindow* parent, wxWindowID
id=
wxID_ANY,
constwxPoint& pos = wxDefaultPosition,
constwxSize&
size= wxDefaultSize,
longstyle = wxTAB_TRAVERSAL );
94 template<
typenameT>
101 CPresentMatcherPanel(wxWindow *parent, wxWindowID
id=
wxID_ANY,
constwxPoint& pos = wxDefaultPosition,
constwxSize&
size= wxDefaultSize,
longstyle = wxTAB_TRAVERSAL );
102 bool Create( wxWindow* parent, wxWindowID
id=
wxID_ANY,
constwxPoint& pos = wxDefaultPosition,
constwxSize&
size= wxDefaultSize,
longstyle = wxTAB_TRAVERSAL );
115 virtual void SetFieldNames(
constvector<string>& field_names);
120 template<
typenameT>
127 CSameMatcherPanel(wxWindow *parent, wxWindowID
id=
wxID_ANY,
constwxPoint& pos = wxDefaultPosition,
constwxSize&
size= wxDefaultSize,
longstyle = wxTAB_TRAVERSAL );
128 bool Create( wxWindow* parent, wxWindowID
id=
wxID_ANY,
constwxPoint& pos = wxDefaultPosition,
constwxSize&
size= wxDefaultSize,
longstyle = wxTAB_TRAVERSAL );
141 virtual void SetFieldNames(
constvector<string>& field_names);
152 #define SYMBOL_CADVSTRINGCONSTRAINTPANEL_STYLE wxTAB_TRAVERSAL 153 #define SYMBOL_CADVSTRINGCONSTRAINTPANEL_TITLE _("StringConstraintPanel")
154 #define SYMBOL_CADVSTRINGCONSTRAINTPANEL_IDNAME ID_CADVSTRINGCONSTRAINTPANEL 155 #define SYMBOL_CADVSTRINGCONSTRAINTPANEL_SIZE wxDefaultSize 156 #define SYMBOL_CADVSTRINGCONSTRAINTPANEL_POSITION wxDefaultPosition 163 template<
typenameT>
177 bool Create( wxWindow* parent,
193 void OnClear( wxCommandEvent& event );
215 void SetChoices(
constvector<string> &choices);
241 virtual void SetFieldNames(
constvector<string>& field_names);
301: m_TopSeqEntry(seh), m_id(-1)
304 Create(parent,
id, caption, pos,
size, style);
307 bool CAddConstraint::Create( wxWindow* parent, wxWindowID
id,
constwxString& caption,
constwxPoint& pos,
constwxSize&
size,
longstyle )
310SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
311wxFrame::Create( parent,
id, caption, pos,
size, style );
316GetSizer()->SetSizeHints(
this);
318Centre(wxBOTH|wxCENTRE_ON_SCREEN);
338wxBoxSizer* itemBoxSizer1 =
newwxBoxSizer(wxVERTICAL);
339SetSizer(itemBoxSizer1);
341wxPanel* itemCBulkCmdDlg1 =
newwxPanel(
this,
wxID_ANY);
342itemBoxSizer1->Add(itemCBulkCmdDlg1, 1, wxGROW, 0);
344wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
345itemCBulkCmdDlg1->SetSizer(itemBoxSizer2);
347 m_Notebook=
newwxChoicebook( itemCBulkCmdDlg1,
wxID_ANY, wxDefaultPosition, wxDefaultSize, wxCHB_TOP );
349itemBoxSizer2->Add(
m_Notebook, 1, wxGROW|wxALL, 5);
363 m_Notebook->AddPage(panel4,
_(
"CDS-Gene-Prot-mRNA"));
381 m_Notebook->AddPage(panel8,
_(
"Structured Comment"));
396wxBoxSizer* itemBoxSizer3 =
newwxBoxSizer(wxHORIZONTAL);
397itemBoxSizer2->Add(itemBoxSizer3, 0, wxALIGN_CENTER_HORIZONTAL, 0);
399wxButton* itemButton13 =
newwxButton( itemCBulkCmdDlg1, wxID_OK,
_(
"Accept"), wxDefaultPosition, wxDefaultSize, 0 );
400itemBoxSizer3->Add(itemButton13, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
402wxButton* itemButton14 =
newwxButton( itemCBulkCmdDlg1, wxID_CANCEL,
_(
"Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
403itemBoxSizer3->Add(itemButton14, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
435wxWindow* win =
m_Notebook->GetCurrentPage();
438 if(!item.second.enabled)
443item.second.top_level =
m_Notebook->GetSelection();
444wxWindow* parent = GetParent();
452 if(page != wxNOT_FOUND)
461wxWindow* win =
m_Notebook->GetCurrentPage();
469 template<
typenameT>
475 template<
typenameT>
479Create(parent,
id, pos,
size, style);
486 template<
typenameT>
490wxPanel::Create( parent,
id, pos,
size, style );
495GetSizer()->SetSizeHints(
this);
506 template<
typenameT>
517 template<
typenameT>
529 template<
typenameT>
535wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxHORIZONTAL);
536itemPanel1->SetSizer(itemBoxSizer2);
538m_Notebook =
newwxNotebook(itemPanel1,
wxID_ANY, wxDefaultPosition, wxDefaultSize);
539itemBoxSizer2->Add(m_Notebook, 1, wxGROW|wxALL, 0);
542m_Notebook->AddPage(panel1,
_(
"When qualifier present"));
545m_Notebook->AddPage(panel2,
_(
"String constraint"));
548m_Notebook->AddPage(panel3,
_(
"When qualifiers match"));
554 template<
typenameT>
563 template<
typenameT>
576 template<
typenameT>
586 template<
typenameT>
589wxWindow *win = m_Notebook->GetCurrentPage();
591field_type_matcher.
enabled=
false;
595 returnmake_pair(
kEmptyStr, field_type_matcher);
598field_type_matcher = matcher_panel->
GetMatcher(field_type);
599field_type_matcher.
second_level= m_Notebook->GetSelection();
601 returnmake_pair(
label, field_type_matcher);
604 template<
typenameT>
608wxWindow *win = m_Notebook->GetCurrentPage();
613 template<
typenameT>
616 for(
size_t i= 0;
i< m_Notebook->GetPageCount();
i++)
618wxWindow *win = m_Notebook->GetPage(
i);
625 template<
typenameT>
628 for(
size_t i= 0;
i< m_Notebook->GetPageCount();
i++)
630wxWindow *win = m_Notebook->GetPage(
i);
637 template<
typenameT>
640 for(
size_t i= 0;
i< m_Notebook->GetPageCount();
i++)
642wxWindow *win = m_Notebook->GetPage(
i);
650 template<
typenameT>
656 template<
typenameT>
660Create(parent,
id, pos,
size, style);
663 template<
typenameT>
666wxPanel::Create( parent,
id, pos,
size, style );
671GetSizer()->SetSizeHints(
this);
677 template<
typenameT>
682 template<
typenameT>
688 template<
typenameT>
693wxBoxSizer* itemBoxSizer1 =
newwxBoxSizer(wxVERTICAL);
694itemPanel1->SetSizer(itemBoxSizer1);
696wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxHORIZONTAL);
697itemBoxSizer1->Add(itemBoxSizer2, 0, wxALIGN_CENTER_HORIZONTAL, 0);
699m_panel=
new T(itemPanel1);
700itemBoxSizer2->Add(m_panel, 0, wxALIGN_TOP|wxALL, 5);
704 template<
typenameT>
710 template<
typenameT>
717 template<
typenameT>
724 template<
typenameT>
730field_type_matcher.
field= field;
738field_type_matcher.
enabled= !field.empty();
740 returnfield_type_matcher;
743 template<
typenameT>
749 template<
typenameT>
753 if(field_name_panel)
755 stringfield = field_name_panel->
GetFieldName(
false);
756 return "where "+ field +
" is present";
761 template<
typenameT>
764m_panel->SetFieldName(field);
767 template<
typenameT>
775 template<
typenameT>
786 template<
typenameT>
792 template<
typenameT>
796Create(parent,
id, pos,
size, style);
799 template<
typenameT>
802wxPanel::Create( parent,
id, pos,
size, style );
807GetSizer()->SetSizeHints(
this);
813 template<
typenameT>
818 template<
typenameT>
825 template<
typenameT>
830wxBoxSizer* itemBoxSizer1 =
newwxBoxSizer(wxVERTICAL);
831itemPanel1->SetSizer(itemBoxSizer1);
833wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxHORIZONTAL);
834itemBoxSizer1->Add(itemBoxSizer2, 0, wxALIGN_CENTER_HORIZONTAL, 0);
836m_panel1 =
new T(itemPanel1);
837itemBoxSizer2->Add(m_panel1, 0, wxALIGN_TOP|wxALL, 5);
839m_panel2 =
new T(itemPanel1);
840itemBoxSizer2->Add(m_panel2, 0, wxALIGN_TOP|wxALL, 5);
844 template<
typenameT>
850 template<
typenameT>
857 template<
typenameT>
864 template<
typenameT>
870field_type_matcher.
field= field1;
872 stringncRNA_class_1;
880 stringncRNA_class_2;
881 intsubtype2 =
GetSubtype(field_name_panel2, ncRNA_class_2);
883field_type_matcher.
enabled= !field1.empty() && !field2.empty();
885field_type_matcher.
field2= field2;
886field_type_matcher.
subtype2= subtype2;
889field_type_matcher.
enabled2= !field1.empty() && !field2.empty();
894 returnfield_type_matcher;
897 template<
typenameT>
904 template<
typenameT>
909 if(field_name_panel1 && field_name_panel2)
911 stringfield1 = field_name_panel1->
GetFieldName(
false);
912 stringfield2 = field_name_panel2->
GetFieldName(
false);
913 return "where "+ field1 +
" matches "+ field2;
918 template<
typenameT>
921m_panel1->SetFieldName(field);
922m_panel2->SetFieldName(field);
925 template<
typenameT>
936 template<
typenameT>
952 template<
typenameT>
958 template<
typenameT>
962Create(parent,
id, pos,
size, style);
969 template<
typenameT>
973wxPanel::Create( parent,
id, pos,
size, style );
978GetSizer()->SetSizeHints(
this);
991 template<
typenameT>
1002 template<
typenameT>
1007m_MatchType =
NULL;
1008m_MatchText =
NULL;
1009m_IgnoreCase =
NULL;
1010m_IgnoreSpace =
NULL;
1011m_WholeWord =
NULL;
1012m_IgnorePunct =
NULL;
1013m_IgnoreSyn =
NULL;
1014m_AnyLetters =
NULL;
1018m_MatchChoice =
NULL;
1019m_TextSizer =
NULL;
1020m_ClearButton =
NULL;
1021m_WordSubst =
NULL;
1022m_is_choice =
false;
1030 template<
typenameT>
1035wxPanel* parentPanel =
this;
1036wxBoxSizer* itemBoxSizer1 =
newwxBoxSizer(wxHORIZONTAL);
1037parentPanel->SetSizer(itemBoxSizer1);
1039m_panel =
new T(parentPanel);
1040itemBoxSizer1->Add(m_panel, 0, wxALIGN_TOP|wxALL, 5);
1042wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
1043itemBoxSizer1->Add(itemBoxSizer2, 0, wxALIGN_TOP|wxALL, 5);
1045wxBoxSizer* itemBoxSizer3 =
newwxBoxSizer(wxHORIZONTAL);
1046itemBoxSizer2->Add(itemBoxSizer3, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
1048wxArrayString m_MatchTypeStrings;
1049m_MatchTypeStrings.Add(
_(
"Contains"));
1050m_MatchTypeStrings.Add(
_(
"Does not contain"));
1051m_MatchTypeStrings.Add(
_(
"Equals"));
1052m_MatchTypeStrings.Add(
_(
"Does not equal"));
1053m_MatchTypeStrings.Add(
_(
"Starts with"));
1054m_MatchTypeStrings.Add(
_(
"Ends with"));
1055m_MatchTypeStrings.Add(
_(
"Is one of"));
1056m_MatchTypeStrings.Add(
_(
"Is not one of"));
1057m_MatchTypeStrings.Add(
_(
"Does not start with"));
1058m_MatchTypeStrings.Add(
_(
"Does not end with"));
1060m_MatchType =
newwxChoice( parentPanel, ID_STRING_CONSTRAINT_MATCH_CHOICE, wxDefaultPosition, wxDefaultSize, m_MatchTypeStrings, 0 );
1061m_MatchType->SetStringSelection(
_(
"Contains"));
1062itemBoxSizer3->Add(m_MatchType, 0, wxALIGN_TOP|wxLEFT|wxRIGHT|wxBOTTOM, 5);
1065m_TextSizer =
newwxBoxSizer(wxVERTICAL);
1066itemBoxSizer3->Add(m_TextSizer, 0, wxALIGN_TOP, 0);
1068m_MatchText =
newwxTextCtrl( parentPanel, ID_STRING_CONSTRAINT_MATCH_TEXT, wxEmptyString, wxDefaultPosition, wxSize(300, -1), wxTE_MULTILINE );
1069m_TextSizer->Add(m_MatchText, 0, wxALIGN_LEFT|wxLEFT|wxRIGHT|wxBOTTOM, 5);
1070wxArrayString choice_strings;
1071m_MatchChoice =
newwxComboBox(parentPanel,
wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(300, -1), choice_strings, 0 );
1072m_MatchChoice->Hide();
1075wxBoxSizer* itemBoxSizer6 =
newwxBoxSizer(wxHORIZONTAL);
1076itemBoxSizer2->Add(itemBoxSizer6, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
1078m_IgnoreCase =
newwxCheckBox( parentPanel, ID_STRING_CONSTRAINT_CHECKBOX5,
_(
"Ignore Case"), wxDefaultPosition, wxDefaultSize, 0 );
1079m_IgnoreCase->SetValue(
false);
1080itemBoxSizer6->Add(m_IgnoreCase, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
1082m_IgnoreSpace =
newwxCheckBox( parentPanel, ID_STRING_CONSTRAINT_CHECKBOX6,
_(
"Ignore Space"), wxDefaultPosition, wxDefaultSize, 0 );
1083m_IgnoreSpace->SetValue(
false);
1084itemBoxSizer6->Add(m_IgnoreSpace, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
1086m_IgnorePunct =
newwxCheckBox( parentPanel, ID_STRING_CONSTRAINT_CHECKBOX8,
_(
"Ignore Punctuation"), wxDefaultPosition, wxDefaultSize, 0 );
1087m_IgnorePunct->SetValue(
false);
1088itemBoxSizer6->Add(m_IgnorePunct, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
1090wxBoxSizer* itemBoxSizer7 =
newwxBoxSizer(wxHORIZONTAL);
1091itemBoxSizer2->Add(itemBoxSizer7, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
1093m_WholeWord =
newwxCheckBox( parentPanel, ID_STRING_CONSTRAINT_CHECKBOX7,
_(
"Whole Word"), wxDefaultPosition, wxDefaultSize, 0 );
1094m_WholeWord->SetValue(
false);
1095itemBoxSizer7->Add(m_WholeWord, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
1097m_IgnoreSyn =
newwxCheckBox( parentPanel, ID_STRING_CONSTRAINT_CHECKBOX9,
_(
"Ignore 'putative' synonyms"), wxDefaultPosition, wxDefaultSize, 0 );
1098m_IgnoreSyn->SetValue(
false);
1099itemBoxSizer7->Add(m_IgnoreSyn, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
1101wxBoxSizer* itemBoxSizer8 =
newwxBoxSizer(wxHORIZONTAL);
1102itemBoxSizer2->Add(itemBoxSizer8, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
1104m_AnyLetters =
newwxRadioButton( parentPanel, ID_STRING_CONSTRAINT_RADIO0,
_(
"Any letters"), wxDefaultPosition, wxDefaultSize, 0 );
1105m_AnyLetters->SetValue(
true);
1106itemBoxSizer8->Add(m_AnyLetters, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
1108m_AllUpper =
newwxRadioButton( parentPanel, ID_STRING_CONSTRAINT_RADIO1,
_(
"All letters are upper case"), wxDefaultPosition, wxDefaultSize, 0 );
1109m_AllUpper->SetValue(
false);
1110itemBoxSizer8->Add(m_AllUpper, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
1112m_AllLower =
newwxRadioButton( parentPanel, ID_STRING_CONSTRAINT_RADIO2,
_(
"All letters are lower case"), wxDefaultPosition, wxDefaultSize, 0 );
1113m_AllLower->SetValue(
false);
1114itemBoxSizer8->Add(m_AllLower, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
1116m_AllPunct =
newwxRadioButton( parentPanel, ID_STRING_CONSTRAINT_RADIO3,
_(
"All characters are punctuation"), wxDefaultPosition, wxDefaultSize, 0 );
1117m_AllPunct->SetValue(
false);
1118itemBoxSizer8->Add(m_AllPunct, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
1120wxBoxSizer* itemBoxSizer9 =
newwxBoxSizer(wxHORIZONTAL);
1121itemBoxSizer2->Add(itemBoxSizer9, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
1123m_ClearButton =
newwxButton( parentPanel, ID_STRING_CONSTRAINT_CLEAR_BUTTON,
_(
"Clear Constraint"), wxDefaultPosition, wxDefaultSize, 0 );
1124itemBoxSizer9->Add(m_ClearButton, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
1128m_WordSubst =
newwxButton( parentPanel, ID_STRING_CONSTRAINT_WORDSUBST_BUTTON,
_(
"Word Substitutions"), wxDefaultPosition, wxDefaultSize, 0 );
1129itemBoxSizer9->Add(m_WordSubst, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
1138 boolallow_other =
true;
1139vector<string> choices = panel->
GetChoices(allow_other);
1140SetChoices(choices);
1144 template<
typenameT>
1150 template<
typenameT>
1155m_MatchChoice->Hide();
1156m_TextSizer->Replace(m_MatchChoice, m_MatchText);
1157m_MatchText->Show();
1158m_is_choice =
false;
1162m_MatchType->SetStringSelection(
_(
"Contains"));
1163m_MatchText->SetValue(wxEmptyString);
1164m_IgnoreCase->SetValue(
false);
1165m_IgnoreSpace->SetValue(
false);
1166m_WholeWord->SetValue(
false);
1167m_IgnorePunct->SetValue(
false);
1168m_IgnoreSyn->SetValue(
false);
1169m_AnyLetters->SetValue(
true);
1170m_AllUpper->SetValue(
false);
1171m_AllLower->SetValue(
false);
1172m_AllPunct->SetValue(
false);
1173m_word_subst.Reset();
1176 template<
typenameT>
1179wxArrayString choice_strings;
1180 ITERATE(vector<string>, it, choices)
1184m_MatchChoice->Set(choice_strings);
1188 template<
typenameT>
1191 if(!m_MatchChoice->IsListEmpty() && (m_MatchType->GetSelection() == eMatchType_Equals || m_MatchType->GetSelection() == eMatchType_DoesNotEqual) )
1195m_MatchText->Hide();
1196m_TextSizer->Replace(m_MatchText, m_MatchChoice);
1197m_MatchChoice->Show();
1199m_is_choice =
true;
1205m_MatchChoice->Hide();
1206m_TextSizer->Replace(m_MatchChoice, m_MatchText);
1207m_MatchText->Show();
1209m_is_choice =
false;
1216 template<
typenameT>
1226 template<
typenameT>
1235 template<
typenameT>
1241 returnwxNullBitmap;
1248 template<
typenameT>
1258 template<
typenameT>
1264 boolallow_other =
true;
1265vector<string> choices = panel->
GetChoices(allow_other);
1266SetChoices(choices);
1270 template<
typenameT>
1276field_type_matcher.
field= field;
1285field_type_matcher.
enabled= !field.empty() && !sc->
Empty();
1288 returnfield_type_matcher;
1291 template<
typenameT>
1295 if(field_name_panel)
1297 stringfield = field_name_panel->
GetFieldName(
false);
1298 return "where "+ field +
" "+ GetDescription();
1303 template<
typenameT>
1323 if(m_word_subst && m_word_subst->IsSet() && !m_word_subst->Get().empty())
1328 switch(m_MatchType->GetSelection()) {
1329 caseeMatchType_Contains:
1332 caseeMatchType_DoesNotContain:
1336 caseeMatchType_Equals:
1339 caseeMatchType_DoesNotEqual:
1343 caseeMatchType_StartsWith:
1346 caseeMatchType_EndsWith:
1349 caseeMatchType_IsOneOf:
1352 caseeMatchType_IsNotOneOf:
1356 caseeMatchType_DoesNotStartWith:
1360 caseeMatchType_DoesNotEndWith:
1364 default: c.
Reset();
break;
1370 template<
typenameT>
1381 if(!match_text.empty())
1383 switch(m_MatchType->GetSelection()) {
1384 caseeMatchType_Contains:
1387 caseeMatchType_DoesNotContain:
1388 str=
"does not contain ";
1390 caseeMatchType_Equals:
1393 caseeMatchType_DoesNotEqual:
1394 str=
"does not equal ";
1396 caseeMatchType_StartsWith:
1397 str=
"starts with ";
1399 caseeMatchType_EndsWith:
1400 str=
"ends with ";
1402 caseeMatchType_IsOneOf:
1403 str=
"is one of ";
1405 caseeMatchType_IsNotOneOf:
1406 str=
"is not one of ";
1408 caseeMatchType_DoesNotStartWith:
1409 str=
"does not start with ";
1411 caseeMatchType_DoesNotEndWith:
1412 str=
"does not ends with ";
1418 str+=
"'"+ match_text +
"' ";
1420vector<string> subs;
1421 if(!m_IgnoreCase->GetValue())
1422subs.push_back(
"case-sensitive");
1424 if(m_IgnoreSpace->GetValue())
1425subs.push_back(
"ignore spaces");
1427 if(m_IgnorePunct->GetValue())
1428subs.push_back(
"ignore punctuation");
1430 if(m_WholeWord->GetValue())
1431subs.push_back(
"whole word");
1433 if(m_IgnoreSyn->GetValue())
1434subs.push_back(
"ignore 'putative' synonyms");
1439 str+=
"("+ sub +
")";
1442 if(m_word_subst && m_word_subst->IsSet())
1444 for(
autows : m_word_subst->Set())
1455 if(m_AllUpper->GetValue())
1456sub =
"all letters are upper case";
1458 if(m_AllLower->GetValue())
1459sub =
"all letters are lower case";
1461 if(m_AllPunct->GetValue())
1462sub =
"all characters are punctiation";
1474 template<
typenameT>
1481 template<
typenameT>
1484m_word_subst = word_subst;
1487 template<
typenameT>
1490m_panel->SetFieldName(field);
1493 template<
typenameT>
1512m_word_subst.Reset(
newobjects::CWord_substitution_set);
1544m_MatchText->SetValue(wxString(match_text));
1546m_MatchChoice->SetValue(wxString(match_text));
1549 template<
typenameT>
1557 template<
typenameT>
1567wxPanel::Create( parent);
1568wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxHORIZONTAL);
1569SetSizer(itemBoxSizer2);
1571itemBoxSizer2->Add(win, 1, wxGROW|wxALL, 0);
1576GetSizer()->SetSizeHints(
this);
#define SYMBOL_CADVSTRINGCONSTRAINTPANEL_STYLE
#define SYMBOL_CADVSTRINGCONSTRAINTPANEL_IDNAME
#define SYMBOL_CADVSTRINGCONSTRAINTPANEL_POSITION
#define SYMBOL_CADVSTRINGCONSTRAINTPANEL_SIZE
wxChoicebook * m_Notebook
static bool ShowToolTips()
wxBitmap GetBitmapResource(const wxString &name)
void OnCancel(wxCommandEvent &event)
bool Create(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &caption=_("Constraint"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
wxIcon GetIconResource(const wxString &name)
objects::CSeq_entry_Handle m_TopSeqEntry
void SetSelection(int page)
void OnAccept(wxCommandEvent &event)
void SetConstraint(const SFieldTypeAndMatcher &constraint)
CRef< objects::CWord_substitution_set > m_word_subst
void SetChoices(const vector< string > &choices)
@ eMatchType_DoesNotStartWith
@ eMatchType_DoesNotContain
@ eMatchType_DoesNotEndWith
@ eMatchType_DoesNotEqual
CAdvStringConstraintPanel()
Constructors.
void Init()
Initialises member variables.
virtual void SetMatcher(const SFieldTypeAndMatcher &item)
void CreateControls()
Creates the controls and sizers.
virtual void SetFieldNames(const vector< string > &field_names)
virtual void AddWordSubstSet(CRef< objects::CWord_substitution_set > word_subst)
void OnWordSubstitution(wxCommandEvent &event)
void ShowChoiceOrText(void)
void OnClear(wxCommandEvent &event)
wxRadioButton * m_AnyLetters
wxCheckBox * m_IgnoreSpace
@ ID_CADVSTRINGCONSTRAINTPANEL
@ ID_STRING_CONSTRAINT_CHECKBOX9
@ ID_STRING_CONSTRAINT_CLEAR_BUTTON
@ ID_STRING_CONSTRAINT_WORDSUBST_BUTTON
@ ID_STRING_CONSTRAINT_CHECKBOX7
@ ID_STRING_CONSTRAINT_MATCH_TEXT
@ ID_STRING_CONSTRAINT_CHECKBOX5
@ ID_STRING_CONSTRAINT_CHECKBOX6
@ ID_STRING_CONSTRAINT_RADIO2
@ ID_STRING_CONSTRAINT_CHECKBOX8
@ ID_STRING_CONSTRAINT_RADIO3
@ ID_STRING_CONSTRAINT_RADIO1
@ ID_STRING_CONSTRAINT_RADIO0
@ ID_STRING_CONSTRAINT_MATCH_CHOICE
virtual void UpdateEditor(void)
static bool ShowToolTips()
Should we show tooltips?
wxRadioButton * m_AllLower
virtual SFieldTypeAndMatcher GetMatcher(CFieldNamePanel::EFieldType field_type)
void OnMatchTypeSelected(wxCommandEvent &event)
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
wxComboBox * m_MatchChoice
virtual string GetLabel(void)
wxDECLARE_NO_COPY_CLASS(CAdvStringConstraintPanel)
~CAdvStringConstraintPanel()
Destructor.
virtual void SetFieldName(const string &field)
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
bool Create(wxWindow *parent, wxWindowID id=ID_CADVSTRINGCONSTRAINTPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
Creation.
CRef< objects::CString_constraint > GetStringConstraint()
virtual void PopulateFeatureListbox(objects::CSeq_entry_Handle seh)
wxCheckBox * m_IgnorePunct
wxRadioButton * m_AllUpper
wxRadioButton * m_AllPunct
wxCheckBox * m_IgnoreCase
void AddConstraint(pair< string, SFieldTypeAndMatcher > item, int id)
static vector< string > GetFieldNames()
void ListPresentFeaturesFirst(objects::CSeq_entry_Handle seh, vector< const objects::CFeatListItem * > *featlist=nullptr)
void SetFieldNames(const vector< string > &field_names)
virtual string GetFieldName(const bool subfield=false)=0
Returns the name of the field as selected in the panel.
virtual vector< string > GetChoices(bool &allow_other)
static string GetFieldTypeName(EFieldType field_type)
static EFieldType GetFieldTypeFromName(const string &field_type_name)
virtual string GetLabel(void)=0
virtual void PopulateFeatureListbox(objects::CSeq_entry_Handle seh)
virtual void SetMatcher(const SFieldTypeAndMatcher &item)=0
virtual void SetFieldNames(const vector< string > &field_names)
virtual void SetFieldName(const string &field)
virtual SFieldTypeAndMatcher GetMatcher(CFieldNamePanel::EFieldType field_type)=0
static vector< string > GetStrings()
static vector< string > GetFieldNames()
wxBitmap GetBitmapResource(const wxString &name)
virtual string GetLabel(void)
wxDECLARE_NO_COPY_CLASS(CPresentMatcherPanel)
virtual void SetFieldNames(const vector< string > &field_names)
bool Create(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
virtual void SetMatcher(const SFieldTypeAndMatcher &item)
wxIcon GetIconResource(const wxString &name)
virtual void PopulateFeatureListbox(objects::CSeq_entry_Handle seh)
static bool ShowToolTips()
virtual SFieldTypeAndMatcher GetMatcher(CFieldNamePanel::EFieldType field_type)
virtual void SetFieldName(const string &field)
static vector< string > GetFieldNames(bool extended=false)
virtual SFieldTypeAndMatcher GetMatcher(CFieldNamePanel::EFieldType field_type)
virtual void PopulateFeatureListbox(objects::CSeq_entry_Handle seh)
wxIcon GetIconResource(const wxString &name)
wxBitmap GetBitmapResource(const wxString &name)
virtual void SetFieldName(const string &field)
wxDECLARE_NO_COPY_CLASS(CSameMatcherPanel)
virtual string GetLabel(void)
virtual void SetMatcher(const SFieldTypeAndMatcher &item)
static bool ShowToolTips()
virtual void SetFieldNames(const vector< string > &field_names)
bool Create(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
void SetMatch_text(const TMatch_text &value)
IItemConstraintPanel * m_panel
CTripleConstraintPanel_CSourceFieldNamePanel_Wrapper()
void SetFieldName(const string &field)
wxDECLARE_NO_COPY_CLASS(CTripleConstraintPanel)
virtual pair< string, SFieldTypeAndMatcher > GetItem(CFieldNamePanel::EFieldType field_type)
virtual void SetItem(const SFieldTypeAndMatcher &item)
void SetFieldNames(const vector< string > &field_names)
~CTripleConstraintPanel()
wxIcon GetIconResource(const wxString &name)
wxBitmap GetBitmapResource(const wxString &name)
void PopulateFeatureListbox(objects::CSeq_entry_Handle seh)
bool Create(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
static bool ShowToolTips()
static string GetDescription(CRef< objects::CWord_substitution > ws)
virtual pair< string, SFieldTypeAndMatcher > GetItem(CFieldNamePanel::EFieldType field_type)=0
virtual void SetItem(const SFieldTypeAndMatcher &item)=0
int GetSubtype(CFieldNamePanel *field_name_panel, string &ncRNA_class)
const char * kDefinitionLineLabel
static const char * str(char *buf, int n)
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
void Reset(void)
Reset reference object.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static string Join(const TContainer &arr, const CTempString &delim)
Join strings using the specified delimiter.
static string & Replace(const string &src, const string &search, const string &replace, string &dst, SIZE_TYPE start_pos=0, SIZE_TYPE max_replace=0, SIZE_TYPE *num_replace=0)
Replace occurrences of a substring within a string.
static const char label[]
TCase_sensitive GetCase_sensitive(void) const
Get the Case_sensitive member data.
const TIgnore_words & GetIgnore_words(void) const
Get the Ignore_words member data.
void SetIs_all_lower(TIs_all_lower value)
Assign a value to Is_all_lower data member.
TIgnore_space GetIgnore_space(void) const
Get the Ignore_space member data.
TMatch_location GetMatch_location(void) const
Get the Match_location member data.
TIs_all_caps GetIs_all_caps(void) const
Get the Is_all_caps member data.
void SetIs_all_punct(TIs_all_punct value)
Assign a value to Is_all_punct data member.
bool IsSetNot_present(void) const
Check if a value has been assigned to Not_present data member.
TWhole_word GetWhole_word(void) const
Get the Whole_word member data.
TIgnore_weasel GetIgnore_weasel(void) const
Get the Ignore_weasel member data.
void SetIgnore_punct(TIgnore_punct value)
Assign a value to Ignore_punct data member.
TIgnore_punct GetIgnore_punct(void) const
Get the Ignore_punct member data.
void SetIgnore_words(TIgnore_words &value)
Assign a value to Ignore_words data member.
void SetMatch_location(TMatch_location value)
Assign a value to Match_location data member.
const TMatch_text & GetMatch_text(void) const
Get the Match_text member data.
TNot_present GetNot_present(void) const
Get the Not_present member data.
void SetIs_all_caps(TIs_all_caps value)
Assign a value to Is_all_caps data member.
TIs_all_punct GetIs_all_punct(void) const
Get the Is_all_punct member data.
TIs_all_lower GetIs_all_lower(void) const
Get the Is_all_lower member data.
void SetCase_sensitive(TCase_sensitive value)
Assign a value to Case_sensitive data member.
void SetIgnore_space(TIgnore_space value)
Assign a value to Ignore_space data member.
void SetWhole_word(TWhole_word value)
Assign a value to Whole_word data member.
void SetIgnore_weasel(TIgnore_weasel value)
Assign a value to Ignore_weasel data member.
void SetNot_present(TNot_present value)
Assign a value to Not_present data member.
bool IsSetIgnore_words(void) const
Check if a value has been assigned to Ignore_words data member.
@ eString_location_inlist
@ eString_location_equals
@ eString_location_contains
@ eString_location_starts
const struct ncbi::grid::netcache::search::fields::SIZE size
CRef< CConstraintMatcher > matcher
CFieldNamePanel::EFieldType field_type2
CRef< CConstraintMatcher > matcher2
CFieldNamePanel::EFieldType field_type
CRef< CString_constraint > string_constraint
wxString ToWxString(const string &s)
string ToStdString(const wxString &s)
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