summaryrefslogtreecommitdiffstats
path: root/lib/interfaces/external
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-14 16:45:05 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-14 16:45:05 +0000
commit48d4a26399959121f33d2bc3bfe51c7827b654fc (patch)
tree5ae5e6e00d3ba330b7b8be9bc097154b6bc739e8 /lib/interfaces/external
parent7e701ace6592d09e1f2c0cf28c7d6d872d78f4f5 (diff)
downloadtdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.tar.gz
tdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.zip
TQt4 port kdevelop
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1236710 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/interfaces/external')
-rw-r--r--lib/interfaces/external/Mainpage.dox6
-rw-r--r--lib/interfaces/external/designer.cpp4
-rw-r--r--lib/interfaces/external/designer.h9
3 files changed, 10 insertions, 9 deletions
diff --git a/lib/interfaces/external/Mainpage.dox b/lib/interfaces/external/Mainpage.dox
index 4618c3d5..8b91bf8c 100644
--- a/lib/interfaces/external/Mainpage.dox
+++ b/lib/interfaces/external/Mainpage.dox
@@ -10,14 +10,14 @@ GUI Designer integration framework.
\section designerintegration Overview of GUI designer integration process
Each KPart that wants to act as a GUI Designer must implement @ref KInterfaceDesigner::Designer
-interface. It defines necessary signals to communicate with an IDE and abstract virtual
+interface. It defines necessary Q_SIGNALS to communicate with an IDE and abstract virtual
functions to determine designer type.
If a part which can "design" user interface files of a certain mimetype
implements this interface and sets itself as a default handler for that
mimetype then it becomes automatically integrated into KDevelop IDE.
-When a part is embedded into KDevelop shell, its signals (defined in @ref
+When a part is embedded into KDevelop shell, its Q_SIGNALS (defined in @ref
KInterfaceDesigner::Designer interface):
@code
void addedFunction(DesignerType type, const QString &formName, Function function)
@@ -26,7 +26,7 @@ KInterfaceDesigner::Designer interface):
void editFunction(DesignerType type, const QString &formName, const QString &functionName)
void editSource(DesignerType type, const QString &formName);
@endcode
-are connected to corresponding slots of KDevelop designer integration engine which can be implemented in KDevelop language support plugin.
+are connected to corresponding Q_SLOTS of KDevelop designer integration engine which can be implemented in KDevelop language support plugin.
Each language support which wants to use integrated designer, must reimplement
@code
diff --git a/lib/interfaces/external/designer.cpp b/lib/interfaces/external/designer.cpp
index 606fd2b4..06c28d50 100644
--- a/lib/interfaces/external/designer.cpp
+++ b/lib/interfaces/external/designer.cpp
@@ -20,8 +20,8 @@
namespace KInterfaceDesigner{
-Designer::Designer(TQObject *parent, const char *name)
- :KParts::ReadWritePart(parent, name)
+Designer::Designer(TQObject *tqparent, const char *name)
+ :KParts::ReadWritePart(tqparent, name)
{
}
diff --git a/lib/interfaces/external/designer.h b/lib/interfaces/external/designer.h
index c254ab07..72d7508a 100644
--- a/lib/interfaces/external/designer.h
+++ b/lib/interfaces/external/designer.h
@@ -26,14 +26,14 @@ namespace KInterfaceDesigner{
/**The type of a GUI Designer.*/
enum DesignerType {
- QtDesigner /**<Qt Designer.*/,
+ TQtDesigner /**<TQt Designer.*/,
Glade /**<Glade (version >= 3).*/
};
/**Function type.*/
enum FunctionType {
ftFunction /**<Simple function or a callback.*/,
- ftQtSlot /**<Qt slot.*/
+ ftTQtSlot /**<TQt slot.*/
};
/**Function.*/
@@ -65,8 +65,9 @@ mimetype then it becomes automatically integrated into KDevelop IDE.
*/
class Designer: public KParts::ReadWritePart{
Q_OBJECT
+ TQ_OBJECT
public:
- Designer(TQObject *parent, const char *name);
+ Designer(TQObject *tqparent, const char *name);
/**Reimplement this to be able to open projects.*/
virtual void openProject(const TQString &projectFile) = 0;
@@ -90,7 +91,7 @@ signals:
/**Emitted when a form state is changed in the designer.
@param formName An absolute name of the form file.
@param status 0: form is clean, 1: form is modified.*/
- void newStatus(const TQString &formName, int status);
+ void newtqStatus(const TQString &formName, int status);
};
}