packed_seqint.
Set().push_back(interval);
99packed_seqint.
Set().push_back(
tmp);
118packed_seqint.
Set().push_back(interval);
127loc.
SetInt().SetId(*new_id);
128loc.
SetInt().SetFrom(0);
143wxWindowID
id,
constwxPoint& pos,
constwxSize&
size,
longstyle )
144: m_Object(&object), m_ToEdit(new
CPacked_seqint()), m_AllowNuc(allow_nuc), m_AllowProt(allow_prot), m_is_cds(is_cds)
149Create(parent,
id, pos,
size, style);
154wxWindowID
id,
constwxPoint& pos,
constwxSize&
size,
longstyle )
155: m_Object(&object), m_ToEdit(new
CPacked_seqint()), m_AllowNuc(allow_nuc), m_AllowProt(allow_prot), m_is_cds(is_cds)
160Create(parent,
id, pos,
size, style);
166 switch(loc.
Which()) {
190SetExtraStyle(wxWS_EX_VALIDATE_RECURSIVELY);
191wxPanel::Create( parent,
id, pos,
size, style );
196GetSizer()->SetSizeHints(
this);
221 boolshould_be_null =
false;
223 if((*it)->IsNull()) {
224 if(should_be_null) {
225should_be_null =
false;
231 if(should_be_null) {
235should_be_null =
true;
239 if(!should_be_null) {
299wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
300itemPanel1->SetSizer(itemBoxSizer2);
302wxBoxSizer* itemBoxSizer3 =
newwxBoxSizer(wxHORIZONTAL);
303itemBoxSizer2->Add(itemBoxSizer3, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
309bsh =
m_Scope->GetBioseqHandle(loc);
315 if(bsh && bsh.
IsAa()) {
324 m_UpdatemRNASpan=
newwxCheckBox( itemPanel1,
wxID_ANY,
_(
"Update mRNA span"), wxDefaultPosition, wxDefaultSize, 0 );
326itemBoxSizer2->Add(
m_UpdatemRNASpan, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
350 TSeqPosfrom = (**it).GetFrom();
354 if((**it).IsSetId()) {
359 if((**it).IsSetStrand())
360strand = (**it).GetStrand();
363 if((**it).IsSetFuzz_from() && (**it).GetFuzz_from().IsLim())
365 if((**it).IsSetFuzz_to() && (**it).GetFuzz_to().IsLim())
367 if(fuzz && from == to)
420 if(!wxPanel::TransferDataToWindow())
430 if(!wxPanel::TransferDataFromWindow())
static CRef< CScope > m_Scope
@ eExtreme_Biological
5' and 3'
void SetLocType(int value)
CRef< objects::CSeq_loc > GetSeq_loc()
void AddRow(int from, int to, int strand, const wxString &seqID, const bool fuzz)
void SetPartials(bool partial5, bool partial3)
wxString GetListIdStrForSeqId(const objects::CSeq_id &seq_id)
virtual bool IsExportEnabled(void)
void x_LoadSeqLoc(const objects::CSeq_loc &loc)
void Init()
Initialises member variables.
void SetSeq_loc(CSerialObject &object)
virtual bool TransferDataFromWindow()
virtual bool IsImportEnabled(void)
bool Create(wxWindow *parent, wxWindowID id=ID_CLOCATIONPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
Creation.
static bool ShowToolTips()
Should we show tooltips?
CRef< objects::CSeq_loc > GetSeq_loc() const
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
void CreateControls()
Creates the controls and sizers.
CRef< objects::CScope > m_Scope
virtual CRef< CSerialObject > OnExport(void)
CLocationPanel()
Constructors.
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
~CLocationPanel()
Destructor.
CLocationListCtrl * m_LocationCtrl
CRef< objects::CPacked_seqint > m_ToEdit
virtual bool TransferDataToWindow()
virtual void OnImport(CNcbiIfstream &istr)
wxCheckBox * m_UpdatemRNASpan
Base class for all object manager exceptions.
Base class for all serializable objects.
unsigned int TSeqPos
Type for sequence locations and lengths.
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
virtual void Assign(const CSerialObject &source, ESerialRecursionMode how=eRecursive)
Set object to copy of another one.
#define MSerial_AsnText
I/O stream manipulators â.
virtual void Assign(const CSerialObject &source, ESerialRecursionMode how=eRecursive)
Optimized implementation of CSerialObject::Assign, which is not so efficient.
CBioseq_Handle GetBioseqHandle(const CSeq_id &id)
Get bioseq handle by seq-id.
TInst_Length GetInst_Length(void) const
void Reset(void)
Reset handle and make it not to point to any bioseq.
void Reset(void)
Reset reference object.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
IO_PREFIX::ifstream CNcbiIfstream
Portable alias for ifstream.
@ eLim_tr
space to right of position
bool IsSetId(void) const
WARNING: this used to be optional Check if a value has been assigned to Id data member.
bool IsMix(void) const
Check if variant Mix is selected.
list< CRef< CSeq_interval > > Tdata
ENa_strand
strand of nucleic acid
const Tdata & Get(void) const
Get the member data.
Tdata & Set(void)
Assign a value to data member.
const TPnt & GetPnt(void) const
Get the variant data.
TPoint GetPoint(void) const
Get the Point member data.
const TWhole & GetWhole(void) const
Get the variant data.
bool IsSetFuzz(void) const
Check if a value has been assigned to Fuzz data member.
list< CRef< CSeq_loc > > Tdata
const TFuzz & GetFuzz(void) const
Get the Fuzz member data.
E_Choice Which(void) const
Which variant is currently selected.
const TId & GetId(void) const
Get the Id member data.
TStrand GetStrand(void) const
Get the Strand member data.
const Tdata & Get(void) const
Get the member data.
void SetFuzz_from(TFuzz_from &value)
Assign a value to Fuzz_from data member.
bool IsSetStrand(void) const
Check if a value has been assigned to Strand data member.
bool IsWhole(void) const
Check if variant Whole is selected.
const TInt & GetInt(void) const
Get the variant data.
void SetStrand(TStrand value)
Assign a value to Strand data member.
E_Choice
Choice variants.
const TMix & GetMix(void) const
Get the variant data.
const TPacked_int & GetPacked_int(void) const
Get the variant data.
@ e_not_set
No variant selected.
static void s_Load_Seq_point(CPacked_seqint &packed_seqint, const CSeq_point &src)
static void s_Load_Seq_interval(CPacked_seqint &packed_seqint, const CSeq_interval &src)
bool s_IsOrdered(const CSeq_loc &loc)
static void s_ConvertWholeToInt(CSeq_loc &loc, CRef< CScope > scope)
static void s_Load_Packed_seqint(CPacked_seqint &packed_seqint, const CPacked_seqint &src)
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