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

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

61  const

wxSize&

size

,

long

style )

72  Create

(parent,

id

, caption, pos,

size

, style);

76  IWorkbench

* workbench, wxWindowID

id

,

const

wxString& caption,

const

wxPoint& pos,

77  const

wxSize&

size

,

long

style )

78

: m_FeatHandles(feat_handles)

83  Create

(parent,

id

, caption, pos,

size

, style);

88  const

wxPoint& pos,

const

wxSize&

size

,

long

style )

90

SetExtraStyle(wxWS_EX_BLOCK_EVENTS);

91

SetLayoutAdaptationMode(wxDIALOG_ADAPTATION_MODE_ENABLED);

92

wxDialog::Create( parent,

id

, caption, pos,

size

, style );

97

GetSizer()->SetSizeHints(

this

);

119

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxVERTICAL);

120

itemDialog1->SetSizer(itemBoxSizer2);

122

wxBoxSizer* itemBoxSizer3 =

new

wxBoxSizer(wxHORIZONTAL);

123

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

125

wxArrayString itemChoiceStrings, itemChoiceStringsWritable;

127  string

error_msg =

"No Misc features were found"

;

129

wxMessageBox(

ToWxString

(error_msg),

wxT

(

"Error"

), wxOK | wxICON_ERROR);

135

wxMessageBox(

ToWxString

(error_msg),

wxT

(

"Error"

), wxOK | wxICON_ERROR);

142

itemBoxSizer3->Add(

m_GridPanel

, 0, wxALIGN_TOP|wxALL, 5);

146  m_Grid

->SetTable(gridAdapter,

true

);

147  m_Grid

->AutoSizeColumns();

149  int

l_height =

m_Grid

->GetColLabelSize();

150  m_Grid

->SetColLabelSize( 2 * l_height );

154  for

(

auto

&& it: values_table->

GetColumns

()) {

156  if

(it->IsSetHeader() && it->GetHeader().IsSetTitle()) {

157  string

title = it->GetHeader().GetTitle();

158  if

(!title.empty()) {

159

itemChoiceStrings.Add(wxString(title));

161

itemChoiceStringsWritable.Add(wxString(title));

170  if

(glyph_col >= 0 && glyph_col+1 <

m_Grid

->GetNumberCols()) {

175

itemBoxSizer2->Add(itemStringConstraintPanel, 0, wxALIGN_CENTER_HORIZONTAL|wxALL|

wxFIXED_MINSIZE

, 0);

180

wxBoxSizer* itemBoxSizer13 =

new

wxBoxSizer(wxHORIZONTAL);

181

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

183

wxButton* itemButton14 =

new

wxButton( itemDialog1, wxID_OK,

_

(

"Accept"

), wxDefaultPosition, wxDefaultSize, 0 );

184

itemBoxSizer13->Add(itemButton14, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

186

wxButton* itemButton15 =

new

wxButton( itemDialog1, wxID_CANCEL,

_

(

"Cancel"

), wxDefaultPosition, wxDefaultSize, 0 );

187

itemBoxSizer13->Add(itemButton15, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

198

expand_col->

SetHeader

().SetTitle(

""

);

199

expand_col->

SetHeader

().SetField_name(

"expand"

);

200

expand_col->

SetData

().SetString();

203

comment_col->

SetHeader

().SetTitle(

"comment"

);

204

comment_col->

SetHeader

().SetField_name(

"comment"

);

205

comment_col->

SetData

().SetString();

208

loc_col->

SetHeader

().SetTitle(

"location"

);

209

loc_col->

SetHeader

().SetField_name(

"location"

);

210

loc_col->

SetData

().SetString();

215

bogus_col->

SetHeader

().SetField_name(

""

);

216

bogus_col->

SetData

().SetString();

219  table

->SetColumns().push_back(id_col);

220  table

->SetColumns().push_back(expand_col);

221  table

->SetColumns().push_back(comment_col);

222  table

->SetColumns().push_back(loc_col);

232  table

->SetColumns().push_back(bogus_col);

238  const CSeq_feat

&feat = *fi->GetOriginalSeq_feat();

247

id_col->

SetData

().SetId().push_back(

id

);

248

expand_col->

SetData

().SetString().push_back(

""

);

249

comment_col->

SetData

().SetString().push_back(comment);

250

loc_col->

SetData

().SetString().push_back(loc);

254

bogus_col->

SetData

().SetString().push_back(

""

);

272  const CSeq_feat

&feat = *fi->GetOriginalSeq_feat();

277  bool

modified =

false

;

285  if

(row < values_table->GetColumn(

"comment"

).GetData().GetString().

size

())

289  if

(new_comment != comment) {

290  if

(new_comment.empty())

297  string

partial_start_val = partial_start_feat_col->

GetFromFeat

(feat);

298  string

new_partial_start_val;

300  if

(row < values_table->GetColumn(

kPartialStart

).GetData().GetString().

size

())

304  if

(new_partial_start_val != partial_start_val) {

305  if

(new_partial_start_val.empty())

312  string

partial_stop_val = partial_stop_feat_col->

GetFromFeat

(feat);

313  string

new_partial_stop_val;

315  if

(row < values_table->GetColumn(

kPartialStop

).GetData().GetString().

size

())

319  if

(new_partial_stop_val != partial_stop_val) {

320  if

(new_partial_stop_val.empty())

345  return "Invalid operation in Bulk Misc Feature Edit"

;

401

wxMessageDialog dlg(

this

,

_

(

"Discard modifications?"

),

_

(

"Attention"

),wxOK|wxCANCEL|wxCENTRE);

402  if

(dlg.ShowModal() == wxID_OK) {

413  const CObject

* obj =

nullptr

;

bool IsReadOnlyColumn(string column_name)

bool Create(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &caption=_("Misc Feature Editing"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)

Creation.

CRef< CCmdComposite > GetCommand()

wxBitmap GetBitmapResource(const wxString &name)

CRef< CCmdComposite > GetCommandFromValuesTable(CRef< objects::CSeq_table >)

void CreateControls()

Creates the controls and sizers.

vector< CSeq_feat_Handle > m_FeatHandles

CSeqTableGridPanel * m_GridPanel

CRef< objects::CSeq_table > GetValuesTableFromSeqEntry()

void OnClickCancel(wxCommandEvent &event)

CBulkMiscFeat()

Constructors.

virtual const CObject * RowToScopedObjects(int row, TConstScopedObjects &objects, CBioseq_Handle &bsh)

CRef< objects::CSeq_table > GetChoices(CRef< objects::CSeq_table > values_table)

void Init()

Initialises member variables.

CApplyEditconvertPanel * m_AecrPanel

static bool ShowToolTips()

Should we show tooltips?

void OnClickOk(wxCommandEvent &event)

wxIcon GetIconResource(const wxString &name)

Retrieves icon resources.

static CRef< CFeatureSeqTableColumnBase > Create(const string &sTitle, objects::CSeqFeatData::ESubtype subtype=objects::CSeqFeatData::eSubtype_any)

virtual void ClearInFeature(objects::CSeq_feat &in_out_feat)

virtual string GetFromFeat(const objects::CSeq_feat &in_out_feat)

virtual bool AddToFeature(objects::CSeq_feat &in_out_feat, const string &newValue, objects::edit::EExistingText existing_text)

CConstRef< objects::CSeq_submit > m_SeqSubmit

Seq-loc and seq-align mapper exceptions.

void MakeColumnReadOnly(int pos, bool val=true)

void SetColumnSizesAndChoices()

void InitColumnCollapse(int col)

CRef< objects::CSeq_table > GetValuesTable()

namespace ncbi::objects::

const CSeqTable_column & GetColumn(CTempString column_name) const

IWorkbench is the central interface in the application framework.

const string kPartialStart

const string kPartialStop

const char * kSequenceIdColLabel

#define NCBI_THROW(exception_class, err_code, message)

Generic macro to throw an exception, given the exception class, error code and message string.

vector< SConstScopedObject > TConstScopedObjects

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

Set object to copy of another one.

void GetLabel(string *label) const

Appends a label suitable for display (e.g., error messages) label must point to an existing string ob...

TBioseqCore GetBioseqCore(void) const

Get bioseq core structure.

CConstRef< CSeq_entry > GetCompleteSeq_entry(void) const

Complete and get const reference to the seq-entry.

CScope & GetScope(void) const

Get scope this handle belongs to.

CSeq_entry_Handle GetTopLevelEntry(void) const

Get top level Seq-entry handle.

TObjectType * GetPointer(void) const THROWS_NONE

Get pointer,.

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

const TColumns & GetColumns(void) const

Get the Columns member data.

void SetHeader(THeader &value)

Assign a value to Header data member.

void SetData(TData &value)

Assign a value to Data data member.

TNum_rows GetNum_rows(void) const

Get the Num_rows member data.

const TString & GetString(void) const

Get the variant data.

const TData & GetData(void) const

Get the Data member data.

@ eField_id_location_id

location Seq-id

bool IsSetComment(void) const

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

void SetComment(const TComment &value)

Assign a value to Comment data member.

const TLocation & GetLocation(void) const

Get the Location member data.

void ResetComment(void)

Reset Comment data member.

const TComment & GetComment(void) const

Get the Comment member data.

bool IsSetLocation(void) const

feature made from Check if a value has been assigned to Location data member.

<!DOCTYPE HTML >< html > n< header > n< title > PubSeq Gateway Help Page</title > n< style > n table

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

CRef< CSeqTable_column > AddStringColumnToTable(CRef< CSeq_table > table, string label)

void AddValueToColumn(CRef< CSeqTable_column > column, string value, size_t row, edit::EExistingText existing_text=edit::eExistingText_replace_old)

#define row(bind, expected)

@ eExistingText_replace_old

wxString ToWxString(const string &s)


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