summaryrefslogtreecommitdiffstats
path: root/tdejava/koala/org/trinitydesktop/koala/KStdGuiItem.java
diff options
context:
space:
mode:
Diffstat (limited to 'tdejava/koala/org/trinitydesktop/koala/KStdGuiItem.java')
-rw-r--r--tdejava/koala/org/trinitydesktop/koala/KStdGuiItem.java183
1 files changed, 183 insertions, 0 deletions
diff --git a/tdejava/koala/org/trinitydesktop/koala/KStdGuiItem.java b/tdejava/koala/org/trinitydesktop/koala/KStdGuiItem.java
new file mode 100644
index 00000000..8c23bf6a
--- /dev/null
+++ b/tdejava/koala/org/trinitydesktop/koala/KStdGuiItem.java
@@ -0,0 +1,183 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.trinitydesktop.koala;
+
+import org.trinitydesktop.qt.Qt;
+import org.trinitydesktop.qt.QtSupport;
+
+/**
+
+ The various static methods returns standardized {@link KGuiItem}'s
+ conforming to the KDE UI Standards. Use them instead of creating
+ your own.
+ @author Holger Freyther <freyther@kde.org>
+
+ @short Provides a set of standardized KGuiItems.
+
+*/
+public class KStdGuiItem implements QtSupport {
+ private long _qt;
+ private boolean _allocatedInJavaWorld = true;
+ protected KStdGuiItem(Class dummy){}
+
+ /**
+ The back and forward items by default use the RTL settings for Hebrew
+ and Arab countries. If you want those actions to ignore the RTL value
+ and force 'Western' behavior instead, use the IgnoreRTL value instead.
+ @short The back and forward items by default use the RTL settings for Hebrew and Arab countries.
+ */
+ public static final int UseRTL = 0;
+ public static final int IgnoreRTL = 1;
+
+ public static final int Ok = 1;
+ public static final int Cancel = 2;
+ public static final int Yes = 3;
+ public static final int No = 4;
+ public static final int Discard = 5;
+ public static final int Save = 6;
+ public static final int DontSave = 7;
+ public static final int SaveAs = 8;
+ public static final int Apply = 9;
+ public static final int Clear = 10;
+ public static final int Help = 11;
+ public static final int Defaults = 12;
+ public static final int Close = 13;
+ public static final int Back = 14;
+ public static final int Forward = 15;
+ public static final int Print = 16;
+ public static final int Continue = 17;
+ public static final int Open = 18;
+ public static final int Quit = 19;
+ public static final int AdminMode = 20;
+ public static final int Reset = 21;
+ public static final int Delete = 22;
+ public static final int Insert = 23;
+ public static final int Configure = 24;
+ public static final int Find = 25;
+ public static final int Stop = 26;
+ public static final int Add = 27;
+ public static final int Remove = 28;
+ public static final int Test = 29;
+ public static final int Properties = 30;
+ public static final int Overwrite = 31;
+
+ public KStdGuiItem() {
+ newKStdGuiItem();
+ }
+ private native void newKStdGuiItem();
+ public static native KGuiItem guiItem(int ui_enum);
+ public static native String stdItem(int ui_enum);
+ public static native KGuiItem ok();
+ public static native KGuiItem cancel();
+ public static native KGuiItem yes();
+ public static native KGuiItem no();
+ public static native KGuiItem insert();
+ public static native KGuiItem discard();
+ public static native KGuiItem save();
+ public static native KGuiItem help();
+ public static native KGuiItem dontSave();
+ public static native KGuiItem saveAs();
+ public static native KGuiItem apply();
+ public static native KGuiItem clear();
+ public static native KGuiItem defaults();
+ public static native KGuiItem close();
+ public static native KGuiItem print();
+ /**
+ @short
+ */
+ public static native KGuiItem properties();
+ public static native KGuiItem reset();
+ /**
+ @short
+ */
+ public static native KGuiItem overwrite();
+ /**
+ Returns a KGuiItem suiting for cases where code or functionality
+ runs under root privileges. Used in conjunction with TDEConfig Modules.
+ @short Returns a KGuiItem suiting for cases where code or functionality runs under root privileges.
+ */
+ public static native KGuiItem adminMode();
+ /**
+ Returns a "continue" item. The short name is due to "continue" being a
+ reserved word in the C++ language.
+ @short Returns a "continue" item.
+ */
+ public static native KGuiItem cont();
+ /**
+ Returns a "delete" item. The short name is due to "delete" being a
+ reserved word in the C++ language.
+ @short Returns a "delete" item.
+ */
+ public static native KGuiItem del();
+ public static native KGuiItem open();
+ /**
+ Return a GUI item for a 'back' action, like Konqueror's back button.
+ This GUI item can optionally honor the user's setting for BiDi, so the
+ icon for right-to-left languages (Hebrew and Arab) has the arrow
+ pointing in the opposite direction.
+ By default the arrow points in the Western 'back' direction (i.e.
+ to the left). This is because usually you only want the Bidi aware
+ GUI item if you also want the 'forward' item. Those two are available
+ in the separate backAndForward() method.
+ @short Return a GUI item for a 'back' action, like Konqueror's back button.
+ */
+ public static native KGuiItem back(int useBidi);
+ public static native KGuiItem back();
+ /**
+ Return a GUI item for a 'forward' action, like Konqueror's forward
+ button. This GUI item can optionally honor the user's setting for BiDi,
+ so the icon for right-to-left languages (Hebrew and Arab) has the arrow
+ pointing in the opposite direction.
+ By default the arrow points in the Western 'forward' direction (i.e.
+ to the right). This is because usually you only want the Bidi aware
+ GUI item if you also want the 'back' item. Those two are available
+ in the separate backAndForward() method.
+ @short Return a GUI item for a 'forward' action, like Konqueror's forward button.
+ */
+ public static native KGuiItem forward(int useBidi);
+ public static native KGuiItem forward();
+ /**
+ Returns a "configure" item.
+ @short Returns a "configure" item.
+ */
+ public static native KGuiItem configure();
+ /**
+ Return both a back and a forward item. This function always returns
+ items that are aware of the Right-to-Left setting for Arab and Hebrew
+ locales. If you have a reason for wanting the 'Western' back/forward
+ buttons, please use the back() and forward() items instead.
+ @short Return both a back and a forward item.
+ */
+ // TQPair<KGuiItem, KGuiItem> backAndForward(); >>>> NOT CONVERTED
+ public static native KGuiItem quit();
+ /**
+ Returns a "find" item.
+ @short Returns a "find" item.
+ */
+ public static native KGuiItem find();
+ /**
+ Returns a "stop" item.
+ @short Returns a "stop" item.
+ */
+ public static native KGuiItem stop();
+ /**
+ Returns a "add" item.
+ @short Returns a "add" item.
+ */
+ public static native KGuiItem add();
+ /**
+ Returns a "remove" item.
+ @short Returns a "remove" item.
+ */
+ public static native KGuiItem remove();
+ /**
+ Returns a "test" item.
+ @short Returns a "test" item.
+ */
+ public static native KGuiItem test();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}