diff options
Diffstat (limited to 'kdejava/koala/org/kde/koala/KOpenWithDlg.java')
-rw-r--r-- | kdejava/koala/org/kde/koala/KOpenWithDlg.java | 162 |
1 files changed, 162 insertions, 0 deletions
diff --git a/kdejava/koala/org/kde/koala/KOpenWithDlg.java b/kdejava/koala/org/kde/koala/KOpenWithDlg.java new file mode 100644 index 00000000..114d105f --- /dev/null +++ b/kdejava/koala/org/kde/koala/KOpenWithDlg.java @@ -0,0 +1,162 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.kde.koala; + +import org.kde.qt.Qt; +import org.kde.qt.QMetaObject; +import org.kde.qt.QtSupport; +import java.util.ArrayList; +import org.kde.qt.QWidget; +import org.kde.qt.QDialog; + +/** + + "Open with" dialog box. + Used automatically by KRun, and used by libkonq. + @author David Faure <faure@kde.org> + + @short "Open with" dialog box. + +*/ +public class KOpenWithDlg extends QDialog { + protected KOpenWithDlg(Class dummy){super((Class) null);} + public native QMetaObject metaObject(); + public native String className(); + /** + Create a dialog that asks for a application to open a given + URL(s) with. + @param urls the URLs that should be opened. The list can be empty, + if the dialog is used to choose an application but not for some particular URLs. + @param parent parent widget + @short Create a dialog that asks for a application to open a given URL(s) with. + */ + public KOpenWithDlg(ArrayList urls, QWidget parent) { + super((Class) null); + newKOpenWithDlg(urls,parent); + } + private native void newKOpenWithDlg(ArrayList urls, QWidget parent); + public KOpenWithDlg(ArrayList urls) { + super((Class) null); + newKOpenWithDlg(urls); + } + private native void newKOpenWithDlg(ArrayList urls); + /** + Create a dialog that asks for a application to open a given + URL(s) with. + @param urls is the URL that should be opened + @param text appears as a label on top of the entry box. + @param value is the initial value of the line + @param parent parent widget + @short Create a dialog that asks for a application to open a given URL(s) with. + */ + public KOpenWithDlg(ArrayList urls, String text, String value, QWidget parent) { + super((Class) null); + newKOpenWithDlg(urls,text,value,parent); + } + private native void newKOpenWithDlg(ArrayList urls, String text, String value, QWidget parent); + public KOpenWithDlg(ArrayList urls, String text, String value) { + super((Class) null); + newKOpenWithDlg(urls,text,value); + } + private native void newKOpenWithDlg(ArrayList urls, String text, String value); + /** + Create a dialog to select a service for a given service type. + Note that this dialog doesn't apply to URLs. + @param serviceType the service type we want to choose an application for. + @param value is the initial value of the line + @param parent parent widget + @short Create a dialog to select a service for a given service type. + */ + public KOpenWithDlg(String serviceType, String value, QWidget parent) { + super((Class) null); + newKOpenWithDlg(serviceType,value,parent); + } + private native void newKOpenWithDlg(String serviceType, String value, QWidget parent); + public KOpenWithDlg(String serviceType, String value) { + super((Class) null); + newKOpenWithDlg(serviceType,value); + } + private native void newKOpenWithDlg(String serviceType, String value); + /** + Create a dialog to select an application + Note that this dialog doesn't apply to URLs. + @param parent parent widget + @short Create a dialog to select an application Note that this dialog doesn't apply to URLs. + */ + public KOpenWithDlg(QWidget parent) { + super((Class) null); + newKOpenWithDlg(parent); + } + private native void newKOpenWithDlg(QWidget parent); + public KOpenWithDlg() { + super((Class) null); + newKOpenWithDlg(); + } + private native void newKOpenWithDlg(); + /** + @return the text the user entered + + @short + */ + public native String text(); + /** + Hide the "Do not &close when command exits" Checkbox + @short Hide the "Do not &close when command exits" Checkbox + */ + public native void hideNoCloseOnExit(); + /** + Hide the "Run in &terminal" Checkbox + @short Hide the "Run in &terminal" Checkbox + */ + public native void hideRunInTerminal(); + /** + @return the chosen service in the application tree + Can be null, if the user typed some text and didn't select a service. + + @short + */ + // KService::Ptr service(); >>>> NOT CONVERTED + /** + Set whether a new .desktop file should be created if the user selects an + application for which no corresponding .desktop file can be found. + Regardless of this setting a new .desktop file may still be created if + the user has chosen to remember the file association. + The default is false: no .desktop files are created. + @short Set whether a new . + */ + public native void setSaveNewApplications(boolean b); + /** + The slot for clearing the edit widget + @short The slot for clearing the edit widget + */ + public native void slotClear(); + public native void slotSelected(String _name, String _exec); + public native void slotHighlighted(String _name, String _exec); + public native void slotTextChanged(); + public native void slotTerminalToggled(boolean arg1); + public native void slotDbClick(); + public native void slotOK(); + /** + Determine service type from URLs + @short Determine service type from URLs + */ + protected native void setServiceType(ArrayList _urls); + /** + Create a dialog that asks for a application to open a given + URL(s) with. + @param text appears as a label on top of the entry box. + @param value is the initial value of the line + @short Create a dialog that asks for a application to open a given URL(s) with. + */ + protected native void init(String text, String value); + /** + Reimplemented from QDialog.accept() to save history of the combobox + @short Reimplemented from QDialog.accept() to save history of the combobox + */ + protected native void accept(); + /** 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(); +} |