Go to the documentation of this file.
29#ifndef __KDCHARTENUMS_H__
30#define __KDCHARTENUMS_H__
33#include <tqpointarray.h>
35#include "KDChartGlobal.h"
69 LayoutPolicyShiftVertically,
70 LayoutPolicyShiftHorizontally,
71 LayoutPolicyShrinkFontSize };
82 case LayoutJustOverwrite:
83 return "JustOverwrite";
84 case LayoutPolicyRotate:
86 case LayoutPolicyShiftVertically:
87 return "ShiftVertically";
88 case LayoutPolicyShiftHorizontally:
89 return "ShiftHorizontally";
90 case LayoutPolicyShrinkFontSize:
91 return "ShrinkFontSize";
93 tqDebug( "Unknown text layout policy" );
94 return "JustOverwrite";
109 NumberNotationScientific,
110 NumberNotationScientificBig };
121 case NumberNotationDecimal:
122 return "NumberNotationDecimal";
123 case NumberNotationScientific:
124 return "NumberNotationScientific";
125 case NumberNotationScientificBig:
126 return "NumberNotationScientificBig";
128 tqDebug( "Unknown text number notation" );
129 return "NumberNotationDecimal";
141 if( notation == "NumberNotationDecimal" )
142 return NumberNotationDecimal;
143 else if( notation == "NumberNotationScientific" )
144 return NumberNotationScientific;
145 else if( notation == "NumberNotationScientificBig" )
146 return NumberNotationScientificBig;
148 return NumberNotationDecimal;
159 if( string == "JustOverwrite" )
160 return LayoutJustOverwrite;
161 else if( string == "Rotate" )
162 return LayoutPolicyRotate;
163 else if( string == "ShiftVertically" )
164 return LayoutPolicyShiftVertically;
165 else if( string == "ShiftHorizontally" )
166 return LayoutPolicyShiftHorizontally;
167 else if( string == "ShrinkFontSize" )
168 return LayoutPolicyShrinkFontSize;
170 return LayoutJustOverwrite;
217 AreaDataAxes = 0x0003,
219 AreaDataAxesLegend = 0x0005,
220 AreaHeaders = 0x0006,
221 AreaFooters = 0x0007,
222 AreaDataAxesLegendHeadersFooters = 0x0008,
223 AreaInnermost = 0x0009,
224 AreaOutermost = 0x000a,
225 AreaChartDataRegion = 0x000b,
226 AreasCustomBoxes = 0x000d,
227 AreaAxisBASE = 0x1000,
228 AreaHdFtBASE = 0x2000,
229 AreaCustomBoxesBASE = 0x4000,
230 AreaBASEMask = 0xF000 };
260 PosCenterLeft=3, PosCenter =4, PosCenterRight=5,
261 PosBottomLeft=6, PosBottomCenter=7, PosBottomRight=8 };
267 static TQPoint positionFlagToPoint( const TQRect& rect,
280 if( 9 <= points.size() )
293 static TQString positionFlagToString( PositionFlag type );
302 static PositionFlag stringToPositionFlag( const TQString& string );
Project global class providing some enums needed both by KDChartParams and by KDChartCustomBox.
NumberNotation Number notation specifies the general way, how a number is to be shown.
static TQString layoutPolicyToString(TextLayoutPolicy type) Converts the specified text layout policy enum to a string representation.
TextLayoutPolicy Text layout policy: what to do if text that is to be drawn would cover neighboring text or neighborin...
AreaName Areas of the chart that may have their own backgrounds and/or may be surrounded by a simple or comple...
static TextLayoutPolicy stringToLayoutPolicy(const TQString &string) Converts the specified string to a text layout policy enum value.
static TQString numberNotationToString(NumberNotation notation) Converts the specified number notation enum to a string representation.
PositionFlag The general position flag to specify a point of an area, for example this could be the anchor point w...
static TQPoint positionFlagToPoint(const TQPointArray &points, PositionFlag pos) Returns the point representing a position of a corresponding TQPointArray.
static NumberNotation stringToNumberNotation(const TQString ¬ation) Converts the specified string to a number notation enum value.
|