diff options
Diffstat (limited to 'kdejava/koala/org/kde/koala/Plugin.java')
-rw-r--r-- | kdejava/koala/org/kde/koala/Plugin.java | 82 |
1 files changed, 41 insertions, 41 deletions
diff --git a/kdejava/koala/org/kde/koala/Plugin.java b/kdejava/koala/org/kde/koala/Plugin.java index 4a9c7f95..84253dd3 100644 --- a/kdejava/koala/org/kde/koala/Plugin.java +++ b/kdejava/koala/org/kde/koala/Plugin.java @@ -2,13 +2,13 @@ package org.kde.koala; import org.kde.qt.Qt; -import org.kde.qt.QDomDocument; -import org.kde.qt.QMetaObject; +import org.kde.qt.TQDomDocument; +import org.kde.qt.TQMetaObject; import org.kde.qt.QtSupport; -import org.kde.qt.QObject; -import org.kde.qt.QWidget; -import org.kde.qt.QDomElement; -import org.kde.qt.QObject; +import org.kde.qt.TQObject; +import org.kde.qt.TQWidget; +import org.kde.qt.TQDomElement; +import org.kde.qt.TQObject; /** @@ -27,24 +27,24 @@ import org.kde.qt.QObject; @short A plugin is the way to add actions to an existing KParts application, or to a Part. */ -public class Plugin extends QObject implements KXMLGUIClientInterface { +public class Plugin extends TQObject implements KXMLGUIClientInterface { protected Plugin(Class dummy){super((Class) null);} - public native QMetaObject metaObject(); + public native TQMetaObject metaObject(); public native String className(); /** Construct a new KParts plugin. @short Construct a new KParts plugin. */ - public Plugin(QObject parent, String name) { + public Plugin(TQObject parent, String name) { super((Class) null); newPlugin(parent,name); } - private native void newPlugin(QObject parent, String name); - public Plugin(QObject parent) { + private native void newPlugin(TQObject parent, String name); + public Plugin(TQObject parent) { super((Class) null); newPlugin(parent); } - private native void newPlugin(QObject parent); + private native void newPlugin(TQObject parent); public Plugin() { super((Class) null); newPlugin(); @@ -67,7 +67,7 @@ public class Plugin extends QObject implements KXMLGUIClientInterface { to support enabling and disabling of plugins. @short Load the plugin libraries from the directories appropriate to <code>instance</code> and make the Plugin objects children of <code>parent.</code> */ - public static native void loadPlugins(QObject parent, KInstanceInterface instance); + public static native void loadPlugins(TQObject parent, KInstanceInterface instance); /** Load the plugin libraries specified by the list <code>docs</code> and make the Plugin objects children of <code>parent</code> . @@ -75,7 +75,7 @@ public class Plugin extends QObject implements KXMLGUIClientInterface { to support enabling and disabling of plugins. @short Load the plugin libraries specified by the list <code>docs</code> and make the Plugin objects children of <code>parent</code> . */ - // void loadPlugins(QObject* arg1,const QValueList<KParts::Plugin::PluginInfo>& arg2); >>>> NOT CONVERTED + // void loadPlugins(TQObject* arg1,const TQValueList<KParts::Plugin::PluginInfo>& arg2); >>>> NOT CONVERTED /** Load the plugin libraries specified by the list <code>pluginInfos</code>, make the Plugin objects children of <code>parent</code>, and use the given <code>instance.</code> @@ -83,7 +83,7 @@ public class Plugin extends QObject implements KXMLGUIClientInterface { to support enabling and disabling of plugins. @short Load the plugin libraries specified by the list <code>pluginInfos</code>, make the Plugin objects children of <code>parent</code>, and use the given <code>instance.</code> */ - // void loadPlugins(QObject* arg1,const QValueList<KParts::Plugin::PluginInfo>& arg2,const KInstance* arg3); >>>> NOT CONVERTED + // void loadPlugins(TQObject* arg1,const TQValueList<KParts::Plugin::PluginInfo>& arg2,const KInstance* arg3); >>>> NOT CONVERTED /** Load the plugin libraries for the given <code>instance</code>, make the Plugin objects children of <code>parent</code>, and insert the plugin as a child GUI client @@ -103,8 +103,8 @@ public class Plugin extends QObject implements KXMLGUIClientInterface { <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 ) { @@ -115,30 +115,30 @@ public class Plugin extends QObject implements KXMLGUIClientInterface { </pre> @short Load the plugin libraries for the given <code>instance</code>, make the Plugin objects children of <code>parent</code>, and insert the plugin as a child GUI client of <code>parentGUIClient.</code> */ - public static native void loadPlugins(QObject parent, KXMLGUIClientInterface parentGUIClient, KInstanceInterface instance, boolean enableNewPluginsByDefault); - public static native void loadPlugins(QObject parent, KXMLGUIClientInterface parentGUIClient, KInstanceInterface instance); + public static native void loadPlugins(TQObject parent, KXMLGUIClientInterface parentGUIClient, KInstanceInterface instance, boolean enableNewPluginsByDefault); + public static native void loadPlugins(TQObject parent, KXMLGUIClientInterface parentGUIClient, KInstanceInterface instance); /** Returns a list of plugin objects loaded for <code>parent.</code> This functions basically calls the queryList method of - QObject to retrieve the list of child objects inheriting + TQObject to retrieve the list of child objects inheriting KParts.Plugin . @short Returns a list of plugin objects loaded for <code>parent.</code> */ - // QPtrList<KParts::Plugin> pluginObjects(QObject* arg1); >>>> NOT CONVERTED + // TQPtrList<KParts::Plugin> pluginObjects(TQObject* arg1); >>>> NOT CONVERTED protected native void setInstance(KInstanceInterface instance); /** Look for plugins in the <code>instance</code>'s "data" directory (+"/kpartplugins") - @return A list of QDomDocument s, containing the parsed xml documents returned by plugins. + @return A list of TQDomDocument s, containing the parsed xml documents returned by plugins. @short Look for plugins in the <code>instance</code>'s "data" directory (+"/kpartplugins") */ - // QValueList<KParts::Plugin::PluginInfo> pluginInfos(const KInstance* arg1); >>>> NOT CONVERTED + // TQValueList<KParts::Plugin::PluginInfo> pluginInfos(const KInstance* arg1); >>>> NOT CONVERTED /** @return The plugin created from the library <code>libname</code> @short */ - protected static native Plugin loadPlugin(QObject parent, String libname); + protected static native Plugin loadPlugin(TQObject parent, String libname); /** Retrieves an action of the client by name. If not found, it looks in its child clients. This method is provided for convenience, as it uses actionCollection() @@ -147,21 +147,21 @@ public class Plugin extends QObject implements KXMLGUIClientInterface { */ public native KAction action(String name); /** - Retrieves an action for a given QDomElement. The default + Retrieves an action for a given TQDomElement. The default implementation uses the "name" attribute to query the action object via the other action() method. - @short Retrieves an action for a given QDomElement. + @short Retrieves an action for a given TQDomElement. */ - public native KAction action(QDomElement element); + public native KAction action(TQDomElement element); /** Retrieves the entire action collection for the GUI client. If you subclass KXMLGUIClient you should call - KActionCollection.setWidget( QWidget ) with this object, or + KActionCollection.setWidget( TQWidget ) with this object, or you will encounter subtle bugs with KAction keyboard shortcuts. This is not necessary if your KXMLGUIClient is a KMainWindow. @short Retrieves the entire action collection for the GUI client. @see KActionCollection#setWidget( - @see #org#kde#qt#QWidget* + @see #org#kde#qt#TQWidget* */ public native KActionCollection actionCollection(); /** @@ -171,21 +171,21 @@ public class Plugin extends QObject implements KXMLGUIClientInterface { */ public native KInstanceInterface instance(); /** - @return The parsed XML in a QDomDocument, set by + @return The parsed XML in a TQDomDocument, set by setXMLFile() or setXML(). This document describes the layout of the GUI. @short */ - public native QDomDocument domDocument(); + public native TQDomDocument domDocument(); /** @short */ - public native void setXMLGUIBuildDocument(QDomDocument doc); + public native void setXMLGUIBuildDocument(TQDomDocument doc); /** @short */ - public native QDomDocument xmlguiBuildDocument(); + public native TQDomDocument xmlguiBuildDocument(); /** This method is called by the KXMLGUIFactory as soon as the client is added to the KXMLGUIFactory's GUI. @@ -223,7 +223,7 @@ public class Plugin extends QObject implements KXMLGUIClientInterface { Retrieves a list of all child clients. @short Retrieves a list of all child clients. */ - // const QPtrList<KXMLGUIClient>* childClients(); >>>> NOT CONVERTED + // const TQPtrList<KXMLGUIClient>* childClients(); >>>> NOT CONVERTED /** A client can have an own KXMLGUIBuilder. Use this method to assign your builder instance to the client (so that the @@ -271,7 +271,7 @@ public class Plugin extends QObject implements KXMLGUIClientInterface { This tag will get expanded to a list of actions. In the example above ( a file manager with a dynamic file menu ), you would call <pre> - QPtrList<KAction> file_actions; + TQPtrList<KAction> file_actions; for( ... ) if( ... ) file_actions.append( cool_action ); @@ -287,7 +287,7 @@ public class Plugin extends QObject implements KXMLGUIClientInterface { menu too.. @short ActionLists are a way for XMLGUI to support dynamic lists of actions. */ - // void plugActionList(const QString& arg1,const QPtrList<KAction>& arg2); >>>> NOT CONVERTED + // void plugActionList(const TQString& arg1,const TQPtrList<KAction>& arg2); >>>> NOT CONVERTED /** The complement of plugActionList() ... @short The complement of plugActionList() . @@ -295,10 +295,10 @@ public class Plugin extends QObject implements KXMLGUIClientInterface { public native void unplugActionList(String name); public native void addStateActionEnabled(String state, String action); public native void addStateActionDisabled(String state, String action); - // KXMLGUIClient::StateChange getActionsToChangeForState(const QString& arg1); >>>> NOT CONVERTED - public native void beginXMLPlug(QWidget arg1); + // KXMLGUIClient::StateChange getActionsToChangeForState(const TQString& arg1); >>>> NOT CONVERTED + public native void beginXMLPlug(TQWidget arg1); public native void endXMLPlug(); - public native void prepareXMLUnplug(QWidget arg1); + public native void prepareXMLUnplug(TQWidget arg1); public static native String findMostRecentXMLFile(String[] files, StringBuffer doc); /** Sets the name of the rc file containing the XML for the part. @@ -330,8 +330,8 @@ public class Plugin extends QObject implements KXMLGUIClientInterface { setXMLFile or setXML . @short Sets the Document for the part, describing the layout of the GUI. */ - protected native void setDOMDocument(QDomDocument document, boolean merge); - protected native void setDOMDocument(QDomDocument document); + protected native void setDOMDocument(TQDomDocument document, boolean merge); + protected native void setDOMDocument(TQDomDocument document); /** This function will attempt to give up some memory after the GUI is built. It should never be used in apps where the GUI may be |