23 #ifndef __KDCHARTENUMS_H__ 24 #define __KDCHARTENUMS_H__ 45 Q_ENUMS( PositionFlag )
100 GranularitySequenceIrregular };
110 switch ( sequence ) {
111 case GranularitySequence_10_20:
112 return QString::fromLatin1(
"GranularitySequence_10_20");
113 case GranularitySequence_10_50:
114 return QString::fromLatin1(
"GranularitySequence_10_50");
115 case GranularitySequence_25_50:
116 return QString::fromLatin1(
"GranularitySequence_25_50");
117 case GranularitySequence_125_25:
118 return QString::fromLatin1(
"GranularitySequence_125_25");
119 case GranularitySequenceIrregular:
120 return QString::fromLatin1(
"GranularitySequenceIrregular");
122 Q_ASSERT( !
"Unknown GranularitySequenceValue" );
123 return QString::fromLatin1(
"GranularitySequence_10_20");
134 if (
string == QString::fromLatin1(
"GranularitySequence_10_20") )
135 return GranularitySequence_10_20;
136 if (
string == QString::fromLatin1(
"GranularitySequence_10_50") )
137 return GranularitySequence_10_50;
138 if (
string == QString::fromLatin1(
"GranularitySequence_25_50") )
139 return GranularitySequence_25_50;
140 if (
string == QString::fromLatin1(
"GranularitySequence_125") )
141 return GranularitySequence_125_25;
142 if (
string == QString::fromLatin1(
"GranularitySequenceIrregular") )
143 return GranularitySequenceIrregular;
145 return GranularitySequence_10_20;
165 LayoutPolicyShrinkFontSize };
195 PositionNorthWest = 2,
197 PositionNorthEast = 4,
199 PositionSouthEast = 6,
201 PositionSouthWest = 8,
226 MeasureCalculationModeAutoOrientation };
237 case MeasureCalculationModeAbsolute:
238 return QString::fromLatin1(
"MeasureCalculationModeAbsolute");
239 case MeasureCalculationModeAuto:
240 return QString::fromLatin1(
"MeasureCalculationModeAuto");
241 case MeasureCalculationModeAutoArea:
242 return QString::fromLatin1(
"MeasureCalculationModeAutoArea");
243 case MeasureCalculationModeAutoOrientation:
244 return QString::fromLatin1(
"MeasureCalculationModeAutoOrientation");
245 case MeasureCalculationModeRelative:
246 return QString::fromLatin1(
"MeasureCalculationModeRelative");
248 Q_ASSERT( !
"unhandled MeasureCalculationMode" );
249 return QString::fromLatin1(
"MeasureCalculationModeAuto");
260 if (
string == QString::fromLatin1(
"MeasureCalculationModeAbsolute") )
261 return MeasureCalculationModeAbsolute;
262 if (
string == QString::fromLatin1(
"MeasureCalculationModeAuto") )
263 return MeasureCalculationModeAuto;
264 if (
string == QString::fromLatin1(
"MeasureCalculationModeAutoArea") )
265 return MeasureCalculationModeAutoArea;
266 if (
string == QString::fromLatin1(
"MeasureCalculationModeAutoOrientation") )
267 return MeasureCalculationModeAutoOrientation;
268 if (
string == QString::fromLatin1(
"MeasureCalculationModeRelative") )
269 return MeasureCalculationModeRelative;
271 return MeasureCalculationModeAuto;
294 MeasureOrientationMaximum };
305 case MeasureOrientationAuto:
306 return QString::fromLatin1(
"MeasureOrientationAuto");
307 case MeasureOrientationHorizontal:
308 return QString::fromLatin1(
"MeasureOrientationHorizontal");
309 case MeasureOrientationVertical:
310 return QString::fromLatin1(
"MeasureOrientationVertical");
311 case MeasureOrientationMinimum:
312 return QString::fromLatin1(
"MeasureOrientationMinimum");
313 case MeasureOrientationMaximum:
314 return QString::fromLatin1(
"MeasureOrientationMaximum");
316 Q_ASSERT( !
"Unknown MeasureOrientation value" );
317 return QString::fromLatin1(
"MeasureOrientationAuto");
328 if (
string == QString::fromLatin1(
"MeasureOrientationAuto") )
329 return MeasureOrientationAuto;
330 if (
string == QString::fromLatin1(
"MeasureOrientationHorizontal") )
331 return MeasureOrientationHorizontal;
332 if (
string == QString::fromLatin1(
"MeasureOrientationVertical") )
333 return MeasureOrientationVertical;
334 if (
string == QString::fromLatin1(
"MeasureOrientationMinimum") )
335 return MeasureOrientationMinimum;
336 if (
string == QString::fromLatin1(
"MeasureOrientationMaximum") )
337 return MeasureOrientationMaximum;
339 return MeasureOrientationAuto;
MeasureOrientation
Measure orientation mode: the way how the absolute value of a KDChart::Measure is determined during K...
Project global class providing some enums needed both by KDChartParams and by KDChartCustomBox.
static GranularitySequence stringToGranularitySequence(const QString &string)
Converts the specified string to a granularity sequence enum value.
TextLayoutPolicy
Text layout policy: what to do if text that is to be drawn would cover neighboring text or neighborin...
static MeasureOrientation stringToMeasureOrientation(const QString &string)
Converts the specified string to a measure orientation enum value.
static QString measureCalculationModeToString(MeasureCalculationMode mode)
Converts the specified measure calculation mode enum to a string representation.
static QString granularitySequenceToString(GranularitySequence sequence)
Converts the specified granularity sequence enum to a string representation.
GranularitySequence
GranularitySequence specifies the values, that may be applied, to determine a step width within a giv...
MeasureCalculationMode
Measure calculation mode: the way how the absolute value of a KDChart::Measure is determined during K...
static MeasureCalculationMode stringToMeasureCalculationMode(const QString &string)
Converts the specified string to a measure calculation mode enum value.
PositionValue
Numerical values of the static KDChart::Position instances, for using a Position::value() with a swit...
static QString measureOrientationToString(MeasureOrientation mode)
Converts the specified measure orientation enum to a string representation.
Class only listed here to document inheritance of some KDChart classes.