ACF $AcfVersion:0$
Public Types | Public Member Functions | Protected Attributes | List of all members
iview::CColorSchema Class Reference

Implementation of the color schema object. More...

#include <CColorSchema.h>

Inheritance diagram for iview::CColorSchema:
iview::CColorSchemaBase iview::IColorSchema istd::IPolymorphic iview::CColorSchemaPenAttr iview::CColorSchemaBrushAttr iview::CColorSchemaComp

Public Types

enum  { NORMAL_SET_SIZE = 16 }
 
- Public Types inherited from iview::CColorSchemaBase
enum  { TICKER_SIZE = 4 , SMALL_TICKER_SIZE = 2 , LOGICAL_LINE_WIDTH = 4 }
 
- Public Types inherited from iview::IColorSchema
enum  StandardPen {
  SP_NORMAL , SP_SELECTED , SP_SELECTED_TICKER , SP_TICKER ,
  SP_IMPORTANT , SP_ORIENT_DARK , SP_ORIENT_BRIGHT , SP_NORMAL_DASH ,
  SP_SELECTED_DASH , SP_GUIDELINE1 , SP_GUIDELINE2 , SP_GUIDELINE3 ,
  SP_BLACK , SP_WHITE , SP_RED , SP_GREEN ,
  SP_BLUE , SP_CYAN , SP_YELLOW , SP_MAGENTA ,
  SP_CORALL , SP_ORANGE , SP_PINK , SP_LAST = SP_PINK
}
 
enum  StandardBrush {
  SB_NORMAL , SB_SELECTED , SB_TICKER , SB_SELECTED_TICKER ,
  SB_IMPORTANT , SB_BACKGROUND , SB_TRANSPARENT , SB_LAST = SB_TRANSPARENT
}
 
enum  StandardFont { SF_NORMAL = 0 , SF_LAST = SF_NORMAL }
 
enum  TickerType {
  TT_SMALL , TT_INACTIVE_SMALL , TT_SELECTED_INACTIVE_SMALL , TT_NORMAL ,
  TT_INACTIVE , TT_SELECTED_INACTIVE , TT_MOVE , TT_MOVE_CENTER ,
  TT_INSERT , TT_DELETE , TT_ROTATE , TT_SKEW ,
  TT_CHECKBOX_ON , TT_CHECKBOX_OFF , TT_LAST = TT_CHECKBOX_OFF
}
 Defines a type of ticker. More...
 

Public Member Functions

 CColorSchema ()
 
virtual const QFont & GetFont (IColorSchema::StandardFont fontType) const override
 
virtual void SetFont (iview::IColorSchema::StandardFont fontType, const QFont &font) override
 
virtual const QPen & GetPen (IColorSchema::StandardPen penType) const override
 
virtual void SetPen (iview::IColorSchema::StandardPen penType, const QPen &pen) override
 
virtual const QBrush & GetBrush (IColorSchema::StandardBrush brushType) const override
 
virtual void SetBrush (iview::IColorSchema::StandardBrush brushType, const QBrush &brush) override
 
- Public Member Functions inherited from iview::CColorSchemaBase
virtual void Assign (const IColorSchema &colorSchema) override
 
virtual void DrawTicker (QPainter &drawContext, istd::CIndex2d point, IColorSchema::TickerType tickerType) const override
 Draw a ticker.
 
virtual const i2d::CRectGetTickerBox (IColorSchema::TickerType tickerType) const override
 Get bounding box of ticker in position (0, 0).
 
virtual int GetLogicalLineWidth () const override
 Return width of line.
 
- Public Member Functions inherited from istd::IPolymorphic
virtual ~IPolymorphic ()
 

Protected Attributes

QPen m_pens [int(IColorSchema::SP_LAST)+1]
 
QBrush m_brushes [int(IColorSchema::SB_LAST)+1]
 
QFont m_fonts [int(IColorSchema::SF_LAST)+1]
 

Additional Inherited Members

- Static Protected Attributes inherited from iview::CColorSchemaBase
static i2d::CRect s_tickerDrawBoxes [(int) TT_LAST+(int) 1]
 
static i2d::CRect s_tickerBoundingBoxes [(int) TT_LAST+(int) 1]
 

Detailed Description

Implementation of the color schema object.

This class extends class iview::CColorSchemaBase with implementation of storage of pens, brushes and fonts.

Definition at line 22 of file CColorSchema.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
NORMAL_SET_SIZE 

Standard size of pens set.

Definition at line 25 of file CColorSchema.h.

Constructor & Destructor Documentation

◆ CColorSchema()

iview::CColorSchema::CColorSchema ( )

Member Function Documentation

◆ GetBrush()

const QBrush & iview::CColorSchema::GetBrush ( IColorSchema::StandardBrush  brushType) const
inlineoverridevirtual

Implements iview::IColorSchema.

Definition at line 81 of file CColorSchema.h.

References m_brushes.

◆ GetFont()

const QFont & iview::CColorSchema::GetFont ( IColorSchema::StandardFont  fontType) const
inlineoverridevirtual

Implements iview::IColorSchema.

Definition at line 69 of file CColorSchema.h.

References m_fonts.

◆ GetPen()

const QPen & iview::CColorSchema::GetPen ( IColorSchema::StandardPen  penType) const
inlineoverridevirtual

Implements iview::IColorSchema.

Definition at line 75 of file CColorSchema.h.

References m_pens.

◆ SetBrush()

void iview::CColorSchema::SetBrush ( iview::IColorSchema::StandardBrush  brushType,
const QBrush &  brush 
)
inlineoverridevirtual

Implements iview::IColorSchema.

Definition at line 57 of file CColorSchema.h.

References m_brushes.

◆ SetFont()

void iview::CColorSchema::SetFont ( iview::IColorSchema::StandardFont  fontType,
const QFont &  font 
)
inlineoverridevirtual

Implements iview::IColorSchema.

Definition at line 63 of file CColorSchema.h.

References m_fonts.

◆ SetPen()

void iview::CColorSchema::SetPen ( iview::IColorSchema::StandardPen  penType,
const QPen &  pen 
)
inlineoverridevirtual

Implements iview::IColorSchema.

Definition at line 51 of file CColorSchema.h.

References m_pens.

Member Data Documentation

◆ m_brushes

QBrush iview::CColorSchema::m_brushes[int(IColorSchema::SB_LAST)+1]
protected

Definition at line 45 of file CColorSchema.h.

Referenced by GetBrush(), and SetBrush().

◆ m_fonts

QFont iview::CColorSchema::m_fonts[int(IColorSchema::SF_LAST)+1]
protected

Definition at line 46 of file CColorSchema.h.

Referenced by GetFont(), and SetFont().

◆ m_pens

QPen iview::CColorSchema::m_pens[int(IColorSchema::SP_LAST)+1]
protected

Definition at line 44 of file CColorSchema.h.

Referenced by GetPen(), and SetPen().


The documentation for this class was generated from the following file: