1 #ifndef GUI_WIDGETS_SEQ_GRAPHIC___LAYOUT_TRACK_PROXY__HPP
2 #define GUI_WIDGETS_SEQ_GRAPHIC___LAYOUT_TRACK_PROXY__HPP
88 const string&
GetId()
const;
89 void SetId(
const string&
id);
161 const string& name,
const string& filter,
const string& title);
194 void SetUId(
const string& uid);
195 const string&
GetUId()
const;
242 void SetHubId(
const string& hub_id);
404 return t1->GetOrder() < t2->GetOrder();
411 const string&
key,
const string& sub_key)
void SetErrorStatus(const TTrackErrorStatus &ErrorStatus)
void SetId(const string &id)
void SetShow(bool shown)
set the flag only.
const string & GetProfile() const
void SetProfile(const string &preset_style)
CLayoutTrack inline method implmentation.
virtual string GetFullTitle() const
get a more meaningful title.
const TTrackErrorStatus & GetErrorStatus() const
void UpdateNA_ChildVisibility(CTempTrackProxy &child) const
const string & GetSeqDataKey() const
void SetHubId(const string &hub_id)
string m_Batch
AlignDb batch.
string m_Filter
track-specific filter
void SetShown(bool shown)
void SetRemoteId(const string &remote_id)
void SetRemoteData(const string &remote_data)
const string & GetSubkey() const
string m_SortBy
track-specific sortby
const string & GetHelp() const
TSeqRange m_VisitedRange
The sequence range visited so far.
void SetName(const string &name)
void SetCategory(const string &cat)
const string & GetUId() const
const string & GetCategory() const
set< string > m_Options2Hide
bool m_Expanded
track expanded/collapsed.
CRef< CLayoutTrack > m_Track
the delegated layout track object.
bool m_Shown
track on/off state.
const string & GetDisplayName() const
virtual CRef< CTempTrackProxy > Clone() const
virtual bool IsTempTrack() const
check if this is a temporary track.
const string & GetBatch() const
const string & GetRemoteId() const
const TSeqRange & GetVisitedRange() const
const string & GetSortBy() const
string m_BigDataIndex
The location of a remote data file containing the index.
TTrackProxies m_Children
settings for children tracks.
string m_HighlightsColor
Color to use for highlighting.
list< CRef< CTempTrackProxy > > TTrackProxies
bool GetShowTitle() const
void SetTrack(CLayoutTrack *track)
Associated any track already?.
CRef< CAnnotMetaData > m_NAdata
CTempTrackProxy(int order, const string &name, bool shown, const string &key=NcbiEmptyString, const string &sub_key=NcbiEmptyString)
bool operator<(const CTempTrackProxy &item) const
compare operator used by sorting algorithms.
void SetSource(const string &src)
void SetFilter(const string &filter)
const string & GetBigDataIndex() const
CConstRef< CTempTrackProxy > GetChildTempTrack(const string &name) const
Get track params for child temporary track.
void SetHighlights(const string &hl_str)
void SetId(const string &id)
const string & GetKey() const
void SetNAdata(CAnnotMetaData &na)
void SetHelp(const string &help)
void SetComments(const string &comment_str)
void SetUId(const string &uid)
vector< string > TSubTracks
string m_DispName
track display name.
int m_Order
track order for vertical ordering in its parent scope.
const string & GetHighlightsColor() const
void SetHighlightsColor(const string &hl_str)
static void LoadFromRegistry(TTrackProxies &proxies, const string &path, bool isMergeWithExisting=false)
if isMergeWithExisting is true, then load should skip all registry tracks that have keys as in the al...
const string & GetHighlights() const
void SetTrackProfile(const string &profile)
bool m_UseGroupDefault
flag indicating if group default setting applies.
string m_Help
track help string
bool GetUseGroupDefault() const
const TAnnots & GetAnnots() const
string m_Category
track category.
void SetKey(const string &key)
static const string kAnonTrackName
CTempTrackProxy class implementation.
time_t GetTimeStamp() const
void SetSettingGroup(const string &name)
const set< string > & GetOptions2Hide() const
EAction GetAction() const
void SetSubcategory(const string &scat)
const string & GetExtraInfo() const
static void SaveToRegistry(const TTrackProxies &proxies, const string &path)
void SetBigDataIndex(const string &big_data_index)
set< string > m_Options2Show
bool IsExtendedNA() const
check for an extended NA (named annotation::number, as used in e.g. SNP2)
void SetBatch(const string &batch)
const string & GetId() const
string m_Name
track name, may serve as track title.
string m_Profile
track profile (setting style or list of settings).
string m_Key
may be used for creating a track
const string & GetTrackProfile() const
void SetSortBy(const string &sort_by)
const TTrackProxies & GetChildren() const
TTrackErrorStatus m_ErrorStatus
static void ParseSubtracks(const string &subtracks_str, TSubTracks &subtracks)
convert a string with a list of subtracks to a list of subtracks
void SetIsPrivate(bool flag)
void SetOptions2Show(const set< string > &options2show)
CTempTrackProxy & operator=(const CTempTrackProxy ¶m)
assignment operator.
bool GetIsPrivate() const
void SetOrder(int order)
CTempTrackProxy class implementation.
string m_Subcategory
track sub-category.
TSubTracks & SetSubTracks()
void SetRemotePath(const string &remote_path)
void SetSeqDataKey(const string &seq_data_key)
const string & GetStoredScale() const
bool m_Empty
The track proxy is empty.
const string & GetRemotePath() const
const set< string > & GetOptions2Show() const
void SetTimeStamp(time_t timeStamp)
void SetAnnots(const TAnnots &annots)
const string & GetName() const
bool m_Realized
Has this been connected to any real track before.
void SetDisplayName(const string &name)
const string & GetHubId() const
TTrackProxies & GetChildren()
void SetOptions2Hide(const set< string > &options2hide)
const string & GetComments() const
const CLayoutTrack * GetTrack() const
string m_Source
data source.
const CAnnotMetaData * GetNAdata() const
string m_Id
unique track identifier.
void SetAction(EAction action)
const TSubTracks & GetSubTracks() const
const string & GetSource() const
string m_sExtraInfo
extra information potentially needed to create the track
const string & GetSettingGroup() const
void SetUseGroupDefault(bool flag)
string m_SettingGroup
setting group name.
void SetShowTitle(bool flag)
void SetExtraInfo(const string &sExtraInfo)
string m_RemotePath
Track remote path.
const string & GetSubcategory() const
CRef< CTempTrackProxy > AddTempTrack(const string &name, const string &title)
add a new template track params.
string m_Subkey
may be used for creating DataSource
void SetErrorStatus(const TTrackErrorStatus &ErrorStatus)
void SetStoredScale(const string &stored_scale)
TAnnots m_Annots
can be 'Unnamed', 'Named', or annot names
void SetVisitedRange(const TSeqRange &range)
const string & GetFilter() const
void SetSubkey(const string &sub_key)
const string & GetRemoteData() const
CTrackProxy data structure contains information about the position of a track in its parent scope,...
virtual CRef< CTempTrackProxy > Clone() const
virtual bool IsTempTrack() const
check if this is a temporary track.
const string & GetOriginalKey() const
void SetDataKey(const string &key)
void SetOriginalKey(const string &key)
string m_DataKey
user-data net storage key (SViewer only)
CTrackProxy & operator=(const CTrackProxy ¶m)
CTrackProxy(int order, const string &name, bool shown, const string &key, const string &sub_key)
const string & GetDB() const
string m_DB
data source DB name
void SetContShown(bool contShown)
bool GetContShown() const
const string & GetDataKey() const
void SetDB(const string &db)
#define LOG_POST(message)
This macro is deprecated and it's strongly recomended to move in all projects (except tests) to macro...
void Error(CExceptionArgs_Base &args)
TObjectType * GetPointer(void) THROWS_NONE
Get pointer,.
void Reset(void)
Reset reference object.
bool IsNull(void) const THROWS_NONE
Check if pointer is null – same effect as Empty().
TObjectType * GetPointerOrNull(void) THROWS_NONE
Get pointer value.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
range(_Ty, _Ty) -> range< _Ty >
const struct ncbi::grid::netcache::search::fields::KEY key
Portable reference counted smart and weak pointers using CWeakRef, CRef, CObject and CObjectEx.
help functor for less comparison.
bool operator()(const CRef< CTempTrackProxy > &t1, const CRef< CTempTrackProxy > &t2)
static bool s_CompareCRefs(const CRef< CTempTrackProxy > &t1, const CRef< CTempTrackProxy > &t2)