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

Search Toolkit Book for CRowStyleCatalog

CRowStyleCatalog is a collection of CRowDisplayStyle-s assigned to rows in alignment. More...

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

+ Collaboration diagram for CRowStyleCatalog:

Public Types

typedef int TNumrow
 

Public Member Functions

 CRowStyleCatalog ()
 
 ~CRowStyleCatalog ()
 
void SetWidgetStyle (const CWidgetDisplayStyle *style)
 
void SetDefaultStyle (CRowDisplayStyle *style)
 assumes ownership More...
 
void SetRowStyle (TNumrow row, CRowDisplayStyle *style)
 
void SetRowTypeStyle (int type, CRowDisplayStyle *style)
 
const CRowDisplayStyleGetStyleForRow (TNumrow row) const
 
const CRowDisplayStyleGetStyleForRow (TNumrow row, int type) const
 
void ClearCustomStyles ()
 

Protected Types

typedef map< TNumrow, CRowDisplayStyle * > TRowToStyle
 
typedef map< int, CRowDisplayStyle * > TTypeToStyle
 

Protected Attributes

const CWidgetDisplayStylem_WidgetStyle
 
CRowDisplayStylem_DefStyle
 
TRowToStyle m_RowToStyle
 
TTypeToStyle m_TypeToStyle
 overriden styles for rows More...
 

Detailed Description

CRowStyleCatalog is a collection of CRowDisplayStyle-s assigned to rows in alignment.

By default all rows have the same style but can be customized by...

Definition at line 181 of file row_display_style.hpp.

Member Typedef Documentation

◆ TNumrow

Definition at line 184 of file row_display_style.hpp.

◆ TRowToStyle

Definition at line 203 of file row_display_style.hpp.

◆ TTypeToStyle

Definition at line 204 of file row_display_style.hpp.

Constructor & Destructor Documentation

◆ CRowStyleCatalog()

CRowStyleCatalog::CRowStyleCatalog ( )

Definition at line 323 of file row_display_style.cpp.

◆ ~CRowStyleCatalog()

CRowStyleCatalog::~CRowStyleCatalog ( )

Definition at line 330 of file row_display_style.cpp.

References m_DefStyle.

Member Function Documentation

◆ ClearCustomStyles()

void CRowStyleCatalog::ClearCustomStyles ( )

◆ GetStyleForRow() [1/2]

const CRowDisplayStyle * CRowStyleCatalog::GetStyleForRow ( TNumrow  row) const

◆ GetStyleForRow() [2/2]

const CRowDisplayStyle * CRowStyleCatalog::GetStyleForRow ( TNumrow  row,
int  type 
) const

◆ SetDefaultStyle()

void CRowStyleCatalog::SetDefaultStyle ( CRowDisplayStyle style)

◆ SetRowStyle()

void CRowStyleCatalog::SetRowStyle ( TNumrow  row,
CRowDisplayStyle style 
)

◆ SetRowTypeStyle()

void CRowStyleCatalog::SetRowTypeStyle ( int  type,
CRowDisplayStyle style 
)

◆ SetWidgetStyle()

void CRowStyleCatalog::SetWidgetStyle ( const CWidgetDisplayStyle style)

Member Data Documentation

◆ m_DefStyle

CRowDisplayStyle* CRowStyleCatalog::m_DefStyle
protected

◆ m_RowToStyle

TRowToStyle CRowStyleCatalog::m_RowToStyle
protected

Definition at line 209 of file row_display_style.hpp.

Referenced by ClearCustomStyles(), GetStyleForRow(), and SetRowStyle().

◆ m_TypeToStyle

TTypeToStyle CRowStyleCatalog::m_TypeToStyle
protected

overriden styles for rows

Definition at line 210 of file row_display_style.hpp.

Referenced by ClearCustomStyles(), GetStyleForRow(), and SetRowTypeStyle().

◆ m_WidgetStyle

const CWidgetDisplayStyle* CRowStyleCatalog::m_WidgetStyle
protected

The documentation for this class was generated from the following files:
Modified on Mon Jun 24 05:24:28 2024 by modify_doxy.py rev. 669887