org.kde.koala
public class KURLRequester extends QHBox
UNKNOWN: A widget to request a filename/url from the user.
Constructor Summary | |
---|---|
protected | KURLRequester(Class dummy) |
KURLRequester(QWidget parent, String name)
Constructs a KURLRequester widget. | |
KURLRequester(QWidget parent) | |
KURLRequester() | |
KURLRequester(String url, QWidget parent, String name)
Constructs a KURLRequester widget with the initial URL url.
// TODO KDE4: Use KURL instead | |
KURLRequester(String url, QWidget parent) | |
KURLRequester(String url) | |
KURLRequester(QWidget editWidget, QWidget parent, String name)
Special constructor, which creates a KURLRequester widget with a custom
edit-widget. | |
KURLRequester(QWidget editWidget, QWidget parent) |
Method Summary | |
---|---|
KPushButton | button() |
String | className() |
void | clear()
Clears the lineedit/combobox. |
KComboBox | comboBox() |
KURLCompletion | completionObject() |
void | dispose() Delete the wrapped C++ instance ahead of finalize() |
KFileDialog | fileDialog()
Remove in KDE4? |
String | filter()
Returns the current filter for the file dialog. |
protected void | finalize() Deletes the wrapped C++ instance |
protected void | init() |
boolean | isDisposed() Has the wrapped C++ instance been deleted? |
KLineEdit | lineEdit()
It is provided so that you can e.g. set an own completion object
(e.g. |
QMetaObject | metaObject() |
int | mode()
Returns the current mode |
void | setCaption(String caption)
Sets the caption of the file dialog. |
void | setFilter(String filter)
Sets the filter for the file dialog. |
void | setKURL(KURL url)
Sets the url in the lineedit to url. |
void | setMode(int m)
Sets the mode of the file dialog.
|
void | setShowLocalProtocol(boolean b)
Enables/disables showing file:/ in the lineedit, when a local file has
been selected in the filedialog or was set via setURL().
|
void | setURL(String url)
Sets the url in the lineedit to url. Depending on the state of
showLocalProtocol(), file:/ on local files will be shown or not. |
boolean | showLocalProtocol() |
protected void | slotOpenDialog()
Called when the button is pressed to open the filedialog.
|
String | url() |
UNKNOWN: Constructs a KURLRequester widget.
url.
// TODO KDE4: Use KURL insteadUNKNOWN: Constructs a KURLRequester widget with the initial URL url.
UNKNOWN: Special constructor, which creates a KURLRequester widget with a custom edit-widget.
Returns: a pointer to the pushbutton. It is provided so that you can specify an own pixmap or a text, if you really need to.
UNKNOWN:
UNKNOWN: Clears the lineedit/combobox.
Returns: a pointer to the combobox, in case you have set one using the special constructor. Returns 0L otherwise.
UNKNOWN:
Returns: the KURLCompletion object used in the lineedit/combobox.
UNKNOWN:
Returns: a pointer to the filedialog You can use this to customize the dialog, e.g. to specify a filter. Never returns 0L.
UNKNOWN:
See Also: KFileDialog
UNKNOWN: Returns the current filter for the file dialog.
Returns: a pointer to the lineedit, either the default one, or the special one, if you used the special constructor.
UNKNOWN:
See Also: KFileDialog
UNKNOWN: Returns the current mode
UNKNOWN: Sets the caption of the file dialog.
See Also: KFileDialog
UNKNOWN: Sets the filter for the file dialog.
url.
UNKNOWN: Sets the url in the lineedit to url.
See Also: KFileDialog
UNKNOWN: Sets the mode of the file dialog.
See Also: KURLRequester
UNKNOWN: Enables/disables showing file:/ in the lineedit, when a local file has been selected in the filedialog or was set via setURL().
url.
Depending on the state of
showLocalProtocol(), file:/ on local files will be shown or not.UNKNOWN: Sets the url in the lineedit to url.
Returns: whether local files will be prefixed with file:/ in the lineedit
See Also: KURLRequester
UNKNOWN:
UNKNOWN: Called when the button is pressed to open the filedialog.
Returns: the current url in the lineedit. May be malformed, if the user entered something weird. ~user or environment variables are substituted for local files. // TODO KDE4: Use KURL so that the result is properly defined
UNKNOWN: