KIO
kabstractfilewidget.h
Go to the documentation of this file.
virtual void setUrl(const KUrl &url, bool clearforward=true)=0
Sets the directory to view.
virtual KFileFilterCombo * filterWidget() const =0
virtual KUrl selectedUrl() const =0
virtual void setSelection(const QString &name)=0
Sets the file name to preselect to name.
virtual void setOperationMode(OperationMode)=0
Sets the operational mode of the filedialog to Saving, Opening or Other.
virtual void setFilter(const QString &filter)=0
Sets the filter to be used to filter.
virtual QString selectedFile() const =0
Returns the full path of the selected file in the local filesystem.
virtual bool keepsLocation() const =0
virtual void accept()=0
virtual void setMimeFilter(const QStringList &types, const QString &defaultType=QString())=0
Sets the filter up to specify the output type.
virtual KUrl::List selectedUrls() const =0
virtual void setCustomWidget(QWidget *widget)=0
Set a custom widget that should be added to the bottom of the file dialog.
virtual KUrl baseUrl() const =0
virtual void setLocationLabel(const QString &text)=0
Sets the text to be displayed in front of the selection.
virtual KPushButton * cancelButton() const =0
virtual QStringList selectedFiles() const =0
Returns a list of all selected local files.
virtual void slotCancel()=0
virtual KMimeType::Ptr currentFilterMimeType()=0
Returns the mimetype for the desired output format.
virtual void setPreviewWidget(KPreviewWidgetBase *w)=0
Adds a preview widget and enters the preview mode.
virtual void slotOk()=0
Called when clicking ok (when this widget is used in KFileDialog) Might or might not call accept().
virtual KPushButton * okButton() const =0
void setConfirmOverwrite(bool enable)
Sets whether the user should be asked for confirmation when an overwrite might occurr.
Definition: kabstractfilewidget.h:383
virtual OperationMode operationMode() const =0
virtual void setKeepLocation(bool keep)=0
Sets whether the filename/url should be kept when changing directories.
virtual QString currentMimeFilter() const =0
The mimetype for the desired output format.
virtual ~KAbstractFileWidget()
Definition: kabstractfilewidget.h:60
void setInlinePreviewShown(bool show)
Forces the inline previews to be shown or hidden, depending on show.
Definition: kabstractfilewidget.h:393
virtual QString currentFilter() const =0
Returns the current filter as entered by the user or one of the predefined set via setFilter().
virtual KActionCollection * actionCollection() const =0
virtual KUrlComboBox * locationEdit() const =0
virtual void virtual_hook(int id, void *data)=0
virtual void setCustomWidget(const QString &text, QWidget *widget)=0
Sets a custom widget that should be added below the location and the filter editors.
Abstract baseclass for all preview widgets which shall be used via KFileDialog::setPreviewWidget(cons...
Definition: kpreviewwidgetbase.h:44
This combobox shows a number of recent URLs/directories, as well as some default directories.
Definition: kurlcombobox.h:48
Other
QStringList types(Mode mode=Writing)
Returns a list of all KImageIO supported formats.
Definition: kimageio.cpp:82
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Feb 3 2022 00:00:00 by doxygen 1.9.1 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Feb 3 2022 00:00:00 by doxygen 1.9.1 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.