tmsContext;
54 if(tmsContext.empty()) {
56tmsContext = reg.
GetString(
"TMS",
"TMS_CONTEXT",
"GBench_3-0");
84 const string& theme =
"",
const string&
color=
"",
85 const string&
size=
"",
const string& deco =
"",
86 const string& profile =
"",
const string& layout =
"",
87 const string&
label=
"");
93 voidSaveSettings(
boolclear_themes =
false);
95 static const string& ThemeKey();
96 static const string& DefTheme();
98 const string& GetCurrTheme()
const;
99 voidSetCurrTheme(
const string& theme);
101 const string& GetColorTheme()
const;
102 voidSetColorTheme(
const string& theme);
104 const string& GetSizeLevel()
const;
105 voidSetSizeLevel(
const string&
size);
107 const string& GetDecorateStyle()
const;
108 voidSetDecorateStyle(
const string& style);
110 const string& GetTrackProfile()
const;
111 voidSetTrackProfile(
const string& profile);
113 const string& GetLayout()
const;
114 voidSetLayout(
const string& layout);
116 const string& GetLabelPos()
const;
117 voidSetLabelPos(
const string& label_pos);
119 const string& GetGlobalSettingStyle()
const;
120 voidSetGlobalSettingStyle(
const string& style);
122 boolIsAjdustRulerToSelection()
const;
123 voidSetAjdustRulerToSelection(
boolflag);
125 boolGetShowComments()
const;
126 voidSetShowComments(
boolflag);
128 boolGetShowSimpleComments()
const;
129 voidSetShowSimpleComments(
boolflag);
131 boolGetShowMessage()
const;
132 voidSetShowMessage(
boolflag);
134 boolReserveCmmtSpace()
const;
135 voidSetReserveCmmtSpace(
boolflag);
137 boolGetShowCommentBg()
const;
138 voidSetShowCommentBg(
boolflag);
140 boolGetRepeatComment()
const;
141 voidSetRepeatComment(
boolflag);
143 boolAutoHideTrack()
const;
144 voidSetAutoHideTrack(
boolflag);
146 boolGetShowHorzGrid()
const;
147 voidSetShowHorzGrid(
boolflag);
149 boolGetShowVertGrid()
const;
150 voidSetShowVertGrid(
boolflag);
152 boolGetShowTrackMinusPlusSign()
const;
153 voidSetShowTrackMinusPlusSign(
boolflag);
155 boolGetBackgroundLoading()
const;
156 voidSetBackgroundLoading(
boolflag);
158 boolGetCgiMode()
const;
159 voidSetCgiMode(
boolflag);
161 boolGetShowDownwardHairlines()
const;
162 voidSetShowDownwardHairlines(
boolflag);
176 const CRgbaColor& GetSelHairlineOneColor()
const;
179 const CRgbaColor& GetSelHairlineManyColor()
const;
182 const CRgbaColor& GetSelHairlineDownColor()
const;
185 const CRgbaColor& GetBGCommentColor()
const;
188 const CRgbaColor& GetFGCommentColor()
const;
191 const CRgbaColor& GetTitleBackground()
const;
194 const CRgbaColor& GetNonNCBITitleBackground()
const;
200 const CRgbaColor& GetSelectionColor()
const;
203 const CRgbaColor& GetHorizontalGridColor()
const;
206 const CRgbaColor& GetVerticalGridColor()
const;
209 intGetHairlineOption()
const;
210 voidSetHairlineOption(
int option);
212 intGetCommentRepeatDist()
const;
213 voidSetCommentRepeatDist(
intd);
215 intGetOverviewCutoff()
const;
216 voidSetOverviewCutoff(
intcutoff);
218 intGetHistogramCutoff()
const;
219 voidSetHistogramCutoff(
intcutoff);
221 floatGetLineWidth()
const;
222 voidSetLineWidth(
floatw);
224 floatGetZoomFactor()
const;
225 voidSetZoomFactor(
float);
227 floatGetBarHeight()
const;
228 voidSetBarHeight(
floath);
230 floatGetCommentTopMargin()
const;
231 voidSetCommentTopMargin(
floats);
233 floatGetCommentBottomMargin()
const;
234 voidSetCommentBottomMargin(
floats);
236 intGetObjectSpace()
const;
237 voidSetObjectSpace(
ints);
239 intGetIconSize()
const;
240 voidSetIconSize(
ints);
242 intGetIconSignSize()
const;
243 voidSetIconSignSize(
ints);
246 voidSetAnnotDepth(
int depth);
266 voidIgnoreFeatureStrand();
285 voidSetDirty(
bool f);
286 boolGetDirty()
const;
298 static voidLoadSettingStyles(
const CGuiRegistry& reg,
string& theme,
299 string&
color,
string&
size,
string& deco,
300 string& profile,
string&
label);
303 voidx_VerifySettings()
const;
305 voidx_LoadFeatSettings();
306 voidx_SaveFeatSettings();
308 voidx_LoadHistSettings();
309 voidx_SaveHistSettings();
405 static string key=
"Theme";
412 static string key=
"Default";
688 unsigned intfont_size)
702 unsigned intfont_size)
716 unsigned intfont_size)
1053iter->second->m_ShowStrandIndicator =
false;
void LoadSettings(const string &curr_color, const string &curr_size)
CHistParamsManager implementation.
void SaveSettings(const string &curr_color, const string &curr_size) const
CRef< CHistParams > GetHistParams(TFeatSubtype subtype) const
Get histogram settings using feature subtype.
class CRgbaColor provides a simple abstraction for managing colors.
void SetCommentRepeatDist(int d)
void SetGlobalSettingStyle(const string &style)
float GetLineWidth() const
CRef< CGlTextureFont > m_TitleFont
void SetIconSignSize(int s)
bool GetShowVertGrid() const
void SetLayout(const string &layout)
const CRgbaColor & GetBkColor() const
bool GetBackgroundLoading() const
void SetAnnotDepth(int depth)
void SetHorizontalGridColor(const CRgbaColor &color)
string m_CurrLayout
layout style
void SetSelLabelColor(const CRgbaColor &color)
bool GetShowSimpleComments() const
static const string & ThemeKey()
CSeqGraphicConfig inline methods.
const CRgbaColor & GetSelectionColor() const
static const string & DefTheme()
void SetObjectSpace(int s)
void SetNonNCBITitleBackground(const CRgbaColor &color)
bool m_ShowSimpleComments
CRef< CHistParamsManager > GetHistParamsManager() const
Get histogram config manager.
const string & GetCurrTheme() const
const string & GetLayout() const
const string & GetLabelPos() const
CRgbaColor m_NonNCBITitleBackground
CRef< CGlTextureFont > GetCommentFont() const
CRef< CClonePlacementParams > m_ClonePlacementSettings
cached clone placement settings.
bool IsAjdustRulerToSelection() const
CRgbaColor m_GridVertical
bool GetRepeatComment() const
const string & GetSizeLevel() const
CRgbaColor m_SelHairlineOne
void SetShowMessage(bool flag)
CSeqGraphicConfig(const CSeqGraphicConfig &)
CConstRef< CCustomFeatureColor > GetCustomFeatColors() const
CRef< CGlTextureFont > GetLabelFont() const
CSeqGraphicConfig & operator=(const CSeqGraphicConfig &)
void x_LoadHistSettings()
void SetLabelPos(const string &label_pos)
bool GetShowCommentBg() const
int GetHistogramCutoff() const
bool AutoHideTrack() const
void SetSelHairlineOneColor(const CRgbaColor &color)
void SetCgiMode(bool flag)
bool m_ShowTrackMinusPlusSign
void SetSelHairlineManyColor(const CRgbaColor &color)
CRgbaColor m_SelHairlineMany
CRgbaColor m_SelHairlineDown
bool GetShowHorzGrid() const
float GetZoomFactor() const
CRef< CGuiRegistry > m_Registry
bool m_ShowDownwardHairlines
void SetHistogramCutoff(int cutoff)
CRef< CCategoryConfig > m_CategoryConfig
void SetDecorateStyle(const string &style)
string m_CurrSize
size level
void SetTitleFont(CGlTextureFont::EFontFace font, unsigned int font_size)
void SetShowHorzGrid(bool flag)
void x_SaveHistSettings()
void SetShowTrackMinusPlusSign(bool flag)
CRgbaColor m_GridHorizontal
void SetLineWidth(float w)
CRef< CGlTextureFont > m_CommentFont
string m_CurrGlobal
global setting style
void SetAjdustRulerToSelection(bool flag)
void SetBackgroundLoading(bool flag)
const CRgbaColor & GetVerticalGridColor() const
const CRgbaColor & GetSelHairlineDownColor() const
void SetCommentBottomMargin(float s)
void SetTrackProfile(const string &profile)
void SetTitleBackground(const CRgbaColor &color)
void SetZoomFactor(float)
string m_CurrLabelPos
label position style
float m_ZoomFactor
Per pexel of a mouse movement.
string m_CurrTheme
current theme
const string & GetGlobalSettingStyle() const
CRef< CGlTextureFont > GetTitleFont() const
bool ReserveCmmtSpace() const
bool GetShowTrackMinusPlusSign() const
const CRgbaColor & GetSelHairlineManyColor() const
float GetCommentBottomMargin() const
int m_OverviewCutoff
cut-off between overview and detail mode(base per pixel)
void SetHairlineOption(int option)
CRgbaColor m_TitleBackground
const string & GetTrackProfile() const
int GetObjectSpace() const
void SetBarHeight(float h)
void SetOverviewCutoff(int cutoff)
CRgbaColor m_Background
Cached colors.
const CRgbaColor & GetFGCommentColor() const
const CRgbaColor & GetTitleBackground() const
void SetShowDownwardHairlines(bool flag)
bool GetShowMessage() const
void SetSelHairlineDownColor(const CRgbaColor &color)
void SetCommentFont(CGlTextureFont::EFontFace font, unsigned int font_size)
void IgnoreFeatureStrand()
Set show feature strand indicator to false for all features.
map< string, CRef< CFeatureParams > > TFeatParams
void SetReserveCmmtSpace(bool flag)
void SetColorTheme(const string &theme)
void SetFGCommentColor(const CRgbaColor &color)
bool m_AutoHideTrack
Automatically hide tracks w/o data.
CRef< CHistParamsManager > m_HistParamsManager
void SetSelectionColor(const CRgbaColor &color)
EAnnotDepth GetAnnotDepth() const
float GetBarHeight() const
void SetCommentTopMargin(float s)
void SetLabelFont(CGlTextureFont::EFontFace font, unsigned int font_size)
const CRgbaColor & GetBGCommentColor() const
CConstRef< CClonePlacementParams > GetClonePlacementParams() const
string m_CurrProfile
feature panel track profile
bool GetShowComments() const
string m_CurrDeco
decoration, mainly for features
void SetShowCommentBg(bool flag)
CRef< CCommentConfig > m_CommentConfig
float GetCommentTopMargin() const
bool GetShowDownwardHairlines() const
void SetVerticalGridColor(const CRgbaColor &color)
void SetRepeatComment(bool flag)
const string & GetDecorateStyle() const
const CRgbaColor & GetNonNCBITitleBackground() const
string m_CurrColor
color theme
int m_HistogramCutoff
Num of features.
CRef< CHistParams > GetHistParams(TFeatSubtype subtype) const
TFeatParams m_FeatSettings
cached histogram rendering parameters.
CRef< CGlTextureFont > m_LabelFont
cached fonts.
void SetCurrTheme(const string &theme)
const string & GetColorTheme() const
void SetBGCommentColor(const CRgbaColor &color)
TFeatParams & SetFeatSettings()
int m_HairLineOption
Cached sizes.
const CRgbaColor & GetSelHairlineOneColor() const
CRef< CCustomFeatureColor > m_CustomFeatColors
void SetBkColor(const CRgbaColor &color)
int GetOverviewCutoff() const
int GetHairlineOption() const
int GetIconSignSize() const
int TFeatSubtype
we use int instead of CSeqFeatData::ESubtype for two reasons:
void SetAutoHideTrack(bool flag)
int GetCommentRepeatDist() const
bool m_CgiMode
not loaded from configure file
const CRgbaColor & GetSelLabelColor() const
void SetShowSimpleComments(bool flag)
void SetShowVertGrid(bool flag)
const CRgbaColor & GetHorizontalGridColor() const
void SetShowComments(bool flag)
void SetSizeLevel(const string &size)
static unsigned char depth[2 *(256+1+29)+1]
const CNcbiRegistry & GetConfig(void) const
Get the application's cached configuration parameters (read-only).
static CNcbiApplicationAPI * Instance(void)
Singleton method.
#define NON_CONST_ITERATE(Type, Var, Cont)
Non constant version of ITERATE macro.
void SetFontFace(EFontFace face, bool use_bitmap_overrides=true)
EFontFace
Set of pre-defined fonts for which we know we have valid font files.
void SetFontSize(unsigned int size)
Set/get font size in points.
TObjectType * GetPointer(void) THROWS_NONE
Get pointer,.
virtual string GetString(const string §ion, const string &name, const string &default_value, TFlags flags=0) const
Get the parameter string value.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_GUIWIDGETS_SEQGRAPHIC_EXPORT
static const char label[]
const struct ncbi::grid::netcache::search::fields::SIZE size
const struct ncbi::grid::netcache::search::fields::KEY key
Process information in the NCBI Registry, including working with configuration files.
string GetDefaultTmsContext()
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