fCollapsible = 1 << 1,
79fFrameVisible = 1 << 2,
85fDefaultAttr = fMovable | fCollapsible | fFrameVisible |
86fShowTitle | fFullTrack | fShowAlways
107 voidLoadProfile(
const string& profile_str);
109 voidSetProfile(
const string& preset_style);
110 const string& GetProfile()
const;
119 virtual stringGetFullTitle()
const;
126 boolisInErrorStatus()
const;
129 boolisRmtBased()
const;
131 boolisRemotePath()
const;
136 boolIsExpanded()
const;
137 boolIsMovable()
const;
138 boolIsCollapsible()
const;
140 voidSetShow(
boolshown);
141 voidSetExpanded(
bool f);
142 voidSetShowFrame(
boolshow);
144 voidSetTrackAttr(TTrackAttrFlags
flags);
146 voidSetIsBlast(
boolisBlast);
148 voidSetOrder(
intorder);
149 intGetOrder()
const;
150 voidSetId(
const string&
id);
151 const string&
GetId()
const;
157 voidExpand(
boolexpand);
172 virtual CHTMLActiveArea* InitHTMLActiveArea(TAreaVector* p_areas)
const;
177 boolGetShowTitle()
const;
178 voidSetShowTitle(
boolflag);
180 intGetIndent()
const;
181 voidSetIndent(
int indent);
182 voidSetMsg(
const string&
msg);
202eIcon_MaxTrackIconID = 100
223, m_Icon1_lite(icon1_lite)
245 virtual void x_Draw()
const;
250 virtual voidx_Expand(
boolexpand);
254 virtual boolx_ShowTitle()
const;
268 virtual voidx_LoadSettings(
const string& preset_style,
271 virtual voidx_SaveSettings(
const string& preset_style);
281 virtual voidx_GetTBRect(
TModelRect& rc)
const;
284 virtual voidx_RenderProgressBar()
const;
287 virtual voidx_RenderTitleBar()
const;
298 virtual voidx_RenderIcon(TIconID
id,
boolhighlighted,
299 boollite_version =
false)
const;
305 virtual voidx_OnIconClicked(TIconID
id);
309 virtual intx_GetIconState(TIconID
id)
const;
313 voidx_RegisterIcon(
constSIconInfo& icon);
316 voidx_DeregisterIcon(TIconID
id);
319 voidx_EnableIcon(TIconID
id,
boolenabled);
322 voidx_ShowIcon(TIconID
id,
boolshown);
331 voidx_SetStatus(
const string&
msg,
intprogress);
332 voidx_SetStartStatus();
333 voidx_SetFinishStatus();
338 static voidRegisterCommonIconImages();
341 boolx_IsNCBITrack()
const;
349 static voidRegisterIconImage(
350 constTIconAlias&
key,
const string& img_file);
358 static boolInitIconTextures();
362 voidx_RenderFrame()
const;
367 intx_GetIconIdxById(TIconID
id)
const;
386 boolm_isBlast{
false};
394 stringm_Profile =
"Default";
669 m_Msg=
", Loading.....";
bool IsCollapsible() const
int m_IndentLevel
track hierachy indentation level.
void SetShowTitle(bool flag)
bool m_Expanded
is this track in expanded state
void SetTitle(const string &label, const string &default_title=NcbiEmptyString)
bool isRemotePath() const
void SetErrorStatus(const TTrackErrorStatus &ErrorStatus)
EIconID
Icon id used in layout track.
@ eIcon_Content
icon id for setting content
@ eIcon_Expand
expand/collapse icon
@ eIcon_Settings
icon id for track settings
@ eIcon_Layout
icon id for setting layout style
@ eIcon_Help
icon id for track help
virtual void x_RenderContent() const =0
The content rendering must be implemented in the derived layout tracks.
vector< SIconInfo > TIcons
void SetShowFrame(bool show)
bool GetShowTitle() const
void SetIndent(int indent)
void SetId(const string &id)
ILayoutTrackHost * m_LTHost
Top level host owning the tracks.
virtual void SetComments(const string &)
set comments.
virtual void x_Expand(bool expand)
Collapse or expand the track.
string m_Msg
special message need to show on title bar
string m_Title
track title
const TTrackErrorStatus & GetErrorStatus() const
static CFastMutex sm_Mutex
mutex guarding the icon texture map
bool m_ShowFrame
need to draw frame, not title
void MoveTo(TModelUnit y)
int m_Order
track order number
bool m_On
is this track shown
CLayoutTrack * GetParentTrack()
string GetTitle() const
get the track title.
TTrackAttrFlags m_Attrs
various track attributes
const string & GetId() const
list< CRef< CLayoutTrack > > TLayoutTracks
void SetConfig(CRef< CSeqGraphicConfig > conf)
virtual string x_GetHistMsg() const
Histogram configuration (linear, log, etc) is also on the title bar but multiple track types can have...
bool isInErrorStatus() const
void SetShow(bool shown)
set the flag only.
virtual void x_ClearContent()
map< TIconAlias, CIRef< I3DTexture > > TTexMap
TIcons m_Icons
registered icon info
virtual bool x_Empty() const =0
map< string, string > TKeyValuePairs
string m_DefaultTitle
Default track title.
@ fCollapsible
can be collpased and expanded.
CLayoutTrack & operator=(const CLayoutTrack &)
string TIconAlias
the icon alias used as a key
void SetIsBlast(bool isBlast)
const string & GetProfile() const
void x_SetStatus(const string &msg, int progress)
void SetParentTrack(CLayoutTrack *parent)
TTrackErrorStatus m_ErrorStatus
void SetMsg(const string &msg)
CLayoutTrack(const CLayoutTrack &)
prohibited copy constructor and assignment operator.
int m_HighlightedIcon
the highlighted icon index
CConstRef< CSeqGraphicConfig > x_GetGlobalConfig() const
Method for getting global configuration from rendering context.
vector< CConstRef< CSeqGlyph > > TLayObjVector
void SetProfile(const string &preset_style)
CLayoutTrack inline method implmentation.
int m_Progress
any job progress index (0 - 100)
static TTexMap sm_IconMap
only intialized once app-wise
void Expand(bool expand)
Collapse or expand the track.
bool x_IsNCBITrack() const
Indicates whether the track is NCBI track.
CRef< CSeqGraphicConfig > m_gConfig
global configuration.
CLayoutTrack * m_ParentTrack
parent track (might differ from parent)
virtual const CTrackTypeInfo & GetTypeInfo() const =0
int TIconID
use int as TIconID instead of EIconID.
virtual void SetHighlights(const string &)
string m_Id
track identifier
bool m_isBlast
true if the track is known to be generated and uploaded by BLAST
virtual string GetFullTitle() const
get a more meaningful title.
string m_Profile
track setting profile
void SetHost(ILayoutTrackHost *host)
CRenderingContext offers the basic context and utility methods for rendering layout objects in featur...
class CSeqGlyph defines an interface that wraps a rectilinear abstract object.
virtual void x_OnLayoutChanged()
update the layout.
virtual void x_Draw() const =0
The default renderer for this layout object.
virtual void GetTooltip(const TModelPoint &, ITooltipFormatter &tt, string &t_title) const
Get the tooltip if available.
virtual bool NeedTooltip(const TModelPoint &, ITooltipFormatter &, string &) const
Check if need to show tooltip.
virtual bool OnLeftDblClick(const TModelPoint &)
virtual TModelUnit GetTop() const
virtual bool OnLeftDown(const TModelPoint &)
virtual void SetTop(TModelUnit b)
virtual void x_UpdateBoundingBox()=0
Update the bounding box assuming children's sizes are fixed if any.
CTrackTypeInfo - holds description of a layout track type.
IDroppable The interface for tracks that support drag&drop.
virtual bool Drop(CRef< CLayoutTrack > &track)=0
virtual bool CanDrop(CRef< CLayoutTrack > &track)=0
ILayoutTrackHost An interface used for handling GUI-related events, such as layout change event that ...
The NCBI C++ standard methods for dealing with std::string.
TErrorSeverity m_ErrorSeverity
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,...
NCBI_XOBJUTIL_EXPORT string GetTitle(const CBioseq_Handle &hnd, TGetTitleFlags flags=0)
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static bool StartsWith(const CTempString str, const CTempString start, ECase use_case=eCase)
Check if a string starts with a specified prefix value.
#define NCBI_GUIWIDGETS_SEQGRAPHIC_EXPORT
static const char label[]
Defines to provide correct exporting from DLLs in Windows.
const struct ncbi::grid::netcache::search::fields::KEY key
Multi-threading â mutexes; rw-locks; semaphore.
static SLJIT_INLINE sljit_ins msg(sljit_gpr r, sljit_s32 d, sljit_gpr x, sljit_gpr b)
A help struct for storing information about a icon.
TIconAlias m_Icon1_lite
lighter version of icon1 (less opaque)
TIconID m_Id
must be unique within the context
TIconAlias m_Icon1
icon alias for state #1
SIconInfo(TIconID id, const string &tt, bool enabled, const TIconAlias &icon_1, const TIconAlias &icon_2="", const TIconAlias &icon1_lite="")
TIconAlias m_Icon2
icon alias for state #2, optional.
static void SetTitle(CRef< CSeq_entry > entry, string title)
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