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

NCBI C++ ToolKit: src/gui/widgets/seq/feature_create_dlg.cpp Source File

32 #include <wx/bitmap.h> 35 #include <wx/stattext.h> 36 #include <wx/statbox.h> 37 #include <wx/button.h> 38 #include <wx/dialog.h> 39 #include <wx/srchctrl.h> 40 #include <wx/choice.h> 92  Create

(parent,

id

, caption, pos,

size

, style);

103 

SetExtraStyle(wxWS_EX_BLOCK_EVENTS);

104

wxDialog::Create( parent,

id

, caption, pos,

size

, style );

109

GetSizer()->SetSizeHints(

this

);

152

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxVERTICAL);

153

itemDialog1->SetSizer(itemBoxSizer2);

155

wxFlexGridSizer* itemFlexGridSizer3 =

new

wxFlexGridSizer(0, 2, 0, 0);

156

itemBoxSizer2->Add(itemFlexGridSizer3, 1, wxGROW|wxALL, 5);

158

wxStaticText* itemStaticText4 =

new

wxStaticText( itemDialog1, wxID_STATIC,

_

(

"Feature Type"

), wxDefaultPosition, wxDefaultSize, 0 );

159

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

161

wxArrayString itemChoice5Strings;

162

wxChoice* itemChoice5 =

new

wxChoice( itemDialog1,

ID_CHOICE6

, wxDefaultPosition, wxDefaultSize, itemChoice5Strings, 0 );

163

itemFlexGridSizer3->Add(itemChoice5, 1, wxGROW|wxALIGN_TOP|wxALL, 5);

165

wxStaticText* itemStaticText6 =

new

wxStaticText( itemDialog1, wxID_STATIC,

_

(

"Label"

), wxDefaultPosition, wxDefaultSize, 0 );

166

itemFlexGridSizer3->Add(itemStaticText6, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);

168

wxTextCtrl* itemTextCtrl7 =

new

wxTextCtrl( itemDialog1,

ID_TEXTCTRL2

, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );

169

itemFlexGridSizer3->Add(itemTextCtrl7, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);

171

wxStaticText* itemStaticText8 =

new

wxStaticText( itemDialog1, wxID_STATIC,

_

(

"Comment"

), wxDefaultPosition, wxDefaultSize, 0 );

172

itemFlexGridSizer3->Add(itemStaticText8, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);

174

wxTextCtrl* itemTextCtrl9 =

new

wxTextCtrl( itemDialog1,

ID_TEXTCTRL3

, wxEmptyString, wxDefaultPosition, wxSize(-1, 50), wxTE_MULTILINE );

175

itemFlexGridSizer3->Add(itemTextCtrl9, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);

177

itemFlexGridSizer3->AddGrowableCol(1);

179

wxStaticBox* itemStaticBoxSizer10Static =

new

wxStaticBox(itemDialog1,

wxID_ANY

,

_

(

"Qualifiers"

));

180

wxStaticBoxSizer* itemStaticBoxSizer10 =

new

wxStaticBoxSizer(itemStaticBoxSizer10Static, wxHORIZONTAL);

181

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

183

wxGrid* itemGrid11 =

new

wxGrid( itemDialog1,

ID_GRID1

, wxDefaultPosition, wxSize(250, 200), wxSUNKEN_BORDER|wxHSCROLL|wxVSCROLL );

184

itemGrid11->SetDefaultColSize(25);

185

itemGrid11->SetDefaultRowSize(25);

186

itemGrid11->SetColLabelSize(25);

187

itemGrid11->SetRowLabelSize(50);

188

itemGrid11->CreateGrid(1, 2, wxGrid::wxGridSelectCells);

189

itemStaticBoxSizer10->Add(itemGrid11, 1, wxGROW|wxALL, 5);

191

wxStaticLine* itemStaticLine12 =

new

wxStaticLine( itemDialog1, wxID_STATIC, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );

192

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

194

wxStdDialogButtonSizer* itemStdDialogButtonSizer13 =

new

wxStdDialogButtonSizer;

196

itemBoxSizer2->Add(itemStdDialogButtonSizer13, 0, wxALIGN_RIGHT|wxALL, 5);

197

wxButton* itemButton14 =

new

wxButton( itemDialog1, wxID_OK,

_

(

"&OK"

), wxDefaultPosition, wxDefaultSize, 0 );

198

itemStdDialogButtonSizer13->AddButton(itemButton14);

200

wxButton* itemButton15 =

new

wxButton( itemDialog1, wxID_CANCEL,

_

(

"&Cancel"

), wxDefaultPosition, wxDefaultSize, 0 );

201

itemStdDialogButtonSizer13->AddButton(itemButton15);

203

itemStdDialogButtonSizer13->Realize();

206

itemTextCtrl7->SetValidator( wxTextValidator(wxFILTER_NONE, &

m_Label

) );

207

itemTextCtrl9->SetValidator( wxTextValidator(wxFILTER_NONE, &

m_Comments

) );

210

itemGrid11->SetDefaultColSize(110);

211

itemGrid11->SetDefaultRowSize(20);

212

itemGrid11->SetColLabelSize(20);

213

itemGrid11->SetRowLabelSize(0);

269

vector <int> allowed;

271

allowed.push_back(*subt);

279  if

(find(allowed.begin(), allowed.end(), subt) != allowed.end()){

299  int

subtype = *((

int

*)

m_pFeatType

->GetClientData(feat_sel));

303  for

(

auto

q : quals) {

331  return

wxDialog::TransferDataToWindow();

340  dynamic_cast<const CSeq_loc

*

>

(cso->object.GetPointer());

343  if

((feat_sel=

m_pFeatType

->GetSelection())==wxNOT_FOUND)

continue

;

352  int

subtype = *((

int

*)

m_pFeatType

->GetClientData(feat_sel));

364

feat->

SetData

().SetCdregion().SetOrf(

true

);

371  for

(

int i

=0;

i

<nmb_rows;

i

++) {

375  if

(!qual_value.empty()){

381  const_cast<CScope

*

>

(cso->scope.GetPointer())));

385  return

wxDialog::TransferDataFromWindow();

User-defined methods of the data storage class.

User-defined methods of the data storage class.

CFeatListItem - basic configuration data for one "feature" type.

string GetDescription() const

CConfigurableItems - a static list of items that can be configured.

void x_UpdateQualifiers()

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

Creation.

wxIcon GetIconResource(const wxString &name)

Retrieves icon resources.

vector< objects::CSeqFeatData::ESubtype > m_Options

void SetIO(TConstScopedObjects &in, TConstScopedObjects &out)

objects::CSeqFeatData::ESubtype m_Selected

~CFeatureCreateDialog()

Destructor.

void OnFeatureTypeChanged(wxCommandEvent &event)

CFeatureCreateDialog()

Constructors.

static bool ShowToolTips()

Should we show tooltips?

virtual bool TransferDataToWindow()

TConstScopedObjects * m_pOut

void SetConstraints(vector< objects::CSeqFeatData::ESubtype > &options, objects::CSeqFeatData::ESubtype selected)

virtual bool TransferDataFromWindow()

TConstScopedObjects * m_pIn

wxBitmap GetBitmapResource(const wxString &name)

Retrieves bitmap resources.

void CreateControls()

Creates the controls and sizers.

void Init()

Initialises member variables.

const TLegalQualifiers & GetLegalQualifiers(void) const

Get a list of all the legal qualifiers for the feature.

static const CFeatList * GetFeatList()

static CTempString GetQualifierAsString(EQualifier qual)

Convert a qualifier from an enumerated value to a string representation or empty if not found.

namespace ncbi::objects::

void AddQualifier(const string &qual_name, const string &qual_val)

Add a qualifier to this feature.

std::ofstream out("events_result.xml")

main entry point for tests

#define ITERATE(Type, Var, Cont)

ITERATE macro to sequence through container elements.

vector< SConstScopedObject > TConstScopedObjects

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

void SetLocation(TLocation &value)

Assign a value to Location data member.

void SetData(TData &value)

Assign a value to Data data member.

void SetExp_ev(TExp_ev value)

Assign a value to Exp_ev data member.

@ eExp_ev_not_experimental

similarity, pattern, etc

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

std::istream & in(std::istream &in_, double &x_)

wxString ToWxString(const string &s)

string ToStdString(const wxString &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