KFile
kfilewidget.h
Go to the documentation of this file.
OperationMode
Definition kfilefiltercombo.h:30
virtual void setSelection(const QString &name)
Sets the file name to preselect to name.
Definition kfilewidget.cpp:1509
static KUrl getStartUrl(const KUrl &startDir, QString &recentDirClass)
This method implements the logic to determine the user's default directory to be listed.
Definition kfilewidget.cpp:2558
virtual void setFilter(const QString &filter)
Sets the filter to be used to filter.
Definition kfilewidget.cpp:661
virtual QString selectedFile() const
Returns the full path of the selected file in the local filesystem.
Definition kfilewidget.cpp:1700
void accepted()
Emitted by slotOk() (directly or asynchronously) once everything has been done.
virtual void virtual_hook(int id, void *data)
Definition kfilewidget.cpp:2720
static void setStartDir(const KUrl &directory)
Definition kfilewidget.cpp:2660
QT_MOC_COMPAT void fileSelected(const QString &)
KFileWidget(const KUrl &startDir, QWidget *parent)
Constructs a file selector widget.
Definition kfilewidget.cpp:319
virtual OperationMode operationMode() const
Definition kfilewidget.cpp:2000
void readConfig(KConfigGroup &group)
reads the configuration for this widget from the given config group
Definition kfilewidget.cpp:2748
virtual void setUrl(const KUrl &url, bool clearforward=true)
Sets the directory to view.
Definition kfilewidget.cpp:1420
virtual void setLocationLabel(const QString &text)
Sets the text to be displayed in front of the selection.
Definition kfilewidget.cpp:656
virtual void slotOk()
Called when clicking ok (when this widget is used in KFileDialog) Might or might not call accept().
Definition kfilewidget.cpp:766
virtual void setKeepLocation(bool keep)
Sets whether the filename/url should be kept when changing directories.
Definition kfilewidget.cpp:1964
KActionCollection * actionCollection() const
Definition kfilewidget.cpp:2469
virtual QStringList selectedFiles() const
Returns a list of all selected local files.
Definition kfilewidget.cpp:1717
virtual void setOperationMode(OperationMode)
Sets the operational mode of the filedialog to Saving, Opening or Other.
Definition kfilewidget.cpp:1974
QT_MOC_COMPAT void fileHighlighted(const QString &)
void selectionChanged()
Emitted when the user hilights one or more files in multiselection mode.
void filterChanged(const QString &filter)
Emitted when the filter changed, i.e.
virtual void resizeEvent(QResizeEvent *event)
Definition kfilewidget.cpp:1749
virtual QString currentMimeFilter() const
The mimetype for the desired output format.
Definition kfilewidget.cpp:722
void fileHighlighted(const KUrl &)
Emitted when the user highlights a file.
virtual void setMimeFilter(const QStringList &types, const QString &defaultType=QString())
Sets the filter up to specify the output type.
Definition kfilewidget.cpp:696
virtual void setCustomWidget(QWidget *widget)
Set a custom widget that should be added to the file dialog.
Definition kfilewidget.cpp:2687
virtual void setPreviewWidget(KPreviewWidgetBase *w)
Adds a preview widget and enters the preview mode.
Definition kfilewidget.cpp:736
virtual QString currentFilter() const
Returns the current filter as entered by the user or one of the predefined set via setFilter().
Definition kfilewidget.cpp:691
virtual bool eventFilter(QObject *watched, QEvent *event)
Definition kfilewidget.cpp:1777
virtual KMimeType::Ptr currentFilterMimeType()
Returns the mimetype for the desired output format.
Definition kfilewidget.cpp:731
KSharedPtr< KMimeType > Ptr
This file is part of the KDE documentation.
Documentation copyright © 1996-2026 The KDE developers.
Generated on by doxygen 1.18.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2026 The KDE developers.
Generated on by doxygen 1.18.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.