A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/apply__indexer__comments_8cpp_source.html below:

NCBI C++ ToolKit: src/gui/packages/pkg_sequence_edit/apply_indexer_comments.cpp Source File

40 #include <wx/button.h> 41 #include <wx/statbox.h> 43 #include <wx/textctrl.h> 44 #include <wx/choice.h> 62

wxWindowID

id

,

const

wxString& caption,

const

wxPoint& pos,

const

wxSize&

size

,

long

style )

66  Create

(parent,

id

, caption, pos,

size

, style);

72

SetExtraStyle(wxWS_EX_BLOCK_EVENTS);

78

GetSizer()->SetSizeHints(

this

);

104  const string kUnverOrg

=

"Unverified Organism"

;

105  const string

kUnverFeatOrg =

"Unverified Features and Organism"

;

106  const string

kUnverMis =

"Unverified Misassembled"

;

107  const string

kUnverCont =

"Unverified Contamination"

;

108  const string

kUnrevUnannot =

"Unreviewed Unannotated"

;

109  const string

kScreenedSeqs =

"Sequences were screened for chimeras by the submitter using "

;

110  const string

kPGaapModified =

"PGAAP modified"

;

111  const string

kGenbankCDS =

"GenBank staff are still waiting for submitters to provide appropriate coding region information"

;

112  const string

kGenbankFeat =

"GenBank staff are still waiting for submitters to provide appropriate feature information"

;

113  const string

kFreeText =

"Free Text"

;

122

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxVERTICAL);

123

itemDialog1->SetSizer(itemBoxSizer2);

125

wxBoxSizer* itemBoxSizer3 =

new

wxBoxSizer(wxHORIZONTAL);

126

itemBoxSizer2->Add(itemBoxSizer3, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

128

vector<string> str_comments{

kUnverFeats

,

kUnverOrg

, kUnverFeatOrg, kUnverMis, kUnverCont, kUnrevUnannot,

129

kScreenedSeqs, kPGaapModified, kGenbankCDS, kGenbankFeat, kFreeText,

kFileTrack

};

130

wxArrayString wx_comments;

133  m_Choice

=

new

wxChoice( itemDialog1,

wxID_ANY

, wxDefaultPosition, wxDefaultSize, wx_comments,0);

134

itemBoxSizer3->Add(

m_Choice

, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

138  m_TextCtrl

=

new

wxTextCtrl( itemDialog1,

wxID_ANY

, wxEmptyString, wxDefaultPosition, wxSize(500, -1), 0 );

139

itemBoxSizer2->Add(

m_TextCtrl

, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

142

wxBoxSizer* itemBoxSizer5 =

new

wxBoxSizer(wxHORIZONTAL);

143

itemBoxSizer2->Add(itemBoxSizer5, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

145

wxBoxSizer* itemBoxSizer6 =

new

wxBoxSizer(wxVERTICAL);

146

itemBoxSizer5->Add(itemBoxSizer6, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

148

wxStaticBox* itemStaticBoxSizer15Static =

new

wxStaticBox(itemDialog1,

wxID_ANY

,

_

(

"Optional Seq-id Constraint"

));

149

wxStaticBoxSizer* itemStaticBoxSizer15 =

new

wxStaticBoxSizer(itemStaticBoxSizer15Static, wxVERTICAL);

150

itemBoxSizer6->Add(itemStaticBoxSizer15, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

156

wxStaticBox* itemStaticBoxSizer17Static =

new

wxStaticBox(itemDialog1,

wxID_ANY

,

_

(

"Optional Location Constraint"

));

157

wxStaticBoxSizer* itemStaticBoxSizer17 =

new

wxStaticBoxSizer(itemStaticBoxSizer17Static, wxVERTICAL);

158

itemBoxSizer6->Add(itemStaticBoxSizer17, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

160

wxArrayString

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

=

new

wxChoice(itemDialog1,

wxID_ANY

, wxDefaultPosition, wxDefaultSize,

types

,0,wxDefaultValidator,

"Type"

);

167

itemStaticBoxSizer17->Add(

m_ChoiceType

, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

170

itemBoxSizer2->Add(OkCancel, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

175  int

sel =

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  string

comment(

str

);

252  if

(

str

== kScreenedSeqs)

256  else if

(

str

== kFreeText)

258

comment =

m_TextCtrl

->GetValue().ToStdString();

260  else if

(

str

==

"PGAAP modified"

)

262

comment =

"Annotation modified by submitter"

;

282  if

(

str

== kUnverMis)

286  if

(

str

== kUnverCont)

290  if

(

str

== kUnrevUnannot)

297  string

url =

m_TextCtrl

->GetValue().ToStdString();

307  int

sel =

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

(

auto

handle : 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