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

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

34 #include "wx/wxprec.h" 94

wxWindowID

id

,

const

wxString& caption,

const

wxPoint& pos,

const

wxSize&

size

,

long

style )

95

: m_TopSeqEntry(seh), m_CmdProcessor(cmdProcessor)

98  Create

(parent,

id

, caption, pos,

size

, style);

109 

SetExtraStyle(wxWS_EX_VALIDATE_RECURSIVELY|wxWS_EX_BLOCK_EVENTS);

110

wxDialog::Create( parent,

id

, caption, pos,

size

, style );

115

GetSizer()->SetSizeHints(

this

);

156

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxVERTICAL);

157

itemDialog1->SetSizer(itemBoxSizer2);

159

wxBoxSizer* itemBoxSizer3 =

new

wxBoxSizer(wxHORIZONTAL);

160

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

162

wxStaticText* itemStaticText4 =

new

wxStaticText( itemDialog1, wxID_STATIC,

_

(

"Protein name"

), wxDefaultPosition, wxDefaultSize, 0 );

163

itemBoxSizer3->Add(itemStaticText4, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

166

itemBoxSizer3->Add(

m_Name

, 1, wxALIGN_CENTER_VERTICAL|wxALL, 5);

168

wxBoxSizer* itemBoxSizer6 =

new

wxBoxSizer(wxHORIZONTAL);

169

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

171

wxButton* itemButton7 =

new

wxButton( itemDialog1,

ID_RESTORE_RNA_EDIT_APPLY

,

_

(

"Apply"

), wxDefaultPosition, wxDefaultSize, 0 );

172

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

174

wxButton* itemButton8 =

new

wxButton( itemDialog1, wxID_CANCEL,

_

(

"Cancel"

), wxDefaultPosition, wxDefaultSize, 0 );

175

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

177  m_LeaveUp

=

new

wxCheckBox( itemDialog1,

ID_CHECKBOX

,

_

(

"Leave dialog up"

), wxDefaultPosition, wxDefaultSize, 0 );

179

itemBoxSizer6->Add(

m_LeaveUp

, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

222  string

name =

m_Name

->GetValue().ToStdString();

227  if

(!cds->IsSetProduct())

230  const CSeq_id

*

id

= cds->GetProduct().GetId();

243  if

(prot_seq.empty() || prot_seq.front() ==

'M'

)

257  if

(name == *name_it) {

267

new_cds->

Assign

(*cds->GetOriginalSeq_feat());

270  cmd

->AddCommand(*chgFeat);

274

new_inst->Assign(bsh.

GetInst

());

275  if

(new_inst->IsSetSeq_data()) {

276

new_inst->ResetSeq_data();

279

new_inst->ResetExt();

280

new_inst->SetRepr(objects::CSeq_inst::eRepr_raw);

281

new_inst->SetSeq_data().SetNcbieaa().Set(prot_seq);

282

new_inst->SetLength(

TSeqPos

(prot_seq.length()));

285  cmd

->AddCommand(*chgInst);

static bool FixRNAEditingCodingRegion(CSeq_feat &cds)

From GB-7563 An action has been requested that will do the following: 1.

void Init()

Initialises member variables.

objects::CSeq_entry_Handle m_TopSeqEntry

void OnApply(wxCommandEvent &event)

static bool ShowToolTips()

Should we show tooltips?

~CRestoreRNAediting()

Destructor.

ICommandProccessor * m_CmdProcessor

void CreateControls()

Creates the controls and sizers.

wxBitmap GetBitmapResource(const wxString &name)

Retrieves bitmap resources.

bool Create(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &caption=_("Restore RNA editing of coding region"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)

Creation.

wxIcon GetIconResource(const wxString &name)

Retrieves icon resources.

CRestoreRNAediting()

Constructors.

namespace ncbi::objects::

Undo/Redo interface for editing operations.

virtual void Execute(IEditCommand *command, wxWindow *window=0)=0

unsigned int TSeqPos

Type for sequence locations and lengths.

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

Set object to copy of another one.

CConstRef< CBioseq > GetCompleteBioseq(void) const

Get the complete bioseq.

virtual CConstRef< CSeq_feat > GetSeq_feat(void) const

const TInst & GetInst(void) const

const CSeq_feat_Handle & GetSeq_feat_Handle(void) const

Get original feature handle.

void GetSeqData(TSeqPos start, TSeqPos stop, string &buffer) const

Fill the buffer string with the sequence data for the interval [start, stop).

void SetCoding(TCoding coding)

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

static void TruncateSpacesInPlace(string &str, ETrunc where=eTrunc_Both)

Truncate whitespace in a string (in-place)

bool IsSetData(void) const

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

bool IsProt(void) const

Check if variant Prot is selected.

const TData & GetData(void) const

Get the Data member data.

const TProt & GetProt(void) const

Get the variant data.

@ e_Ncbieaa

extended ASCII 1 letter aa codes

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

#define ID_RESTORE_PROTEINNAME

#define ID_RESTORE_RNA_EDIT_APPLY

Utility macros and typedefs for exploring NCBI objects from seqfeat.asn.

#define FOR_EACH_NAME_ON_PROTREF(Itr, Var)

FOR_EACH_NAME_ON_PROTREF EDIT_EACH_NAME_ON_PROTREF.


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