summaryrefslogtreecommitdiffstats
path: root/kugar/lib/mreportengine.h
diff options
context:
space:
mode:
Diffstat (limited to 'kugar/lib/mreportengine.h')
-rw-r--r--kugar/lib/mreportengine.h89
1 files changed, 45 insertions, 44 deletions
diff --git a/kugar/lib/mreportengine.h b/kugar/lib/mreportengine.h
index c8280c1d8..33b651cc0 100644
--- a/kugar/lib/mreportengine.h
+++ b/kugar/lib/mreportengine.h
@@ -11,13 +11,13 @@
#ifndef MREPORTENGINE_H
#define MREPORTENGINE_H
-#include <qobject.h>
-#include <qpicture.h>
-#include <qpaintdevicemetrics.h>
-#include <qsize.h>
-#include <qmemarray.h>
-#include <qdom.h>
-#include <qguardedptr.h>
+#include <tqobject.h>
+#include <tqpicture.h>
+#include <tqpaintdevicemetrics.h>
+#include <tqsize.h>
+#include <tqmemarray.h>
+#include <tqdom.h>
+#include <tqguardedptr.h>
#include "mlineobject.h"
#include "mlabelobject.h"
@@ -34,9 +34,10 @@
namespace Kugar
{
-class MReportEngine : public QObject
+class MReportEngine : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
enum PageOrientation { Portrait, Landscape };
@@ -53,11 +54,11 @@ public:
MReportEngine operator=( const MReportEngine& mReportEngine );
virtual ~MReportEngine();
- bool setReportData( const QString & );
- bool setReportData( QIODevice * );
- bool setReportData( const QDomDocument& );
- bool setReportTemplate( const QString & );
- bool setReportTemplate( QIODevice * );
+ bool setReportData( const TQString & );
+ bool setReportData( TQIODevice * );
+ bool setReportData( const TQDomDocument& );
+ bool setReportTemplate( const TQString & );
+ bool setReportTemplate( TQIODevice * );
int getRenderSteps()
{
return records.length() / 2;
@@ -70,24 +71,24 @@ public slots:
void slotCancelRendering();
signals:
- void signalRenderStatus( int );
- void preferedTemplate( const QString & );
+ void signalRendertqStatus( int );
+ void preferedTemplate( const TQString & );
protected:
void recalcDimensions();
- void recalcAttribute( const QString& name, QDomNamedNodeMap attributes );
+ void recalcAttribute( const TQString& name, TQDomNamedNodeMap attributes );
private:
MPageCollection *m_pageCollection;
bool m_needRegeneration;
/** Report data document */
- QDomDocument rd;
+ TQDomDocument rd;
/** Report template document */
- QDomDocument rt;
+ TQDomDocument rt;
/** Report painter */
- QPainter p;
+ TQPainter p;
/** Report page size */
int pageSize;
@@ -115,11 +116,11 @@ private:
/** Page header */
MReportSection pHeader;
/** Detail headers */
- QPtrList<MReportSection> dHeaders;
+ TQPtrList<MReportSection> dHeaders;
/** Detail sections */
- QPtrList<MReportDetail> details;
+ TQPtrList<MReportDetail> details;
/** Detail footers */
- QPtrList<MReportSection> dFooters;
+ TQPtrList<MReportSection> dFooters;
/** Page footer */
MReportSection pFooter;
/** Report footer */
@@ -135,17 +136,17 @@ private:
/** Current page number */
int currPage;
/** Current report date */
- QDate currDate;
+ TQDate currDate;
/** Grand total array */
- QPtrList<QMemArray<double> > grandTotal;
+ TQPtrList<TQMemArray<double> > grandTotal;
/** Cancel rendering flag */
bool cancelRender;
int m_refCount;
private:
// The set of records being rendered.
- QDomNodeList records;
+ TQDomNodeList records;
/** Clears report formatting */
void clearFormatting();
/** Starts a new page of the report */
@@ -164,33 +165,33 @@ private:
void drawReportFooter( MPageCollection* pages );
/** Gets the metrics for the selected page size */
- QSize getPageMetrics( int size, int orientation );
+ TQSize getPageMetrics( int size, int orientation );
void initData();
void initTemplate();
- /** Sets the main layout attributes for the report */
- void setReportAttributes( QDomNode* report );
+ /** Sets the main tqlayout attributes for the report */
+ void setReportAttributes( TQDomNode* report );
int scaleDeltaWidth( int width ) const;
int scaleDeltaHeight( int width ) const;
- /** Sets the layout attributes for the given report section */
- void setSectionAttributes( MReportSection* section, QDomNode* report );
- /** Sets the layout attributes for the detail headers and footers */
- void setDetMiscAttributes( MReportSection* section, QDomNode* report );
- /** Sets the layout attributes for the detail section */
- void setDetailAttributes( QDomNode* report );
- /** Sets a line's layout attributes */
- void setLineAttributes( MLineObject* line, QDomNamedNodeMap* attr );
- /** Sets a label's layout attributes */
- void setLabelAttributes( MLabelObject* label, QDomNamedNodeMap* attr );
- /** Sets a special field's layout attributes */
- void setSpecialAttributes( MSpecialObject* field, QDomNamedNodeMap* attr );
- /** Sets a field's layout attributes */
- void setFieldAttributes( MFieldObject* field, QDomNamedNodeMap* attr );
- /** Sets a calculated field's layout attributes */
- void setCalculatedFieldAttributes( MCalcObject* field, QDomNamedNodeMap* attr );
+ /** Sets the tqlayout attributes for the given report section */
+ void setSectionAttributes( MReportSection* section, TQDomNode* report );
+ /** Sets the tqlayout attributes for the detail headers and footers */
+ void setDetMiscAttributes( MReportSection* section, TQDomNode* report );
+ /** Sets the tqlayout attributes for the detail section */
+ void setDetailAttributes( TQDomNode* report );
+ /** Sets a line's tqlayout attributes */
+ void setLineAttributes( MLineObject* line, TQDomNamedNodeMap* attr );
+ /** Sets a label's tqlayout attributes */
+ void setLabelAttributes( MLabelObject* label, TQDomNamedNodeMap* attr );
+ /** Sets a special field's tqlayout attributes */
+ void setSpecialAttributes( MSpecialObject* field, TQDomNamedNodeMap* attr );
+ /** Sets a field's tqlayout attributes */
+ void setFieldAttributes( MFieldObject* field, TQDomNamedNodeMap* attr );
+ /** Sets a calculated field's tqlayout attributes */
+ void setCalculatedFieldAttributes( MCalcObject* field, TQDomNamedNodeMap* attr );
/** Copies member data from one object to another.
* Used by the copy constructor and assignment operator