diff options
Diffstat (limited to 'kdejava/koala/org/kde/koala/KPopupMenu.java')
-rw-r--r-- | kdejava/koala/org/kde/koala/KPopupMenu.java | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/kdejava/koala/org/kde/koala/KPopupMenu.java b/kdejava/koala/org/kde/koala/KPopupMenu.java index c3fff51a..75043bdf 100644 --- a/kdejava/koala/org/kde/koala/KPopupMenu.java +++ b/kdejava/koala/org/kde/koala/KPopupMenu.java @@ -2,24 +2,24 @@ package org.kde.koala; import org.kde.qt.Qt; -import org.kde.qt.QHideEvent; -import org.kde.qt.QMetaObject; +import org.kde.qt.TQHideEvent; +import org.kde.qt.TQMetaObject; import org.kde.qt.QtSupport; -import org.kde.qt.QCloseEvent; -import org.kde.qt.QPopupMenu; -import org.kde.qt.QPixmap; -import org.kde.qt.QPoint; -import org.kde.qt.QContextMenuEvent; -import org.kde.qt.QMouseEvent; -import org.kde.qt.QKeyEvent; -import org.kde.qt.QWidget; -import org.kde.qt.QPopupMenu; +import org.kde.qt.TQCloseEvent; +import org.kde.qt.TQPopupMenu; +import org.kde.qt.TQPixmap; +import org.kde.qt.TQPoint; +import org.kde.qt.TQContextMenuEvent; +import org.kde.qt.TQMouseEvent; +import org.kde.qt.TQKeyEvent; +import org.kde.qt.TQWidget; +import org.kde.qt.TQPopupMenu; /** KPopupMenu is a class for menus with standard title items and keyboard accessibility for popups with many options and/or varying options. It acts - identically to QPopupMenu, with the addition of insertTitle(), + identically to TQPopupMenu, with the addition of insertTitle(), changeTitle(), setKeyboardShortcutsEnabled() and setKeyboardShortcutsExecute() methods. The titles support a text string, an icon, plus user defined gradients, @@ -32,24 +32,24 @@ import org.kde.qt.QPopupMenu; @short A menu with title items. */ -public class KPopupMenu extends QPopupMenu { +public class KPopupMenu extends TQPopupMenu { protected KPopupMenu(Class dummy){super((Class) null);} - public native QMetaObject metaObject(); + public native TQMetaObject metaObject(); public native String className(); /** Constructs a KPopupMenu. @short Constructs a KPopupMenu. */ - public KPopupMenu(QWidget parent, String name) { + public KPopupMenu(TQWidget parent, String name) { super((Class) null); newKPopupMenu(parent,name); } - private native void newKPopupMenu(QWidget parent, String name); - public KPopupMenu(QWidget parent) { + private native void newKPopupMenu(TQWidget parent, String name); + public KPopupMenu(TQWidget parent) { super((Class) null); newKPopupMenu(parent); } - private native void newKPopupMenu(QWidget parent); + private native void newKPopupMenu(TQWidget parent); public KPopupMenu() { super((Class) null); newKPopupMenu(); @@ -66,9 +66,9 @@ public class KPopupMenu extends QPopupMenu { Inserts a title item with the given icon and title. @short Inserts a title item with the given icon and title. */ - public native int insertTitle(QPixmap icon, String text, int id, int index); - public native int insertTitle(QPixmap icon, String text, int id); - public native int insertTitle(QPixmap icon, String text); + public native int insertTitle(TQPixmap icon, String text, int id, int index); + public native int insertTitle(TQPixmap icon, String text, int id); + public native int insertTitle(TQPixmap icon, String text); /** Changes the title of the item at the specified id. If a icon was previously set it is cleared. @@ -79,7 +79,7 @@ public class KPopupMenu extends QPopupMenu { Changes the title and icon of the title item at the specified id. @short Changes the title and icon of the title item at the specified id. */ - public native void changeTitle(int id, QPixmap icon, String text); + public native void changeTitle(int id, TQPixmap icon, String text); /** Returns the title of the title item at the specified id. The default id of -1 is for backwards compatibility only, you should always specify @@ -92,7 +92,7 @@ public class KPopupMenu extends QPopupMenu { Returns the icon of the title item at the specified id. @short Returns the icon of the title item at the specified id. */ - public native QPixmap titlePixmap(int id); + public native TQPixmap titlePixmap(int id); /** Enables keyboard navigation by searching for the entered key sequence. Also underlines the currently selected item, providing feedback on the search. @@ -115,7 +115,7 @@ public class KPopupMenu extends QPopupMenu { Returns the context menu associated with this menu @short Returns the context menu associated with this menu */ - public native QPopupMenu contextMenu(); + public native TQPopupMenu contextMenu(); /** Hides the context menu if shown @short Hides the context menu if shown @@ -142,18 +142,18 @@ public class KPopupMenu extends QPopupMenu { @short returns the ID of the menuitem associated with the current context menu */ public static native int contextMenuFocusItem(); - protected native void closeEvent(QCloseEvent arg1); - protected native void keyPressEvent(QKeyEvent e); - protected native void mouseReleaseEvent(QMouseEvent e); - protected native void mousePressEvent(QMouseEvent e); + protected native void closeEvent(TQCloseEvent arg1); + protected native void keyPressEvent(TQKeyEvent e); + protected native void mouseReleaseEvent(TQMouseEvent e); + protected native void mousePressEvent(TQMouseEvent e); protected native boolean focusNextPrevChild(boolean next); - protected native void contextMenuEvent(QContextMenuEvent e); - protected native void hideEvent(QHideEvent arg1); + protected native void contextMenuEvent(TQContextMenuEvent e); + protected native void hideEvent(TQHideEvent arg1); protected native String underlineText(String text, int length); protected native void resetKeyboardVars(boolean noMatches); protected native void resetKeyboardVars(); protected native void itemHighlighted(int whichItem); - protected native void showCtxMenu(QPoint pos); + protected native void showCtxMenu(TQPoint pos); protected native void ctxMenuHiding(); protected native void ctxMenuHideShowingMenu(); /** Deletes the wrapped C++ instance */ |