47 m_ShowIdenticalBases(
false),
48 m_ShowConsensus(
false)
65 : m_TextFont(force_font, 12),
66 m_SeqFont(force_font, 12),
67 m_ShowIdenticalBases(
false),
68 m_ShowConsensus(
false)
128 const string& face_key,
129 const string& size_key,
134 unsigned int font_size = (
unsigned int)view.
GetInt(size_key, 10);
136 f.SetFontFace(font_face);
137 f.SetFontSize(font_size);
141 const string& face_key,
const string& size_key,
145 view.
Set(size_key, (
int)
f.GetFontSize());
188 vector<string>
names;
197 if(
names.size() == widths.size() &&
names.size() == visible.size()) {
201 for(
size_t i = 0;
i <
n;
i++ ) {
243 vector<int> widths(
n);
244 vector<int> visible(
n);
246 for(
size_t i = 0;
i <
n;
i++ ) {
274 : m_WidgetStyle(
NULL)
324 : m_WidgetStyle(
NULL),
static CGuiRegistry & GetInstance()
access the application-wide singleton
class CRegistryReadView provides a nested hierarchical view at a particular key.
int GetInt(const string &key, int default_val=0) const
access a named key at this level, with no recursion
bool GetBool(const string &key, bool default_val=false) const
void GetIntVec(const string &key, vector< int > &val) const
string GetString(const string &key, const string &default_val=kEmptyStr) const
void GetStringVec(const string &key, vector< string > &val) const
void Set(const string &key, int val)
access a named key at this level, with no recursion
class CRgbaColor provides a simple abstraction for managing colors.
CRowDisplayStyle is a base class representing a display style for IAlignRow.
CRef< CSeqGraphicConfig > GetSeqGraphicConfig() const
virtual ~CRowDisplayStyle(void)
const CWidgetDisplayStyle * m_WidgetStyle
CRowDisplayStyle()
CRowDisplayStyle.
virtual const CRgbaColor & GetColor(TColorType type) const
CRef< CSeqGraphicConfig > m_gConfig
virtual bool GetShowIdenticalBases(void) const
virtual void SetWidgetStyle(const CWidgetDisplayStyle *style)
virtual const CGlTextureFont & GetTextFont(void) const
virtual const CGlTextureFont & GetSeqFont(void) const
void SetDefaultStyle(CRowDisplayStyle *style)
assumes ownership
TTypeToStyle m_TypeToStyle
overriden styles for rows
const CRowDisplayStyle * GetStyleForRow(TNumrow row) const
CRowDisplayStyle * m_DefStyle
void SetRowTypeStyle(int type, CRowDisplayStyle *style)
const CWidgetDisplayStyle * m_WidgetStyle
void SetRowStyle(TNumrow row, CRowDisplayStyle *style)
void SetWidgetStyle(const CWidgetDisplayStyle *style)
static bool IsBackgroundJob()
void SetLabelPos(const string &label_pos)
void SetBackgroundLoading(bool flag)
void LoadSettings()
update the cached settings.
container_type::const_iterator const_iterator
const_iterator end() const
const_iterator find(const key_type &key) const
Include a standard set of the NCBI C++ Toolkit most basic headers.
static const struct name_t names[]
static string FaceToString(EFontFace face)
funtions below provide conversion of font parameters to strings and back.
void SetFontFace(EFontFace face, bool use_bitmap_overrides=true)
EFontFace GetFontFace() const
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.
static EFontFace FaceFromString(const string &str)
Selects a font face given a string or eFontFace_LastFont on failure.
unsigned int GetFontSize() const
bool FromString(const string &value)
void Reset(void)
Reset reference object.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
unsigned int
A callback function used to compare two keys in a database.
const struct ncbi::grid::netcache::search::fields::KEY key
static const char * kColVisibleTag
void sReadFont(const CRegistryReadView &view, const string &key, CGlTextureFont &font)
static const char * kColNamesTag
static void sGetFont(const CRegistryReadView &view, const string &face_key, const string &size_key, CGlTextureFont &f)
static void sSetFont(CRegistryWriteView &view, const string &face_key, const string &size_key, const CGlTextureFont &f)
static const char * kDefDNAMethodTag
static const char * kColWidthsTag
static const char * kDotImage
static const char * kDefProteinMethodTag
#define row(bind, expected)
string ToString(const wxRect &rc)