27 #include <QStringList>
31 #include <KDABLibFakes>
35 using namespace KDChart;
42 static const char * staticPositionNames[] = {
43 QT_TRANSLATE_NOOP(
"Position",
"Unknown Position"),
44 QT_TRANSLATE_NOOP(
"Position",
"Center"),
45 QT_TRANSLATE_NOOP(
"Position",
"NorthWest"),
46 QT_TRANSLATE_NOOP(
"Position",
"North"),
47 QT_TRANSLATE_NOOP(
"Position",
"NorthEast"),
48 QT_TRANSLATE_NOOP(
"Position",
"East"),
49 QT_TRANSLATE_NOOP(
"Position",
"SouthEast"),
50 QT_TRANSLATE_NOOP(
"Position",
"South"),
51 QT_TRANSLATE_NOOP(
"Position",
"SouthWest"),
52 QT_TRANSLATE_NOOP(
"Position",
"West"),
53 QT_TRANSLATE_NOOP(
"Position",
"Floating")
73 static const int maxPositionValue = 10;
102 assert( 0 <= value ); assert( value <= maxPositionValue );
184 return staticPositionNames[m_value];
192 return tr(staticPositionNames[m_value]);
207 const int end = ( options &
IncludeFloating ) ? maxPositionValue : maxPositionValue-1;
208 for (
int i=start; i<=end; ++i)
209 list.append( staticPositionNames[i] );
224 const int end = ( options &
IncludeFloating ) ? maxPositionValue : maxPositionValue-1;
225 for (
int i=start; i<=end; ++i)
232 for (
int i=1; i<=maxPositionValue; ++i)
233 if ( !qstricmp( name, staticPositionNames[i] ) )
250 return (
value() == value_ );
254 #if !defined(QT_NO_DEBUG_STREAM)
257 dbg <<
"KDChart::Position("