summaryrefslogtreecommitdiffstats
path: root/kugar/lib/mreportviewer.h
diff options
context:
space:
mode:
Diffstat (limited to 'kugar/lib/mreportviewer.h')
-rw-r--r--kugar/lib/mreportviewer.h49
1 files changed, 25 insertions, 24 deletions
diff --git a/kugar/lib/mreportviewer.h b/kugar/lib/mreportviewer.h
index 1c6f4c03..4927f28d 100644
--- a/kugar/lib/mreportviewer.h
+++ b/kugar/lib/mreportviewer.h
@@ -11,14 +11,14 @@
#ifndef MREPORTVIEWER_H
#define MREPORTVIEWER_H
-#include <qapplication.h>
-#include <qwidget.h>
-#include <qscrollview.h>
-#include <qpixmap.h>
-#include <qpainter.h>
-#include <qpaintdevicemetrics.h>
-#include <qprogressdialog.h>
-#include <qguardedptr.h>
+#include <tqapplication.h>
+#include <tqwidget.h>
+#include <tqscrollview.h>
+#include <tqpixmap.h>
+#include <tqpainter.h>
+#include <tqpaintdevicemetrics.h>
+#include <tqprogressdialog.h>
+#include <tqguardedptr.h>
#include <koffice_export.h>
#include "mreportengine.h"
#include "mpagecollection.h"
@@ -29,7 +29,7 @@
class KPrinter;
/** Application reference, required for event processing */
-extern QApplication *mAppRef;
+extern TQApplication *mAppRef;
/**Kugar QT report viewer widget
*@author Mutiny Bay Software
@@ -38,27 +38,28 @@ extern QApplication *mAppRef;
namespace Kugar
{
-class KUGAR_EXPORT MReportViewer : public QWidget
+class KUGAR_EXPORT MReportViewer : public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- MReportViewer( QWidget *parent = 0, const char *name = 0 );
- MReportViewer( MReportEngine* engine, QWidget *parent = 0, const char *name = 0 );
+ MReportViewer( TQWidget *tqparent = 0, const char *name = 0 );
+ MReportViewer( MReportEngine* engine, TQWidget *tqparent = 0, const char *name = 0 );
virtual ~MReportViewer();
- bool setReportData( const QString & );
- bool setReportData( QIODevice * );
- bool setReportTemplate( const QString & );
- bool setReportTemplate( QIODevice * );
+ bool setReportData( const TQString & );
+ bool setReportData( TQIODevice * );
+ bool setReportTemplate( const TQString & );
+ bool setReportTemplate( TQIODevice * );
bool renderReport();
void clearReport();
void printReport();
void printReport( KPrinter &printer );
void setupPrinter( KPrinter &printer );
- void printReportSilent( int printFrom = -1, int printTo = -1, int printCopies = -1, QString printerName = QString::null );
+ void printReportSilent( int printFrom = -1, int printTo = -1, int printCopies = -1, TQString printerName = TQString() );
- QSize sizeHint() const;
+ TQSize tqsizeHint() const;
public slots:
void slotFirstPage();
@@ -67,24 +68,24 @@ public slots:
void slotLastPage();
signals:
- void preferedTemplate( const QString & );
+ void preferedTemplate( const TQString & );
private slots:
void slotCancelPrinting();
void slotRenderProgress( int );
protected:
- void paintEvent( QPaintEvent *event );
- void resizeEvent( QResizeEvent *event );
+ void paintEvent( TQPaintEvent *event );
+ void resizeEvent( TQResizeEvent *event );
- QScrollView *scroller;
+ TQScrollView *scroller;
MPageDisplay *display;
MReportEngine *rptEngine;
- QGuardedPtr<MPageCollection> report;
+ TQGuardedPtr<MPageCollection> report;
KPrinter *printer;
private:
- QProgressDialog* progress;
+ TQProgressDialog* progress;
int totalSteps;
void init();
};