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

NCBI C++ ToolKit: include/gui/widgets/seq_graphic/layout_track_impl.hpp Source File

1 #ifndef GUI_WIDGETS_SEQ_GRAPHIC___LAYOUT_TRACK_IMPL__HPP 2 #define GUI_WIDGETS_SEQ_GRAPHIC___LAYOUT_TRACK_IMPL__HPP 78

fCollapsible = 1 << 1,

79

fFrameVisible = 1 << 2,

85

fDefaultAttr = fMovable | fCollapsible | fFrameVisible |

86

fShowTitle | fFullTrack | fShowAlways

107  void

LoadProfile(

const string

& profile_str);

109  void

SetProfile(

const string

& preset_style);

110  const string

& GetProfile()

const

;

119  virtual string

GetFullTitle()

const

;

126  bool

isInErrorStatus()

const

;

129  bool

isRmtBased()

const

;

131  bool

isRemotePath()

const

;

136  bool

IsExpanded()

const

;

137  bool

IsMovable()

const

;

138  bool

IsCollapsible()

const

;

140  void

SetShow(

bool

shown);

141  void

SetExpanded(

bool f

);

142  void

SetShowFrame(

bool

show);

144  void

SetTrackAttr(TTrackAttrFlags

flags

);

146  void

SetIsBlast(

bool

isBlast);

148  void

SetOrder(

int

order);

149  int

GetOrder()

const

;

150  void

SetId(

const string

&

id

);

151  const string

&

GetId

()

const

;

157  void

Expand(

bool

expand);

172  virtual CHTMLActiveArea

* InitHTMLActiveArea(TAreaVector* p_areas)

const

;

177  bool

GetShowTitle()

const

;

178  void

SetShowTitle(

bool

flag);

180  int

GetIndent()

const

;

181  void

SetIndent(

int indent

);

182  void

SetMsg(

const string

&

msg

);

202

eIcon_MaxTrackIconID = 100

223

, m_Icon1_lite(icon1_lite)

245  virtual void x_Draw

()

const

;

250  virtual void

x_Expand(

bool

expand);

254  virtual bool

x_ShowTitle()

const

;

268  virtual void

x_LoadSettings(

const string

& preset_style,

271  virtual void

x_SaveSettings(

const string

& preset_style);

281  virtual void

x_GetTBRect(

TModelRect

& rc)

const

;

284  virtual void

x_RenderProgressBar()

const

;

287  virtual void

x_RenderTitleBar()

const

;

298  virtual void

x_RenderIcon(TIconID

id

,

bool

highlighted,

299  bool

lite_version =

false

)

const

;

305  virtual void

x_OnIconClicked(TIconID

id

);

309  virtual int

x_GetIconState(TIconID

id

)

const

;

313  void

x_RegisterIcon(

const

SIconInfo& icon);

316  void

x_DeregisterIcon(TIconID

id

);

319  void

x_EnableIcon(TIconID

id

,

bool

enabled);

322  void

x_ShowIcon(TIconID

id

,

bool

shown);

331  void

x_SetStatus(

const string

&

msg

,

int

progress);

332  void

x_SetStartStatus();

333  void

x_SetFinishStatus();

338  static void

RegisterCommonIconImages();

341  bool

x_IsNCBITrack()

const

;

349  static void

RegisterIconImage(

350  const

TIconAlias&

key

,

const string

& img_file);

358  static bool

InitIconTextures();

362  void

x_RenderFrame()

const

;

367  int

x_GetIconIdxById(TIconID

id

)

const

;

386  bool

m_isBlast{

false

};

394  string

m_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