summaryrefslogtreecommitdiffstats
path: root/kchart/kchart_part.h
diff options
context:
space:
mode:
Diffstat (limited to 'kchart/kchart_part.h')
-rw-r--r--kchart/kchart_part.h61
1 files changed, 31 insertions, 30 deletions
diff --git a/kchart/kchart_part.h b/kchart/kchart_part.h
index 79134b31..effafa06 100644
--- a/kchart/kchart_part.h
+++ b/kchart/kchart_part.h
@@ -23,18 +23,19 @@ class KChartParams;
class KCHART_EXPORT KChartPart : public KoChart::Part
{
Q_OBJECT
+ TQ_OBJECT
public:
- KChartPart( QWidget *parentWidget = 0, const char *widgetName = 0,
- QObject* parent = 0, const char* name = 0,
+ KChartPart( TQWidget *tqparentWidget = 0, const char *widgetName = 0,
+ TQObject* tqparent = 0, const char* name = 0,
bool singleViewMode = false );
~KChartPart();
// Methods inherited from KoDocument:
- virtual bool initDoc(InitDocFlags flags, QWidget* parentWidget=0);
+ virtual bool initDoc(InitDocFlags flags, TQWidget* tqparentWidget=0);
- virtual void paintContent( QPainter& painter, const QRect& rect,
+ virtual void paintContent( TQPainter& painter, const TQRect& rect,
bool transparent = false,
double zoomX = 1.0, double zoomY = 1.0 );
@@ -42,7 +43,7 @@ public:
// (see ../interfaces/koChart.h.)
virtual void resizeData( int rows, int columns );
- virtual void setCellData( int row, int column, const QVariant &);
+ virtual void setCellData( int row, int column, const TQVariant &);
virtual void analyzeHeaders( );
virtual void setCanChangeValue( bool b ) { m_bCanChangeValue = b; }
@@ -53,7 +54,7 @@ public:
bool firstColHeader,
bool firstRowHeader );
- bool showWizard( QString &dataArea );
+ bool showWizard( TQString &dataArea );
void initLabelAndLegend();
void loadConfig(KConfig *conf);
void saveConfig(KConfig *conf);
@@ -63,15 +64,15 @@ public:
KDChartTableData *data() { return &m_currentData; }
KChartParams *params() const { return m_params; }
- QStringList &rowLabelTexts() { return m_rowLabels; }
- QStringList &colLabelTexts() { return m_colLabels; }
+ TQStringList &rowLabelTexts() { return m_rowLabels; }
+ TQStringList &colLabelTexts() { return m_colLabels; }
// Save and load
- virtual QDomDocument saveXML();
- virtual bool loadXML( QIODevice *, const QDomDocument& doc );
- virtual bool loadOasis( const QDomDocument& doc,
+ virtual TQDomDocument saveXML();
+ virtual bool loadXML( TQIODevice *, const TQDomDocument& doc );
+ virtual bool loadOasis( const TQDomDocument& doc,
KoOasisStyles& oasisStyles,
- const QDomDocument& settings,
+ const TQDomDocument& settings,
KoStore *store );
virtual bool saveOasis( KoStore* store,
KoXmlWriter* manifestWriter );
@@ -83,7 +84,7 @@ public:
// Functions that generate templates (not used yet):
void generateBarChartTemplate();
- virtual bool showEmbedInitDialog(QWidget* parent);
+ virtual bool showEmbedInitDialog(TQWidget* tqparent);
public slots:
void slotModified();
@@ -93,25 +94,25 @@ signals:
void docChanged();
protected:
- virtual KoView* createViewInstance( QWidget* parent, const char* name );
- bool loadOldXML( const QDomDocument& doc );
- bool loadAuxiliary( const QDomDocument& doc );
- bool loadData( const QDomDocument& doc, KDChartTableData& currentData );
- bool loadOasisData( const QDomElement& tableElem );
+ virtual KoView* createViewInstance( TQWidget* tqparent, const char* name );
+ bool loadOldXML( const TQDomDocument& doc );
+ bool loadAuxiliary( const TQDomDocument& doc );
+ bool loadData( const TQDomDocument& doc, KDChartTableData& currentData );
+ bool loadOasisData( const TQDomElement& tableElem );
void saveOasisData( KoXmlWriter* bodyWriter, KoGenStyles& mainStyles ) const;
void writeAutomaticStyles( KoXmlWriter& contentWriter, KoGenStyles& mainStyles ) const;
private:
// Helper methods for painting.
int createDisplayData();
- void createLabelsAndLegend( QStringList &longLabels,
- QStringList &shortLabels );
+ void createLabelsAndLegend( TQStringList &longLabels,
+ TQStringList &shortLabels );
- QDomElement createElement(const QString &tagName,
- const QFont &font,
- QDomDocument &doc) const;
- QFont toFont(QDomElement &element) const;
+ TQDomElement createElement(const TQString &tagName,
+ const TQFont &font,
+ TQDomDocument &doc) const;
+ TQFont toFont(TQDomElement &element) const;
void setChartDefaults();
@@ -119,20 +120,20 @@ private:
// The chart and its contents
KChartParams *m_params; // Everything about the chart
KDChartTableData m_currentData; // The data in the chart.
- QStringList m_rowLabels;
- QStringList m_colLabels;
- //QString m_regionName;
+ TQStringList m_rowLabels;
+ TQStringList m_colLabels;
+ //TQString m_regionName;
// Other auxiliary values
bool m_bCanChangeValue;
// Graphics
- QWidget *m_parentWidget;
+ TQWidget *m_parentWidget;
// Used when displaying.
KDChartTableData m_displayData;
- QPixmap m_bufferPixmap;
+ TQPixmap m_bufferPixmap;
};
@@ -142,7 +143,7 @@ public:
WizardExt( KoChart::Part *part )
: KoChart::WizardExtension( part ) {};
- virtual bool show( QString &dataArea ) {
+ virtual bool show( TQString &dataArea ) {
return static_cast<KChartPart *>( part() )->showWizard( dataArea );
}
};