21 return "BottomCenter";
25 tqDebug( "Unknown content position" );
32 if( string == "TopLeft" )
34 else if( string == "TopCenter" )
36 else if( string == "TopRight" )
38 else if( string == "CenterLeft" )
40 else if( string == "Center" )
42 else if( string == "CenterRight" )
43 return PosCenterRight;
44 else if( string == "BottomLeft" )
46 else if( string == "BottomCenter" )
47 return PosBottomCenter;
48 else if( string == "BottomRight" )
49 return PosBottomRight;
58 if( rect.isValid() ) {
60 case KDChartEnums::PosTopLeft:
63 case KDChartEnums::PosTopCenter:
64 pt.setY( rect.top() );
65 pt.setX( rect.center().x() );
67 case KDChartEnums::PosTopRight:
70 case KDChartEnums::PosCenterLeft:
71 pt.setY( rect.center().y() );
72 pt.setX( rect.left() );
74 case KDChartEnums::PosCenter:
77 case KDChartEnums::PosCenterRight:
78 pt.setY( rect.center().y() );
79 pt.setX( rect.right() );
81 case KDChartEnums::PosBottomLeft:
82 pt = rect.bottomLeft();
84 case KDChartEnums::PosBottomCenter:
85 pt.setY( rect.bottom() );
86 pt.setX( rect.center().x() );
88 case KDChartEnums::PosBottomRight:
89 pt = rect.bottomRight();
96#ifndef KDCHART_MASTER_CVS
97#include "KDChartEnums.moc"
Definition of global enums.
static PositionFlag stringToPositionFlag(const TQString &string) Converts the specified string to a content position enum value.
static TQPoint positionFlagToPoint(const TQRect &rect, PositionFlag pos) Returns the point representing a position of a rectangle.
PositionFlag The general position flag to specify a point of an area, for example this could be the anchor point w...
static TQString positionFlagToString(PositionFlag type) Converts the specified content position enum to a string representation.
|