wxWindowID
id,
constwxString& caption,
constwxPoint& pos,
constwxSize&
size,
longstyle )
66 Create(parent,
id, caption, pos,
size, style);
72SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
78GetSizer()->SetSizeHints(
this);
104 const string kUnverOrg=
"Unverified Organism";
105 const stringkUnverFeatOrg =
"Unverified Features and Organism";
106 const stringkUnverMis =
"Unverified Misassembled";
107 const stringkUnverCont =
"Unverified Contamination";
108 const stringkUnrevUnannot =
"Unreviewed Unannotated";
109 const stringkScreenedSeqs =
"Sequences were screened for chimeras by the submitter using ";
110 const stringkPGaapModified =
"PGAAP modified";
111 const stringkGenbankCDS =
"GenBank staff are still waiting for submitters to provide appropriate coding region information";
112 const stringkGenbankFeat =
"GenBank staff are still waiting for submitters to provide appropriate feature information";
113 const stringkFreeText =
"Free Text";
122wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
123itemDialog1->SetSizer(itemBoxSizer2);
125wxBoxSizer* itemBoxSizer3 =
newwxBoxSizer(wxHORIZONTAL);
126itemBoxSizer2->Add(itemBoxSizer3, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
128vector<string> str_comments{
kUnverFeats,
kUnverOrg, kUnverFeatOrg, kUnverMis, kUnverCont, kUnrevUnannot,
129kScreenedSeqs, kPGaapModified, kGenbankCDS, kGenbankFeat, kFreeText,
kFileTrack};
130wxArrayString wx_comments;
133 m_Choice=
newwxChoice( itemDialog1,
wxID_ANY, wxDefaultPosition, wxDefaultSize, wx_comments,0);
134itemBoxSizer3->Add(
m_Choice, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
138 m_TextCtrl=
newwxTextCtrl( itemDialog1,
wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(500, -1), 0 );
139itemBoxSizer2->Add(
m_TextCtrl, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
142wxBoxSizer* itemBoxSizer5 =
newwxBoxSizer(wxHORIZONTAL);
143itemBoxSizer2->Add(itemBoxSizer5, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
145wxBoxSizer* itemBoxSizer6 =
newwxBoxSizer(wxVERTICAL);
146itemBoxSizer5->Add(itemBoxSizer6, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
148wxStaticBox* itemStaticBoxSizer15Static =
newwxStaticBox(itemDialog1,
wxID_ANY,
_(
"Optional Seq-id Constraint"));
149wxStaticBoxSizer* itemStaticBoxSizer15 =
newwxStaticBoxSizer(itemStaticBoxSizer15Static, wxVERTICAL);
150itemBoxSizer6->Add(itemStaticBoxSizer15, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
156wxStaticBox* itemStaticBoxSizer17Static =
newwxStaticBox(itemDialog1,
wxID_ANY,
_(
"Optional Location Constraint"));
157wxStaticBoxSizer* itemStaticBoxSizer17 =
newwxStaticBoxSizer(itemStaticBoxSizer17Static, wxVERTICAL);
158itemBoxSizer6->Add(itemStaticBoxSizer17, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
160wxArrayString
types;
161 types.Add(
wxT(
"Nucleotide and protein sequences"));
162 types.Add(
wxT(
"Nucleotide sequences only"));
163 types.Add(
wxT(
"Protein sequences only"));
165 m_ChoiceType=
newwxChoice(itemDialog1,
wxID_ANY, wxDefaultPosition, wxDefaultSize,
types,0,wxDefaultValidator,
"Type");
167itemStaticBoxSizer17->Add(
m_ChoiceType, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
170itemBoxSizer2->Add(OkCancel, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
175 intsel =
m_Choice->GetSelection();
176 if(sel == wxNOT_FOUND)
182 if(
str== kScreenedSeqs ||
str== kFreeText)
190 m_TextCtrl->SetValue(
_(
"https://submit.ncbi.nlm.nih.gov/ft/byid/"));
197 str== kUnverFeatOrg ||
200 str== kUnrevUnannot ||
201 str== kPGaapModified) {
250 stringcomment(
str);
252 if(
str== kScreenedSeqs)
256 else if(
str== kFreeText)
258comment =
m_TextCtrl->GetValue().ToStdString();
260 else if(
str==
"PGAAP modified")
262comment =
"Annotation modified by submitter";
282 if(
str== kUnverMis)
286 if(
str== kUnverCont)
290 if(
str== kUnrevUnannot)
297 stringurl =
m_TextCtrl->GetValue().ToStdString();
307 intsel =
m_Choice->GetSelection();
308 if(sel == wxNOT_FOUND)
312 string str=
m_Choice->GetString(sel).ToStdString();
316 str== kUnverFeatOrg ||
319 str== kUnrevUnannot ||
339 for( ; b_iter ; ++b_iter ) {
341 if(go && constraint) {
343 for(
autohandle : b_iter->
GetId()) {
346 if(!
str.empty() && constraint->DoesTextMatch(
str)) {
353 if(!
str.empty() && constraint->DoesTextMatch(
str))
365 if(
type==
wxT(
"Nucleotide sequences only") && b_iter->
IsNa()) go =
true;
366 if(
type==
wxT(
"Protein sequences only") && b_iter->
IsAa()) go =
true;
static const char * kFileTrack
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)
void AddCommand(IEditCommand &command)
void SetStringSelection(const wxString &str)
CRef< edit::CStringConstraint > GetStringConstraint()
void SetObjectType(EObjectType obj_type)
void AddUnverifiedOrganism()
void AddUnreviewedUnannotated()
void AddUnverifiedContaminant()
void SetFileTrackURL(const string &url)
void AddUnverifiedMisassembled()
void AddUnverifiedFeature()
IWorkbench is the central interface in the application framework.
static const char * str(char *buf, int n)
static const struct type types[]
@ eContent
Untagged human-readable accession or the like.
CSeq_entry_Handle GetParentEntry(void) const
Get parent Seq-entry handle.
const TId & GetId(void) const
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
TComment & SetComment(void)
Select the variant.
TUser & SetUser(void)
Select the variant.
const string version
version string
const struct ncbi::grid::netcache::search::fields::SIZE size
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