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

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

42 #include <wx/button.h> 69

wxWindowID

id

,

const

wxString& caption,

const

wxPoint& pos,

const

wxSize&

size

,

long

style )

73  Create

(parent,

id

, caption, pos,

size

, style);

82

wxWindowID

id

,

const

wxString& caption,

const

wxPoint& pos,

const

wxSize&

size

,

long

style )

85 

SetExtraStyle(wxWS_EX_BLOCK_EVENTS);

86

wxDialog::Create( parent,

id

, caption, pos,

size

, style );

91

GetSizer()->SetSizeHints(

this

);

134

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxVERTICAL);

135

itemDialog1->SetSizer(itemBoxSizer2);

137

wxBoxSizer* itemBoxSizer3 =

new

wxBoxSizer(wxHORIZONTAL);

138

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

140

wxBoxSizer* itemBoxSizer5 =

new

wxBoxSizer(wxVERTICAL);

141

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

143

wxStaticText* itemStaticText1 =

new

wxStaticText( itemDialog1, wxID_STATIC,

_

(

"Set Coding Region frame to:"

), wxDefaultPosition, wxDefaultSize, 0 );

144

itemBoxSizer5->Add(itemStaticText1, 0, wxALIGN_LEFT|wxALL, 5);

146

wxStaticText* itemStaticText2 =

new

wxStaticText( itemDialog1, wxID_STATIC,

_

(

"Where Coding Region frame is:"

), wxDefaultPosition, wxDefaultSize, 0 );

147

itemBoxSizer5->Add(itemStaticText2, 0, wxALIGN_LEFT|wxALL, 5);

149

wxBoxSizer* itemBoxSizer6 =

new

wxBoxSizer(wxVERTICAL);

150

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

152

wxArrayString to_strs;

153

to_strs.Add(

_

(

"1"

));

154

to_strs.Add(

_

(

"2"

));

155

to_strs.Add(

_

(

"3"

));

156

to_strs.Add(

_

(

"Best"

));

157  m_To

=

new

wxChoice( itemDialog1,

wxID_ANY

, wxDefaultPosition, wxDefaultSize, to_strs, 0 );

158

itemBoxSizer6->Add(

m_To

, 0, wxALIGN_LEFT|wxALL, 5);

159  m_To

->SetSelection(3);

161

wxArrayString from_strs;

162

from_strs.Add(

_

(

"1"

));

163

from_strs.Add(

_

(

"2"

));

164

from_strs.Add(

_

(

"3"

));

165

from_strs.Add(

_

(

"Any"

));

166  m_From

=

new

wxChoice( itemDialog1,

wxID_ANY

, wxDefaultPosition, wxDefaultSize, from_strs, 0 );

167

itemBoxSizer6->Add(

m_From

, 0, wxALIGN_LEFT|wxALL, 5);

170  m_Retranslate

=

new

wxCheckBox( itemDialog1,

wxID_ANY

,

_

(

"Retranslate adjusted coding regions"

), wxDefaultPosition, wxDefaultSize, 0 );

172

itemBoxSizer2->Add(

m_Retranslate

, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

175

itemBoxSizer2->Add(

m_Constraint

, 0, wxALIGN_LEFT|wxALL, 5);

180

wxBoxSizer* itemBoxSizer4 =

new

wxBoxSizer(wxHORIZONTAL);

181

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

183

wxButton* itemButton5 =

new

wxButton( itemDialog1, wxID_OK,

_

(

"Accept"

), wxDefaultPosition, wxDefaultSize, 0 );

184

itemBoxSizer4->Add(itemButton5, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

186

wxButton* itemButton6 =

new

wxButton( itemDialog1, wxID_CANCEL,

_

(

"Cancel"

), wxDefaultPosition, wxDefaultSize, 0 );

187

itemBoxSizer4->Add(itemButton6, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

232  string

from =

m_From

->GetString(

m_From

->GetSelection()).ToStdString();

233  string

to =

m_To

->GetString(

m_To

->GetSelection()).ToStdString();

242

action1->SetConstraint(constraint);

243

action1->ResetChangedFeatures();

249  for

(

auto

& fh_feat : feat_map)

288  cmd

->AddCommand(*chgFeat);

292  bool

cds_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