NCBI C++ ToolKit
|
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>
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 CRowDisplayStyle * | GetStyleForRow (TNumrow row) const |
const CRowDisplayStyle * | GetStyleForRow (TNumrow row, int type) const |
void | ClearCustomStyles () |
Protected Types | |
typedef map< TNumrow, CRowDisplayStyle * > | TRowToStyle |
typedef map< int, CRowDisplayStyle * > | TTypeToStyle |
Protected Attributes | |
const CWidgetDisplayStyle * | m_WidgetStyle |
CRowDisplayStyle * | m_DefStyle |
TRowToStyle | m_RowToStyle |
TTypeToStyle | m_TypeToStyle |
overriden styles for rows More... | |
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.
typedef int CRowStyleCatalog::TNumrow |
Definition at line 184 of file row_display_style.hpp.
|
protected |
Definition at line 203 of file row_display_style.hpp.
|
protected |
Definition at line 204 of file row_display_style.hpp.
CRowStyleCatalog::CRowStyleCatalog | ( | ) |
Definition at line 323 of file row_display_style.cpp.
CRowStyleCatalog::~CRowStyleCatalog | ( | ) |
Definition at line 330 of file row_display_style.cpp.
References m_DefStyle.
void CRowStyleCatalog::ClearCustomStyles | ( | ) |
Definition at line 387 of file row_display_style.cpp.
References map_checker< Container >::clear(), m_RowToStyle, and m_TypeToStyle.
const CRowDisplayStyle * CRowStyleCatalog::GetStyleForRow | ( | TNumrow | row | ) | const |
Definition at line 352 of file row_display_style.cpp.
References map_checker< Container >::end(), map_checker< Container >::find(), m_DefStyle, m_RowToStyle, and row.
Referenced by CAlnMultiModel::UpdateOnStyleChanged(), and CAlnMultiModel::x_CreateRow().
const CRowDisplayStyle * CRowStyleCatalog::GetStyleForRow | ( | TNumrow | row, |
int | type | ||
) | const |
Definition at line 359 of file row_display_style.cpp.
References map_checker< Container >::end(), map_checker< Container >::find(), m_DefStyle, m_RowToStyle, m_TypeToStyle, and row.
void CRowStyleCatalog::SetDefaultStyle | ( | CRowDisplayStyle * | style | ) |
assumes ownership
Definition at line 344 of file row_display_style.cpp.
References m_DefStyle, m_WidgetStyle, and CRowDisplayStyle::SetWidgetStyle().
Referenced by CAlignMultipleDemoDlg::CreateControls(), CMultiAlignView::CreateViewWindow(), CUpdateSeqPanel::x_CreateAlnMultiWidget(), and CAlnMultiCGIApplication::x_PreProcess().
void CRowStyleCatalog::SetRowStyle | ( | TNumrow | row, |
CRowDisplayStyle * | style | ||
) |
Definition at line 371 of file row_display_style.cpp.
References _ASSERT, m_RowToStyle, m_WidgetStyle, row, and CRowDisplayStyle::SetWidgetStyle().
void CRowStyleCatalog::SetRowTypeStyle | ( | int | type, |
CRowDisplayStyle * | style | ||
) |
Definition at line 379 of file row_display_style.cpp.
References _ASSERT, m_TypeToStyle, m_WidgetStyle, CRowDisplayStyle::SetWidgetStyle(), and type.
void CRowStyleCatalog::SetWidgetStyle | ( | const CWidgetDisplayStyle * | style | ) |
Definition at line 336 of file row_display_style.cpp.
References m_DefStyle, m_WidgetStyle, and CRowDisplayStyle::SetWidgetStyle().
Referenced by CAlignMultipleDemoDlg::CreateControls(), CMultiAlignView::CreateViewWindow(), CUpdateSeqPanel::x_CreateAlnMultiWidget(), and CAlnMultiCGIApplication::x_PreProcess().
|
protected |
Definition at line 207 of file row_display_style.hpp.
Referenced by GetStyleForRow(), SetDefaultStyle(), SetWidgetStyle(), and ~CRowStyleCatalog().
|
protected |
Definition at line 209 of file row_display_style.hpp.
Referenced by ClearCustomStyles(), GetStyleForRow(), and SetRowStyle().
|
protected |
overriden styles for rows
Definition at line 210 of file row_display_style.hpp.
Referenced by ClearCustomStyles(), GetStyleForRow(), and SetRowTypeStyle().
|
protected |
Definition at line 206 of file row_display_style.hpp.
Referenced by SetDefaultStyle(), SetRowStyle(), SetRowTypeStyle(), and SetWidgetStyle().