NCBI C++ ToolKit
Classes | Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
CWidgetDisplayStyle Class Reference

Search Toolkit Book for CWidgetDisplayStyle

CWidgetDisplayStyle is a collection of display properties common for all rows in the CAlnMultiWidget. More...

#include <gui/widgets/aln_multiple/row_display_style.hpp>

+ Collaboration diagram for CWidgetDisplayStyle:


struct  SColumn

Public Types

enum  EColorType {
  eInvalid = -1 , eText , eBack , eSelectedText ,
  eSelectedBack , eFocusedBack , eFrame , eAlignSegs ,
  eSequence , eAlignSegsNoScores
typedef map< int, CRgbaColorTColorMap
typedef vector< SColumnTColumns

Public Member Functions

 CWidgetDisplayStyle (void)
 CWidgetDisplayStyle (CGlTextureFont::EFontFace force_font)
virtual ~CWidgetDisplayStyle (void)
virtual const CRgbaColorGetColor (EColorType type) const
virtual void SetColor (EColorType type, const CRgbaColor &color)
void LoadSettings (const CRegistryReadView &view)
void SaveSettings (CRegistryWriteView view, IAlnExplorer::EAlignType type)

Public Attributes

CGlTextureFont m_TextFont
CGlTextureFont m_SeqFont
 text font (description, positions etc.) More...
bool m_ShowIdenticalBases
 sequence font More...
bool m_ShowConsensus
TColumns m_Columns
string m_DefDNAMethod
string m_DefProteinMethod
 default scoring method for DNA alignments More...
string m_DotImage
 default scoring method for protein alignments More...

Protected Member Functions

void ReadColor (EColorType type, const CRegistryReadView &view, const string &key)
void x_GetColor (EColorType type, const CRgbaColor &c)

Protected Attributes

TColorMap m_ColorMap

Detailed Description

CWidgetDisplayStyle is a collection of display properties common for all rows in the CAlnMultiWidget.

Definition at line 55 of file row_display_style.hpp.

Member Typedef Documentation

◆ TColorMap

Definition at line 58 of file row_display_style.hpp.

◆ TColumns

Definition at line 79 of file row_display_style.hpp.

Member Enumeration Documentation

◆ EColorType


this color is used when scoring is enabled but

cannot be displayed because of the scale

Definition at line 60 of file row_display_style.hpp.

Constructor & Destructor Documentation

◆ CWidgetDisplayStyle() [1/2]

CWidgetDisplayStyle::CWidgetDisplayStyle ( void  )

◆ CWidgetDisplayStyle() [2/2]

CWidgetDisplayStyle::CWidgetDisplayStyle ( CGlTextureFont::EFontFace  force_font)

◆ ~CWidgetDisplayStyle()

virtual CWidgetDisplayStyle::~CWidgetDisplayStyle ( void  )

Definition at line 83 of file row_display_style.hpp.

Member Function Documentation

◆ GetColor()

const CRgbaColor & CWidgetDisplayStyle::GetColor ( EColorType  type) const

◆ LoadSettings()

void CWidgetDisplayStyle::LoadSettings ( const CRegistryReadView view)

◆ ReadColor()

void CWidgetDisplayStyle::ReadColor ( EColorType  type,
const CRegistryReadView view,
const string key 

◆ SaveSettings()

void CWidgetDisplayStyle::SaveSettings ( CRegistryWriteView  view,
IAlnExplorer::EAlignType  type 

◆ SetColor()

void CWidgetDisplayStyle::SetColor ( EColorType  type,
const CRgbaColor color 

Definition at line 91 of file row_display_style.cpp.

References color, m_ColorMap, and type.

Referenced by CAlnPropertiesDlg::OnOkClick().

◆ x_GetColor()

void CWidgetDisplayStyle::x_GetColor ( EColorType  type,
const CRgbaColor c 

Definition at line 102 of file row_display_style.cpp.

References m_ColorMap, and type.

Member Data Documentation

◆ m_ColorMap

TColorMap CWidgetDisplayStyle::m_ColorMap

◆ m_Columns

TColumns CWidgetDisplayStyle::m_Columns

◆ m_DefDNAMethod

string CWidgetDisplayStyle::m_DefDNAMethod

◆ m_DefProteinMethod

string CWidgetDisplayStyle::m_DefProteinMethod

◆ m_DotImage

string CWidgetDisplayStyle::m_DotImage

default scoring method for protein alignments

png file name - image for identical dot (14x14, 16x16)

Definition at line 106 of file row_display_style.hpp.

Referenced by LoadSettings().

◆ m_SeqFont

CGlTextureFont CWidgetDisplayStyle::m_SeqFont

◆ m_ShowConsensus

bool CWidgetDisplayStyle::m_ShowConsensus

◆ m_ShowIdenticalBases

bool CWidgetDisplayStyle::m_ShowIdenticalBases

◆ m_TextFont

CGlTextureFont CWidgetDisplayStyle::m_TextFont

The documentation for this class was generated from the following files:
Modified on Wed Jun 19 17:00:19 2024 by rev. 669887