<
template<
typenameT2>
classT1>
78 CQualPanel( wxWindow* parent,
boolcomposed =
false, wxWindowID
id=
wxID_ANY,
constwxPoint& pos = wxDefaultPosition,
constwxSize&
size= wxDefaultSize,
longstyle = wxTAB_TRAVERSAL );
79 bool Create( wxWindow* parent, wxWindowID
id=
wxID_ANY,
constwxPoint& pos = wxDefaultPosition,
constwxSize&
size= wxDefaultSize,
longstyle = wxTAB_TRAVERSAL );
93 template<
typenameT>
99 CSingleFieldPanel( wxWindow* parent, wxWindowID
id=
wxID_ANY,
constwxPoint& pos = wxDefaultPosition,
constwxSize&
size= wxDefaultSize,
longstyle = wxTAB_TRAVERSAL );
100 bool Create( wxWindow* parent, wxWindowID
id=
wxID_ANY,
constwxPoint& pos = wxDefaultPosition,
constwxSize&
size= wxDefaultSize,
longstyle = wxTAB_TRAVERSAL );
113 virtualvector<string>
GetChoices(
bool& allow_other)
const{
return m_Field->GetChoices(allow_other);}
114 virtual string GetField1(
boolsubfield =
true)
const{
return m_Field->GetFieldName(subfield);}
121 template<
typenameT>
127 CDualFieldPanel( 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 virtualvector<string>
GetChoices(
bool& allow_other)
const{
return m_Field1->GetChoices(allow_other);}
142 virtual string GetField1(
boolsubfield =
true)
const{
return m_Field1->GetFieldName(subfield);}
143 virtual string GetField2(
boolsubfield =
true)
const{
return m_Field2->GetFieldName(subfield);}
158 CSingleFieldPanel( wxWindow* parent, wxWindowID
id=
wxID_ANY,
constwxPoint& pos = wxDefaultPosition,
constwxSize&
size= wxDefaultSize,
longstyle = wxTAB_TRAVERSAL );
159 bool Create( wxWindow* parent, wxWindowID
id=
wxID_ANY,
constwxPoint& pos = wxDefaultPosition,
constwxSize&
size= wxDefaultSize,
longstyle = wxTAB_TRAVERSAL );
169 virtualvector<string>
GetChoices(
bool& allow_other)
const{
return m_Field->GetChoices(allow_other);}
170 virtual string GetField1(
boolsubfield =
true)
const{
return m_Field->GetFieldName(subfield);}
189 CDualFieldPanel( wxWindow* parent, wxWindowID
id=
wxID_ANY,
constwxPoint& pos = wxDefaultPosition,
constwxSize&
size= wxDefaultSize,
longstyle = wxTAB_TRAVERSAL );
190 bool Create( wxWindow* parent, wxWindowID
id=
wxID_ANY,
constwxPoint& pos = wxDefaultPosition,
constwxSize&
size= wxDefaultSize,
longstyle = wxTAB_TRAVERSAL );
201 virtualvector<string>
GetChoices(
bool& allow_other)
const{
return m_Field1->GetChoices(allow_other);}
202 virtual string GetField1(
boolsubfield =
true)
const{
return m_Field1->GetFieldName(subfield);}
203 virtual string GetField2(
boolsubfield =
true)
const{
return m_Field2->GetFieldName(subfield);}
224 CDualFieldPanel( wxWindow* parent, wxWindowID
id=
wxID_ANY,
constwxPoint& pos = wxDefaultPosition,
constwxSize&
size= wxDefaultSize,
longstyle = wxTAB_TRAVERSAL );
225 bool Create( wxWindow* parent, wxWindowID
id=
wxID_ANY,
constwxPoint& pos = wxDefaultPosition,
constwxSize&
size= wxDefaultSize,
longstyle = wxTAB_TRAVERSAL );
236 virtualvector<string>
GetChoices(
bool& allow_other)
const{
returnm_Field->GetChoices(allow_other);}
237 virtual string GetField1(
boolsubfield =
true)
const{
returnm_Field->GetFieldName(subfield);}
238 virtual string GetField2(
boolsubfield =
true)
const{
returnm_Field->GetFieldName2(subfield);}
255EVT_COMMAND(
wxID_ANY, wxEVT_COMMAND_UPDATE_CONSTRAINT_FIELD_NEW,
CAECRFrame::UpdateConstraintFieldType)
269 Create(parent, wb,
id, caption, pos,
size, style);
277SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
283GetSizer()->SetSizeHints(
this);
285Centre(wxBOTH|wxCENTRE_ON_SCREEN);
332 if(width >= 0 && height >= 0)
333SetSize(wxSize(width,height));
338 if(pos_x >= 0 && pos_y >= 0) {
340 for(
unsigned i= 0;
i< wxDisplay::GetCount();
i++)
342wxDisplay display(
i);
343max_x += display.GetGeometry().GetWidth();
345 if(pos_x + width > max_x)
346pos_x = wxGetDisplaySize().GetWidth() - width - 5;
348 if(pos_y + height > wxGetDisplaySize().GetHeight())
349pos_y = wxGetDisplaySize().GetHeight()-height-5;
351SetPosition(wxPoint(pos_x,pos_y));
372wxBoxSizer* itemBoxSizer1 =
newwxBoxSizer(wxVERTICAL);
373SetSizer(itemBoxSizer1);
375wxPanel* parentPanel =
newwxPanel(
this,
wxID_ANY);
376itemBoxSizer1->Add(parentPanel, 1, wxGROW, 0);
378wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
379parentPanel->SetSizer(itemBoxSizer2);
383itemBoxSizer2->Add(
m_Listbook, 0, wxALIGN_LEFT|wxALL, 5);
407 m_Listbook->AddPage(page8,
wxT(
"Remove Outside"),
false);
415itemBoxSizer2->Add(
m_Constraint, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
418wxBoxSizer* itemBoxSizer3 =
newwxBoxSizer(wxHORIZONTAL);
419itemBoxSizer2->Add(itemBoxSizer3, 0, wxALIGN_CENTER_HORIZONTAL, 0);
423 m_ClearWhenChanging=
newwxCheckBox( parentPanel,
wxID_ANY,
_(
"Clear when changing actions"), wxDefaultPosition, wxDefaultSize, 0 );
429itemBoxSizer3->Add(
m_OkCancel, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
466 stringfield = panel->
GetField1(
false);
477wxWindowList &slist = win->GetChildren();
478 for(wxWindowList::iterator iter = slist.begin(); iter != slist.end(); ++iter)
480wxWindow* child = *iter;
492wxWindowList &slist = win->GetChildren();
493 for(wxWindowList::iterator iter = slist.begin(); iter != slist.end(); ++iter)
495wxWindow* child = *iter;
499 if(fieldvalue_panel)
503 if(strcomm_fields_panel)
516wxWindow *win =
m_Listbook->GetCurrentPage();
537wxWindow *win =
m_Listbook->GetCurrentPage();
562wxWindow *win =
m_Listbook->GetCurrentPage();
573 if(!title.IsEmpty())
590wxWindow *win =
m_Listbook->GetCurrentPage();
591wxWindow* parentPanel =
m_Listbook->GetParent();
594win->Reparent(parentPanel);
595parentPanel->GetSizer()->Prepend(win, 0, wxGROW|wxALL, 5);
601GetSizer()->SetSizeHints(
this);
603Centre(wxBOTH|wxCENTRE_ON_SCREEN);
611wxWindow *win =
m_Listbook->GetCurrentPage();
628 intuc =
event.GetKeyCode();
629 if(uc == WXK_RETURN)
653wxMessageBox(
ToWxString(
"No data was selected"),
wxT(
"Error"), wxOK | wxICON_ERROR,
NULL);
667 if(sel == wxNOT_FOUND)
670wxWindow *win =
m_Listbook->GetCurrentPage();
692subtype, ncRNA_class);
694action1->SetConstraint(constraint);
705 cmd= action1->GetActionCommand();
723wxWindow* win =
m_Notebook->GetCurrentPage();
736wxWindow* parentPanel =
m_Notebook->GetParent();
737wxWindow* win =
m_Notebook->GetCurrentPage();
740win->Reparent(parentPanel);
741parentPanel->GetSizer()->Prepend(win, 0, wxGROW|wxALL, 5);
750vector<string> choices;
753wxWindow* win =
m_Notebook->GetCurrentPage();
769wxWindow* win =
m_Notebook->GetCurrentPage();
785wxWindow* win =
m_Notebook->GetCurrentPage();
801 if(sel != wxNOT_FOUND)
814wxWindow* win =
m_Notebook->GetCurrentPage();
830wxWindow* win =
m_Notebook->GetCurrentPage();
845wxWindow *win =
m_Notebook->GetCurrentPage();
868win = win->GetParent();
918 if(constraint_panel)
921action1->SetConstraint(constraint);
923action1->ResetChangedValues();
924action1->SetMaxRecords(100);
926 if(!action1->GetChangedValues().empty())
928 val= action1->GetChangedValues().front();
939 bool value(
false);
950 bool value(
false);
968 cmd=
CreateAction(seh, field2, field_type, subtype2, ncRNA_class, submit);
983 cmd=
CreateAction(seh, field1, field_type, subtype1, ncRNA_class, submit);
988 template<
template<
typenameT2>
classT1>
994 template<
template<
typenameT2>
classT1>
996: m_composed(composed)
1002 template<
template<
typenameT2>
classT1>
1005wxPanel::Create( parent,
id, pos,
size, style );
1009GetSizer()->SetSizeHints(
this);
1015 template<
template<
typenameT2>
classT1>
1020 template<
template<
typenameT2>
classT1>
1024m_SpecificQual =
NULL;
1027 template<
template<
typenameT2>
classT1>
1032wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
1033itemPanel1->SetSizer(itemBoxSizer2);
1035m_Notebook =
newwxNotebook(itemPanel1,
wxID_ANY, wxDefaultPosition, wxDefaultSize);
1036itemBoxSizer2->Add(m_Notebook, 0, wxGROW|wxALL, 5);
1039T1<CSourceFieldNamePanel> *panel1 =
newT1<CSourceFieldNamePanel>(m_Notebook);
1040m_Notebook->AddPage(panel1,
_(
"Taxname"));
1041panel1->SetFieldName(
"taxname");
1043T1<CSourceFieldNamePanel> *panel2 =
newT1<CSourceFieldNamePanel>(m_Notebook);
1044m_Notebook->AddPage(panel2,
_(
"Source"));
1045panel2->AddAdditionalItems(m_composed);
1047T1<CFeatureFieldNamePanel> *panel3 =
newT1<CFeatureFieldNamePanel>(m_Notebook);
1048m_Notebook->AddPage(panel3,
_(
"Feature"));
1050T1<CCDSGeneProtFieldNamePanel> *panel4 =
newT1<CCDSGeneProtFieldNamePanel>(m_Notebook);
1051m_Notebook->AddPage(panel4,
_(
"CDS-Gene-Prot-mRNA"));
1052panel4->SetFieldName(
"protein name");
1054T1<CRNAFieldNamePanel> *panel5 =
newT1<CRNAFieldNamePanel>(m_Notebook);
1055m_Notebook->AddPage(panel5,
_(
"RNA"));
1056panel5->SetFieldName(
"product");
1058T1<CFieldHandlerNamePanel> *panel6 =
newT1<CFieldHandlerNamePanel>(m_Notebook);
1060m_Notebook->AddPage(panel6,
_(
"MolInfo"));
1061panel6->SetFieldName(
"molecule");
1063T1<CFieldHandlerNamePanel> *panel7 =
newT1<CFieldHandlerNamePanel>(m_Notebook);
1065m_Notebook->AddPage(panel7,
_(
"Pub"));
1066panel7->SetFieldName(
"title");
1068T1<CStructCommentFieldPanel> *panel8 =
newT1<CStructCommentFieldPanel>(m_Notebook);
1069m_Notebook->AddPage(panel8,
_(
"Structured Comment"));
1071T1<CFieldHandlerNamePanel> *panel9 =
newT1<CFieldHandlerNamePanel>(m_Notebook);
1073m_Notebook->AddPage(panel9,
_(
"DBLink"));
1074panel9->SetFieldName(
"title");
1076T1<CFieldHandlerNamePanel> *panel10 =
newT1<CFieldHandlerNamePanel>(m_Notebook);
1078m_Notebook->AddPage(panel10,
_(
"Misc"));
1081wxCommandEvent fieldTypeEvent2(wxEVT_COMMAND_UPDATE_CONSTRAINT_FIELD_NEW,
GetId());
1082fieldTypeEvent2.SetEventObject(
this);
1083GetEventHandler()->ProcessEvent(fieldTypeEvent2);
1086 template<
template<
typenameT2>
classT1>
1089wxCommandEvent fieldTypeEvent2(wxEVT_COMMAND_UPDATE_CONSTRAINT_FIELD_NEW);
1090fieldTypeEvent2.SetEventObject(
this);
1091GetEventHandler()->ProcessEvent(fieldTypeEvent2);
1093wxCommandEvent fieldTypeEvent3(wxEVT_COMMAND_UPDATE_AECR_QUAL_CHOICES);
1094fieldTypeEvent3.SetEventObject(
this);
1095GetEventHandler()->ProcessEvent(fieldTypeEvent3);
1100 template<
template<
typenameT2>
classT1>
1106 template<
template<
typenameT2>
classT1>
1109 for(
size_t i= 0;
i< m_Notebook->GetPageCount();
i++)
1111 if(m_Notebook->GetPageText(
i) ==
_(
"Feature"))
1113wxWindow *win = m_Notebook->GetPage(
i);
1121 template<
template<
typenameT2>
classT1>
1127 template<
template<
typenameT2>
classT1>
1131 returnwxNullBitmap;
1134 template<
template<
typenameT2>
classT1>
1162wxPanel::Create( parent,
id, pos,
size, style );
1167GetSizer()->SetSizeHints(
this);
1188wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
1189itemPanel1->SetSizer(itemBoxSizer2);
1194itemBoxSizer2->Add(panel, 0, wxGROW, 0);
1201wxArrayString choice_strings;
1205 ITERATE(vector<string>, it, choices) {
1210itemBoxSizer2->Add(
m_ApplyChoiceBox, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
1226wxArrayString choice_strings;
1230 ITERATE(vector<string>, it, choices)
1266 if(
val.empty() && old_sel != wxNOT_FOUND)
1287action1->SetExistingText(existing_text);
1288action1->Apply(
val);
1308 returnwxNullBitmap;
1337wxPanel::Create( parent,
id, pos,
size, style );
1342GetSizer()->SetSizeHints(
this);
1362wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
1363itemPanel1->SetSizer(itemBoxSizer2);
1368itemBoxSizer2->Add(panel, 0, wxGROW, 0);
1376itemBoxSizer2->Add(
m_EditOptions, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
1433 returnwxNullBitmap;
1461wxPanel::Create( parent,
id, pos,
size, style );
1466GetSizer()->SetSizeHints(
this);
1484wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
1485itemPanel1->SetSizer(itemBoxSizer2);
1488itemBoxSizer2->Add(panel, 0, wxGROW, 0);
1491wxBoxSizer* itemBoxSizer3 =
newwxBoxSizer(wxHORIZONTAL);
1492itemBoxSizer2->Add(itemBoxSizer3, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 2);
1503itemBoxSizer2->Add(
m_CapChangeOptions, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
1508action2->SetExistingText(existing_text);
1516action1->ConvertFrom(cap_change,
m_LeaveOriginal->IsChecked(), strip_name, action2);
1538 returnwxNullBitmap;
1567wxPanel::Create( parent,
id, pos,
size, style );
1572GetSizer()->SetSizeHints(
this);
1590wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
1591itemPanel1->SetSizer(itemBoxSizer2);
1595itemBoxSizer2->Add(panel, 0, wxGROW, 0);
1598itemBoxSizer2->Add(
m_ParseOptions, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
1603action2->SetExistingText(existing_text);
1624 returnwxNullBitmap;
1653wxPanel::Create( parent,
id, pos,
size, style );
1658GetSizer()->SetSizeHints(
this);
1676wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
1677itemPanel1->SetSizer(itemBoxSizer2);
1681itemBoxSizer2->Add(panel, 0, wxGROW, 0);
1707 returnwxNullBitmap;
1735wxPanel::Create( parent,
id, pos,
size, style );
1740GetSizer()->SetSizeHints(
this);
1758wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
1759itemPanel1->SetSizer(itemBoxSizer2);
1763itemBoxSizer2->Add(panel, 0, wxGROW, 0);
1785 returnwxNullBitmap;
1813wxPanel::Create( parent,
id, pos,
size, style );
1818GetSizer()->SetSizeHints(
this);
1836wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
1837itemPanel1->SetSizer(itemBoxSizer2);
1841itemBoxSizer2->Add(panel, 0, wxGROW, 0);
1846action2->SetExistingText(existing_text);
1847action1->CopyFrom(action2);
1867 returnwxNullBitmap;
1895wxPanel::Create( parent,
id, pos,
size, style );
1900GetSizer()->SetSizeHints(
this);
1918wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
1919itemPanel1->SetSizer(itemBoxSizer2);
1923itemBoxSizer2->Add(panel, 0, wxGROW, 0);
1928action1->SwapFrom(action2);
1948 returnwxNullBitmap;
1958 template<
typenameT>
1964 template<
typenameT>
1968Create(parent,
id, pos,
size, style);
1971 template<
typenameT>
1974wxPanel::Create( parent,
id, pos,
size, style );
1979GetSizer()->SetSizeHints(
this);
1985 template<
typenameT>
1990 template<
typenameT>
1995 template<
typenameT>
2000wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxHORIZONTAL);
2001itemPanel1->SetSizer(itemBoxSizer2);
2003wxBoxSizer* itemBoxSizer3 =
newwxBoxSizer(wxVERTICAL);
2004itemBoxSizer2->Add(itemBoxSizer3, 1, wxALIGN_CENTER_VERTICAL|wxALL, 5);
2006m_Field =
new T(itemPanel1);
2007itemBoxSizer3->Add(m_Field, 0, wxALIGN_CENTER_HORIZONTAL, 0);
2010 template<
typenameT>
2014 returnm_Field->SetFieldName(field);
2018 template<
typenameT>
2022m_Field->AddAdditionalItems();
2025 template<
typenameT>
2031 template<
typenameT>
2035 returnwxNullBitmap;
2038 template<
typenameT>
2048 template<
typenameT>
2054 template<
typenameT>
2058Create(parent,
id, pos,
size, style);
2061 template<
typenameT>
2064wxPanel::Create( parent,
id, pos,
size, style );
2069GetSizer()->SetSizeHints(
this);
2075 template<
typenameT>
2080 template<
typenameT>
2085 template<
typenameT>
2090wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxHORIZONTAL);
2091itemPanel1->SetSizer(itemBoxSizer2);
2093wxBoxSizer* itemBoxSizer3 =
newwxBoxSizer(wxVERTICAL);
2094itemBoxSizer2->Add(itemBoxSizer3, 1, wxALIGN_CENTER_VERTICAL|wxALL, 2);
2096wxStaticText* itemStaticText1 =
newwxStaticText( itemPanel1, wxID_STATIC,
_(
"From"), wxDefaultPosition, wxDefaultSize, 0 );
2097itemBoxSizer3->Add(itemStaticText1, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
2099m_Field1 =
new T(itemPanel1);
2100itemBoxSizer3->Add(m_Field1, 0, wxALIGN_CENTER_HORIZONTAL, 0);
2102wxBoxSizer* itemBoxSizer4 =
newwxBoxSizer(wxVERTICAL);
2103itemBoxSizer2->Add(itemBoxSizer4, 1, wxALIGN_CENTER_VERTICAL|wxALL, 2);
2105wxStaticText* itemStaticText2 =
newwxStaticText( itemPanel1, wxID_STATIC,
_(
"To"), wxDefaultPosition, wxDefaultSize, 0 );
2106itemBoxSizer4->Add(itemStaticText2, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
2108m_Field2 =
new T(itemPanel1);
2109itemBoxSizer4->Add(m_Field2, 0, wxALIGN_CENTER_HORIZONTAL, 0);
2112 template<
typenameT>
2117 returnm_Field1->SetFieldName(field);
2122 template<
typenameT>
2127 returnm_Field2->SetFieldName(field);
2132 template<
typenameT>
2138 template<
typenameT>
2142 returnwxNullBitmap;
2145 template<
typenameT>
2166wxPanel::Create( parent,
id, pos,
size, style );
2171GetSizer()->SetSizeHints(
this);
2189wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxHORIZONTAL);
2190itemPanel1->SetSizer(itemBoxSizer2);
2192wxBoxSizer* itemBoxSizer3 =
newwxBoxSizer(wxVERTICAL);
2193itemBoxSizer2->Add(itemBoxSizer3, 1, wxALIGN_CENTER_VERTICAL|wxALL, 5);
2196itemBoxSizer3->Add(
m_Field, 0, wxALIGN_CENTER_HORIZONTAL, 0);
2198m_UpdatemRNAProduct =
newwxCheckBox(itemPanel1,
wxID_ANY,
wxT(
"Make mRNA product match CDS protein name"), wxDefaultPosition, wxDefaultSize, 0);
2199m_UpdatemRNAProduct->SetValue(
true);
2200itemBoxSizer3->Add(m_UpdatemRNAProduct, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
2202m_RetranslateCds =
newwxCheckBox(itemPanel1,
wxID_ANY,
wxT(
"Retranslate adjusted coding regions"), wxDefaultPosition, wxDefaultSize, 0);
2203m_RetranslateCds->SetValue(
false);
2204itemBoxSizer3->Add(m_RetranslateCds, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
2209m_UpdatemRNAProduct->Disable();
2210 stringfield =
m_Field->GetFieldName(
true);
2213m_UpdatemRNAProduct->Enable();
2219m_RetranslateCds->Disable();
2220 stringfield =
m_Field->GetFieldName(
true);
2223m_RetranslateCds->Enable();
2229 returnm_UpdatemRNAProduct->IsEnabled() && m_UpdatemRNAProduct->GetValue();
2234 returnm_RetranslateCds->IsEnabled() && m_RetranslateCds->GetValue();
2240 return m_Field->SetFieldName(field);
2252 returnwxNullBitmap;
2275wxPanel::Create( parent,
id, pos,
size, style );
2280GetSizer()->SetSizeHints(
this);
2298wxBoxSizer* itemBoxSizer1 =
newwxBoxSizer(wxVERTICAL);
2299itemPanel1->SetSizer(itemBoxSizer1);
2301wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxHORIZONTAL);
2302itemBoxSizer1->Add(itemBoxSizer2, 1, wxALIGN_CENTER_HORIZONTAL|wxALL, 2);
2304wxBoxSizer* itemBoxSizer3 =
newwxBoxSizer(wxVERTICAL);
2305itemBoxSizer2->Add(itemBoxSizer3, 1, wxALIGN_CENTER_VERTICAL|wxALL, 2);
2307wxStaticText* itemStaticText1 =
newwxStaticText( itemPanel1, wxID_STATIC,
_(
"From"), wxDefaultPosition, wxDefaultSize, 0 );
2308itemBoxSizer3->Add(itemStaticText1, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
2311itemBoxSizer3->Add(
m_Field1, 0, wxALIGN_CENTER_HORIZONTAL, 0);
2313wxBoxSizer* itemBoxSizer4 =
newwxBoxSizer(wxVERTICAL);
2314itemBoxSizer2->Add(itemBoxSizer4, 1, wxALIGN_CENTER_VERTICAL|wxALL, 2);
2316wxStaticText* itemStaticText2 =
newwxStaticText( itemPanel1, wxID_STATIC,
_(
"To"), wxDefaultPosition, wxDefaultSize, 0 );
2317itemBoxSizer4->Add(itemStaticText2, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
2320itemBoxSizer4->Add(
m_Field2, 0, wxALIGN_CENTER_HORIZONTAL, 0);
2322m_UpdatemRNAProduct =
newwxCheckBox(itemPanel1,
wxID_ANY,
wxT(
"Make mRNA product match CDS protein name"), wxDefaultPosition, wxDefaultSize, 0);
2323m_UpdatemRNAProduct->SetValue(
true);
2324itemBoxSizer1->Add(m_UpdatemRNAProduct, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
2326m_RetranslateCds =
newwxCheckBox(itemPanel1,
wxID_ANY,
wxT(
"Retranslate adjusted coding regions"), wxDefaultPosition, wxDefaultSize, 0);
2327m_RetranslateCds->SetValue(
false);
2328itemBoxSizer1->Add(m_RetranslateCds, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
2333m_UpdatemRNAProduct->Disable();
2334 stringfield1 =
m_Field1->GetFieldName(
true);
2335 stringfield2 =
m_Field2->GetFieldName(
true);
2338m_UpdatemRNAProduct->Enable();
2344 returnm_UpdatemRNAProduct->IsEnabled() && m_UpdatemRNAProduct->GetValue();
2349m_RetranslateCds->Disable();
2350 stringfield =
m_Field2->GetFieldName(
true);
2353m_RetranslateCds->Enable();
2359 returnm_RetranslateCds->IsEnabled() && m_RetranslateCds->GetValue();
2366 return m_Field1->SetFieldName(field);
2375 return m_Field2->SetFieldName(field);
2388 returnwxNullBitmap;
2411wxPanel::Create( parent,
id, pos,
size, style );
2416GetSizer()->SetSizeHints(
this);
2434wxBoxSizer* itemBoxSizer1 =
newwxBoxSizer(wxVERTICAL);
2435itemPanel1->SetSizer(itemBoxSizer1);
2438itemBoxSizer1->Add(m_Field, 0, wxALIGN_CENTER_HORIZONTAL, 0);
2445 returnm_Field->SetFieldName(field);
2454 returnm_Field->SetFieldName2(field);
2467 returnwxNullBitmap;
static const char * kFramePosX
static const char * kFrameHeight
wxDEFINE_EVENT(wxEVT_COMMAND_UPDATE_CONSTRAINT_FIELD_NEW, wxCommandEvent)
static const char * kFramePosY
static const char * kFrameWidth
#define ID_AECR_AUTOPOPULATE_EDIT_CHECKBOX
#define ID_AECR_LEAVE_ORIGINAL_CONVERT_CHECKBOX
#define ID_AECR_FRAME_LISTBOOK
#define ID_AECR_AUTOPOPULATE_APPLY_CHECKBOX
#define ID_AECR_STRIP_NAME_CONVERT_CHECKBOX
#define ID_AECR_AUTOPOPULATE_APPLY_COMBOBOX
#define ID_AECR_FRAME_LISTVIEW
wxIcon GetIconResource(const wxString &name)
void SetInitParameters(EActionType action_type, EFieldType field_type, const string &field=kEmptyStr, const wxString &title=wxEmptyString)
void AfterPageChange(wxBookCtrlEvent &event)
void BeforePageChange(wxBookCtrlEvent &event)
virtual void LoadSettings()
wxBitmap GetBitmapResource(const wxString &name)
bool Create(wxWindow *parent, IWorkbench *wb, wxWindowID id=wxID_ANY, const wxString &caption=_("Apply Edit Convert Remove"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
void UpdateStructuredCommentFields(wxWindow *win, const set< string > &fields)
void OnKeyDown(wxKeyEvent &event)
COkCancelPanel * m_OkCancel
virtual void SaveSettings() const
wxCheckBox * m_ClearWhenChanging
CAdvancedConstraintPanel * GetConstraintPanel(void)
virtual CRef< CCmdComposite > GetCommand()
static bool ShowToolTips()
void UpdateChildrenFeaturePanels(wxWindow *win, vector< const CFeatListItem * > *featlist)
virtual void SetRegistryPath(const string ®_path)
CSeq_entry_Handle GetTopSeqEntryHandle(void)
CConstRef< objects::CSeq_submit > GetSeqSubmit(void)
IActionPanel * m_ActionPanel
virtual void UpdateEditor(void)
CAdvancedConstraintPanel * m_Constraint
void UnbindNotebookPageChanged()
virtual string GetErrorMessage()
void UpdateConstraintFieldType(wxCommandEvent &event)
CRef< CEditingActionConstraint > GetConstraint(const string &field, CFieldNamePanel::EFieldType field_type, int subtype, const string &ncRNA_class)
void SetSelection(int page)
virtual void ExecuteCmd(CRef< CCmdComposite > cmd)
CConstRef< objects::CSeq_submit > m_SeqSubmit
objects::CSeq_entry_Handle m_TopSeqEntry
bool Create(wxWindow *parent, wxWindowID id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE, const wxString &name=wxFrameNameStr)
bool GetTopLevelSeqEntryAndProcessor()
edit::EExistingText x_GetExistingTextHandling(int num_conflicts, bool allow_multiple=false)
objects::ECapChange GetCapitalizationRequest()
static vector< string > GetFieldNames()
CCDSGeneProtFieldNamePanel * m_Field2
wxCheckBox * m_RetranslateCds
virtual string GetField1(bool subfield=true) const
virtual CFieldNamePanel * GetFieldNamePanel1(void)
CCDSGeneProtFieldNamePanel * m_Field1
virtual CFieldNamePanel * GetFieldNamePanel2(void)
wxCheckBox * m_UpdatemRNAProduct
wxDECLARE_NO_COPY_CLASS(CDualFieldPanel)
virtual vector< string > GetChoices(bool &allow_other) const
virtual string GetField2(bool subfield=true) const
wxDECLARE_NO_COPY_CLASS(CDualFieldPanel)
virtual string GetField1(bool subfield=true) const
virtual CFieldNamePanel * GetFieldNamePanel1(void)
virtual CFieldNamePanel * GetFieldNamePanel2(void)
virtual string GetField2(bool subfield=true) const
CDualRNAFieldNamePanel * m_Field
virtual vector< string > GetChoices(bool &allow_other) const
virtual bool SetFieldName(const string &field)
static bool ShowToolTips()
virtual string GetField2(bool subfield=true) const
wxBitmap GetBitmapResource(const wxString &name)
bool Create(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
wxIcon GetIconResource(const wxString &name)
wxDECLARE_NO_COPY_CLASS(CDualFieldPanel)
virtual CFieldNamePanel * GetFieldNamePanel1(void)
virtual CFieldNamePanel * GetFieldNamePanel2(void)
virtual string GetField1(bool subfield=true) const
virtual ~CDualFieldPanel()
void SetFieldNames(const vector< string > &field_names)
virtual bool SetFieldName2(const string &field)
virtual vector< string > GetChoices(bool &allow_other) const
void AddAdditionalItems(bool composed)
macro::CMacroFunction_EditStringQual::ESearchLoc GetSearchLoc(void)
void SetFind(const string &str)
void ListPresentFeaturesFirst(const objects::CSeq_entry_Handle &entry, vector< const objects::CFeatListItem * > *featlist=nullptr)
static EFieldType GetFieldTypeFromName(const string &field_type_name)
virtual void ClearValues(void)
CRegistryWriteView GetWriteView(const string §ion)
get a read-write view at a particular level.
static CGuiRegistry & GetInstance()
access the application-wide singleton
CRegistryReadView GetReadView(const string §ion) const
get a read-only view at a particular level.
static vector< string > GetStrings()
static vector< string > GetFieldNames()
CRef< objects::edit::CParseTextOptions > GetParseOptions()
static vector< string > GetFieldNames(bool extended=false)
wxBitmap GetBitmapResource(const wxString &name)
bool Create(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
virtual void ClearValues(void)
wxIcon GetIconResource(const wxString &name)
wxComboBox * m_ApplyChoiceBox
void OnAutopopulateOptClick(wxCommandEvent &event)
static bool ShowToolTips()
virtual void SetupAction(CIRef< IEditingAction > action1, CIRef< IEditingAction > action2, edit::EExistingText existing_text)
void x_Autopopulate(void)
void OnUpdateQualChoices(wxCommandEvent &event)
virtual ~CQualApplyPanel()
wxCheckBox * m_AutopopulateOpt
void OnTextEnter(wxCommandEvent &event)
virtual void UpdateQualChoices(void)
virtual void SetupAction(CIRef< IEditingAction > action1, CIRef< IEditingAction > action2, edit::EExistingText existing_text)
wxCheckBox * m_LeaveOriginal
bool Create(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
wxBitmap GetBitmapResource(const wxString &name)
static bool ShowToolTips()
wxIcon GetIconResource(const wxString &name)
virtual ~CQualConvertPanel()
CCapChangePanel * m_CapChangeOptions
virtual void ClearValues(void)
wxCheckBox * m_StripNameFromText
virtual void SetupAction(CIRef< IEditingAction > action1, CIRef< IEditingAction > action2, edit::EExistingText existing_text)
virtual ~CQualCopyPanel()
wxIcon GetIconResource(const wxString &name)
bool Create(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
wxBitmap GetBitmapResource(const wxString &name)
virtual void ClearValues(void)
static bool ShowToolTips()
void x_Autopopulate(void)
void OnUpdateQualChoices(wxCommandEvent &event)
bool Create(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
virtual void SetupAction(CIRef< IEditingAction > action1, CIRef< IEditingAction > action2, edit::EExistingText existing_text)
virtual void ClearValues(void)
wxIcon GetIconResource(const wxString &name)
static bool ShowToolTips()
wxCheckBox * m_AutopopulateOpt
virtual void UpdateQualChoices(void)
virtual ~CQualEditPanel()
void OnAutopopulateOptClick(wxCommandEvent &event)
CEditTextOptionsPanel * m_EditOptions
wxBitmap GetBitmapResource(const wxString &name)
void SetShowLegalOnly(bool show)
wxDECLARE_NO_COPY_CLASS(CQualPanel)
bool Create(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
void OnPageChanged(wxBookCtrlEvent &event)
virtual void UnbindNotebookPageChanged()
wxBitmap GetBitmapResource(const wxString &name)
static bool ShowToolTips()
wxIcon GetIconResource(const wxString &name)
wxBitmap GetBitmapResource(const wxString &name)
virtual ~CQualParsePanel()
CParseTextOptionsDlg * m_ParseOptions
wxIcon GetIconResource(const wxString &name)
bool Create(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
static bool ShowToolTips()
virtual void SetupAction(CIRef< IEditingAction > action1, CIRef< IEditingAction > action2, edit::EExistingText existing_text)
virtual void ClearValues(void)
wxBitmap GetBitmapResource(const wxString &name)
virtual ~CQualRemoveOutsidePanel()
CRemoveTextOutsideStringPanel * m_RemoveTextOutsideOptions
CQualRemoveOutsidePanel()
static bool ShowToolTips()
virtual void SetupAction(CIRef< IEditingAction > action1, CIRef< IEditingAction > action2, edit::EExistingText existing_text)
bool Create(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
wxIcon GetIconResource(const wxString &name)
virtual void ClearValues(void)
wxIcon GetIconResource(const wxString &name)
bool Create(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
static bool ShowToolTips()
virtual void SetupAction(CIRef< IEditingAction > action1, CIRef< IEditingAction > action2, edit::EExistingText existing_text)
virtual void ClearValues(void)
virtual ~CQualRemovePanel()
wxBitmap GetBitmapResource(const wxString &name)
virtual void SetupAction(CIRef< IEditingAction > action1, CIRef< IEditingAction > action2, edit::EExistingText existing_text)
wxIcon GetIconResource(const wxString &name)
wxBitmap GetBitmapResource(const wxString &name)
virtual ~CQualSwapPanel()
bool Create(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
static bool ShowToolTips()
virtual void ClearValues(void)
class CRegistryReadView provides a nested hierarchical view at a particular key.
int GetInt(const string &key, int default_val=0) const
access a named key at this level, with no recursion
void Set(const string &key, int val)
access a named key at this level, with no recursion
CRef< macro::CRemoveTextOptions > GetRemoveTextOptions()
virtual string GetField1(bool subfield=true) const
CCDSGeneProtFieldNamePanel * m_Field
wxCheckBox * m_UpdatemRNAProduct
wxCheckBox * m_RetranslateCds
virtual vector< string > GetChoices(bool &allow_other) const
virtual CFieldNamePanel * GetFieldNamePanel1(void)
wxDECLARE_NO_COPY_CLASS(CSingleFieldPanel)
static bool ShowToolTips()
wxDECLARE_NO_COPY_CLASS(CSingleFieldPanel)
virtual bool SetFieldName(const string &field)
virtual vector< string > GetChoices(bool &allow_other) const
virtual CFieldNamePanel * GetFieldNamePanel1(void)
void SetShowLegalOnly(bool show)
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 string GetField1(bool subfield=true) const
wxIcon GetIconResource(const wxString &name)
void AddAdditionalItems(bool composed)
wxBitmap GetBitmapResource(const wxString &name)
virtual ~CSingleFieldPanel()
void ListStructCommentFields(const set< string > &field_names)
string GetField1(bool subfield=true) const
string GetAutopopulateValue(wxWindow *parent_win)
CFieldNamePanel * GetFieldNamePanel2(void)
CAECRFrame * GetBaseFrame(wxWindow *win)
virtual void ClearValues(void)
bool GetUpdateMRNAProductFlag(void) const
string GetFieldType(void) const
virtual bool IsAction2Required(void)
virtual CIRef< IEditingAction > CreateAction2(CSeq_entry_Handle seh, CConstRef< objects::CSeq_submit > submit)
virtual void UpdateQualChoices(void)
virtual void SetupAction(CIRef< IEditingAction > action1, CIRef< IEditingAction > action2, edit::EExistingText existing_text)
CFieldNamePanel * GetFieldNamePanel1(void)
int GetSelection(void) const
string GetField2(bool subfield=true) const
CIRef< IEditingAction > CreateAction2_imp(CSeq_entry_Handle seh, CConstRef< objects::CSeq_submit > submit)
void SetSelection(int page, const string &field1=kEmptyStr, const string &field2=kEmptyStr)
virtual int CheckForExistingText(CIRef< IEditingAction > action1, CIRef< IEditingAction > action2)
CIRef< IEditingAction > CreateAction1(CSeq_entry_Handle seh, CConstRef< objects::CSeq_submit > submit)
bool GetRetranslateCds(void) const
CFieldNamePanel * GetFieldNamePanel1(void)
CFieldNamePanel * GetFieldNamePanel2(void)
ISpecificQual * m_SpecificQual
ISpecificQual * GetSpecificQualPanel(void)
string GetField2(bool subfield=true) const
virtual void UnbindNotebookPageChanged()
vector< string > GetChoices(bool &allow_other) const
void SetSelection(int page, const string &field1=kEmptyStr, const string &field2=kEmptyStr)
string GetField1(bool subfield=true) const
string GetFieldType(void) const
int GetSelection(void) const
virtual void UpdateRetranslateCds(void)
virtual bool GetRetranslateCds(void) const
virtual bool SetFieldName2(const string &field)
virtual vector< string > GetChoices(bool &allow_other) const =0
virtual void UpdateMRNAbutton(void)
virtual string GetField1(bool subfield=true) const
virtual void SetShowLegalOnly(bool show)
virtual string GetField2(bool subfield=true) const
virtual bool SetFieldName(const string &field)
virtual bool GetUpdateMRNAProductFlag(void) const
virtual CFieldNamePanel * GetFieldNamePanel1(void)
virtual CFieldNamePanel * GetFieldNamePanel2(void)
IWorkbench is the central interface in the application framework.
int GetSubtype(CFieldNamePanel *field_name_panel, string &ncRNA_class)
CIRef< IEditingAction > CreateAction(CSeq_entry_Handle seh, const string &field, CFieldNamePanel::EFieldType field_type, int subtype, const string &ncRNA_class=kEmptyStr, CConstRef< objects::CSeq_submit > submit=CConstRef< objects::CSeq_submit >(NULL))
const char * kDefinitionLineLabel
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
vector< const objects::CFeatListItem * > GetSortedFeatList(objects::CSeq_entry_Handle seh, size_t max=numeric_limits< size_t >::max())
const CSeq_id & GetId(const CSeq_loc &loc, CScope *scope)
If all CSeq_ids embedded in CSeq_loc refer to the same CBioseq, returns the first CSeq_id found,...
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static bool IsBlank(const CTempString str, SIZE_TYPE pos=0)
Check if a string is blank (has no text).
static bool EqualNocase(const CTempString s1, SIZE_TYPE pos, SIZE_TYPE n, const char *s2)
Case-insensitive equality of a substring with another string.
const struct ncbi::grid::netcache::search::fields::SIZE size
const GenericPointer< typename T::ValueType > T2 value
static void SetTitle(CRef< CSeq_entry > entry, string title)
wxString ToWxString(const string &s)
wxRect GetScreenRect(const wxWindow &win)
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