wxWindowID
id,
constwxString& caption,
constwxPoint& pos,
constwxSize&
size,
longstyle )
73 Create(parent,
id, caption, pos,
size, style);
82wxWindowID
id,
constwxString& caption,
constwxPoint& pos,
constwxSize&
size,
longstyle )
85SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
86wxDialog::Create( parent,
id, caption, pos,
size, style );
91GetSizer()->SetSizeHints(
this);
134wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
135itemDialog1->SetSizer(itemBoxSizer2);
137wxBoxSizer* itemBoxSizer3 =
newwxBoxSizer(wxHORIZONTAL);
138itemBoxSizer2->Add(itemBoxSizer3, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
140wxBoxSizer* itemBoxSizer5 =
newwxBoxSizer(wxVERTICAL);
141itemBoxSizer3->Add(itemBoxSizer5, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
143wxStaticText* itemStaticText1 =
newwxStaticText( itemDialog1, wxID_STATIC,
_(
"Set Coding Region frame to:"), wxDefaultPosition, wxDefaultSize, 0 );
144itemBoxSizer5->Add(itemStaticText1, 0, wxALIGN_LEFT|wxALL, 5);
146wxStaticText* itemStaticText2 =
newwxStaticText( itemDialog1, wxID_STATIC,
_(
"Where Coding Region frame is:"), wxDefaultPosition, wxDefaultSize, 0 );
147itemBoxSizer5->Add(itemStaticText2, 0, wxALIGN_LEFT|wxALL, 5);
149wxBoxSizer* itemBoxSizer6 =
newwxBoxSizer(wxVERTICAL);
150itemBoxSizer3->Add(itemBoxSizer6, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
152wxArrayString to_strs;
153to_strs.Add(
_(
"1"));
154to_strs.Add(
_(
"2"));
155to_strs.Add(
_(
"3"));
156to_strs.Add(
_(
"Best"));
157 m_To=
newwxChoice( itemDialog1,
wxID_ANY, wxDefaultPosition, wxDefaultSize, to_strs, 0 );
158itemBoxSizer6->Add(
m_To, 0, wxALIGN_LEFT|wxALL, 5);
159 m_To->SetSelection(3);
161wxArrayString from_strs;
162from_strs.Add(
_(
"1"));
163from_strs.Add(
_(
"2"));
164from_strs.Add(
_(
"3"));
165from_strs.Add(
_(
"Any"));
166 m_From=
newwxChoice( itemDialog1,
wxID_ANY, wxDefaultPosition, wxDefaultSize, from_strs, 0 );
167itemBoxSizer6->Add(
m_From, 0, wxALIGN_LEFT|wxALL, 5);
170 m_Retranslate=
newwxCheckBox( itemDialog1,
wxID_ANY,
_(
"Retranslate adjusted coding regions"), wxDefaultPosition, wxDefaultSize, 0 );
172itemBoxSizer2->Add(
m_Retranslate, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
175itemBoxSizer2->Add(
m_Constraint, 0, wxALIGN_LEFT|wxALL, 5);
180wxBoxSizer* itemBoxSizer4 =
newwxBoxSizer(wxHORIZONTAL);
181itemBoxSizer2->Add(itemBoxSizer4, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
183wxButton* itemButton5 =
newwxButton( itemDialog1, wxID_OK,
_(
"Accept"), wxDefaultPosition, wxDefaultSize, 0 );
184itemBoxSizer4->Add(itemButton5, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
186wxButton* itemButton6 =
newwxButton( itemDialog1, wxID_CANCEL,
_(
"Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
187itemBoxSizer4->Add(itemButton6, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
232 stringfrom =
m_From->GetString(
m_From->GetSelection()).ToStdString();
233 stringto =
m_To->GetString(
m_To->GetSelection()).ToStdString();
242action1->SetConstraint(constraint);
243action1->ResetChangedFeatures();
249 for(
auto& fh_feat : feat_map)
288 cmd->AddCommand(*chgFeat);
292 boolcds_change(
false);
294 cmd->AddCommand(*retranslate_cds_cmd);
bool IsGeneralIdProtPresent(objects::CSeq_entry_Handle tse)
virtual CRef< CEditingActionConstraint > GetConstraint(const string &field, CFieldNamePanel::EFieldType field_type, int subtype, const string &ncRNA_class)
void SetSelection(int page)
bool SetFieldName(const string &field)
CSeq_entry_Handle m_TopSeqEntry
CEditCdsFrame()
Constructors.
CConstraintPanel * m_Constraint
bool Create(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &caption=_("Edit CDS Frame"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(200, 100), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
Creation.
~CEditCdsFrame()
Destructor.
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
static bool ShowToolTips()
Should we show tooltips?
CRef< CCmdComposite > GetCommand(void)
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
wxCheckBox * m_Retranslate
void CreateControls()
Creates the controls and sizers.
void Init()
Initialises member variables.
static CRef< CCmdComposite > RetranslateCDSCommand(CScope &scope, const CSeq_feat &old_cds, CSeq_feat &cds, bool &cds_change, int &offset, bool create_general_only)
CIRef< IEditingAction > CreateAction(CSeq_entry_Handle seh, const string &field, CFieldNamePanel::EFieldType field_type, int subtype, const string &ncRNA_class=kEmptyStr, CConstRef< objects::CSeq_submit > submit=CConstRef< objects::CSeq_submit >(NULL))
static CCdregion::EFrame FindBestFrame(const CSeq_feat &cds, CScope &scope)
Find "best" frame for a coding region.
CScope & GetScope(void) const
Get scope this handle belongs to.
CConstRef< CSeq_feat > GetOriginalSeq_feat(void) const
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static SIZE_TYPE Find(const CTempString str, const CTempString pattern, ECase use_case=eCase, EDirection direction=eForwardSearch, SIZE_TYPE occurrence=0)
Find the pattern in the string.
bool IsSetData(void) const
the specific data Check if a value has been assigned to Data data member.
bool IsCdregion(void) const
Check if variant Cdregion is selected.
TFrame GetFrame(void) const
Get the Frame member data.
const TData & GetData(void) const
Get the Data member data.
const TExcept_text & GetExcept_text(void) const
Get the Except_text member data.
bool IsSetExcept_text(void) const
explain if except=TRUE Check if a value has been assigned to Except_text data member.
void SetData(TData &value)
Assign a value to Data data member.
const TCdregion & GetCdregion(void) const
Get the variant data.
bool IsSetFrame(void) const
Check if a value has been assigned to Frame data member.
@ eFrame_not_set
not set, code uses one
@ eFrame_three
reading frame
const struct ncbi::grid::netcache::search::fields::SIZE size
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