KIO
Go to the documentation of this file.
40 class KFileFilterCombo;
45 class KFileDialogPrivate;
92 ConfirmOverwrite = 0x01,
93 ShowInlinePreview = 0x02
95 Q_DECLARE_FLAGS(Options,
Option)
133 KUrl selectedUrl()
const;
143 KUrl baseUrl()
const;
149 QString selectedFile()
const;
154 QStringList selectedFiles()
const;
163 void setUrl(
const KUrl &url,
bool clearforward =
true);
170 void setSelection(
const QString& name);
198 OperationMode operationMode()
const;
211 void setKeepLocation(
bool keep );
217 bool keepsLocation()
const;
266 void setFilter(
const QString& filter);
275 QString currentFilter()
const;
298 void setMimeFilter(
const QStringList&
types,
299 const QString& defaultType = QString() );
309 QString currentMimeFilter()
const;
335 void setInlinePreviewShown(
bool show);
346 void setConfirmOverwrite(
bool enable);
370 static QString getOpenFileName(
const KUrl& startDir=
KUrl(),
371 const QString& filter= QString(),
373 const QString& caption = QString() );
382 static QString getOpenFileNameWId(
const KUrl& startDir,
383 const QString& filter,
384 WId parent_id,
const QString& caption );
405 static QStringList getOpenFileNames(
const KUrl& startDir=
KUrl(),
406 const QString& filter = QString(),
408 const QString& caption= QString() );
432 const QString& filter = QString(),
434 const QString& caption = QString() );
458 const QString& filter = QString(),
460 const QString& caption = QString() );
483 static QString getSaveFileName(
const KUrl& startDir =
KUrl(),
484 const QString& filter = QString(),
486 const QString& caption = QString() );
510 static QString getSaveFileName(
const KUrl& startDir,
511 const QString& filter,
513 const QString& caption,
521 static QString getSaveFileNameWId(
const KUrl &startDir,
const QString& filter,
523 const QString& caption );
531 static QString getSaveFileNameWId(
const KUrl &startDir,
const QString& filter,
533 const QString& caption,
556 const QString& filter = QString(),
558 const QString& caption = QString() );
582 static KUrl getSaveUrl(
const KUrl& startDir,
583 const QString& filter,
585 const QString& caption,
602 static QString getExistingDirectory(
const KUrl& startDir =
KUrl(),
604 const QString& caption= QString() );
620 static KUrl getExistingDirectoryUrl(
const KUrl& startDir =
KUrl(),
622 const QString& caption= QString() );
636 static KUrl getImageOpenUrl(
const KUrl& startDir =
KUrl(),
638 const QString& caption = QString() );
661 void setMode( KFile::Modes m );
667 KFile::Modes mode()
const;
676 void setLocationLabel(
const QString& text);
720 KFileFilterCombo *filterWidget()
const;
744 static KUrl getStartUrl(
const KUrl& startDir, QString& recentDirClass );
750 static void setStartDir(
const KUrl& directory );
815 virtual void hideEvent( QHideEvent *event );
818 virtual void slotOk();
819 virtual void accept();
820 virtual void slotCancel();
825 KFileDialogPrivate *
const d;
QT_MOC_COMPAT void fileHighlighted(const QString &)
Provides a user (and developer) friendly way to select files and directories.
void fileHighlighted(const KUrl &)
Emitted when the user highlights a file.
QStringList types(Mode mode=Writing)
Returns a list of all KImageIO supported formats.
virtual QSize sizeHint() const
This combobox shows a number of recent URLs/directories, as well as some default directories.
void fileSelected(const KUrl &)
Emitted when the user selects a file.
virtual void hideEvent(QHideEvent *)
OperationMode
Defines some default behavior of the filedialog.
void selectionChanged()
Emitted when the user hilights one or more files in multiselection mode.
virtual void keyPressEvent(QKeyEvent *)
void filterChanged(const QString &filter)
Emitted when the filter changed, i.e.
Option
Defines the options to use when calling getSave* functions.
QT_MOC_COMPAT void fileSelected(const QString &)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Aug 27 2020 00:00:00 by
doxygen 1.8.20 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.