wxWindowID
id,
constwxString& caption,
constwxPoint& pos,
constwxSize&
size,
longstyle )
95: m_TopSeqEntry(seh), m_CmdProcessor(cmdProcessor)
98 Create(parent,
id, caption, pos,
size, style);
109SetExtraStyle(wxWS_EX_VALIDATE_RECURSIVELY|wxWS_EX_BLOCK_EVENTS);
110wxDialog::Create( parent,
id, caption, pos,
size, style );
115GetSizer()->SetSizeHints(
this);
156wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
157itemDialog1->SetSizer(itemBoxSizer2);
159wxBoxSizer* itemBoxSizer3 =
newwxBoxSizer(wxHORIZONTAL);
160itemBoxSizer2->Add(itemBoxSizer3, 0, wxGROW|wxALL, 5);
162wxStaticText* itemStaticText4 =
newwxStaticText( itemDialog1, wxID_STATIC,
_(
"Protein name"), wxDefaultPosition, wxDefaultSize, 0 );
163itemBoxSizer3->Add(itemStaticText4, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
166itemBoxSizer3->Add(
m_Name, 1, wxALIGN_CENTER_VERTICAL|wxALL, 5);
168wxBoxSizer* itemBoxSizer6 =
newwxBoxSizer(wxHORIZONTAL);
169itemBoxSizer2->Add(itemBoxSizer6, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
171wxButton* itemButton7 =
newwxButton( itemDialog1,
ID_RESTORE_RNA_EDIT_APPLY,
_(
"Apply"), wxDefaultPosition, wxDefaultSize, 0 );
172itemBoxSizer6->Add(itemButton7, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
174wxButton* itemButton8 =
newwxButton( itemDialog1, wxID_CANCEL,
_(
"Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
175itemBoxSizer6->Add(itemButton8, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
177 m_LeaveUp=
newwxCheckBox( itemDialog1,
ID_CHECKBOX,
_(
"Leave dialog up"), wxDefaultPosition, wxDefaultSize, 0 );
179itemBoxSizer6->Add(
m_LeaveUp, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
222 stringname =
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) {
267new_cds->
Assign(*cds->GetOriginalSeq_feat());
270 cmd->AddCommand(*chgFeat);
274new_inst->Assign(bsh.
GetInst());
275 if(new_inst->IsSetSeq_data()) {
276new_inst->ResetSeq_data();
279new_inst->ResetExt();
280new_inst->SetRepr(objects::CSeq_inst::eRepr_raw);
281new_inst->SetSeq_data().SetNcbieaa().Set(prot_seq);
282new_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