(parent,
id, caption, pos,
size, style);
107 bool CMolInfoPanel::Create( wxWindow* parent, wxWindowID
id,
constwxString& caption,
constwxPoint& pos,
constwxSize&
size,
longstyle )
110SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
111wxPanel::Create( parent,
id, pos,
size, style );
116GetSizer()->SetSizeHints(
this);
161wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
162itemPanel1->SetSizer(itemBoxSizer2);
164wxFlexGridSizer* itemFlexGridSizer3 =
newwxFlexGridSizer(0, 3, 0, 0);
165itemBoxSizer2->Add(itemFlexGridSizer3, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
167wxStaticText* itemStaticText4 =
newwxStaticText( itemPanel1, wxID_STATIC,
_(
"Molecule"), wxDefaultPosition, wxDefaultSize, 0 );
168itemFlexGridSizer3->Add(itemStaticText4, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
170wxArrayString m_MoleculeCtrlStrings;
171m_MoleculeCtrlStrings.Add(wxEmptyString);
172m_MoleculeCtrlStrings.Add(
_(
"Genomic DNA"));
173m_MoleculeCtrlStrings.Add(
_(
"Genomic RNA"));
174m_MoleculeCtrlStrings.Add(
_(
"Precursor RNA"));
175m_MoleculeCtrlStrings.Add(
_(
"mRNA [cDNA]"));
176m_MoleculeCtrlStrings.Add(
_(
"Ribosomal RNA"));
177m_MoleculeCtrlStrings.Add(
_(
"Transfer RNA"));
178m_MoleculeCtrlStrings.Add(
_(
"Peptide"));
179m_MoleculeCtrlStrings.Add(
_(
"Other-Genetic DNA"));
180m_MoleculeCtrlStrings.Add(
_(
"Other-Genetic RNA"));
181m_MoleculeCtrlStrings.Add(
_(
"Genomic-mRNA"));
182m_MoleculeCtrlStrings.Add(
_(
"cRNA"));
183m_MoleculeCtrlStrings.Add(
_(
"Transcribed RNA"));
184m_MoleculeCtrlStrings.Add(
_(
"Non-coding RNA"));
185m_MoleculeCtrlStrings.Add(
_(
"Other"));
186 m_MoleculeCtrl=
newwxChoice( itemPanel1,
ID_CHOICE6, wxDefaultPosition, wxDefaultSize, m_MoleculeCtrlStrings, 0 );
187itemFlexGridSizer3->Add(
m_MoleculeCtrl, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);
189itemFlexGridSizer3->Add(5, 5, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
191wxStaticText* itemStaticText7 =
newwxStaticText( itemPanel1, wxID_STATIC,
_(
"Completedness"), wxDefaultPosition, wxDefaultSize, 0 );
192itemFlexGridSizer3->Add(itemStaticText7, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
194wxArrayString m_CompletednessCtrlStrings;
195m_CompletednessCtrlStrings.Add(wxEmptyString);
196m_CompletednessCtrlStrings.Add(
_(
"Complete"));
197m_CompletednessCtrlStrings.Add(
_(
"Partial"));
198m_CompletednessCtrlStrings.Add(
_(
"No Left"));
199m_CompletednessCtrlStrings.Add(
_(
"No Right"));
200m_CompletednessCtrlStrings.Add(
_(
"No Ends"));
201m_CompletednessCtrlStrings.Add(
_(
"Has Left"));
202m_CompletednessCtrlStrings.Add(
_(
"Has Right"));
203m_CompletednessCtrlStrings.Add(
_(
"Other"));
205itemFlexGridSizer3->Add(
m_CompletednessCtrl, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);
207itemFlexGridSizer3->Add(5, 5, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
209wxStaticText* itemStaticText10 =
newwxStaticText( itemPanel1, wxID_STATIC,
_(
"Technique"), wxDefaultPosition, wxDefaultSize, 0 );
210itemFlexGridSizer3->Add(itemStaticText10, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
212wxArrayString m_TechniqueCtrlStrings;
214 for(CEnumeratedTypeValues::TValues::const_iterator
i= tech_values.begin();
i!= tech_values.end(); ++
i)
216m_TechniqueCtrlStrings.Add(wxString(
i->first));
218 m_TechOther=
static_cast<int>(tech_values.size() - 1);
221itemFlexGridSizer3->Add(
m_TechniqueCtrl, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);
224itemFlexGridSizer3->Add(
m_TechExpCtrl, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
226wxStaticText* itemStaticText13 =
newwxStaticText( itemPanel1, wxID_STATIC,
_(
"Topology"), wxDefaultPosition, wxDefaultSize, 0 );
227itemFlexGridSizer3->Add(itemStaticText13, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
229wxArrayString m_TopologyCtrlStrings;
230m_TopologyCtrlStrings.Add(wxEmptyString);
231m_TopologyCtrlStrings.Add(
_(
"Linear"));
232m_TopologyCtrlStrings.Add(
_(
"Circular"));
233m_TopologyCtrlStrings.Add(
_(
"Tandem"));
234m_TopologyCtrlStrings.Add(
_(
"Other"));
235 m_TopologyCtrl=
newwxChoice( itemPanel1,
ID_CHOICE9, wxDefaultPosition, wxDefaultSize, m_TopologyCtrlStrings, 0 );
236itemFlexGridSizer3->Add(
m_TopologyCtrl, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);
238itemFlexGridSizer3->Add(5, 5, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
240wxStaticText* itemStaticText16 =
newwxStaticText( itemPanel1, wxID_STATIC,
_(
"Strandedness"), wxDefaultPosition, wxDefaultSize, 0 );
241itemFlexGridSizer3->Add(itemStaticText16, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
243wxArrayString m_StrandednessCtrlStrings;
244m_StrandednessCtrlStrings.Add(wxEmptyString);
245m_StrandednessCtrlStrings.Add(
_(
"Single"));
246m_StrandednessCtrlStrings.Add(
_(
"Double"));
247m_StrandednessCtrlStrings.Add(
_(
"Mixed"));
249m_StrandednessCtrlStrings.Add(
_(
"Other"));
251itemFlexGridSizer3->Add(
m_StrandednessCtrl, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);
253itemFlexGridSizer3->Add(5, 5, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
257itemStaticText13->Show(
false);
259itemStaticText16->Show(
false);
524 m_Bioseq->SetInst().SetTopology (topology);
559 m_Bioseq->SetInst().SetStrand (strand);
566 if(!wxPanel::TransferDataToWindow())
581 if(!wxPanel::TransferDataFromWindow())
610bioseq->
SetInst().ResetTopology();
615bioseq->
SetInst().ResetStrand();
620bioseq->
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