diff options
Diffstat (limited to 'kdejava/koala/org/kde/koala/Part.java')
-rw-r--r-- | kdejava/koala/org/kde/koala/Part.java | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/kdejava/koala/org/kde/koala/Part.java b/kdejava/koala/org/kde/koala/Part.java index fd641f37..0d488501 100644 --- a/kdejava/koala/org/kde/koala/Part.java +++ b/kdejava/koala/org/kde/koala/Part.java @@ -2,13 +2,13 @@ package org.kde.koala; import org.kde.qt.Qt; -import org.kde.qt.QMetaObject; +import org.kde.qt.TQMetaObject; import org.kde.qt.QtSupport; -import org.kde.qt.QObject; -import org.kde.qt.QPoint; -import org.kde.qt.QCustomEvent; -import org.kde.qt.QWidget; -import org.kde.qt.QObject; +import org.kde.qt.TQObject; +import org.kde.qt.TQPoint; +import org.kde.qt.TQCustomEvent; +import org.kde.qt.TQWidget; +import org.kde.qt.TQObject; /** @@ -24,9 +24,9 @@ import org.kde.qt.QObject; (menubars, toolbars... ). </li> <li><b>About the widget:</b></li> - Note that KParts.Part does not inherit QWidget. + Note that KParts.Part does not inherit TQWidget. This is due to the fact that the "visual representation" - will probably not be a mere QWidget, but an elaborate one. + will probably not be a mere TQWidget, but an elaborate one. That's why when implementing your KParts.Part (or derived) you should call KParts.Part.setWidget() in your constructor. <li><b>About the GUI elements:</b></li> @@ -39,9 +39,9 @@ import org.kde.qt.QObject; @short Base class for parts. */ -public class Part extends QObject implements PartBaseInterface { +public class Part extends TQObject implements PartBaseInterface { protected Part(Class dummy){super((Class) null);} - public native QMetaObject metaObject(); + public native TQMetaObject metaObject(); public native String className(); /** Constructor. @@ -49,16 +49,16 @@ public class Part extends QObject implements PartBaseInterface { @param name QT-internal name of the part. @short Constructor. */ - public Part(QObject parent, String name) { + public Part(TQObject parent, String name) { super((Class) null); newPart(parent,name); } - private native void newPart(QObject parent, String name); - public Part(QObject parent) { + private native void newPart(TQObject parent, String name); + public Part(TQObject parent) { super((Class) null); newPart(parent); } - private native void newPart(QObject parent); + private native void newPart(TQObject parent); public Part() { super((Class) null); newPart(); @@ -67,21 +67,21 @@ public class Part extends QObject implements PartBaseInterface { /** Embed this part into a host widget. You don't need to do this if you created the widget with the - correct parent widget - this is just a QWidget.reparent(). + correct parent widget - this is just a TQWidget.reparent(). Note that the Part is still the holder - of the QWidget, meaning that if you delete the Part, + of the TQWidget, meaning that if you delete the Part, then the widget gets destroyed as well, and vice-versa. This method is not recommended since creating the widget with the correct parent is simpler anyway. @short Embed this part into a host widget. */ - public native void embed(QWidget parentWidget); + public native void embed(TQWidget parentWidget); /** @return The widget defined by this part, set by setWidget(). @short */ - public native QWidget widget(); + public native TQWidget widget(); /** Used by the part manager. @short @@ -101,7 +101,7 @@ public class Part extends QObject implements PartBaseInterface { @param globalPos the mouse coordinates in global coordinates @short Returns the part (this, or a child part) at the given global position. */ - public native Part hitTest(QWidget widget, QPoint globalPos); + public native Part hitTest(TQWidget widget, TQPoint globalPos); /** @param selectable Indicates whether the part is selectable or not. @short @@ -117,11 +117,11 @@ public class Part extends QObject implements PartBaseInterface { Call this in the Part-inherited class constructor. @short Set the main widget. */ - protected native void setWidget(QWidget widget); + protected native void setWidget(TQWidget widget); /** @short */ - protected native void customEvent(QCustomEvent event); + protected native void customEvent(TQCustomEvent event); /** Convenience method which is called when the Part received a PartActivateEvent . Reimplement this if you don't want to reimplement event and test for the event yourself @@ -151,13 +151,13 @@ public class Part extends QObject implements PartBaseInterface { @short Convenience method for KXMLGUIFactory.container. */ - protected native QWidget hostContainer(String containerName); + protected native TQWidget hostContainer(String containerName); /** Internal method. Called by KParts.Part to specify the parent object for plugin objects. @short Internal method. */ - public native void setPartObject(QObject object); - public native QObject partObject(); + public native void setPartObject(TQObject object); + public native TQObject partObject(); /** Set the instance ( KInstance) for this part. Call this first in the inherited class constructor, @@ -180,8 +180,8 @@ public class Part extends QObject implements PartBaseInterface { <pre> if( factory() ) { - QPtrList<KParts.Plugin> plugins = KParts.Plugin.pluginObjects( this ); - QPtrListIterator<KParts.Plugin> it( plugins ); + TQPtrList<KParts.Plugin> plugins = KParts.Plugin.pluginObjects( this ); + TQPtrListIterator<KParts.Plugin> it( plugins ); KParts.Plugin plugin; while( ( plugin = it.current() ) != 0 ) { @@ -192,7 +192,7 @@ public class Part extends QObject implements PartBaseInterface { </pre> @short Load the Plugins honoring the PluginLoadingMode. */ - protected native void loadPlugins(QObject parent, KXMLGUIClientInterface parentGUIClient, KInstanceInterface instance); + protected native void loadPlugins(TQObject parent, KXMLGUIClientInterface parentGUIClient, KInstanceInterface instance); /** For a KParts.Part: call this before setInstance(). For a KParts.MainWindow: call this before createGUI(). |