Public Types | Public Member Functions | Static Protected Attributes | List of all members
iview::CColorSchemaBase Class Reference

#include <CColorSchemaBase.h>

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

Public Types

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

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 iview::IColorSchema
virtual const QPen & GetPen (StandardPen penType) const =0
 
virtual void SetPen (StandardPen penType, const QPen &pen)=0
 
virtual const QBrush & GetBrush (StandardBrush brushType) const =0
 
virtual void SetBrush (StandardBrush brushType, const QBrush &brush)=0
 
virtual const QFont & GetFont (StandardFont fontType) const =0
 
virtual void SetFont (StandardFont fontType, const QFont &font)=0
 
- Public Member Functions inherited from istd::IPolymorphic
virtual ~IPolymorphic ()
 

Static Protected Attributes

static i2d::CRect s_tickerDrawBoxes [(int) TT_LAST+(int) 1]
 
static i2d::CRect s_tickerBoundingBoxes [(int) TT_LAST+(int) 1]
 

Detailed Description

Definition at line 17 of file CColorSchemaBase.h.

Member Enumeration Documentation

anonymous enum
Enumerator
TICKER_SIZE 
SMALL_TICKER_SIZE 
LOGICAL_LINE_WIDTH 

Definition at line 20 of file CColorSchemaBase.h.

Member Function Documentation

virtual void iview::CColorSchemaBase::Assign ( const IColorSchema colorSchema)
virtual

Implements iview::IColorSchema.

virtual void iview::CColorSchemaBase::DrawTicker ( QPainter &  drawContext,
istd::CIndex2d  point,
IColorSchema::TickerType  tickerType 
) const
virtual

Draw a ticker.

Implements iview::IColorSchema.

int iview::CColorSchemaBase::GetLogicalLineWidth ( ) const
inlinevirtual

Return width of line.

This value is used to check, if user touched a line. It doesn't depend on screen transform.

Implements iview::IColorSchema.

Definition at line 44 of file CColorSchemaBase.h.

References LOGICAL_LINE_WIDTH.

virtual const i2d::CRect& iview::CColorSchemaBase::GetTickerBox ( IColorSchema::TickerType  tickerType) const
virtual

Get bounding box of ticker in position (0, 0).

Implements iview::IColorSchema.

Member Data Documentation

i2d::CRect iview::CColorSchemaBase::s_tickerBoundingBoxes[(int) TT_LAST+(int) 1]
staticprotected

Definition at line 36 of file CColorSchemaBase.h.

i2d::CRect iview::CColorSchemaBase::s_tickerDrawBoxes[(int) TT_LAST+(int) 1]
staticprotected

Definition at line 35 of file CColorSchemaBase.h.


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

© 2007-2017 Witold Gantzke and Kirill Lepskiy