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/trna__from__gene_8cpp_source.html below:

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

35 #include <wx/stattext.h> 36 #include <wx/msgdlg.h> 37 #include <wx/statbox.h> 92  Create

(parent,

id

, caption, pos,

size

, style);

100 bool CtRNAFromGene::Create

( wxWindow* parent, wxWindowID

id

,

const

wxString& caption,

const

wxPoint& pos,

const

wxSize&

size

,

long

style )

103 

SetExtraStyle(wxWS_EX_BLOCK_EVENTS);

109

GetSizer()->SetSizeHints(

this

);

153

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxVERTICAL);

154

itemCBulkCmdDlg1->SetSizer(itemBoxSizer2);

159

wxArrayString feat_strings;

160

feat_strings.Add(

_

(

"tRNA"

));

161

feat_strings.Add(

_

(

"rRNA"

));

162  m_FeatureType

=

new

wxChoice( itemCBulkCmdDlg1,

wxID_ANY

, wxDefaultPosition, wxDefaultSize, feat_strings, 0 );

164

itemBoxSizer2->Add(

m_FeatureType

, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

166

wxStaticBox* itemStaticBoxSizer7Static =

new

wxStaticBox(itemCBulkCmdDlg1,

wxID_ANY

,

_

(

"Source for new tRNA/rRNA product"

));

167

wxStaticBoxSizer* itemBoxSizer7 =

new

wxStaticBoxSizer(itemStaticBoxSizer7Static, wxVERTICAL);

168

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

170

wxBoxSizer* itemBoxSizer8 =

new

wxBoxSizer(wxHORIZONTAL);

171

itemBoxSizer7->Add(itemBoxSizer8, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

173

wxStaticText* stattext2 =

new

wxStaticText(

this

, wxID_STATIC,

_

(

"1st Choice"

), wxDefaultPosition, wxDefaultSize, 0 );

174

itemBoxSizer8->Add(stattext2, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

175

wxArrayString choice_strings;

176

choice_strings.Add(

_

(

"None"

));

177

choice_strings.Add(

_

(

"locus"

));

178

choice_strings.Add(

_

(

"description"

));

179

choice_strings.Add(

_

(

"comment"

));

180

choice_strings.Add(

_

(

"allele"

));

181

choice_strings.Add(

_

(

"maploc"

));

182

choice_strings.Add(

_

(

"locus_tag"

));

183

choice_strings.Add(

_

(

"synonym"

));

184

choice_strings.Add(

_

(

"old_locus_tag"

));

187  m_FeatQual

=

new

wxChoice(

this

,

wxID_ANY

, wxDefaultPosition, wxDefaultSize, choice_strings, 0 );

189

itemBoxSizer8->Add(

m_FeatQual

, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

191  m_Remove

=

new

wxCheckBox( itemCBulkCmdDlg1,

wxID_ANY

,

_

(

"Remove if used"

), wxDefaultPosition, wxDefaultSize, 0 );

193

itemBoxSizer8->Add(

m_Remove

, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

196

wxBoxSizer* itemBoxSizer9 =

new

wxBoxSizer(wxHORIZONTAL);

197

itemBoxSizer7->Add(itemBoxSizer9, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

198  m_2ndChoice

=

new

wxStaticText(

this

, wxID_STATIC,

_

(

"2nd Choice"

), wxDefaultPosition, wxDefaultSize, 0 );

199

itemBoxSizer9->Add(

m_2ndChoice

, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

200  m_FeatQual2

=

new

wxChoice(

this

,

wxID_ANY

, wxDefaultPosition, wxDefaultSize, choice_strings, 0 );

202

itemBoxSizer9->Add(

m_FeatQual2

, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

205  m_Remove2

=

new

wxCheckBox( itemCBulkCmdDlg1,

wxID_ANY

,

_

(

"Remove if used"

), wxDefaultPosition, wxDefaultSize, 0 );

207

itemBoxSizer9->Add(

m_Remove2

, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

210

wxBoxSizer* itemBoxSizer10 =

new

wxBoxSizer(wxHORIZONTAL);

211

itemBoxSizer7->Add(itemBoxSizer10, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

212  m_3rdChoice

=

new

wxStaticText(

this

, wxID_STATIC,

_

(

"3rd Choice"

), wxDefaultPosition, wxDefaultSize, 0 );

213

itemBoxSizer10->Add(

m_3rdChoice

, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

214  m_FeatQual3

=

new

wxChoice(

this

,

wxID_ANY

, wxDefaultPosition, wxDefaultSize, choice_strings, 0 );

216

itemBoxSizer10->Add(

m_FeatQual3

, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

218  m_Remove3

=

new

wxCheckBox( itemCBulkCmdDlg1,

wxID_ANY

,

_

(

"Remove if used"

), wxDefaultPosition, wxDefaultSize, 0 );

220

itemBoxSizer10->Add(

m_Remove3

, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

226

wxStaticText* stattext4 =

new

wxStaticText(

this

, wxID_STATIC,

_

(

"Append text to name"

), wxDefaultPosition, wxDefaultSize, 0 );

227

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

228  m_StrQual

=

new

wxTextCtrl( itemCBulkCmdDlg1,

wxID_ANY

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

229

itemBoxSizer2->Add(

m_StrQual

, 0, wxALIGN_CENTER_HORIZONTAL|wxLEFT|wxRIGHT|wxBOTTOM, 5);

232  m_SingleInterval

=

new

wxCheckBox( itemCBulkCmdDlg1,

wxID_ANY

,

_

(

"Fuse multiple intervals for new tRNA/rRNA"

), wxDefaultPosition, wxDefaultSize, 0 );

234

itemBoxSizer2->Add(

m_SingleInterval

, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

245

itemBoxSizer2->Add(

m_OkCancel

, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

301  if

(sel_feat != wxNOT_FOUND)

303

feat_type =

m_FeatureType

->GetString(sel_feat).ToStdString();

314

vector<CConstRef<CObject> > objs;

318

wxMessageBox(

wxT

(

"No features found!"

),

wxT

(

"Error"

),

319

wxOK | wxICON_ERROR,

NULL

);

323  bool

any_change =

false

;

336

features[bsh].push_back(

f

);

340  for

(

auto

&bsh_pair : features)

343  for

(

size_t i

= 0;

i

< bsh_pair.second.size();

i

++)

347

loc->

Assign

(

f

->GetLocation());

355  for

(

size_t

j = 1; j < bsh_pair.second.size(); j++)

357  const CSeq_feat

* f2 = bsh_pair.second[j];

370  if

(feat_type ==

"tRNA"

)

385  if

(

f

->IsSetProduct())

413

new_feat->

SetData

().SetRna().SetRnaProductName(name, remainder);

435

wxMessageBox(

wxT

(

"No effect!"

),

wxT

(

"Error"

),

436

wxOK | wxICON_ERROR,

NULL

);

447  if

(sel1 != wxNOT_FOUND && sel1 != 0)

461  if

(sel2 != wxNOT_FOUND && sel2 != 0)

478  if

(

m_FeatQual

->GetSelection() != wxNOT_FOUND)

489

name +=

m_StrQual

->GetValue().ToStdString();

506

gene.

SetData

().SetGene().ResetLocus();

526

gene.

SetData

().SetGene().ResetLocus_tag();

536

gene.

SetData

().SetGene().ResetAllele();

546

gene.

SetData

().SetGene().ResetDesc();

556

gene.

SetData

().SetGene().ResetMaploc();

566

gene.

SetData

().SetGene().SetSyn().erase(gene.

SetData

().SetGene().SetSyn().begin());

568

gene.

SetData

().SetGene().ResetSyn();

573  if

(sel_str ==

_

(

"old_locus_tag"

))

594

wxSizerItemList& slist = sizer->GetChildren();

596  for

(wxSizerItemList::iterator iter = slist.begin(); iter != slist.end(); ++iter, ++

n

) {

597  if

((*iter)->IsSizer()) {

599

}

else if

((*iter)->IsWindow()) {

600

wxWindow* child = (*iter)->GetWindow();

606

wxSizer* subsizer = child->GetSizer();

@ eExtreme_Positional

numerical value

@ eExtreme_Biological

5' and 3'

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()

objects::ECapChange GetCapitalizationRequest()

void PopulateFeatureListbox(void)

virtual string GetFieldName(const bool subfield=false)

Returns the name of the field as selected in the panel.

void ListPresentFeaturesFirst(const objects::CSeq_entry_Handle &entry, vector< const objects::CFeatListItem * > *featlist=nullptr)

vector< CConstRef< CObject > > GetObjects(objects::CBioseq_Handle bsh)

namespace ncbi::objects::

const string & GetNamedQual(const CTempString &qual_name) const

Return a named qualifier.

void RemoveQualifier(const string &qual_name)

Remove all qualifiers with the given name; do nothing if no such qualifier exists.

CRef< edit::CStringConstraint > GetStringConstraint()

CStringConstraintPanel * m_StringConstraintPanel

string GetSuggestedName(CSeq_feat &feat, CRef< CSeq_feat > prot_feat, CSeq_entry_Handle seh)

static bool ShowToolTips()

Should we show tooltips?

virtual string GetErrorMessage()

virtual CRef< CCmdComposite > GetCommand()

void GetNameFromGene(CSeq_feat &gene, const wxString &sel_str, bool remove, string &name)

wxStaticText * m_3rdChoice

CtRNAFromGene()

Constructors.

CCapChangePanel * m_CapChangeOptions

bool Create(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &caption=_("tRNA/rRNA From Gene"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(900, 500), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)

Creation.

void ProcessUpdateFeatEvent(wxCommandEvent &event)

void OnSelectFeatQual(wxCommandEvent &event)

~CtRNAFromGene()

Destructor.

void CreateControls()

Creates the controls and sizers.

void Init()

Initialises member variables.

wxBitmap GetBitmapResource(const wxString &name)

Retrieves bitmap resources.

COkCancelPanel * m_OkCancel

wxCheckBox * m_SingleInterval

wxIcon GetIconResource(const wxString &name)

Retrieves icon resources.

void UpdateChildrenFeaturePanels(wxSizer *sizer)

CFeatureFieldNamePanel * m_FeatureConstraint

wxStaticText * m_2ndChoice

IWorkbench is the central interface in the application framework.

static auto & FixCapitalizationInString

const string kPartialStart

#define EVT_UPDATE_FEATURE_LIST(id, fn)

static void DLIST_NAME() remove(DLIST_LIST_TYPE *list, DLIST_TYPE *item)

static const char * str(char *buf, int n)

#define ITERATE(Type, Var, Cont)

ITERATE macro to sequence through container elements.

virtual void Assign(const CSerialObject &source, ESerialRecursionMode how=eRecursive)

Set object to copy of another one.

bool IsPartialStart(ESeqLocExtremes ext) const

check start or stop of location for e_Lim fuzz

virtual void Assign(const CSerialObject &source, ESerialRecursionMode how=eRecursive)

Override Assign() to incorporate cache invalidation.

void SetPartialStart(bool val, ESeqLocExtremes ext)

set / remove e_Lim fuzz on start or stop (lt/gt - indicating partial interval)

void SetPartialStop(bool val, ESeqLocExtremes ext)

bool IsPartialStop(ESeqLocExtremes ext) const

CRef< CSeq_loc > Seq_loc_Add(const CSeq_loc &loc1, const CSeq_loc &loc2, CSeq_loc::TOpFlags flags, CScope *scope)

Add two seq-locs.

CBioseq_Handle GetBioseqHandle(const CSeq_id &id)

Get bioseq handle by seq-id.

CSeq_feat_Handle GetSeq_featHandle(const CSeq_feat &feat, EMissing action=eMissing_Default)

CSeq_entry_Handle GetSeq_entry_Handle(void) const

Get parent Seq-entry handle.

const CSeq_feat & GetOriginalFeature(void) const

Get original feature with unmapped location/product.

const CSeq_feat_Handle & GetSeq_feat_Handle(void) const

Get original feature handle.

void Reset(void)

Reset reference object.

#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).

bool IsSetSyn(void) const

synonyms for locus Check if a value has been assigned to Syn data member.

const TSyn & GetSyn(void) const

Get the Syn member data.

const TDesc & GetDesc(void) const

Get the Desc member data.

bool IsSetLocus_tag(void) const

systematic gene name (e.g., MI0001, ORF0069) Check if a value has been assigned to Locus_tag data mem...

bool IsSetLocus(void) const

Official gene symbol Check if a value has been assigned to Locus data member.

bool IsSetDesc(void) const

descriptive name Check if a value has been assigned to Desc data member.

bool IsSetAllele(void) const

Official allele designation Check if a value has been assigned to Allele data member.

bool IsSetMaploc(void) const

descriptive map location Check if a value has been assigned to Maploc data member.

const TLocus_tag & GetLocus_tag(void) const

Get the Locus_tag member data.

const TLocus & GetLocus(void) const

Get the Locus member data.

const TAllele & GetAllele(void) const

Get the Allele member data.

const TMaploc & GetMaploc(void) const

Get the Maploc member data.

bool IsSetComment(void) const

Check if a value has been assigned to Comment data member.

bool IsSetData(void) const

the specific data Check if a value has been assigned to Data data member.

void SetLocation(TLocation &value)

Assign a value to Location data member.

void SetComment(const TComment &value)

Assign a value to Comment data member.

void SetPartial(TPartial value)

Assign a value to Partial data member.

const TLocation & GetLocation(void) const

Get the Location member data.

bool IsGene(void) const

Check if variant Gene is selected.

const TData & GetData(void) const

Get the Data member data.

void SetData(TData &value)

Assign a value to Data data member.

void ResetComment(void)

Reset Comment data member.

const TComment & GetComment(void) const

Get the Comment member data.

const TGene & GetGene(void) const

Get the variant data.

const struct ncbi::grid::netcache::search::fields::SIZE size

USING_SCOPE(ncbi::objects)


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