summaryrefslogtreecommitdiffstats
path: root/kivio/kiviopart/kivio_page.h
diff options
context:
space:
mode:
Diffstat (limited to 'kivio/kiviopart/kivio_page.h')
-rw-r--r--kivio/kiviopart/kivio_page.h79
1 files changed, 40 insertions, 39 deletions
diff --git a/kivio/kiviopart/kivio_page.h b/kivio/kiviopart/kivio_page.h
index 684871d7..872018a6 100644
--- a/kivio/kiviopart/kivio_page.h
+++ b/kivio/kiviopart/kivio_page.h
@@ -26,9 +26,9 @@ class KivioCanvas;
class KivioDoc;
class KoDocumentEntry;
-class QWidget;
-class QPainter;
-class QDomElement;
+class TQWidget;
+class TQPainter;
+class TQDomElement;
class KivioLayer;
class KoPoint;
@@ -36,13 +36,13 @@ class DCOPObject;
#include <KoDocument.h>
-#include <qpen.h>
-#include <qptrlist.h>
-#include <qintdict.h>
-#include <qmemarray.h>
-#include <qrect.h>
-#include <qpalette.h>
-#include <qwidget.h>
+#include <tqpen.h>
+#include <tqptrlist.h>
+#include <tqintdict.h>
+#include <tqmemarray.h>
+#include <tqrect.h>
+#include <tqpalette.h>
+#include <tqwidget.h>
#include <KoPoint.h>
#include "kivio_stencil.h"
@@ -75,22 +75,23 @@ struct DistributeData
Extent extent;
};
-class KIVIO_EXPORT KivioPage : public QObject
+class KIVIO_EXPORT KivioPage : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
- KivioPage( KivioMap *_map, const QString &pageName, const char *_name=0L );
+ KivioPage( KivioMap *_map, const TQString &pageName, const char *_name=0L );
~KivioPage();
virtual DCOPObject* dcopObject();
- QString pageName()const { return m_strName; }
- bool setPageName( const QString& name, bool init = false );
+ TQString pageName()const { return m_strName; }
+ bool setPageName( const TQString& name, bool init = false );
- virtual QDomElement save( QDomDocument& );
+ virtual TQDomElement save( TQDomDocument& );
virtual void saveOasis(KoStore* store, KoXmlWriter* docWriter, KoGenStyles* styles);
- virtual bool loadXML( const QDomElement& );
- bool loadOasis(const QDomElement& page, KoOasisStyles& oasisStyles);
+ virtual bool loadXML( const TQDomElement& );
+ bool loadOasis(const TQDomElement& page, KoOasisStyles& oasisStyles);
bool isLoading();
bool isHidden()const { return m_bPageHide; }
@@ -101,17 +102,17 @@ class KIVIO_EXPORT KivioPage : public QObject
KivioDoc* doc()const { return m_pDoc; }
KivioMap* map()const { return m_pMap; }
- KivioPage *findPage( const QString & _name );
+ KivioPage *findPage( const TQString & _name );
- void print( QPainter &painter, KPrinter *_printer );
+ void print( TQPainter &painter, KPrinter *_printer );
void update();
int id()const { return m_id; }
- static KivioPage* find( int _id );
+ static KivioPage* tqfind( int _id );
KoPageLayout paperLayout()const { return m_pPageLayout; }
void setPaperLayout(const KoPageLayout&);
- void paintContent( KivioPainter& painter, const QRect& rect, bool transparent, QPoint, KoZoomHandler*, bool, bool );
+ void paintContent( KivioPainter& painter, const TQRect& rect, bool transparent, TQPoint, KoZoomHandler*, bool, bool );
void printContent( KivioPainter& painter, int xdpi = 0, int ydpi = 0 );
void printSelected( KivioPainter& painter, int xdpi = 0, int ydpi = 0 );
void printContent(KivioPainter& painter, KoZoomHandler* zoomHandler);
@@ -122,7 +123,7 @@ class KIVIO_EXPORT KivioPage : public QObject
bool unselectStencil( KivioStencil * );
void selectStencil( KivioStencil * );
void selectStencils( double, double, double, double );
- QPtrList<KivioStencil> *selectedStencils() { return &m_lstSelection; }
+ TQPtrList<KivioStencil> *selectedStencils() { return &m_lstSelection; }
bool checkForStencilTypeInSelection(KivioStencilType type);
bool checkForTextBoxesInSelection();
@@ -137,7 +138,7 @@ class KIVIO_EXPORT KivioPage : public QObject
KivioLayer *curLayer()const { return m_pCurLayer; }
void setCurLayer( KivioLayer *pLayer ) { m_pCurLayer=pLayer; }
- QPtrList<KivioLayer> *layers() { return &m_lstLayers; }
+ TQPtrList<KivioLayer> *layers() { return &m_lstLayers; }
KivioLayer *firstLayer();
KivioLayer *nextLayer();
KivioLayer *lastLayer();
@@ -160,8 +161,8 @@ class KIVIO_EXPORT KivioPage : public QObject
void setHidePage(bool _hide);
- QValueList<double> horizontalGuideLines() const { return m_hGuideLines; }
- QValueList<double> verticalGuideLines() const { return m_vGuideLines; }
+ TQValueList<double> horizontalGuideLines() const { return m_hGuideLines; }
+ TQValueList<double> verticalGuideLines() const { return m_vGuideLines; }
public slots:
void deleteSelectedStencils();
@@ -177,13 +178,13 @@ class KIVIO_EXPORT KivioPage : public QObject
void setPaintSelected(bool paint = true);
- void setGuideLines(const QValueList<double> hGuideLines, const QValueList<double> vGuideLines);
+ void setGuideLines(const TQValueList<double> hGuideLines, const TQValueList<double> vGuideLines);
void addGuideLine(Qt::Orientation orientation, double position);
signals:
void sig_updateView( KivioPage *_page );
- void sig_updateView( KivioPage *_page, const QRect& );
- void sig_nameChanged( KivioPage* page, const QString& old_name );
+ void sig_updateView( KivioPage *_page, const TQRect& );
+ void sig_nameChanged( KivioPage* page, const TQString& old_name );
void sig_PageHidden(KivioPage *_page);
void sig_PageShown(KivioPage *_page);
@@ -191,35 +192,35 @@ class KIVIO_EXPORT KivioPage : public QObject
void sig_pageLayoutChanged(const KoPageLayout&);
protected:
- void printPage( QPainter &_painter, const QRect& page_range, const QRect& view );
+ void printPage( TQPainter &_painter, const TQRect& page_range, const TQRect& view );
- QDomElement saveLayout( QDomDocument & );
- bool loadLayout( const QDomElement & );
+ TQDomElement saveLayout( TQDomDocument & );
+ bool loadLayout( const TQDomElement & );
- void saveGuideLines(QDomElement& element);
- void loadGuideLines(const QDomElement& element);
+ void saveGuideLines(TQDomElement& element);
+ void loadGuideLines(const TQDomElement& element);
- QString m_strName;
+ TQString m_strName;
KivioMap *m_pMap;
KivioDoc *m_pDoc;
- QPtrList<KivioLayer> m_lstLayers;
+ TQPtrList<KivioLayer> m_lstLayers;
KivioLayer *m_pCurLayer;
- QPtrList<KivioStencil> m_lstSelection;
+ TQPtrList<KivioStencil> m_lstSelection;
int m_id;
bool m_bPageHide;
static int s_id;
- static QIntDict<KivioPage>* s_mapPages;
+ static TQIntDict<KivioPage>* s_mapPages;
KoPageLayout m_pPageLayout;
DCOPObject* m_dcop;
- QValueList<double> m_hGuideLines;
- QValueList<double> m_vGuideLines;
+ TQValueList<double> m_hGuideLines;
+ TQValueList<double> m_vGuideLines;
};
#endif