#include <kurlrequester.h>
Public Slots | |
| void | setURL (const QString &url) |
| virtual void | setCaption (const QString &caption) |
| void | clear () |
Signals | |
| void | textChanged (const QString &) |
| void | returnPressed () |
| void | returnPressed (const QString &) |
| void | openFileDialog (KURLRequester *) |
| void | urlSelected (const QString &) |
Public Methods | |
| KURLRequester (QWidget *parent=0, const char *name=0) | |
| KURLRequester (const QString &url, QWidget *parent=0, const char *name=0) | |
| KURLRequester (QWidget *editWidget, QWidget *parent, const char *name=0) | |
| ~KURLRequester () | |
| QString | url () const |
| void | setShowLocalProtocol (bool b) |
| void | setMode (unsigned int m) |
| void | setFilter (const QString &filter) |
| bool | showLocalProtocol () const |
| virtual KFileDialog * | fileDialog () const |
| KLineEdit * | lineEdit () const |
| KComboBox * | comboBox () const |
| KPushButton * | button () const |
| KURLCompletion * | completionObject () const |
| KEditListBox::CustomEditor | customEditor () |
Protected Slots | |
| void | slotOpenDialog () |
This class is a widget showing a lineedit and a button, which invokes a filedialog. File name completion is available in the lineedit.
The defaults for the filedialog are to ask for one existing local file, i.e. KFileDialog::setMode( KFile::File | KFile::ExistingOnly | KFile::LocalOnly ) The default filter is "*", i.e. show all files, and the start directory is the current working directory, or the last directory where a file has been selected.
You can change this behavior by using setMode() or setFilter().
Definition at line 54 of file kurlrequester.h.
|
||||||||||||
|
Constructs a KURLRequester widget. |
|
||||||||||||||||
|
Constructs a KURLRequester widget with the initial URL |
|
||||||||||||||||
|
Special constructor, which creates a KURLRequester widget with a custom edit-widget. The edit-widget can be either a KComboBox or a KLineEdit (or inherited thereof). Note: for geometry management reasons, the edit-widget is reparented to have the KURLRequester as parent.
|
|
|
Destructs the KURLRequester. |
|
|
|
|
|
Clears the lineedit/combobox. |
|
|
|
|
|
Definition at line 150 of file kurlrequester.h. |
|
|
|
|
|
|
|
|
|
|
|
Emitted before the filedialog is going to open. Connect to this signal to "configure" the filedialog, e.g. set the filefilter, the mode, a preview-widget, etc. It's usually not necessary to set a URL for the filedialog, as it will get set properly from the editfield contents. If you use multiple KURLRequesters, you can connect all of them to the same slot and use the given KURLRequester pointer to know which one is going to open. |
|
|
Emitted when return or enter was pressed in the lineedit. The parameter contains the contents of the lineedit. |
|
|
Emitted when return or enter was pressed in the lineedit. |
|
|
@reimp Sets the caption of the file dialog.
|
|
|
Sets the filter for the file dialog.
|
|
|
Sets the mode of the file dialog. Note: you can only select one file with the filedialog, so KFile::Files doesn't make much sense.
|
|
|
Enables/disables showing file:/ in the lineedit, when a local file has been selected in the filedialog or was set via setURL(). Default is false, not showing file:/
|
|
|
Sets the url in the lineedit to
|
|
|
Definition at line 117 of file kurlrequester.h. |
|
|
Called when the button is pressed to open the filedialog. Also called when KStdAccel::Open (default is Ctrl-O) is pressed. |
|
|
Emitted when the text in the lineedit changes. The parameter contains the contents of the lineedit.
|
|
|
|
|
|
Emitted when the user changed the URL via the file dialog. The parameter contains the contents of the lineedit. |
1.2.18