summaryrefslogtreecommitdiffstats
path: root/krita/ui/kis_doc.h
diff options
context:
space:
mode:
Diffstat (limited to 'krita/ui/kis_doc.h')
-rw-r--r--krita/ui/kis_doc.h93
1 files changed, 47 insertions, 46 deletions
diff --git a/krita/ui/kis_doc.h b/krita/ui/kis_doc.h
index 5d538cd7..55cbac90 100644
--- a/krita/ui/kis_doc.h
+++ b/krita/ui/kis_doc.h
@@ -29,8 +29,8 @@
#include <koffice_export.h>
-class QImage;
-class QString;
+class TQImage;
+class TQString;
class DCOPObject;
class KCommand;
@@ -50,9 +50,10 @@ class KRITACORE_EXPORT KisDoc : public KoDocument, private KisUndoAdapter {
typedef KoDocument super;
Q_OBJECT
+ TQ_OBJECT
public:
- KisDoc(QWidget *parentWidget = 0, const char *widgetName = 0, QObject* parent = 0, const char* name = 0, bool singleViewMode = false);
+ KisDoc(TQWidget *tqparentWidget = 0, const char *widgetName = 0, TQObject* tqparent = 0, const char* name = 0, bool singleViewMode = false);
virtual ~KisDoc();
public:
@@ -61,14 +62,14 @@ public:
virtual bool completeLoading(KoStore *store);
virtual bool completeSaving(KoStore*);
virtual DCOPObject* dcopObject();
- virtual bool initDoc(InitDocFlags flags, QWidget* parentWidget=0);
- virtual bool loadOasis( const QDomDocument&, KoOasisStyles&, const QDomDocument&, KoStore* );
+ virtual bool initDoc(InitDocFlags flags, TQWidget* tqparentWidget=0);
+ virtual bool loadOasis( const TQDomDocument&, KoOasisStyles&, const TQDomDocument&, KoStore* );
virtual bool saveOasis( KoStore*, KoXmlWriter* );
virtual bool loadChildren( KoStore* store);
- virtual bool loadXML(QIODevice *, const QDomDocument& doc);
- virtual QCString mimeType() const;
- virtual QWidget* createCustomDocumentWidget(QWidget *parent);
- virtual KoDocument* hitTest(const QPoint &pos, const QWMatrix& matrix = QWMatrix());
+ virtual bool loadXML(TQIODevice *, const TQDomDocument& doc);
+ virtual TQCString mimeType() const;
+ virtual TQWidget* createCustomDocumentWidget(TQWidget *tqparent);
+ virtual KoDocument* hitTest(const TQPoint &pos, const TQWMatrix& matrix = TQWMatrix());
/**
* Draw the image embedded in another KOffice document
@@ -77,9 +78,9 @@ public:
* by Krita because we appear to be doing our zooming
* elsewhere. This may affect KOffice compatibility.
*/
- virtual void paintContent(QPainter& painter, const QRect& rect, bool /*transparent*/, double /*zoomX*/, double /*zoomY*/);
+ virtual void paintContent(TQPainter& painter, const TQRect& rect, bool /*transparent*/, double /*zoomX*/, double /*zoomY*/);
- virtual QDomDocument saveXML();
+ virtual TQDomDocument saveXML();
public slots:
@@ -99,32 +100,32 @@ private: // Undo adapter
virtual void addCommand(KCommand *cmd);
virtual void setUndo(bool undo);
virtual bool undo() const;
- virtual void beginMacro(const QString& macroName);
+ virtual void beginMacro(const TQString& macroName);
virtual void endMacro();
public:
- Q_INT32 undoLimit() const;
- void setUndoLimit(Q_INT32 limit);
+ TQ_INT32 undoLimit() const;
+ void setUndoLimit(TQ_INT32 limit);
- Q_INT32 redoLimit() const;
- void setRedoLimit(Q_INT32 limit);
+ TQ_INT32 redoLimit() const;
+ void setRedoLimit(TQ_INT32 limit);
/**
- * Create a new image that has this document as a parent and
+ * Create a new image that has this document as a tqparent and
* replace the current image with this image.
*/
- bool newImage(const QString& name, Q_INT32 width, Q_INT32 height, KisColorSpace * cs, const KisColor &bgColor, const QString &imgDescription, const double imgResolution);
+ bool newImage(const TQString& name, TQ_INT32 width, TQ_INT32 height, KisColorSpace * cs, const KisColor &bgColor, const TQString &imgDescription, const double imgResolution);
/**
- * Create a new image that has this document as a parent and
+ * Create a new image that has this document as a tqparent and
* replace the current image with this image.
*/
- KisImageSP newImage(const QString& name, Q_INT32 width, Q_INT32 height, KisColorSpace * colorstrategy);
+ KisImageSP newImage(const TQString& name, TQ_INT32 width, TQ_INT32 height, KisColorSpace * colorstrategy);
- void renameImage(const QString& oldName, const QString& newName);
+ void renameImage(const TQString& oldName, const TQString& newName);
/**
@@ -132,7 +133,7 @@ public:
* is not done with KoDocument::insertChild() because that
* is protected and cannot be called from KisView.
*/
- KisChildDoc * createChildDoc( const QRect& rect, KoDocument* childDoc );
+ KisChildDoc * createChildDoc( const TQRect& rect, KoDocument* childDoc );
/**
* Makes an otherwise empty document ready for import/export
@@ -150,13 +151,13 @@ public:
public slots:
void slotImageUpdated();
- void slotImageUpdated(const QRect& rect);
+ void slotImageUpdated(const TQRect& rect);
void slotDocumentRestored();
void slotCommandExecuted(KCommand *command);
signals:
void docUpdated();
- void docUpdated(QRect rect);
+ void docUpdated(TQRect rect);
void loadingFinished();
/*
@@ -167,38 +168,38 @@ signals:
protected:
// Overide KoDocument
- virtual KoView* createViewInstance(QWidget *parent, const char *name);
+ virtual KoView* createViewInstance(TQWidget *tqparent, const char *name);
protected slots:
// Overide KoDocument
- virtual void openExistingFile(const QString& file);
- virtual void openTemplate(const QString& file);
+ virtual void openExistingFile(const TQString& file);
+ virtual void openTemplate(const TQString& file);
private slots:
- void slotUpdate(KisImageSP img, Q_UINT32 x, Q_UINT32 y, Q_UINT32 w, Q_UINT32 h);
- void slotIOProgress(Q_INT8 percentage);
+ void slotUpdate(KisImageSP img, TQ_UINT32 x, TQ_UINT32 y, TQ_UINT32 w, TQ_UINT32 h);
+ void slotIOProgress(TQ_INT8 percentage);
private:
- QDomElement saveImage(QDomDocument& doc, KisImageSP img);
- KisImageSP loadImage(const QDomElement& elem);
- void loadLayers(const QDomElement& element, KisImageSP img, KisGroupLayerSP parent);
- KisLayerSP loadLayer(const QDomElement& elem, KisImageSP img);
- KisLayerSP loadPaintLayer(const QDomElement& elem, KisImageSP img,
- QString name, Q_INT32 x, Q_INT32 y, Q_INT32 opacity, bool visible, bool locked,
+ TQDomElement saveImage(TQDomDocument& doc, KisImageSP img);
+ KisImageSP loadImage(const TQDomElement& elem);
+ void loadLayers(const TQDomElement& element, KisImageSP img, KisGroupLayerSP tqparent);
+ KisLayerSP loadLayer(const TQDomElement& elem, KisImageSP img);
+ KisLayerSP loadPaintLayer(const TQDomElement& elem, KisImageSP img,
+ TQString name, TQ_INT32 x, TQ_INT32 y, TQ_INT32 opacity, bool visible, bool locked,
KisCompositeOp compositeOp);
- KisGroupLayerSP loadGroupLayer(const QDomElement& elem, KisImageSP img,
- QString name, Q_INT32 x, Q_INT32 y, Q_INT32 opacity, bool visible, bool locked,
+ KisGroupLayerSP loadGroupLayer(const TQDomElement& elem, KisImageSP img,
+ TQString name, TQ_INT32 x, TQ_INT32 y, TQ_INT32 opacity, bool visible, bool locked,
KisCompositeOp compositeOp);
- KisAdjustmentLayerSP loadAdjustmentLayer(const QDomElement& elem, KisImageSP img,
- QString name, Q_INT32 x, Q_INT32 y, Q_INT32 opacity, bool visible, bool locked,
+ KisAdjustmentLayerSP loadAdjustmentLayer(const TQDomElement& elem, KisImageSP img,
+ TQString name, TQ_INT32 x, TQ_INT32 y, TQ_INT32 opacity, bool visible, bool locked,
KisCompositeOp compositeOp);
- KisPartLayerSP loadPartLayer(const QDomElement& elem, KisImageSP img,
- QString name, Q_INT32 x, Q_INT32 y, Q_INT32 opacity,
+ KisPartLayerSP loadPartLayer(const TQDomElement& elem, KisImageSP img,
+ TQString name, TQ_INT32 x, TQ_INT32 y, TQ_INT32 opacity,
bool visible, bool locked, KisCompositeOp compositeOp);
bool init();
- void setIOSteps(Q_INT32 nsteps);
+ void setIOSteps(TQ_INT32 nsteps);
void IOCompletedStep();
void IODone();
@@ -206,16 +207,16 @@ private:
bool m_undo;
KoCommandHistory *m_cmdHistory;
- QPtrList<KisCommandHistoryListener> m_undoListeners;
+ TQPtrList<KisCommandHistoryListener> m_undoListeners;
KisImageSP m_currentImage;
DCOPObject *m_dcop;
KisNameServer *m_nserver;
KMacroCommand *m_currentMacro;
- Q_INT32 m_macroNestDepth;
- Q_INT32 m_conversionDepth;
+ TQ_INT32 m_macroNestDepth;
+ TQ_INT32 m_conversionDepth;
int m_ioProgressTotalSteps;
int m_ioProgressBase;
- QMap<KisLayerSP, QString> m_layerFilenames; // temp storage during load
+ TQMap<KisLayerSP, TQString> m_layerFilenames; // temp storage during load
};