summaryrefslogtreecommitdiffstats
path: root/libkdchart/KDChartParams.h
diff options
context:
space:
mode:
Diffstat (limited to 'libkdchart/KDChartParams.h')
-rw-r--r--libkdchart/KDChartParams.h576
1 files changed, 289 insertions, 287 deletions
diff --git a/libkdchart/KDChartParams.h b/libkdchart/KDChartParams.h
index 0667348..7196ef2 100644
--- a/libkdchart/KDChartParams.h
+++ b/libkdchart/KDChartParams.h
@@ -29,21 +29,21 @@
#ifndef __KDCHARTPARAMS_H__
#define __KDCHARTPARAMS_H__
-#include <qapplication.h>
-#include <qfont.h>
-#include <qcolor.h>
-#include <qpen.h>
-#include <qmap.h>
-#include <qdict.h>
-#include <qintdict.h>
-#include <qobject.h>
-#include <qtextstream.h>
-#include <qsimplerichtext.h>
-#include <qdom.h>
+#include <tqapplication.h>
+#include <tqfont.h>
+#include <tqcolor.h>
+#include <tqpen.h>
+#include <tqmap.h>
+#include <tqdict.h>
+#include <tqintdict.h>
+#include <tqobject.h>
+#include <tqtextstream.h>
+#include <tqsimplerichtext.h>
+#include <tqdom.h>
#include <limits.h>
#include <math.h>
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
#define M_PI 3.14159265358979323846
#endif
@@ -54,10 +54,10 @@
#include "KDChartAxisParams.h"
#include "KDChartPropertySet.h"
-#if COMPAT_QT_VERSION >= 0x030000
-#include <qvaluevector.h>
+#if COMPAT_TQT_VERSION >= 0x030000
+#include <tqvaluevector.h>
#else
-#include <qarray.h>
+#include <tqarray.h>
#endif
/** \file KDChartParams.h
@@ -70,7 +70,7 @@
*/
-typedef QIntDict<KDChartPropertySet> KDChartPropertySetList;
+typedef TQIntDict<KDChartPropertySet> KDChartPropertySetList;
#define KDCHART_ALL_AXES UINT_MAX-1
@@ -119,7 +119,7 @@ class KDCHART_EXPORT KDChartAutoColor {
public:
static const KDChartAutoColor* instance();
static void freeInstance();
- const QColor* color() const
+ const TQColor* color() const
{
return &mColor;
}
@@ -127,7 +127,7 @@ private:
KDChartAutoColor();
KDChartAutoColor( KDChartAutoColor const& );
~KDChartAutoColor();
- QColor mColor;
+ TQColor mColor;
static KDChartAutoColor *mInstance;
};
@@ -136,10 +136,11 @@ private:
*/
-class KDCHART_EXPORT KDChartParams : public QObject
+class KDCHART_EXPORT KDChartParams : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
Q_ENUMS(ChartType)
Q_ENUMS(SourceMode)
Q_ENUMS(BarChartSubType)
@@ -156,7 +157,7 @@ class KDCHART_EXPORT KDChartParams : public QObject
Q_ENUMS(LegendSource)
Q_ENUMS(HdFtPos)
- // Needed for QSA
+ // Needed for TQSA
Q_ENUMS( BrushStyle )
Q_ENUMS( PenStyle )
Q_ENUMS( Orientation )
@@ -222,10 +223,11 @@ public slots: // PENDING(blackie) merge public slots into one section.
public:
-// MOC_SKIP_BEGIN
+// TQMOC_SKIP_BEGIN
class KDCHART_EXPORT KDChartFrameSettings
{
// Q_OBJECT
+ // TQ_OBJECT
public:
KDChartFrameSettings();
KDChartFrameSettings( uint dataRow,
@@ -326,13 +328,13 @@ public:
virtual ~KDChartFrameSettings();
- static void createFrameSettingsNode( QDomDocument& document,
- QDomNode& parent,
- const QString& elementName,
+ static void createFrameSettingsNode( TQDomDocument& document,
+ TQDomNode& tqparent,
+ const TQString& elementName,
const KDChartFrameSettings* settings,
uint areaId );
- static bool readFrameSettingsNode( const QDomElement& element,
+ static bool readFrameSettingsNode( const TQDomElement& element,
KDChartFrameSettings& settings,
uint& areaId );
@@ -359,7 +361,7 @@ public:
}
private:
- // KDChartFrameSettings( const KDChartFrameSettings& other ) :QObject( 0 ) {
+ // KDChartFrameSettings( const KDChartFrameSettings& other ) :TQObject( 0 ) {
KDChartFrameSettings( const KDChartFrameSettings& ) {}
KDChartFrameSettings& operator=( const KDChartFrameSettings& ){return *this;}
@@ -377,7 +379,7 @@ public:
bool _addFrameHeightToLayout;
};
-// MOC_SKIP_END
+// TQMOC_SKIP_END
public slots:
@@ -391,7 +393,7 @@ public slots:
bool addFrameHeightToLayout = true )
{
_areaDict.setAutoDelete( TRUE );
- _areaDict.replace( QString( "%1/-----/-----/-----" ).arg( area, 5 ),
+ _areaDict.tqreplace( TQString( "%1/-----/-----/-----" ).tqarg( area, 5 ),
new KDChartFrameSettings(0,0,0,
frame,
outerGapX,
@@ -415,15 +417,15 @@ public slots:
KDFrame::SimpleFrame simpleFrame = KDFrame::FrameFlat,
int lineWidth = 1,
int midLineWidth = 0,
- QPen pen = QPen(),
- QBrush background = QBrush( Qt::NoBrush ),
- const QPixmap* backPixmap = 0, // no pixmap
+ TQPen pen = TQPen(),
+ TQBrush background = TQBrush( TQt::NoBrush ),
+ const TQPixmap* backPixmap = 0, // no pixmap
KDFrame::BackPixmapMode backPixmapMode = KDFrame::PixStretched,
int shadowWidth = 0,
KDFrame::CornerName sunPos = KDFrame::CornerTopLeft )
{
_areaDict.setAutoDelete( TRUE );
- KDFrame frame( QRect(0,0,0,0),
+ KDFrame frame( TQRect(0,0,0,0),
simpleFrame,
lineWidth,
midLineWidth,
@@ -434,7 +436,7 @@ public slots:
shadowWidth,
sunPos );
- _areaDict.replace( QString( "%1/-----/-----/-----" ).arg( area, 5 ),
+ _areaDict.tqreplace( TQString( "%1/-----/-----/-----" ).tqarg( area, 5 ),
new KDChartFrameSettings( 0,0,0, frame,
outerGapX,
outerGapY,
@@ -459,23 +461,23 @@ public slots:
KDFrame::SimpleFrame simpleFrame = KDFrame::FrameFlat,
int lineWidth = 1,
int midLineWidth = 0,
- QPen pen = QPen(),
+ TQPen pen = TQPen(),
int shadowWidth = 0,
KDFrame::CornerName sunPos = KDFrame::CornerTopLeft )
{
_areaDict.setAutoDelete( TRUE );
- KDFrame frame( QRect(0,0,0,0),
+ KDFrame frame( TQRect(0,0,0,0),
simpleFrame,
lineWidth,
midLineWidth,
pen,
- QBrush( Qt::NoBrush ),
+ TQBrush( TQt::NoBrush ),
0,
KDFrame::PixStretched,
shadowWidth,
sunPos );
- _areaDict.replace(
+ _areaDict.tqreplace(
dataRegionFrameAreaName( dataRow, dataCol, 0 ), //data3rd 5 ),
new KDChartFrameSettings( dataRow,
dataCol,
@@ -510,7 +512,7 @@ public slots:
public:
- typedef QIntDict <KDChartCustomBox > CustomBoxDict;
+ typedef TQIntDict <KDChartCustomBox > CustomBoxDict;
public slots:
uint insertCustomBox( const KDChartCustomBox & box );
@@ -539,8 +541,8 @@ public slots:
}
- static QString chartTypeToString( ChartType type );
- static ChartType stringToChartType( const QString& string );
+ static TQString chartTypeToString( ChartType type );
+ static ChartType stringToChartType( const TQString& string );
void setAdditionalChartType( ChartType chartType );
ChartType additionalChartType() const
@@ -564,8 +566,8 @@ public slots:
uint dataset2 = KDCHART_NO_DATASET,
uint chart = 0 );
- static QString chartSourceModeToString( const SourceMode& mode );
- static SourceMode stringToChartSourceMode( const QString& string );
+ static TQString chartSourceModeToString( const SourceMode& mode );
+ static SourceMode stringToChartSourceMode( const TQString& string );
bool neverUsedSetChartSourceMode() const
@@ -611,12 +613,12 @@ public slots:
}
- void calculateShadowColors( QColor color,
- QColor& shadow1,
- QColor& shadow2 ) const;
+ void calculateShadowColors( TQColor color,
+ TQColor& shadow1,
+ TQColor& shadow2 ) const;
- void setDataColor( uint dataset, QColor color );
- QColor dataColor( uint dataset ) const;
+ void setDataColor( uint dataset, TQColor color );
+ TQColor dataColor( uint dataset ) const;
void setDataDefaultColors();
void setDataRainbowColors();
@@ -636,7 +638,7 @@ public slots:
}
- void setShadowPattern( BrushStyle style ) {
+ void setShadowPattern( Qt::BrushStyle style ) {
_shadowPattern = style;
emit changed();
}
@@ -646,14 +648,14 @@ public slots:
}
- void setOutlineDataColor( QColor color )
+ void setOutlineDataColor( TQColor color )
{
_outlineDataColor = color;
emit changed();
}
- QColor outlineDataColor() const
+ TQColor outlineDataColor() const
{
return _outlineDataColor;
}
@@ -671,13 +673,13 @@ public slots:
}
- void setOutlineDataLineStyle( PenStyle style )
+ void setOutlineDataLineStyle( Qt::PenStyle style )
{
_outlineDataLineStyle = style;
emit changed();
}
- PenStyle outlineDataLineStyle() const
+ Qt::PenStyle outlineDataLineStyle() const
{
return _outlineDataLineStyle;
}
@@ -718,18 +720,18 @@ public slots:
uint chart = KDCHART_ALL_CHARTS,
int divPow10 = 0,
int digitsBehindComma = KDCHART_DATA_VALUE_AUTO_DIGITS,
- QFont* font = 0,
+ TQFont* font = 0,
uint size = UINT_MAX, // <-- makes us use the *default* font params
// by IGNORING settings of
// the following parameters!
- const QColor* color = KDCHART_DATA_VALUE_AUTO_COLOR,
+ const TQColor* color = KDCHART_DATA_VALUE_AUTO_COLOR,
KDChartEnums::PositionFlag negativePosition = KDChartEnums::PosCenter,
- uint negativeAlign = Qt::AlignCenter,
+ uint negativeAlign = TQt::AlignCenter,
int negativeDeltaX = 0,
int negativeDeltaY = 0,
int negativeRotation = 0,
KDChartEnums::PositionFlag positivePosition = KDChartEnums::PosCenter,
- uint positiveAlign = Qt::AlignCenter,
+ uint positiveAlign = TQt::AlignCenter,
int positiveDeltaX = 0,
int positiveDeltaY = 0,
int positiveRotation = 0,
@@ -738,7 +740,7 @@ public slots:
void setDataValuesCalc( int divPow10 = 0,
int digitsBehindComma = KDCHART_DATA_VALUE_AUTO_DIGITS,
uint chart = KDCHART_ALL_CHARTS );
- void setDataValuesFont( QFont* font,
+ void setDataValuesFont( TQFont* font,
uint size = UINT_MAX,
uint chart = KDCHART_ALL_CHARTS );
@@ -751,8 +753,8 @@ public slots:
bool specifyingPositiveValues = true,
uint chart = KDCHART_ALL_CHARTS );
- void setDataValuesColors( const QColor* color = KDCHART_DATA_VALUE_AUTO_COLOR,
- const QBrush& background = Qt::NoBrush,
+ void setDataValuesColors( const TQColor* color = KDCHART_DATA_VALUE_AUTO_COLOR,
+ const TQBrush& background = TQBrush(Qt::NoBrush),
uint chart = KDCHART_ALL_CHARTS );
// Note if you change the parameters here, then you must also change them in wrappers/KDChartParametersWrapper.h
@@ -803,7 +805,7 @@ public slots:
}
- QFont dataValuesFont( uint chart ) const
+ TQFont dataValuesFont( uint chart ) const
{
return chart ? _printDataValuesSettings2._dataValuesFont
: _printDataValuesSettings._dataValuesFont;
@@ -824,14 +826,14 @@ public slots:
}
- QColor dataValuesColor( uint chart ) const
+ TQColor dataValuesColor( uint chart ) const
{
return chart ? _printDataValuesSettings2._dataValuesColor
: _printDataValuesSettings._dataValuesColor;
}
- QBrush dataValuesBackground( uint chart ) const
+ TQBrush dataValuesBackground( uint chart ) const
{
return chart ? _printDataValuesSettings2._dataValuesBrush
: _printDataValuesSettings._dataValuesBrush;
@@ -868,14 +870,14 @@ public slots:
// for backward compatibility we may NOT remove these functions:
void setPrintDataValuesColor( uint chart = KDCHART_ALL_CHARTS,
- const QColor* color = KDCHART_DATA_VALUE_AUTO_COLOR );
+ const TQColor* color = KDCHART_DATA_VALUE_AUTO_COLOR );
void setPrintDataValuesFontRelSize( uint chart, uint size );
- static QString markerStyleToString( int style );
- static QString markerStyleToStringTr( int style );
- static int stringToMarkerStyle( const QString& string );
- static int stringToMarkerStyleTr( const QString& string );
+ static TQString markerStyleToString( int style );
+ static TQString markerStyleToStringTr( int style );
+ static int stringToMarkerStyle( const TQString& string );
+ static int stringToMarkerStyleTr( const TQString& string );
// END GENERAL
@@ -901,8 +903,8 @@ public slots:
- static QString barChartSubTypeToString( BarChartSubType type );
- static BarChartSubType stringToBarChartSubType( const QString& string );
+ static TQString barChartSubTypeToString( BarChartSubType type );
+ static BarChartSubType stringToBarChartSubType( const TQString& string );
void setThreeDBars( bool threeDBars )
@@ -930,8 +932,8 @@ public slots:
}
- QColor dataShadow1Color( uint dataset ) const;
- QColor dataShadow2Color( uint dataset ) const;
+ TQColor dataShadow1Color( uint dataset ) const;
+ TQColor dataShadow2Color( uint dataset ) const;
void setThreeDBarAngle( uint angle );
@@ -1070,8 +1072,8 @@ public slots:
}
- static LineChartSubType stringToLineChartSubType( const QString& string );
- static QString lineChartSubTypeToString( LineChartSubType type );
+ static LineChartSubType stringToLineChartSubType( const TQString& string );
+ static TQString lineChartSubTypeToString( LineChartSubType type );
void setLineMarker( bool marker )
@@ -1096,17 +1098,17 @@ public:
LineMarkerFastCross = 7 };
// PENDING(blackie) Add a wrapper for this
- typedef QMap<uint,LineMarkerStyle> LineMarkerStyleMap;
+ typedef TQMap<uint,LineMarkerStyle> LineMarkerStyleMap;
public slots:
void setLineMarkerStyle( uint dataset, LineMarkerStyle style );
void setLineMarkerStyles( LineMarkerStyleMap map );
LineMarkerStyle lineMarkerStyle( uint dataset ) const;
- static QString lineMarkerStyleToString( LineMarkerStyle style );
- static QString lineMarkerStyleToStringTr( LineMarkerStyle style );
- static LineMarkerStyle stringToLineMarkerStyle( const QString& string );
- static LineMarkerStyle stringToLineMarkerStyleTr( const QString& string );
+ static TQString lineMarkerStyleToString( LineMarkerStyle style );
+ static TQString lineMarkerStyleToStringTr( LineMarkerStyle style );
+ static LineMarkerStyle stringToLineMarkerStyle( const TQString& string );
+ static LineMarkerStyle stringToLineMarkerStyleTr( const TQString& string );
LineMarkerStyleMap lineMarkerStyles() const {
return _lineMarkerStyles;
@@ -1119,13 +1121,13 @@ public slots:
}
- void setLineMarkerSize( QSize size )
+ void setLineMarkerSize( TQSize size )
{
_lineMarkerSize = size;
emit changed();
}
- QSize lineMarkerSize() const
+ TQSize lineMarkerSize() const
{
return _lineMarkerSize;
}
@@ -1142,20 +1144,20 @@ public slots:
}
- void setLineColor( QColor color = QColor() )
+ void setLineColor( TQColor color = TQColor() )
{
_lineColor = color;
emit changed();
}
- QColor lineColor() const
+ TQColor lineColor() const
{
return _lineColor;
}
- void setLineStyle( PenStyle style, uint dataset=KDCHART_GLOBAL_LINE_STYLE );
+ void setLineStyle( Qt::PenStyle style, uint dataset=KDCHART_GLOBAL_LINE_STYLE );
- PenStyle lineStyle( uint dataset=KDCHART_GLOBAL_LINE_STYLE ) const;
+ Qt::PenStyle lineStyle( uint dataset=KDCHART_GLOBAL_LINE_STYLE ) const;
void setThreeDLines( bool threeD ) {
@@ -1234,8 +1236,8 @@ public slots:
}
- static QString areaChartSubTypeToString( AreaChartSubType type );
- static AreaChartSubType stringToAreaChartSubType( const QString& string );
+ static TQString areaChartSubTypeToString( AreaChartSubType type );
+ static AreaChartSubType stringToAreaChartSubType( const TQString& string );
public:
enum AreaLocation { AreaAbove, AreaBelow };
@@ -1253,8 +1255,8 @@ public slots:
}
- static QString areaLocationToString( AreaLocation type );
- static AreaLocation stringToAreaLocation( const QString& string );
+ static TQString areaLocationToString( AreaLocation type );
+ static AreaLocation stringToAreaLocation( const TQString& string );
// END LINE/AREA CHART-SPECIFIC
@@ -1275,8 +1277,8 @@ public slots:
}
- static PolarChartSubType stringToPolarChartSubType( const QString& string );
- static QString polarChartSubTypeToString( PolarChartSubType type );
+ static PolarChartSubType stringToPolarChartSubType( const TQString& string );
+ static TQString polarChartSubTypeToString( PolarChartSubType type );
void setPolarMarker( bool marker )
{
@@ -1301,13 +1303,13 @@ public:
public slots:
void setPolarMarkerStyle( uint dataset, PolarMarkerStyle style );
PolarMarkerStyle polarMarkerStyle( uint dataset ) const;
- static QString polarMarkerStyleToString( PolarMarkerStyle style );
- static QString polarMarkerStyleToStringTr( PolarMarkerStyle style );
- static PolarMarkerStyle stringToPolarMarkerStyle( const QString& string );
- static PolarMarkerStyle stringToPolarMarkerStyleTr( const QString& string );
+ static TQString polarMarkerStyleToString( PolarMarkerStyle style );
+ static TQString polarMarkerStyleToStringTr( PolarMarkerStyle style );
+ static PolarMarkerStyle stringToPolarMarkerStyle( const TQString& string );
+ static PolarMarkerStyle stringToPolarMarkerStyleTr( const TQString& string );
public:
- typedef QMap<uint,PolarMarkerStyle> PolarMarkerStyleMap;
+ typedef TQMap<uint,PolarMarkerStyle> PolarMarkerStyleMap;
public slots:
void setPolarMarkerStyles( PolarMarkerStyleMap map );
@@ -1321,13 +1323,13 @@ public slots:
return _maxDatasetPolarMarkerStyle;
}
- void setPolarMarkerSize( QSize size = QSize( -40, -40 ) )
+ void setPolarMarkerSize( TQSize size = TQSize( -40, -40 ) )
{
_polarMarkerSize = size;
emit changed();
}
- QSize polarMarkerSize() const
+ TQSize polarMarkerSize() const
{
return _polarMarkerSize;
}
@@ -1394,19 +1396,19 @@ public slots:
}
- void setExplodeValues( QValueList<int> explodeList ) {
+ void setExplodeValues( TQValueList<int> explodeList ) {
_explodeList = explodeList;
emit changed();
}
- // Unfortunately this is not avaialble from QSA-
- QValueList<int> explodeValues() const {
+ // Unfortunately this is not avaialble from TQSA-
+ TQValueList<int> explodeValues() const {
return _explodeList;
}
public:
- typedef QMap<int,double> ExplodeFactorsMap;
+ typedef TQMap<int,double> ExplodeFactorsMap;
public slots:
void setExplodeFactors( ExplodeFactorsMap factors ) {
@@ -1519,12 +1521,12 @@ public slots:
return _hiLoChartSubType;
}
- static QString hiLoChartSubTypeToString( HiLoChartSubType type );
- static HiLoChartSubType stringToHiLoChartSubType( const QString& string );
+ static TQString hiLoChartSubTypeToString( HiLoChartSubType type );
+ static HiLoChartSubType stringToHiLoChartSubType( const TQString& string );
void setHiLoChartPrintLowValues( bool active,
- QFont* font = 0,
+ TQFont* font = 0,
int size = 14,
- QColor* color = 0 );
+ TQColor* color = 0 );
bool hiLoChartPrintLowValues() const
{
@@ -1532,7 +1534,7 @@ public slots:
}
- QFont hiLoChartLowValuesFont() const
+ TQFont hiLoChartLowValuesFont() const
{
return _hiLoChartLowValuesFont;
}
@@ -1550,15 +1552,15 @@ public slots:
}
- QColor hiLoChartLowValuesColor() const
+ TQColor hiLoChartLowValuesColor() const
{
return _hiLoChartLowValuesColor;
}
void setHiLoChartPrintHighValues( bool active,
- QFont* font = 0,
+ TQFont* font = 0,
int size = 14,
- QColor* color = 0 );
+ TQColor* color = 0 );
bool hiLoChartPrintHighValues() const
@@ -1567,7 +1569,7 @@ public slots:
}
- QFont hiLoChartHighValuesFont() const
+ TQFont hiLoChartHighValuesFont() const
{
return _hiLoChartHighValuesFont;
}
@@ -1585,15 +1587,15 @@ public slots:
}
- QColor hiLoChartHighValuesColor() const
+ TQColor hiLoChartHighValuesColor() const
{
return _hiLoChartHighValuesColor;
}
void setHiLoChartPrintOpenValues( bool active,
- QFont* font = 0,
+ TQFont* font = 0,
uint size = 14,
- QColor* color = 0 );
+ TQColor* color = 0 );
bool hiLoChartPrintOpenValues() const
{
@@ -1601,7 +1603,7 @@ public slots:
}
- QFont hiLoChartOpenValuesFont() const
+ TQFont hiLoChartOpenValuesFont() const
{
return _hiLoChartOpenValuesFont;
}
@@ -1619,15 +1621,15 @@ public slots:
}
- QColor hiLoChartOpenValuesColor() const
+ TQColor hiLoChartOpenValuesColor() const
{
return _hiLoChartOpenValuesColor;
}
void setHiLoChartPrintCloseValues( bool active,
- QFont* font = 0,
+ TQFont* font = 0,
int size = 14,
- QColor* color = 0 );
+ TQColor* color = 0 );
bool hiLoChartPrintCloseValues() const
{
@@ -1635,7 +1637,7 @@ public slots:
}
- QFont hiLoChartCloseValuesFont() const
+ TQFont hiLoChartCloseValuesFont() const
{
return _hiLoChartCloseValuesFont;
}
@@ -1653,16 +1655,16 @@ public slots:
}
- QColor hiLoChartCloseValuesColor() const
+ TQColor hiLoChartCloseValuesColor() const
{
return _hiLoChartCloseValuesColor;
}
void setHiLoChartPrintFirstValues( bool active,
- QFont* font = 0,
+ TQFont* font = 0,
uint size = 14,
- QColor* color = 0 )
+ TQColor* color = 0 )
{
setHiLoChartPrintOpenValues( active, font, size, color );
}
@@ -1673,7 +1675,7 @@ public slots:
}
- QFont hiLoChartFirstValuesFont() const
+ TQFont hiLoChartFirstValuesFont() const
{
return hiLoChartOpenValuesFont();
}
@@ -1689,15 +1691,15 @@ public slots:
return hiLoChartOpenValuesFontRelSize();
}
- QColor hiLoChartFirstValuesColor() const
+ TQColor hiLoChartFirstValuesColor() const
{
return hiLoChartOpenValuesColor();
}
void setHiLoChartPrintLastValues( bool active,
- QFont* font = 0,
+ TQFont* font = 0,
int size = 14,
- QColor* color = 0 )
+ TQColor* color = 0 )
{
setHiLoChartPrintCloseValues( active, font, size, color );
}
@@ -1707,7 +1709,7 @@ public slots:
return hiLoChartPrintCloseValues();
}
- QFont hiLoChartLastValuesFont() const
+ TQFont hiLoChartLastValuesFont() const
{
return hiLoChartCloseValuesFont();
}
@@ -1722,7 +1724,7 @@ public slots:
return hiLoChartCloseValuesFontRelSize();
}
- QColor hiLoChartLastValuesColor() const
+ TQColor hiLoChartLastValuesColor() const
{
return hiLoChartCloseValuesColor();
}
@@ -1764,23 +1766,23 @@ public slots:
return _BWChartSubType;
}
- static QString bWChartSubTypeToString( BWChartSubType type );
- static BWChartSubType stringToBWChartSubType( const QString& string );
- static QString bWChartStatValToString( BWStatVal type );
- static BWStatVal stringToBWChartStatVal( const QString& string );
+ static TQString bWChartSubTypeToString( BWChartSubType type );
+ static BWChartSubType stringToBWChartSubType( const TQString& string );
+ static TQString bWChartStatValToString( BWStatVal type );
+ static BWStatVal stringToBWChartStatVal( const TQString& string );
void setBWChartFences( double upperInner, double lowerInner,
double upperOuter, double lowerOuter );
void bWChartFences( double& upperInner, double& lowerInner,
double& upperOuter, double& lowerOuter ) const;
- void setBWChartBrush( const QBrush& bWChartBrush )
+ void setBWChartBrush( const TQBrush& bWChartBrush )
{
_BWChartBrush = bWChartBrush;
emit changed();
}
- QBrush bWChartBrush() const
+ TQBrush bWChartBrush() const
{
return _BWChartBrush;
}
@@ -1798,10 +1800,10 @@ public slots:
void setBWChartPrintStatistics( BWStatVal statValue,
bool active,
- QFont* font = 0,
+ TQFont* font = 0,
int size = 24,
- QColor* color = 0,
- QBrush* brush = 0 );
+ TQColor* color = 0,
+ TQBrush* brush = 0 );
bool bWChartPrintStatistics( BWStatVal statValue ) const
{
@@ -1809,7 +1811,7 @@ public slots:
}
- QFont bWChartStatisticsFont( BWStatVal statValue ) const
+ TQFont bWChartStatisticsFont( BWStatVal statValue ) const
{
return _BWChartStatistics[ statValue ].font;
}
@@ -1827,12 +1829,12 @@ public slots:
}
- QColor bWChartStatisticsColor( BWStatVal statValue ) const
+ TQColor bWChartStatisticsColor( BWStatVal statValue ) const
{
return _BWChartStatistics[ statValue ].color;
}
- QBrush bWChartStatisticsBrush( BWStatVal statValue ) const
+ TQBrush bWChartStatisticsBrush( BWStatVal statValue ) const
{
return _BWChartStatistics[ statValue ].brush;
}
@@ -1869,13 +1871,13 @@ public slots:
return _legendPosition;
}
- void setLegendOrientation( Orientation orientation )
+ void setLegendOrientation( Qt::Orientation orientation )
{
_legendOrientation = orientation;
emit changed();
}
- Orientation legendOrientation() const
+ Qt::Orientation legendOrientation() const
{
return _legendOrientation;
}
@@ -1893,8 +1895,8 @@ public slots:
}
- static QString legendPositionToString( LegendPosition pos );
- static LegendPosition stringToLegendPosition( const QString& string );
+ static TQString legendPositionToString( LegendPosition pos );
+ static LegendPosition stringToLegendPosition( const TQString& string );
public:
enum LegendSource { LegendManual, LegendFirstColumn, LegendAutomatic };
@@ -1911,45 +1913,45 @@ public slots:
return _legendSource;
}
- static QString legendSourceToString( LegendSource source );
- static LegendSource stringToLegendSource( const QString& string );
+ static TQString legendSourceToString( LegendSource source );
+ static LegendSource stringToLegendSource( const TQString& string );
- void setLegendText( uint dataset, const QString& text )
+ void setLegendText( uint dataset, const TQString& text )
{
_legendText[ dataset ] = text;
emit changed();
}
- QString legendText( uint dataset ) const
+ TQString legendText( uint dataset ) const
{
- if( _legendText.find( dataset ) != _legendText.end() )
+ if( _legendText.tqfind( dataset ) != _legendText.end() )
return _legendText[ dataset ];
else
- return QString::null;
+ return TQString();
}
- void setLegendTextColor( const QColor& color )
+ void setLegendTextColor( const TQColor& color )
{
_legendTextColor = color;
emit changed();
}
- QColor legendTextColor() const
+ TQColor legendTextColor() const
{
return _legendTextColor;
}
- void setLegendFont( const QFont& font, bool useFontSize )
+ void setLegendFont( const TQFont& font, bool useFontSize )
{
_legendFont = font;
_legendFontUseRelSize = ! useFontSize;
emit changed();
}
- QFont legendFont() const
+ TQFont legendFont() const
{
return _legendFont;
}
@@ -1978,41 +1980,41 @@ public slots:
}
- void setLegendTitleText( const QString& text )
+ void setLegendTitleText( const TQString& text )
{
_legendTitleText = text;
emit changed();
}
- QString legendTitleText() const
+ TQString legendTitleText() const
{
return _legendTitleText;
}
- void setLegendTitleTextColor( const QColor& color )
+ void setLegendTitleTextColor( const TQColor& color )
{
_legendTitleTextColor = color;
emit changed();
}
- QColor legendTitleTextColor() const
+ TQColor legendTitleTextColor() const
{
return _legendTitleTextColor;
}
- void setLegendTitleFont( const QFont& font, bool useFontSize )
+ void setLegendTitleFont( const TQFont& font, bool useFontSize )
{
_legendTitleFont = font;
_legendTitleFontUseRelSize = ! useFontSize;
emit changed();
}
- QFont legendTitleFont() const
+ TQFont legendTitleFont() const
{
return _legendTitleFont;
}
@@ -2095,16 +2097,16 @@ public slots:
uint& chart ) const;
public:
-#if COMPAT_QT_VERSION >= 0x030000
- typedef QValueVector<uint> AxesArray;
+#if COMPAT_TQT_VERSION >= 0x030000
+ typedef TQValueVector<uint> AxesArray;
#else
- typedef QArray<uint> AxesArray;
+ typedef TQArray<uint> AxesArray;
#endif
public slots:
bool chartAxes( uint chart, uint& cnt, AxesArray& axes ) const;
- void setAxisArea( const uint n, const QRect& areaRect )
+ void setAxisArea( const uint n, const TQRect& areaRect )
{
if ( n < KDCHART_MAX_AXES ) {
_axisSettings[ n ].params.setAxisTrueAreaRect( areaRect );
@@ -2127,23 +2129,23 @@ public slots:
}
void setAxisLabelsFont( uint n,
- QFont axisLabelsFont,
+ TQFont axisLabelsFont,
int axisLabelsFontSize = 0,
- QColor axisLabelsColor = Qt::black );
+ TQColor axisLabelsColor = TQt::black );
// Note if you change the parameters here, then you must also change them in wrappers/KDChartParametersWrapper.h
void setAxisLabelTextParams( uint n,
bool axisSteadyValueCalc = true,
- QVariant axisValueStart = KDCHART_AXIS_LABELS_AUTO_LIMIT,
- QVariant axisValueEnd = KDCHART_AXIS_LABELS_AUTO_LIMIT,
+ TQVariant axisValueStart = KDCHART_AXIS_LABELS_AUTO_LIMIT,
+ TQVariant axisValueEnd = KDCHART_AXIS_LABELS_AUTO_LIMIT,
double axisValueDelta = KDCHART_AXIS_LABELS_AUTO_DELTA,
int axisDigitsBehindComma = KDCHART_AXIS_LABELS_AUTO_DIGITS,
int axisMaxEmptyInnerSpan = 67,
KDChartAxisParams::LabelsFromDataRow takeLabelsFromDataRow
= KDChartAxisParams::LabelsFromDataRowNo,
int labelTextsDataRow = 0,
- QStringList* axisLabelStringList = 0,
- QStringList* axisShortLabelsStringList = 0,
+ TQStringList* axisLabelStringList = 0,
+ TQStringList* axisShortLabelsStringList = 0,
int axisValueLeaveOut = KDCHART_AXIS_LABELS_AUTO_LEAVEOUT,
KDChartAxisParams::ValueScale axisValueDeltaScale = KDChartAxisParams::ValueScaleNumerical )
{
@@ -2165,10 +2167,10 @@ public slots:
void setAxisLabelStringParams( uint n,
- QStringList* axisLabelStringList,
- QStringList* axisShortLabelStringList,
- const QString& valueStart = QString::null,
- const QString& valueEnd = QString::null );
+ TQStringList* axisLabelStringList,
+ TQStringList* axisShortLabelStringList,
+ const TQString& valueStart = TQString(),
+ const TQString& valueEnd = TQString() );
void setAxisParams( uint n,
@@ -2183,34 +2185,34 @@ public slots:
// some convenience functions refering to the first KDChartCustomBox
// that is anchored to the axis n.
bool findFirstAxisCustomBoxID( uint n, uint& boxID ) const;
- void setAxisTitle( uint n, const QString& axisTitle );
-
- QString axisTitle( uint n ) const;
- void setAxisTitleColor( uint n, QColor axisTitleColor );
- QColor axisTitleColor( uint n ) const;
- void setAxisTitleFont( uint n, QFont axisTitleFont );
- void setAxisTitleFont( uint n, QFont axisTitleFont, bool useFixedFontSize );
- QFont axisTitleFont( uint n ) const;
+ void setAxisTitle( uint n, const TQString& axisTitle );
+
+ TQString axisTitle( uint n ) const;
+ void setAxisTitleColor( uint n, TQColor axisTitleColor );
+ TQColor axisTitleColor( uint n ) const;
+ void setAxisTitleFont( uint n, TQFont axisTitleFont );
+ void setAxisTitleFont( uint n, TQFont axisTitleFont, bool useFixedFontSize );
+ TQFont axisTitleFont( uint n ) const;
void setAxisTitleFontUseRelSize( uint n, bool useRelSize );
bool axisTitleFontUseRelSize( uint n ) const;
void setAxisTitleFontRelSize( uint n, int axisTitleFontRelSize );
int axisTitleFontRelSize( uint n ) const;
- QRect axisArea( const uint n ) const
+ TQRect axisArea( const uint n ) const
{
if ( n < KDCHART_MAX_AXES ) {
return _axisSettings[ n ].params.axisTrueAreaRect();
// Do not do emit changed() here!
}else{
- return QRect(QPoint(0,0),QSize(0,0));
+ return TQRect(TQPoint(0,0),TQSize(0,0));
}
}
// END AXES
- QRect dataArea() const { return _dataAreaRect; }
- QRect legendArea() const { return _legendAreaRect; }
+ TQRect dataArea() const { return _dataAreaRect; }
+ TQRect legendArea() const { return _legendAreaRect; }
@@ -2291,15 +2293,15 @@ public:
public slots:
- void setHeaderFooterText( uint pos, const QString& text );
- QString headerFooterText( uint pos ) const;
- const QRect& headerFooterRect( uint pos ) const;
- void setHeaderFooterColor( uint pos, const QColor color );
- QColor headerFooterColor( uint pos ) const;
- void setHeaderFooterFont( uint pos, const QFont& font,
+ void setHeaderFooterText( uint pos, const TQString& text );
+ TQString headerFooterText( uint pos ) const;
+ const TQRect& headerFooterRect( uint pos ) const;
+ void setHeaderFooterColor( uint pos, const TQColor color );
+ TQColor headerFooterColor( uint pos ) const;
+ void setHeaderFooterFont( uint pos, const TQFont& font,
bool fontUseRelSize,
int fontRelSize );
- QFont headerFooterFont( uint pos ) const;
+ TQFont headerFooterFont( uint pos ) const;
bool headerFooterFontUseRelSize( uint pos ) const;
int headerFooterFontRelSize( uint pos ) const;
@@ -2311,76 +2313,76 @@ public slots:
// up to two centered header(s) and up to one centered footer.
- void setHeader1Text( const QString& text )
+ void setHeader1Text( const TQString& text )
{
_hdFtParams[ HdFtPosHeader ]._text = text;
emit changed();
}
- QString header1Text() const
+ TQString header1Text() const
{
return _hdFtParams[ HdFtPosHeader ]._text;
}
- void setHeader1Font( const QFont& font )
+ void setHeader1Font( const TQFont& font )
{
_hdFtParams[ HdFtPosHeader ]._font = font;
emit changed();
}
- QFont header1Font() const
+ TQFont header1Font() const
{
return _hdFtParams[ HdFtPosHeader ]._font;
}
- void setHeader2Text( const QString& text )
+ void setHeader2Text( const TQString& text )
{
_hdFtParams[ HdFtPosHeader2 ]._text = text;
emit changed();
}
- QString header2Text() const
+ TQString header2Text() const
{
return _hdFtParams[ HdFtPosHeader2 ]._text;
}
- void setHeader2Font( const QFont& font )
+ void setHeader2Font( const TQFont& font )
{
_hdFtParams[ HdFtPosHeader2 ]._font = font;
emit changed();
}
- QFont header2Font() const
+ TQFont header2Font() const
{
return _hdFtParams[ HdFtPosHeader2 ]._font;
}
- void setFooterText( const QString& text )
+ void setFooterText( const TQString& text )
{
_hdFtParams[ HdFtPosFooter ]._text = text;
emit changed();
}
- QString footerText() const
+ TQString footerText() const
{
return _hdFtParams[ HdFtPosFooter ]._text;
}
- void setFooterFont( const QFont& font )
+ void setFooterFont( const TQFont& font )
{
_hdFtParams[ HdFtPosFooter ]._font = font;
emit changed();
}
- QFont footerFont() const
+ TQFont footerFont() const
{
return _hdFtParams[ HdFtPosFooter ]._font;
}
@@ -2389,7 +2391,7 @@ public slots:
/**
\internal
*/
- void __internalStoreHdFtRect( int pos, QRect rect )
+ void __internalStoreHdFtRect( int pos, TQRect rect )
{
if ( 0 <= pos && HdFtPosEND >= pos )
_hdFtParams[ pos ].setRect( rect );
@@ -2405,54 +2407,54 @@ public:
virtual ~KDChartParams();
public slots:
- void loadAxesFormXML(int& curAxisSettings, QDomElement& element);
- bool loadXML( const QDomDocument& doc );
+ void loadAxesFormXML(int& curAxisSettings, TQDomElement& element);
+ bool loadXML( const TQDomDocument& doc );
- void saveAxesToXML(QDomDocument& doc, QDomElement& docRoot) const;
- QDomDocument saveXML( bool withPI = true ) const;
+ void saveAxesToXML(TQDomDocument& doc, TQDomElement& docRoot) const;
+ TQDomDocument saveXML( bool withPI = true ) const;
public:
- friend QTextStream& operator<<( QTextStream& s, const KDChartParams& p );
- friend QTextStream& operator>>( QTextStream& s, KDChartParams& p );
+ friend TQTextStream& operator<<( TQTextStream& s, const KDChartParams& p );
+ friend TQTextStream& operator>>( TQTextStream& s, KDChartParams& p );
public slots:
- static void createChartValueNode( QDomDocument& doc, QDomNode& parent,
- const QString& elementName,
- const QVariant& valY,
- const QVariant& valX,
+ static void createChartValueNode( TQDomDocument& doc, TQDomNode& tqparent,
+ const TQString& elementName,
+ const TQVariant& valY,
+ const TQVariant& valX,
const int& propID );
- static void createColorMapNode( QDomDocument& doc, QDomNode& parent,
- const QString& elementName,
- const QMap< uint, QColor >& map );
- static void createDoubleMapNode( QDomDocument& doc, QDomNode& parent,
- const QString& elementName,
- const QMap< int, double >& map );
- static void createChartFontNode( QDomDocument& doc, QDomNode& parent,
- const QString& elementName,
- const QFont& font, bool useRelFont,
+ static void createColorMapNode( TQDomDocument& doc, TQDomNode& tqparent,
+ const TQString& elementName,
+ const TQMap< uint, TQColor >& map );
+ static void createDoubleMapNode( TQDomDocument& doc, TQDomNode& tqparent,
+ const TQString& elementName,
+ const TQMap< int, double >& map );
+ static void createChartFontNode( TQDomDocument& doc, TQDomNode& tqparent,
+ const TQString& elementName,
+ const TQFont& font, bool useRelFont,
int relFont,
int minFont=-1 );
- static bool readColorMapNode( const QDomElement& element,
- QMap<uint,QColor>* map );
- static bool readDoubleMapNode( const QDomElement& element,
- QMap<int,double>* map );
- static bool readChartFontNode( const QDomElement& element, QFont& font,
+ static bool readColorMapNode( const TQDomElement& element,
+ TQMap<uint,TQColor>* map );
+ static bool readDoubleMapNode( const TQDomElement& element,
+ TQMap<int,double>* map );
+ static bool readChartFontNode( const TQDomElement& element, TQFont& font,
bool& useRelFont, int& relFontSize,
int* minFontSize=0 );
- static bool readChartValueNode( const QDomElement& element,
- QVariant& valY,
- QVariant& valX,
+ static bool readChartValueNode( const TQDomElement& element,
+ TQVariant& valY,
+ TQVariant& valX,
int& propID );
// do *not* call this function manually: it is used by KDChartPainter::setupGeometry()
- void setDataArea( const QRect& areaRect )
+ void setDataArea( const TQRect& areaRect )
{
_dataAreaRect = areaRect;
// Do not do emit changed() here!
}
// do *not* call this function manually: it is used by KDChartPainter::setupGeometry()
- void setLegendArea( const QRect& areaRect )
+ void setLegendArea( const TQRect& areaRect )
{
_legendAreaRect = areaRect;
// Do not do emit changed() here!
@@ -2475,18 +2477,18 @@ protected:
private:
- QString dataRegionFrameAreaName( uint dataRow,
+ TQString dataRegionFrameAreaName( uint dataRow,
uint dataCol,
uint data3rd );
void recomputeShadowColors();
void insertDefaultAxisTitleBox( uint n,
- bool setTitle, const QString& axisTitle,
- bool setColor, const QColor& axisTitleColor,
- bool setFont, const QFont& axisTitleFont,
+ bool setTitle, const TQString& axisTitle,
+ bool setColor, const TQColor& axisTitleColor,
+ bool setFont, const TQFont& axisTitleFont,
bool setFontUseRel, bool useFontSize,
bool setFontRelSize, int axisTitleFontRelSize );
- static QColor _internalPointer_DataValueAutoColor;
+ static TQColor _internalPointer_DataValueAutoColor;
KDChartPropertySet* tempPropSetA;
KDChartPropertySet* tempPropSetB;
@@ -2499,14 +2501,14 @@ private:
ChartType _chartType;
ChartType _additionalChartType;
int _numValues;
- QFont _defaultFont;
+ TQFont _defaultFont;
- typedef QDict < KDChartFrameSettings > AreaDict;
+ typedef TQDict < KDChartFrameSettings > AreaDict;
AreaDict _areaDict;
CustomBoxDict _customBoxDict;
bool _customBoxDictMayContainHoles;
- QRect _noRect;
+ TQRect _noRect;
KDFrame _noFrame;
KDChartFrameSettings _noFrameSettings;
@@ -2543,32 +2545,32 @@ private:
uint _chart;
};
- typedef QMap < uint, ModeAndChart > ModeAndChartMap;
+ typedef TQMap < uint, ModeAndChart > ModeAndChartMap;
ModeAndChartMap _dataSourceModeAndChart;
bool _setChartSourceModeWasUsed;
- QMap < uint, QColor > _dataColors;
+ TQMap < uint, TQColor > _dataColors;
uint _maxDatasetSourceMode;
KDChartPropertySetList _propertySetList;
double _shadowBrightnessFactor;
Qt::BrushStyle _shadowPattern;
bool _threeDShadowColors;
uint _maxDatasetColor;
- QMap < uint, QColor > _dataColorsShadow1;
- QMap < uint, QColor > _dataColorsShadow2;
- QColor _outlineDataColor;
+ TQMap < uint, TQColor > _dataColorsShadow1;
+ TQMap < uint, TQColor > _dataColorsShadow2;
+ TQColor _outlineDataColor;
uint _outlineDataLineWidth;
- PenStyle _outlineDataLineStyle;
+ Qt::PenStyle _outlineDataLineStyle;
struct PrintDataValuesSettings {
bool _printDataValues;
int _divPow10;
int _digitsBehindComma;
- QFont _dataValuesFont;
+ TQFont _dataValuesFont;
bool _dataValuesUseFontRelSize;
int _dataValuesFontRelSize;
- QColor _dataValuesColor;
- QBrush _dataValuesBrush;
+ TQColor _dataValuesColor;
+ TQBrush _dataValuesBrush;
bool _dataValuesAutoColor;
KDChartEnums::PositionFlag _dataValuesAnchorNegativePosition;
uint _dataValuesAnchorNegativeAlign;
@@ -2602,8 +2604,8 @@ private:
int _userWidth;
bool _solidExcessArrows;
// volatile bar chart information, not saved in the stream
- QRect _dataAreaRect;
- QRect _legendAreaRect;
+ TQRect _dataAreaRect;
+ TQRect _legendAreaRect;
int _barsDisplayed;
int _barsLeft;
@@ -2616,11 +2618,11 @@ private:
bool _lineMarker;
LineMarkerStyleMap _lineMarkerStyles;
uint _maxDatasetLineMarkerStyle;
- QSize _lineMarkerSize;
- QColor _lineColor;
+ TQSize _lineMarkerSize;
+ TQColor _lineColor;
int _lineWidth;
- PenStyle _lineStyle;
- typedef QMap<uint, PenStyle> LineStyleMap;
+ Qt::PenStyle _lineStyle;
+ typedef TQMap<uint, Qt::PenStyle> LineStyleMap;
LineStyleMap _datasetLineStyles;
AreaChartSubType _areaChartSubType;
AreaLocation _areaLocation;
@@ -2631,7 +2633,7 @@ private:
bool _polarMarker;
PolarMarkerStyleMap _polarMarkerStyles;
uint _maxDatasetPolarMarkerStyle;
- QSize _polarMarkerSize;
+ TQSize _polarMarkerSize;
int _polarLineWidth;
int _polarZeroDegreePos;
bool _polarRotateCircularLabels;
@@ -2647,7 +2649,7 @@ private:
bool _explode;
double _explodeFactor;
ExplodeFactorsMap _explodeFactors;
- QValueList<int> _explodeList;
+ TQValueList<int> _explodeList;
bool _threeDPies;
int _threeDPieHeight;
int _pieStart;
@@ -2659,25 +2661,25 @@ private:
HiLoChartSubType _hiLoChartSubType;
bool _hiLoChartPrintLowValues;
- QFont _hiLoChartLowValuesFont;
+ TQFont _hiLoChartLowValuesFont;
bool _hiLoChartLowValuesUseFontRelSize;
int _hiLoChartLowValuesFontRelSize;
- QColor _hiLoChartLowValuesColor;
+ TQColor _hiLoChartLowValuesColor;
bool _hiLoChartPrintHighValues;
- QFont _hiLoChartHighValuesFont;
+ TQFont _hiLoChartHighValuesFont;
bool _hiLoChartHighValuesUseFontRelSize;
int _hiLoChartHighValuesFontRelSize;
- QColor _hiLoChartHighValuesColor;
+ TQColor _hiLoChartHighValuesColor;
bool _hiLoChartPrintOpenValues;
- QFont _hiLoChartOpenValuesFont;
+ TQFont _hiLoChartOpenValuesFont;
bool _hiLoChartOpenValuesUseFontRelSize;
int _hiLoChartOpenValuesFontRelSize;
- QColor _hiLoChartOpenValuesColor;
+ TQColor _hiLoChartOpenValuesColor;
bool _hiLoChartPrintCloseValues;
- QFont _hiLoChartCloseValuesFont;
+ TQFont _hiLoChartCloseValuesFont;
bool _hiLoChartCloseValuesUseFontRelSize;
int _hiLoChartCloseValuesFontRelSize;
- QColor _hiLoChartCloseValuesColor;
+ TQColor _hiLoChartCloseValuesColor;
@@ -2689,11 +2691,11 @@ private:
double value;
int y;
bool active;
- QFont font;
+ TQFont font;
bool useRelSize;
int relSize;
- QColor color;
- QBrush brush;
+ TQColor color;
+ TQBrush brush;
};
BWChartStatistics _BWChartStatistics[ BWStatValOffEndValue ];
double _BWChartFenceUpperInner;
@@ -2701,7 +2703,7 @@ private:
double _BWChartFenceUpperOuter;
double _BWChartFenceLowerOuter;
int _BWChartOutValMarkerSize;
- QBrush _BWChartBrush;
+ TQBrush _BWChartBrush;
// LEGENDS
@@ -2710,14 +2712,14 @@ private:
Qt::Orientation _legendOrientation;
bool _legendShowLines;
LegendSource _legendSource;
- QMap < int, QString > _legendText;
- QColor _legendTextColor;
- QFont _legendFont;
+ TQMap < int, TQString > _legendText;
+ TQColor _legendTextColor;
+ TQFont _legendFont;
bool _legendFontUseRelSize;
int _legendFontRelSize;
- QString _legendTitleText;
- QColor _legendTitleTextColor;
- QFont _legendTitleFont;
+ TQString _legendTitleText;
+ TQColor _legendTitleTextColor;
+ TQFont _legendTitleFont;
bool _legendTitleFontUseRelSize;
int _legendTitleFontRelSize;
uint _legendSpacing;
@@ -2748,29 +2750,29 @@ private:
// Must be exported because of the inline methods
struct KDCHART_EXPORT HdFtParams
{
- QString _text;
- QColor _color;
- QFont _font;
+ TQString _text;
+ TQColor _color;
+ TQFont _font;
bool _fontUseRelSize;
int _fontRelSize;
HdFtParams()
{
- _color = QColor( Qt::black );
- _font = QFont( "helvetica", 10, QFont::Normal, false );
+ _color = TQColor( TQt::black );
+ _font = TQFont( "helvetica", 10, TQFont::Normal, false );
_fontUseRelSize = true;
_fontRelSize = 8; // per default quite small
}
- void setRect( QRect rect )
+ void setRect( TQRect rect )
{
_rect = rect;
}
- const QRect& rect() const
+ const TQRect& rect() const
{
return _rect;
}
private:
// temporary data that are NOT to be stored within sessions:
- QRect _rect;
+ TQRect _rect;
};
HdFtParams _hdFtParams[ HdFtPosEND + 1 ];
@@ -2778,10 +2780,10 @@ private:
};
-QTextStream& operator<<( QTextStream& s, const KDChartParams& p );
+TQTextStream& operator<<( TQTextStream& s, const KDChartParams& p );
-QTextStream& operator>>( QTextStream& s, KDChartParams& p );
+TQTextStream& operator>>( TQTextStream& s, KDChartParams& p );
#endif