Public Types | Public Member Functions | List of all members
iview::IColorSchema Class Referenceabstract

Defines set of standard pens, brushes and simple management of unions. More...

#include <IColorSchema.h>

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

Public Types

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)=0
 
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
 
virtual void DrawTicker (QPainter &drawContext, istd::CIndex2d point, TickerType tickerType) const =0
 Draw a ticker. More...
 
virtual const i2d::CRectGetTickerBox (TickerType tickerType) const =0
 Get bounding box of ticker in position (0, 0). More...
 
virtual int GetLogicalLineWidth () const =0
 Return width of line. More...
 
- Public Member Functions inherited from istd::IPolymorphic
virtual ~IPolymorphic ()
 

Detailed Description

Defines set of standard pens, brushes and simple management of unions.

Definition at line 28 of file IColorSchema.h.

Member Enumeration Documentation

Enumerator
SB_NORMAL 
SB_SELECTED 
SB_TICKER 
SB_SELECTED_TICKER 
SB_IMPORTANT 
SB_BACKGROUND 
SB_HALF_TRANSPARENT 
SB_HALF_TRANSPARENT2 
SB_TRANSPARENT 
SB_LAST 

Definition at line 56 of file IColorSchema.h.

Enumerator
SF_NORMAL 
SF_LAST 

Definition at line 70 of file IColorSchema.h.

Enumerator
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 

Definition at line 31 of file IColorSchema.h.

Defines a type of ticker.

Enumerator
TT_SMALL 

Small ticker.

TT_INACTIVE_SMALL 

Inactive small ticker.

TT_SELECTED_INACTIVE_SMALL 

Selected inactive small ticker.

TT_NORMAL 

Normal (default active) ticker.

TT_INACTIVE 

Inactive ticker.

TT_SELECTED_INACTIVE 

Selected inactive ticker.

TT_MOVE 

Ticker used to move object.

TT_MOVE_CENTER 

Ticker used to move center pins.

TT_INSERT 

Ticker used to add node.

TT_DELETE 

Ticker used to delete node.

TT_ROTATE 

Ticker used to rotate object.

TT_SKEW 

Ticker used to skew object.

TT_CHECKBOX_ON 

Ticker used to checkbox, when it is on.

TT_CHECKBOX_OFF 

Ticker used to checkbox, when it is off.

TT_LAST 

Max value.

Definition at line 78 of file IColorSchema.h.

Member Function Documentation

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

Implemented in iview::CColorSchemaBase.

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

Draw a ticker.

Implemented in iview::CColorSchemaBase.

virtual const QBrush& iview::IColorSchema::GetBrush ( StandardBrush  brushType) const
pure virtual

Implemented in iview::CColorSchema.

virtual const QFont& iview::IColorSchema::GetFont ( StandardFont  fontType) const
pure virtual

Implemented in iview::CColorSchema.

virtual int iview::IColorSchema::GetLogicalLineWidth ( ) const
pure virtual

Return width of line.

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

Implemented in iview::CColorSchemaBase.

virtual const QPen& iview::IColorSchema::GetPen ( StandardPen  penType) const
pure virtual

Implemented in iview::CColorSchema.

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

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

Implemented in iview::CColorSchemaBase.

virtual void iview::IColorSchema::SetBrush ( StandardBrush  brushType,
const QBrush &  brush 
)
pure virtual

Implemented in iview::CColorSchema.

virtual void iview::IColorSchema::SetFont ( StandardFont  fontType,
const QFont &  font 
)
pure virtual

Implemented in iview::CColorSchema.

virtual void iview::IColorSchema::SetPen ( StandardPen  penType,
const QPen &  pen 
)
pure virtual

Implemented in iview::CColorSchema.


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

© 2007-2017 Witold Gantzke and Kirill Lepskiy