40 class KFileFilterCombo;
45 class KFileDialogPrivate;
92 ConfirmOverwrite = 0x01,
93 ShowInlinePreview = 0x02
95 Q_DECLARE_FLAGS(Options,
Option)
133 KUrl selectedUrl() const;
138 KUrl::List selectedUrls() const;
143 KUrl baseUrl() const;
163 void setUrl(const
KUrl &url,
bool clearforward = true);
170 void setSelection(const
QString& name);
189 void setOperationMode(
KFileDialog::OperationMode );
198 OperationMode operationMode() const;
211 void setKeepLocation(
bool keep );
217 bool keepsLocation() const;
266 void setFilter(const
QString& filter);
309 QString currentMimeFilter() const;
335 void setInlinePreviewShown(
bool show);
346 void setConfirmOverwrite(
bool enable);
349 virtual
QSize sizeHint() const;
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() );
431 static KUrl getOpenUrl( const KUrl& startDir = KUrl(),
432 const QString& filter = QString(),
434 const QString& caption = QString() );
457 static KUrl::List getOpenUrls( const KUrl& startDir = KUrl(),
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,
555 static KUrl getSaveUrl( const KUrl& startDir = KUrl(),
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 );
767 void fileSelected(
const KUrl&);
771 QT_MOC_COMPAT
void fileSelected(
const QString&);
778 void fileHighlighted(
const KUrl&);
782 QT_MOC_COMPAT
void fileHighlighted(
const QString&);
792 void selectionChanged();
804 void filterChanged(
const QString& filter );
810 virtual void keyPressEvent( QKeyEvent *e );
815 virtual void hideEvent( QHideEvent *event );
818 virtual void slotOk();
819 virtual void accept();
820 virtual void slotCancel();
825 KFileDialogPrivate * const d;
KFile is a class which provides a namespace for some enumerated values associated with the kfile libr...
This combobox shows a number of recent URLs/directories, as well as some default directories.
Provides a user (and developer) friendly way to select files and directories.
QStringList types(Mode mode=Writing)
Returns a list of all KImageIO supported formats.
OperationMode
Defines some default behavior of the filedialog.
Option
Defines the options to use when calling getSave* functions.