51 virtual string GetType()
const {
return "Location"; }
74 CSeq_loc::GetTypeInfo(),
83 gui_info->
m_Scope =
object.scope;
86 const CSeq_loc* seqLoc =
dynamic_cast<const CSeq_loc*
>(
object.object.GetPointer());
97 if (
gen.GetDb() ==
"TRACE_ASSM") {
120 }
NCBI_CATCH(
"CGuiObjectInfoSeq_loc::CreateObject");
130 return "symbol::sequence_id_dna";
132 return "symbol::sequence_id_protein";
134 return "symbol::sequence_id";
147 if(isGeneratedBySvc) {
148 *isGeneratedBySvc =
false;
CRef< objects::CScope > m_Scope
static CGuiObjectInfoSeq_loc * CreateObject(SConstScopedObject &object, ICreateParams *params)
virtual string GetViewCategory() const
To share default view between different types.
enum CGuiObjectInfoSeq_loc::ESubtype m_Subtype
virtual string GetIcon() const
virtual string GetSubtype() const
virtual string GetLabel() const
virtual void GetLinks(ITooltipFormatter &, bool) const
Get a set of links.
virtual string GetType() const
virtual void GetToolTip(ITooltipFormatter &tooltip, string &t_title, TSeqPos at_p=(TSeqPos) -1, bool *isGeneratedBySvc=NULL) const
Get tooltip.
CConstRef< CObject > m_Object
static void RegisterFactory(const string &interface_name, IInterfaceFactory *factory)
unsigned int TSeqPos
Type for sequence locations and lengths.
#define NCBI_CATCH(message)
Catch CExceptions as well This macro is deprecated - use *_X or *_XX variant instead of it.
static void GetLabel(const CObject &obj, string *label, ELabelType type=eDefault)
virtual void AddRow(const string &sContents="", unsigned colspan=2)=0
add a row with a cell, spanning across all columns
static EAccessionInfo IdentifyAccession(const CTempString &accession, TParseFlags flags=fParse_AnyRaw)
Deduces information from a bare accession a la WHICH_db_accession; may report false negatives on prop...
EAccessionInfo
For IdentifyAccession (below)
const CSeq_id * GetId(void) const
Get the id of the location return NULL if has multiple ids or no id at all.
const CSeq_id & GetId(const CSeq_loc &loc, CScope *scope)
If all CSeq_ids embedded in CSeq_loc refer to the same CBioseq, returns the first CSeq_id found,...
@ eGetId_Best
return the "best" gi (uses FindBestScore(), with CSeq_id::CalculateScore() as the score function
bool IsNucleotide(void) const
bool IsProtein(void) const
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static const char label[]
const TGeneral & GetGeneral(void) const
Get the variant data.
bool IsGi(void) const
Check if variant Gi is selected.
void initCGuiObjectInfoSeq_loc()