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

NCBI C++ ToolKit: src/gui/widgets/edit/molinfo_panel.cpp Source File

39 #include <wx/bitmap.h> 41 #include <wx/choice.h> 42 #include <wx/textctrl.h> 43 #include <wx/stattext.h> 44 #include <wx/valtext.h> 45 #include <wx/toplevel.h> 99  Create

(parent,

id

, caption, pos,

size

, style);

107 bool CMolInfoPanel::Create

( wxWindow* parent, wxWindowID

id

,

const

wxString& caption,

const

wxPoint& pos,

const

wxSize&

size

,

long

style )

110 

SetExtraStyle(wxWS_EX_BLOCK_EVENTS);

111

wxPanel::Create( parent,

id

, pos,

size

, style );

116

GetSizer()->SetSizeHints(

this

);

161

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxVERTICAL);

162

itemPanel1->SetSizer(itemBoxSizer2);

164

wxFlexGridSizer* itemFlexGridSizer3 =

new

wxFlexGridSizer(0, 3, 0, 0);

165

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

167

wxStaticText* itemStaticText4 =

new

wxStaticText( itemPanel1, wxID_STATIC,

_

(

"Molecule"

), wxDefaultPosition, wxDefaultSize, 0 );

168

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

170

wxArrayString m_MoleculeCtrlStrings;

171

m_MoleculeCtrlStrings.Add(wxEmptyString);

172

m_MoleculeCtrlStrings.Add(

_

(

"Genomic DNA"

));

173

m_MoleculeCtrlStrings.Add(

_

(

"Genomic RNA"

));

174

m_MoleculeCtrlStrings.Add(

_

(

"Precursor RNA"

));

175

m_MoleculeCtrlStrings.Add(

_

(

"mRNA [cDNA]"

));

176

m_MoleculeCtrlStrings.Add(

_

(

"Ribosomal RNA"

));

177

m_MoleculeCtrlStrings.Add(

_

(

"Transfer RNA"

));

178

m_MoleculeCtrlStrings.Add(

_

(

"Peptide"

));

179

m_MoleculeCtrlStrings.Add(

_

(

"Other-Genetic DNA"

));

180

m_MoleculeCtrlStrings.Add(

_

(

"Other-Genetic RNA"

));

181

m_MoleculeCtrlStrings.Add(

_

(

"Genomic-mRNA"

));

182

m_MoleculeCtrlStrings.Add(

_

(

"cRNA"

));

183

m_MoleculeCtrlStrings.Add(

_

(

"Transcribed RNA"

));

184

m_MoleculeCtrlStrings.Add(

_

(

"Non-coding RNA"

));

185

m_MoleculeCtrlStrings.Add(

_

(

"Other"

));

186  m_MoleculeCtrl

=

new

wxChoice( itemPanel1,

ID_CHOICE6

, wxDefaultPosition, wxDefaultSize, m_MoleculeCtrlStrings, 0 );

187

itemFlexGridSizer3->Add(

m_MoleculeCtrl

, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);

189

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

191

wxStaticText* itemStaticText7 =

new

wxStaticText( itemPanel1, wxID_STATIC,

_

(

"Completedness"

), wxDefaultPosition, wxDefaultSize, 0 );

192

itemFlexGridSizer3->Add(itemStaticText7, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);

194

wxArrayString m_CompletednessCtrlStrings;

195

m_CompletednessCtrlStrings.Add(wxEmptyString);

196

m_CompletednessCtrlStrings.Add(

_

(

"Complete"

));

197

m_CompletednessCtrlStrings.Add(

_

(

"Partial"

));

198

m_CompletednessCtrlStrings.Add(

_

(

"No Left"

));

199

m_CompletednessCtrlStrings.Add(

_

(

"No Right"

));

200

m_CompletednessCtrlStrings.Add(

_

(

"No Ends"

));

201

m_CompletednessCtrlStrings.Add(

_

(

"Has Left"

));

202

m_CompletednessCtrlStrings.Add(

_

(

"Has Right"

));

203

m_CompletednessCtrlStrings.Add(

_

(

"Other"

));

205

itemFlexGridSizer3->Add(

m_CompletednessCtrl

, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);

207

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

209

wxStaticText* itemStaticText10 =

new

wxStaticText( itemPanel1, wxID_STATIC,

_

(

"Technique"

), wxDefaultPosition, wxDefaultSize, 0 );

210

itemFlexGridSizer3->Add(itemStaticText10, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);

212

wxArrayString m_TechniqueCtrlStrings;

214  for

(CEnumeratedTypeValues::TValues::const_iterator

i

= tech_values.begin();

i

!= tech_values.end(); ++

i

)

216

m_TechniqueCtrlStrings.Add(wxString(

i

->first));

218  m_TechOther

=

static_cast<int>

(tech_values.size() - 1);

221

itemFlexGridSizer3->Add(

m_TechniqueCtrl

, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);

224

itemFlexGridSizer3->Add(

m_TechExpCtrl

, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);

226

wxStaticText* itemStaticText13 =

new

wxStaticText( itemPanel1, wxID_STATIC,

_

(

"Topology"

), wxDefaultPosition, wxDefaultSize, 0 );

227

itemFlexGridSizer3->Add(itemStaticText13, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);

229

wxArrayString m_TopologyCtrlStrings;

230

m_TopologyCtrlStrings.Add(wxEmptyString);

231

m_TopologyCtrlStrings.Add(

_

(

"Linear"

));

232

m_TopologyCtrlStrings.Add(

_

(

"Circular"

));

233

m_TopologyCtrlStrings.Add(

_

(

"Tandem"

));

234

m_TopologyCtrlStrings.Add(

_

(

"Other"

));

235  m_TopologyCtrl

=

new

wxChoice( itemPanel1,

ID_CHOICE9

, wxDefaultPosition, wxDefaultSize, m_TopologyCtrlStrings, 0 );

236

itemFlexGridSizer3->Add(

m_TopologyCtrl

, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);

238

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

240

wxStaticText* itemStaticText16 =

new

wxStaticText( itemPanel1, wxID_STATIC,

_

(

"Strandedness"

), wxDefaultPosition, wxDefaultSize, 0 );

241

itemFlexGridSizer3->Add(itemStaticText16, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);

243

wxArrayString m_StrandednessCtrlStrings;

244

m_StrandednessCtrlStrings.Add(wxEmptyString);

245

m_StrandednessCtrlStrings.Add(

_

(

"Single"

));

246

m_StrandednessCtrlStrings.Add(

_

(

"Double"

));

247

m_StrandednessCtrlStrings.Add(

_

(

"Mixed"

));

249

m_StrandednessCtrlStrings.Add(

_

(

"Other"

));

251

itemFlexGridSizer3->Add(

m_StrandednessCtrl

, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);

253

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

257

itemStaticText13->Show(

false

);

259

itemStaticText16->Show(

false

);

524  m_Bioseq

->SetInst().SetTopology (topology);

559  m_Bioseq

->SetInst().SetStrand (strand);

566  if

(!wxPanel::TransferDataToWindow())

581  if

(!wxPanel::TransferDataFromWindow())

610

bioseq->

SetInst

().ResetTopology();

615

bioseq->

SetInst

().ResetStrand();

620

bioseq->

SetInst

().ResetMol();

void x_SetCompletedness()

wxChoice * m_TechniqueCtrl

wxChoice * m_CompletednessCtrl

~CMolInfoPanel()

Destructor.

CRef< objects::CMolInfo > GetMolinfo() const

void ChangeBioseq(CConstRef< objects::CBioseq > bioseq)

void x_GetCompletedness()

CMolInfoPanel()

Constructors.

wxBitmap GetBitmapResource(const wxString &name)

Retrieves bitmap resources.

wxChoice * m_TopologyCtrl

void Init()

Initialises member variables.

void CreateControls()

Creates the controls and sizers.

static bool ShowToolTips()

Should we show tooltips?

CRef< objects::CMolInfo > m_Molinfo

virtual void UpdateSeqdesc(objects::CSeqdesc &desc)

void SetBioseqValues(CRef< objects::CBioseq > bioseq)

virtual bool TransferDataFromWindow()

wxChoice * m_StrandednessCtrl

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

Creation.

wxChoice * m_MoleculeCtrl

virtual void ChangeSeqdesc(const objects::CSeqdesc &desc)

virtual bool TransferDataToWindow()

CRef< objects::CBioseq > m_Bioseq

void OnChoice8Selected(wxCommandEvent &event)

wxEVT_COMMAND_CHOICE_SELECTED event handler for ID_CHOICE8

wxTextCtrl * m_TechExpCtrl

wxIcon GetIconResource(const wxString &name)

Retrieves icon resources.

list< pair< string, TEnumValueType > > TValues

#define ENUM_METHOD_NAME(EnumName)

void Reset(void)

Reset reference object.

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

void SetInst(TInst &value)

Assign a value to Inst data member.

ETopology

topology of molecule

EStrand

strandedness in living organism

@ eTech_other

use Source.techexp

@ eBiomol_pre_RNA

precursor RNA of any sort really

@ eBiomol_cRNA

viral RNA genome copy intermediate

@ eBiomol_snoRNA

small nucleolar RNA

@ eBiomol_genomic_mRNA

reported a mix of genomic and cdna sequence

@ eBiomol_transcribed_RNA

transcribed RNA other than existing classes

@ eBiomol_other_genetic

other genetic material

@ eStrand_other

default ds for DNA, ss for RNA, pept

const int kCompletenessOther

const int kStrandednessOther

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

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