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_LAST = SP_MAGENTA
}
 
enum  StandardBrush {
  SB_NORMAL, SB_SELECTED, SB_TICKER, SB_SELECTED_TICKER,
  SB_IMPORTANT, SB_BACKGROUND, SB_HALF_TRANSPARENT, SB_HALF_TRANSPARENT2,
  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
 
virtual void SetFont (iview::IColorSchema::StandardFont fontType, const QFont &font)
 
virtual const QPen & GetPen (IColorSchema::StandardPen penType) const
 
virtual void SetPen (iview::IColorSchema::StandardPen penType, const QPen &pen)
 
virtual const QBrush & GetBrush (IColorSchema::StandardBrush brushType) const
 
virtual void SetBrush (iview::IColorSchema::StandardBrush brushType, const QBrush &brush)
 
- Public Member Functions inherited from iview::CColorSchemaBase
virtual void Assign (const IColorSchema &colorSchema)
 
virtual void DrawTicker (QPainter &drawContext, istd::CIndex2d point, IColorSchema::TickerType tickerType) const
 Draw a ticker. More...
 
virtual const i2d::CRectGetTickerBox (IColorSchema::TickerType tickerType) const
 Get bounding box of ticker in position (0, 0). More...
 
virtual int GetLogicalLineWidth () const
 Return width of line. More...
 
- 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
Enumerator
NORMAL_SET_SIZE 

Standard size of pens set.

Definition at line 25 of file CColorSchema.h.

Constructor & Destructor Documentation

iview::CColorSchema::CColorSchema ( )

Member Function Documentation

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

Implements iview::IColorSchema.

Definition at line 81 of file CColorSchema.h.

References m_brushes.

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

Implements iview::IColorSchema.

Definition at line 69 of file CColorSchema.h.

References m_fonts.

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

Implements iview::IColorSchema.

Definition at line 75 of file CColorSchema.h.

References m_pens.

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

Implements iview::IColorSchema.

Definition at line 57 of file CColorSchema.h.

References m_brushes.

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

Implements iview::IColorSchema.

Definition at line 63 of file CColorSchema.h.

References m_fonts.

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

Implements iview::IColorSchema.

Definition at line 51 of file CColorSchema.h.

References m_pens.

Member Data Documentation

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

Definition at line 45 of file CColorSchema.h.

Referenced by GetBrush(), and SetBrush().

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

Definition at line 46 of file CColorSchema.h.

Referenced by GetFont(), and SetFont().

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:

© 2007-2017 Witold Gantzke and Kirill Lepskiy