summaryrefslogtreecommitdiffstats
path: root/libkdchart/KDChartTableBase.h
diff options
context:
space:
mode:
Diffstat (limited to 'libkdchart/KDChartTableBase.h')
-rw-r--r--libkdchart/KDChartTableBase.h77
1 files changed, 39 insertions, 38 deletions
diff --git a/libkdchart/KDChartTableBase.h b/libkdchart/KDChartTableBase.h
index 5031449..b79e6e7 100644
--- a/libkdchart/KDChartTableBase.h
+++ b/libkdchart/KDChartTableBase.h
@@ -30,11 +30,11 @@
#define __KDCHARTTABLEINTERFACE_H__
-class QTable;
+class TQTable;
-#include <qvariant.h>
-#include <qobject.h>
-#include <qdatetime.h>
+#include <tqvariant.h>
+#include <tqobject.h>
+#include <tqdatetime.h>
#include <kdchart_export.h>
@@ -84,9 +84,10 @@ class QTable;
*/
///KD Chart's build-in table data for an easy way of storing data values.
-class KDCHART_EXPORT KDChartTableDataBase :public QObject
+class KDCHART_EXPORT KDChartTableDataBase :public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
Default constructor.
@@ -94,16 +95,16 @@ public:
Creates an empty table and sets the sorted flag to false.
*/
KDChartTableDataBase() :
- QObject( 0 ),
+ TQObject( 0 ),
_sorted(false),
_useUsedRows(false),
_useUsedCols(false) {}
/**
Default copy constructor.
- Just initializes the QObject part of this class and copies the sorted flag.
+ Just initializes the TQObject part of this class and copies the sorted flag.
*/
- KDChartTableDataBase( const KDChartTableDataBase& other ) :QObject(0)
+ KDChartTableDataBase( const KDChartTableDataBase& other ) :TQObject(0)
{
_sorted = other._sorted;
_useUsedRows = other._useUsedRows;
@@ -150,15 +151,15 @@ public slots:
\param _row the row number of the cell to store the data object into.
\param _col the column number of the cell to store the data object into.
- \param _value1 the first value to be stored, normally the Y value, possible types: int, double, QString
- QString might be used in case you want to use this cell's content for axis label
- \param _value2 the second value to be stored, normally the X value (if any), possible types: int, double, QDateTime
+ \param _value1 the first value to be stored, normally the Y value, possible types: int, double, TQString
+ TQString might be used in case you want to use this cell's content for axis label
+ \param _value2 the second value to be stored, normally the X value (if any), possible types: int, double, TQDateTime
\sa cellCoords, cellContent, setProp
*/
virtual void setCell( uint _row, uint _col,
- const QVariant& _value1,
- const QVariant& _value2=QVariant() ) = 0;
+ const TQVariant& _value1,
+ const TQVariant& _value2=TQVariant() ) = 0;
/**
Specifies the property set ID for a cell.
@@ -191,14 +192,14 @@ public slots:
\sa cellCoords, cellProp, cellContent, cellVal, setCell, setProp
*/
virtual bool cellCoord( uint _row, uint _col,
- QVariant& _value,
+ TQVariant& _value,
int coordinate=1 ) const = 0;
/**
Returns one of the coordinate data value(s) stored in a cell.
This convenience method calls the bool cellCoord() function and returns
- the result if it returned successfully - otherwise it returns an invalid QVariant.
+ the result if it returned successfully - otherwise it returns an invalid TQVariant.
\note If you \em know that a cell is containing valid double data
you may quickly access them like this:
@@ -211,16 +212,16 @@ const double xVal = data.cellVal( r, c, 2 ).toDouble(); \endverbatim
1 is the Y value and 2 is the X value.
\returns cell contens if the row and col are addressing a cell in the
- table, otherwise an invalid QVariant is returned.
+ table, otherwise an invalid TQVariant is returned.
\sa cellCoords, cellProp, cellContent, setCell, setProp
*/
- virtual QVariant cellVal( uint _row, uint _col, int coordinate=1 ) const {
- QVariant value;
+ virtual TQVariant cellVal( uint _row, uint _col, int coordinate=1 ) const {
+ TQVariant value;
if( cellCoord( _row, _col, value, coordinate ) )
return value;
else
- return QVariant();
+ return TQVariant();
}
/**
@@ -267,8 +268,8 @@ const double xVal = data.cellVal( r, c, 2 ).toDouble(); \endverbatim
\sa cellCoords, cellProp, setCell, setProp
*/
virtual bool cellContent( uint _row, uint _col,
- QVariant& _value1,
- QVariant& _value2,
+ TQVariant& _value1,
+ TQVariant& _value2,
int& _prop ) const
{
return cellCoords(_row,_col, _value1,_value2) &&
@@ -281,8 +282,8 @@ const double xVal = data.cellVal( r, c, 2 ).toDouble(); \endverbatim
\sa cellCoord, cellProp, cellContent, setCell, setProp
*/
virtual bool cellCoords( uint _row, uint _col,
- QVariant& _value1,
- QVariant& _value2 ) const
+ TQVariant& _value1,
+ TQVariant& _value2 ) const
{
return cellCoord(_row,_col, _value1, 1) &&
cellCoord(_row,_col, _value2, 2);
@@ -413,34 +414,34 @@ const double xVal = data.cellVal( r, c, 2 ).toDouble(); \endverbatim
}
/**
- Returns true if the given QVariant value represents a normal double value.
+ Returns true if the given TQVariant value represents a normal double value.
- This method tests if \c value has type QVariant::Double: if no, it returns false;
+ This method tests if \c value has type TQVariant::Double: if no, it returns false;
if yes, it sets \c dVal accordingly and calls the virtual method
isNormalDouble( double value ).
- \param value The QVariant value to be tested and converted.
+ \param value The TQVariant value to be tested and converted.
\param dVal Points to the double variable to be filled with the converted value.
\returns TRUE if the value given is neither positive infinite nor negative
infinite, \c value is set to the converted value if the type of \c value
- is QVariant::Double, otherwise it is not modified.
+ is TQVariant::Double, otherwise it is not modified.
*/
- bool isNormalDouble( QVariant value, double& dVal ) const
+ bool isNormalDouble( TQVariant value, double& dVal ) const
{
- if( QVariant::Double != value.type() )
+ if( TQVariant::Double != value.type() )
return false;
dVal = value.toDouble();
return isNormalDouble( dVal );
}
- virtual void importFromQTable( QTable* table );
+ virtual void importFromQTable( TQTable* table );
virtual double maxValue( int coordinate=1 ) const;
virtual double minValue( int coordinate=1, bool bOnlyGTZero=false ) const;
- virtual QDateTime maxDtValue( int coordinate=1 ) const;
- virtual QDateTime minDtValue( int coordinate=1 ) const;
+ virtual TQDateTime maxDtValue( int coordinate=1 ) const;
+ virtual TQDateTime minDtValue( int coordinate=1 ) const;
virtual double maxColSum( int coordinate=1 ) const;
virtual double minColSum( int coordinate=1 ) const;
@@ -458,15 +459,15 @@ const double xVal = data.cellVal( r, c, 2 ).toDouble(); \endverbatim
virtual double minInRow( uint row, int coordinate=1 ) const;
virtual double maxInRows( uint row, uint row2, int coordinate=1 ) const;
virtual double minInRows( uint row, uint row2, int coordinate=1, bool bOnlyGTZero=false ) const;
- virtual QDateTime maxDtInRows( uint row, uint row2, int coordinate=1 ) const;
- virtual QDateTime minDtInRows( uint row, uint row2, int coordinate=1 ) const;
+ virtual TQDateTime maxDtInRows( uint row, uint row2, int coordinate=1 ) const;
+ virtual TQDateTime minDtInRows( uint row, uint row2, int coordinate=1 ) const;
virtual uint lastPositiveCellInColumn( uint col, int coordinate=1 ) const;
- virtual bool cellsHaveSeveralCoordinates(QVariant::Type* type2Ref) const;
+ virtual bool cellsHaveSeveralCoordinates(TQVariant::Type* type2Ref) const;
virtual bool cellsHaveSeveralCoordinates(uint row1=0, uint row2=UINT_MAX,
- QVariant::Type* type2Ref=NULL) const;
- virtual QVariant::Type cellsValueType( uint row1, uint row2=UINT_MAX,
+ TQVariant::Type* type2Ref=NULL) const;
+ virtual TQVariant::Type cellsValueType( uint row1, uint row2=UINT_MAX,
int coordinate=1 ) const;
- virtual QVariant::Type cellsValueType( int coordinate=1 ) const;
+ virtual TQVariant::Type cellsValueType( int coordinate=1 ) const;
private:
bool _sorted;
protected: