summaryrefslogtreecommitdiffstats
path: root/src/document.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-29 16:05:55 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-29 16:05:55 +0000
commit87a016680e3677da3993f333561e79eb0cead7d5 (patch)
treecbda2b4df8b8ee0d8d1617e6c75bec1e3ee0ccba /src/document.h
parent6ce3d1ad09c1096b5ed3db334e02859e45d5c32b (diff)
downloadktechlab-87a016680e3677da3993f333561e79eb0cead7d5.tar.gz
ktechlab-87a016680e3677da3993f333561e79eb0cead7d5.zip
TQt4 port ktechlab
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktechlab@1238801 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/document.h')
-rw-r--r--src/document.h23
1 files changed, 12 insertions, 11 deletions
diff --git a/src/document.h b/src/document.h
index eb465ad..b9bc65f 100644
--- a/src/document.h
+++ b/src/document.h
@@ -12,7 +12,7 @@
#define DOCUMENT_H
#include <kurl.h>
-#include <qguardedptr.h>
+#include <tqguardedptr.h>
class DCOPObject;
class Document;
@@ -21,14 +21,15 @@ class KTechlab;
class View;
class ViewContainer;
-typedef QValueList<QGuardedPtr<View> > ViewList;
+typedef TQValueList<TQGuardedPtr<View> > ViewList;
/**
@author David Saxton
*/
-class Document : public QObject
+class Document : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
enum DocumentType
{
@@ -39,7 +40,7 @@ public:
dt_text,
dt_pinMapEditor
};
- Document( const QString &caption, KTechlab *ktechlab, const char *name = 0 );
+ Document( const TQString &caption, KTechlab *ktechlab, const char *name = 0 );
virtual ~Document();
/**
* If the user has created a new document from the new file dialog, and
@@ -51,12 +52,12 @@ public:
/**
* Caption of document, e.g. "Untitled 2"
*/
- QString caption() const { return m_caption; }
+ TQString caption() const { return m_caption; }
/**
* Set the caption of the document, to be displayed in the tab bar when
* active
*/
- void setCaption( const QString &caption );
+ void setCaption( const TQString &caption );
/**
* Return the dcop object for this document
*/
@@ -99,7 +100,7 @@ public:
* Prompts the user for a url, with the given types for the filter.
* If user accepts, returns true, and set the url to the new url.
*/
- bool getURL( const QString &types );
+ bool getURL( const TQString &types );
/**
* Attempts to open a url, and returns true if succesful.
* You must reinherit this function.
@@ -132,7 +133,7 @@ public:
virtual void fileSaveAs() = 0;
/**
* Attempts to close the file without saving, prompting the user if the
- * file has been modified. If succesful, calls QObject::deleteLater(), and
+ * file has been modified. If succesful, calls TQObject::deleteLater(), and
* returns true (otherwise returns false).
*/
virtual bool fileClose();
@@ -212,7 +213,7 @@ signals:
void viewUnfocused();
private slots:
- void slotViewDestroyed( QObject *obj );
+ void slotViewDestroyed( TQObject *obj );
void slotViewFocused( View *view );
protected:
@@ -223,10 +224,10 @@ protected:
bool b_modified;
KTechlab *p_ktechlab;
- QGuardedPtr<View> p_activeView;
+ TQGuardedPtr<View> p_activeView;
DocumentType m_type;
ViewList m_viewList;
- QString m_caption;
+ TQString m_caption;
bool m_bAddToProjectOnSave;
DocumentIface * m_pDocumentIface;
unsigned m_dcopID;