.TH "KFileDialog" 3 "28 Jan 2004" "kio Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KFileDialog \- Provides a user (and developer) friendly way to select files and directories. A file selection dialog.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <kfiledialog.h>\fP
.PP
Inherits \fBKDialogBase\fP.
.PP
.SS "Public Types"

.in +1c
.ti -1c
.RI "enum \fBOperationMode\fP { \fBOther\fP =  0, \fBOpening\fP, \fBSaving\fP }"
.br
.RI "\fIDefines some default behavior of the filedialog. \fP"
.in -1c
.SS "Signals"

.in +1c
.ti -1c
.RI "void \fBfileSelected\fP (const  \fBQString\fP &)"
.br
.RI "\fIEmitted when the user selects a file. \fP"
.ti -1c
.RI "void \fBfileHighlighted\fP (const  \fBQString\fP &)"
.br
.RI "\fIEmitted when the user highlights a file. \fP"
.ti -1c
.RI "void \fBselectionChanged\fP ()"
.br
.RI "\fIEmitted when the user hilights one or more files in multiselection mode. \fP"
.ti -1c
.RI "void \fBfilterChanged\fP (const  \fBQString\fP &filter)"
.br
.RI "\fIEmitted when the filter changed, i.e. \fP"
.in -1c
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKFileDialog\fP (const  \fBQString\fP &startDir, const  \fBQString\fP &filter, \fBQWidget\fP *parent, const  char *name, bool modal)"
.br
.RI "\fIConstructs a file dialog. \fP"
.ti -1c
.RI "\fBKFileDialog\fP (const  \fBQString\fP &startDir, const  \fBQString\fP &filter, \fBQWidget\fP *parent, const  char *name, bool modal, \fBQWidget\fP *widget)"
.br
.RI "\fIConstructs a file dialog. \fP"
.ti -1c
.RI "\fB~KFileDialog\fP ()"
.br
.RI "\fIDestructs the file dialog. \fP"
.ti -1c
.RI "\fBKURL\fP \fBselectedURL\fP () const "
.br
.ti -1c
.RI "\fBKURL::List\fP \fBselectedURLs\fP () const "
.br
.ti -1c
.RI "\fBKURL\fP \fBbaseURL\fP () const "
.br
.ti -1c
.RI "\fBQString\fP \fBselectedFile\fP () const "
.br
.RI "\fIReturns the full path of the selected file in the local filesystem. \fP"
.ti -1c
.RI "\fBQStringList\fP \fBselectedFiles\fP () const "
.br
.RI "\fIReturns a list of all selected local files. \fP"
.ti -1c
.RI "void \fBsetURL\fP (const  \fBKURL\fP &url, bool clearforward=true)"
.br
.RI "\fISets the directory to view. \fP"
.ti -1c
.RI "void \fBsetSelection\fP (const  \fBQString\fP &name)"
.br
.RI "\fISets the file name to preselect to \fCname\fP. \fP"
.ti -1c
.RI "void \fBsetOperationMode\fP (\fBKFileDialog::OperationMode\fP)"
.br
.RI "\fISets the operational mode of the filedialog to \fCSaving\fP, \fCOpening\fP or \fCOther\fP. \fP"
.ti -1c
.RI "\fBOperationMode\fP \fBoperationMode\fP () const "
.br
.ti -1c
.RI "void \fBsetKeepLocation\fP (bool keep)"
.br
.RI "\fISets whether the filename/url should be kept when changing directories. \fP"
.ti -1c
.RI "bool \fBkeepsLocation\fP () const "
.br
.ti -1c
.RI "void \fBsetFilter\fP (const  \fBQString\fP &filter)"
.br
.RI "\fISets the filter to be used to \fCfilter\fP. \fP"
.ti -1c
.RI "\fBQString\fP \fBcurrentFilter\fP () const "
.br
.RI "\fIReturns the current filter as entered by the user or one of the predefined set via \fBsetFilter\fP(). \fP"
.ti -1c
.RI "void \fBsetFilterMimeType\fP (const  \fBQString\fP &label, const  \fBKMimeType::List\fP &types, const  \fBKMimeType::Ptr\fP &defaultType)"
.br
.RI "\fISets the filter up to specify the output type. \fP"
.ti -1c
.RI "\fBKMimeType::Ptr\fP \fBcurrentFilterMimeType\fP ()"
.br
.RI "\fIReturns the mimetype for the desired output format. \fP"
.ti -1c
.RI "void \fBsetMimeFilter\fP (const  \fBQStringList\fP &types, const  \fBQString\fP &defaultType=QString::null)"
.br
.RI "\fISets the filter up to specify the output type. \fP"
.ti -1c
.RI "\fBQString\fP \fBcurrentMimeFilter\fP () const "
.br
.RI "\fIThe mimetype for the desired output format. \fP"
.ti -1c
.RI "void \fBclearFilter\fP ()"
.br
.RI "\fIClears any mime- or namefilter. \fP"
.ti -1c
.RI "void \fBsetPreviewWidget\fP (const  \fBQWidget\fP *w)"
.br
.RI "\fI\fBThis class or method is obsolete, it is provided for compatibility only.\fP Add a preview widget and enter the preview mode. \fP"
.ti -1c
.RI "void \fBsetPreviewWidget\fP (const  \fBKPreviewWidgetBase\fP *w)"
.br
.RI "\fIAdds a preview widget and enters the preview mode. \fP"
.ti -1c
.RI "virtual void \fBshow\fP ()"
.br
.ti -1c
.RI "void \fBsetMode\fP (\fBKFile::Mode\fP m)"
.br
.RI "\fI\fBThis class or method is obsolete, it is provided for compatibility only.\fP use \fBsetMode\fP( unsigned int ) instead \fP"
.ti -1c
.RI "void \fBsetMode\fP (unsigned int m)"
.br
.RI "\fISets the mode of the dialog. \fP"
.ti -1c
.RI "\fBKFile::Mode\fP \fBmode\fP () const "
.br
.RI "\fIReturns the mode of the filedialog. \fP"
.ti -1c
.RI "void \fBsetLocationLabel\fP (const  \fBQString\fP &text)"
.br
.RI "\fISets the text to be displayed in front of the selection. \fP"
.ti -1c
.RI "\fBKToolBar\fP * \fBtoolBar\fP () const "
.br
.RI "\fIReturns a pointer to the toolbar. \fP"
.ti -1c
.RI "\fBKPushButton\fP * \fBokButton\fP () const "
.br
.ti -1c
.RI "\fBKPushButton\fP * \fBcancelButton\fP () const "
.br
.ti -1c
.RI "\fBKActionCollection\fP * \fBactionCollection\fP () const "
.br
.ti -1c
.RI "int \fBpathComboIndex\fP ()"
.br
.in -1c
.SS "Static Public Member Functions"

.in +1c
.ti -1c
.RI "\fBQString\fP \fBgetOpenFileName\fP (const  \fBQString\fP &startDir=QString::null, const  \fBQString\fP &filter=QString::null, \fBQWidget\fP *parent=0, const  \fBQString\fP &caption=QString::null)"
.br
.RI "\fICreates a modal file dialog and return the selected filename or an empty string if none was chosen. \fP"
.ti -1c
.RI "\fBQStringList\fP \fBgetOpenFileNames\fP (const  \fBQString\fP &startDir=QString::null, const  \fBQString\fP &filter=QString::null, \fBQWidget\fP *parent=0, const  \fBQString\fP &caption=QString::null)"
.br
.RI "\fICreates a modal file dialog and returns the selected filenames or an empty list if none was chosen. \fP"
.ti -1c
.RI "\fBKURL\fP \fBgetOpenURL\fP (const  \fBQString\fP &startDir=QString::null, const  \fBQString\fP &filter=QString::null, \fBQWidget\fP *parent=0, const  \fBQString\fP &caption=QString::null)"
.br
.RI "\fICreates a modal file dialog and returns the selected URL or an empty string if none was chosen. \fP"
.ti -1c
.RI "\fBKURL::List\fP \fBgetOpenURLs\fP (const  \fBQString\fP &startDir=QString::null, const  \fBQString\fP &filter=QString::null, \fBQWidget\fP *parent=0, const  \fBQString\fP &caption=QString::null)"
.br
.RI "\fICreates a modal file dialog and returns the selected URLs or an empty list if none was chosen. \fP"
.ti -1c
.RI "\fBQString\fP \fBgetSaveFileName\fP (const  \fBQString\fP &startDir=QString::null, const  \fBQString\fP &filter=QString::null, \fBQWidget\fP *parent=0, const  \fBQString\fP &caption=QString::null)"
.br
.RI "\fICreates a modal file dialog and returns the selected filename or an empty string if none was chosen. \fP"
.ti -1c
.RI "\fBKURL\fP \fBgetSaveURL\fP (const  \fBQString\fP &startDir=QString::null, const  \fBQString\fP &filter=QString::null, \fBQWidget\fP *parent=0, const  \fBQString\fP &caption=QString::null)"
.br
.RI "\fICreates a modal file dialog and returns the selected filename or an empty string if none was chosen. \fP"
.ti -1c
.RI "\fBQString\fP \fBgetExistingDirectory\fP (const  \fBQString\fP &startDir=QString::null, \fBQWidget\fP *parent=0, const  \fBQString\fP &caption=QString::null)"
.br
.RI "\fICreates a modal file dialog and returns the selected directory or an empty string if none was chosen. \fP"
.ti -1c
.RI "\fBKURL\fP \fBgetExistingURL\fP (const  \fBQString\fP &startDir=QString::null, \fBQWidget\fP *parent=0, const  \fBQString\fP &caption=QString::null)"
.br
.RI "\fICreates a modal file dialog and returns the selected directory or an empty string if none was chosen. \fP"
.ti -1c
.RI "\fBKURL\fP \fBgetImageOpenURL\fP (const  \fBQString\fP &startDir=QString::null, \fBQWidget\fP *parent=0, const  \fBQString\fP &caption=QString::null)"
.br
.RI "\fICreates a modal file dialog with an image previewer and returns the selected url or an empty string if none was chosen. \fP"
.ti -1c
.RI "\fBKURL\fP \fBgetStartURL\fP (const  \fBQString\fP &startDir, \fBQString\fP &recentDirClass)"
.br
.RI "\fIThis method implements the logic to determine the user's default directory to be listed. \fP"
.in -1c
.SS "Protected Slots"

.in +1c
.ti -1c
.RI "void \fBurlEntered\fP (const  \fBKURL\fP &)"
.br
.ti -1c
.RI "void \fBenterURL\fP (const  \fBKURL\fP &url)"
.br
.ti -1c
.RI "void \fBenterURL\fP (const  \fBQString\fP &url)"
.br
.ti -1c
.RI "void \fBlocationActivated\fP (const  \fBQString\fP &url)"
.br
.ti -1c
.RI "void \fBtoolbarCallback\fP (int)"
.br
.RI "\fI\fBThis class or method is obsolete, it is provided for compatibility only.\fP \fP"
.ti -1c
.RI "void \fBslotFilterChanged\fP ()"
.br
.ti -1c
.RI "void \fBpathComboChanged\fP (const  \fBQString\fP &)"
.br
.ti -1c
.RI "void \fBfileHighlighted\fP (const  \fBKFileItem\fP *i)"
.br
.ti -1c
.RI "void \fBfileSelected\fP (const  \fBKFileItem\fP *i)"
.br
.ti -1c
.RI "void \fBslotStatResult\fP (\fBKIO::Job\fP *job)"
.br
.ti -1c
.RI "void \fBslotLoadingFinished\fP ()"
.br
.ti -1c
.RI "void \fBdirCompletion\fP (const  \fBQString\fP &)"
.br
.ti -1c
.RI "void \fBfileCompletion\fP (const  \fBQString\fP &)"
.br
.ti -1c
.RI "void \fBtoggleSpeedbar\fP (bool)"
.br
.RI "\fI\fBSince:\fP
.RS 4
3.1 
.RE
.PP
\fP"
.ti -1c
.RI "virtual void \fBupdateStatusLine\fP (int dirs, int files)"
.br
.RI "\fI\fBThis class or method is obsolete, it is provided for compatibility only.\fP \fP"
.ti -1c
.RI "virtual void \fBslotOk\fP ()"
.br
.ti -1c
.RI "virtual void \fBaccept\fP ()"
.br
.ti -1c
.RI "virtual void \fBslotCancel\fP ()"
.br
.ti -1c
.RI "void \fBaddToRecentDocuments\fP ()"
.br
.ti -1c
.RI "void \fBinitSpeedbar\fP ()"
.br
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "void \fBaddDirEntry\fP (\fBKFileItem\fP *entry, bool disableUpdating)"
.br
.RI "\fIadds a entry of the current directory. \fP"
.ti -1c
.RI "void \fBinit\fP (const  \fBQString\fP &startDir, const  \fBQString\fP &filter, \fBQWidget\fP *widget)"
.br
.RI "\fIPerform basic initialization tasks. \fP"
.ti -1c
.RI "virtual void \fBinitGUI\fP ()"
.br
.RI "\fIrebuild geometry managment. \fP"
.ti -1c
.RI "void \fBmultiSelectionChanged\fP ()"
.br
.RI "\fIcalled when an item is highlighted/selected in multiselection mode. \fP"
.ti -1c
.RI "virtual void \fBreadConfig\fP (\fBKConfig\fP *, const  \fBQString\fP &group=QString::null)"
.br
.RI "\fIReads configuration and applies it (size, recent directories, ...). \fP"
.ti -1c
.RI "virtual void \fBwriteConfig\fP (\fBKConfig\fP *, const  \fBQString\fP &group=QString::null)"
.br
.RI "\fISaves the current configuration. \fP"
.ti -1c
.RI "virtual void \fBreadRecentFiles\fP (\fBKConfig\fP *)"
.br
.RI "\fIReads the recent used files and inserts them into the location combobox. \fP"
.ti -1c
.RI "virtual void \fBsaveRecentFiles\fP (\fBKConfig\fP *)"
.br
.RI "\fISaves the entries from the location combobox. \fP"
.ti -1c
.RI "\fBKURL::List\fP \fBtokenize\fP (const  \fBQString\fP &line) const "
.br
.RI "\fIParses the string 'line' for files. \fP"
.ti -1c
.RI "\fBKURL::List\fP & \fBparseSelectedURLs\fP () const "
.br
.ti -1c
.RI "virtual void \fBvirtual_hook\fP (int id, void *data)"
.br
.in -1c
.SS "Protected Attributes"

.in +1c
.ti -1c
.RI "\fBKToolBar\fP * \fBtoolbar\fP"
.br
.ti -1c
.RI "\fBKURLComboBox\fP * \fBlocationEdit\fP"
.br
.ti -1c
.RI "KFileFilterCombo * \fBfilterWidget\fP"
.br
.ti -1c
.RI "\fBKDirOperator\fP * \fBops\fP"
.br
.ti -1c
.RI "bool \fBautoDirectoryFollowing\fP"
.br
.in -1c
.SS "Static Protected Attributes"

.in +1c
.ti -1c
.RI "\fBKURL\fP * \fBlastDirectory\fP"
.br
.in -1c
.SH "Detailed Description"
.PP 
Provides a user (and developer) friendly way to select files and directories. A file selection dialog. 

The widget can be used as a drop in replacement for the \fBQFileDialog\fP widget, but has greater functionality and a nicer GUI.
.PP
You will usually want to use one of the static methods \fBgetOpenFileName\fP(), \fBgetSaveFileName\fP(), \fBgetOpenURL\fP() or for multiple files \fBgetOpenFileNames\fP() or \fBgetOpenURLs\fP().
.PP
The dialog has been designed to allow applications to customise it by subclassing. It uses geometry management to ensure that subclasses can easily add children that will be incorporated into the layout.
.PP
KDE File Dialog 
.PP
\fBAuthor:\fP
.RS 4
Richard J. Moore <rich@kde.org>, Carsten Pfeiffer <pfeiffer@kde.org> 
.RE
.PP

.PP
Definition at line 77 of file kfiledialog.h.
.SH "Member Enumeration Documentation"
.PP 
.SS "\fBenum\fP \fBKFileDialog::OperationMode\fP"
.PP
Defines some default behavior of the filedialog. E.g. in mode \fCOpening\fP and \fCSaving\fP, the selected files/urls will be added to the 'recent documents' list. The Saving mode also implies \fBsetKeepLocation\fP() being set.
.PP
\fCOther\fP means that no default actions are performed.
.PP
\fBSee also:\fP
.RS 4
\fBsetOperationMode\fP 
.PP
\fBoperationMode\fP 
.RE
.PP
Definition at line 93 of file kfiledialog.h.
.PP
Referenced by operationMode().
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KFileDialog::KFileDialog (const \fBQString\fP & startDir, const \fBQString\fP & filter, \fBQWidget\fP * parent, const char * name, bool modal)"
.PP
Constructs a file dialog. \fBParameters:\fP
.RS 4
\fIstartDir\fP This can either be 
.IP "\(bu" 2
The URL of the directory to start in. 
.IP "\(bu" 2
QString::null to start in the current working directory, or the last directory where a file has been selected. 
.IP "\(bu" 2
':<keyword>' to start in the directory last used by a filedialog in the same application that specified the same keyword. 
.IP "\(bu" 2
'::<keyword>' to start in the direcotry last used by a filedialog in any application that specified the same keyword.
.PP
.br
\fIfilter\fP A shell glob or a mime-type-filter that specifies which files to display. See \fBsetFilter\fP() for details on how to use this argument.
.br
\fIacceptURLs\fP If set to \fCfalse\fP, the dialog will just accept files on the local filesystem. 
.RE
.PP
Definition at line 159 of file kfiledialog.cpp.
.PP
References init(), and KStdAccel::name().
.SS "KFileDialog::KFileDialog (const \fBQString\fP & startDir, const \fBQString\fP & filter, \fBQWidget\fP * parent, const char * name, bool modal, \fBQWidget\fP * widget)"
.PP
Constructs a file dialog. The parameters here are identical to the first constructor except for the addition of a \fBQWidget\fP parameter.
.PP
Historical note: The original version of KFileDialog did not have this extra parameter. It was added later, and, in order to maintain binary compatibility, it was placed in a new constructor instead of added to the original one.
.PP
\fBParameters:\fP
.RS 4
\fIstartDir\fP This can either be 
.IP "\(bu" 2
The URL of the directory to start in. 
.IP "\(bu" 2
QString::null to start in the current working directory, or the last directory where a file has been selected. 
.IP "\(bu" 2
':<keyword>' to start in the directory last used by a filedialog in the same application that specified the same keyword. 
.IP "\(bu" 2
'::<keyword>' to start in the direcotry last used by a filedialog in any application that specified the same keyword.
.PP
.br
\fIfilter\fP A shell glob or a mime-type-filter that specifies which files to display. See \fBsetFilter\fP() for details on how to use this argument.
.br
\fIacceptURLs\fP If set to \fCfalse\fP, the dialog will just accept files on the local filesystem.
.br
\fIwidget\fP A widget, or a widget of widgets, for displaying custom data in the dialog. This can be used, for example, to display a check box with the caption 'Open as read-only'. When creating this widget, you don't need to specify a parent, since the widget's parent will be set automatically by KFileDialog. 
.RE
.PP
\fBSince:\fP
.RS 4
3.1 
.RE
.PP
Definition at line 166 of file kfiledialog.cpp.
.PP
References init(), and KStdAccel::name().
.SS "KFileDialog::~\fBKFileDialog\fP ()"
.PP
Destructs the file dialog. Definition at line 173 of file kfiledialog.cpp.
.PP
References KGlobal::config(), and KConfigBase::sync().
.SH "Member Function Documentation"
.PP 
.SS "\fBKURL\fP KFileDialog::selectedURL () const"
.PP
\fBReturns:\fP
.RS 4
The selected fully qualified filename. 
.RE
.PP
Definition at line 1454 of file kfiledialog.cpp.
.PP
References QDialog::result().
.PP
Referenced by getExistingURL(), getImageOpenURL(), getOpenURL(), getSaveURL(), and KURLRequester::slotOpenDialog().
.SS "\fBKURL::List\fP KFileDialog::selectedURLs () const"
.PP
\fBReturns:\fP
.RS 4
The list of selected URLs. 
.RE
.PP
Definition at line 1462 of file kfiledialog.cpp.
.PP
References QValueList< KURL >::append(), KDirOperator::mode(), and QDialog::result().
.PP
Referenced by getOpenURLs().
.SS "\fBKURL\fP KFileDialog::baseURL () const"
.PP
\fBReturns:\fP
.RS 4
the currently shown directory. 
.RE
.PP
Definition at line 1583 of file kfiledialog.cpp.
.PP
References KDirOperator::url().
.SS "\fBQString\fP KFileDialog::selectedFile () const"
.PP
Returns the full path of the selected file in the local filesystem. (Local files only) Definition at line 1549 of file kfiledialog.cpp.
.PP
References QDialog::result().
.PP
Referenced by getExistingDirectory(), getOpenFileName(), and getSaveFileName().
.SS "\fBQStringList\fP KFileDialog::selectedFiles () const"
.PP
Returns a list of all selected local files. Definition at line 1559 of file kfiledialog.cpp.
.PP
References QValueList< KURL >::begin(), QValueList< KURL >::end(), KDirOperator::mode(), and QDialog::result().
.PP
Referenced by getOpenFileNames().
.SS "void KFileDialog::setURL (const \fBKURL\fP & url, bool clearforward = true)"
.PP
Sets the directory to view. \fBParameters:\fP
.RS 4
\fIurl\fP URL to show. 
.br
\fIclearforward\fP Indicates whether the forward queue should be cleared. 
.RE
.PP
Definition at line 1141 of file kfiledialog.cpp.
.PP
References KDirOperator::setURL().
.PP
Referenced by setSelection().
.SS "void KFileDialog::setSelection (const \fBQString\fP & name)"
.PP
Sets the file name to preselect to \fCname\fP. This takes absolute URLs and relative file names. Definition at line 1199 of file kfiledialog.cpp.
.PP
References KURL::addPath(), QFile::exists(), KURL::fileName(), QString::findRev(), KFileItem::isDir(), QString::isEmpty(), KURL::isLocalFile(), KURL::isMalformed(), KURL::isRelativeURL(), QString::left(), QComboBox::lineEdit(), KURL::path(), KURL::protocol(), KComboBox::setCurrentItem(), QComboBox::setEditText(), KURL::setPath(), setURL(), KProtocolInfo::supportsListing(), KURL::url(), and KDirOperator::url().
.PP
Referenced by getSaveFileName(), getSaveURL(), init(), and KURLRequester::slotOpenDialog().
.SS "void KFileDialog::setOperationMode (\fBKFileDialog::OperationMode\fP)"
.PP
Sets the operational mode of the filedialog to \fCSaving\fP, \fCOpening\fP or \fCOther\fP. This will set some flags that are specific to loading or saving files. E.g. \fBsetKeepLocation\fP() makes mostly sense for a save-as dialog. So setOperationMode( KFileDialog::Saving ); sets setKeepLocation for example.
.PP
The mode \fCSaving\fP, together with a default filter set via \fBsetMimeFilter\fP() will make the filter combobox read-only.
.PP
The default mode is \fCOpening\fP.
.PP
Call this method right after instantiating KFileDialog.
.PP
\fBSee also:\fP
.RS 4
\fBoperationMode\fP 
.PP
\fBKFileDialog::OperationMode\fP 
.RE
.PP
Definition at line 1777 of file kfiledialog.cpp.
.PP
Referenced by getImageOpenURL(), getOpenFileName(), getOpenFileNames(), getOpenURL(), getOpenURLs(), getSaveFileName(), and getSaveURL().
.SS "\fBKFileDialog::OperationMode\fP KFileDialog::operationMode () const"
.PP
\fBReturns:\fP
.RS 4
the current operation mode, Opening, Saving or Other. Default is Other.
.RE
.PP
\fBSee also:\fP
.RS 4
\fBoperationMode\fP 
.PP
\fBKFileDialog::OperationMode\fP 
.RE
.PP
Definition at line 1785 of file kfiledialog.cpp.
.PP
References OperationMode.
.SS "void KFileDialog::setKeepLocation (bool keep)"
.PP
Sets whether the filename/url should be kept when changing directories. This is for example useful when having a predefined filename where the full path for that file is searched.
.PP
This is implicitly set when \fBoperationMode\fP() is KFileDialog::Saving
.PP
\fBgetSaveFileName()\fP and \fBgetSaveURL()\fP set this to true by default, so that you can type in the filename and change the directory without having to type the name again. Definition at line 1767 of file kfiledialog.cpp.
.SS "bool KFileDialog::keepsLocation () const"
.PP
\fBReturns:\fP
.RS 4
whether the contents of the location edit are kept when changing directories. 
.RE
.PP
Definition at line 1772 of file kfiledialog.cpp.
.SS "void KFileDialog::setFilter (const \fBQString\fP & filter)"
.PP
Sets the filter to be used to \fCfilter\fP. You can set more filters for the user to select seperated by '
.br
'. Every filter entry is defined through namefilter|text to diplay. If no | is found in the expression, just the namefilter is shown. Examples:
.PP
\fC kfile->setFilter('*.cpp|C++ Source Files\\n*.h|Header files'); kfile->setFilter('*.cpp'); kfile->setFilter('*.cpp|Sources (*.cpp)'); kfile->setFilter('*.cpp *.cc *.C|C++ Source Files\\n*.h *.H|Header files'); \fP
.PP
Note: The text to display is not parsed in any way. So, if you want to show the suffix to select by a specific filter, you must repeat it.
.PP
If the filter contains an unescaped '/', a mimetype-filter is assumed. If you would like a '/' visible in your filter it can be escaped with a '\\'. You can specify multiple mimetypes like this (separated with space):
.PP
\fC kfile->setFilter( 'image/png text/html text/plain' ); kfile->setFilter( '*.cue|CUE\\\\/BIN Files (*.cue)' ); \fP
.PP
\fBSee also:\fP
.RS 4
\fBfilterChanged\fP 
.PP
\fBsetMimeFilter\fP 
.RE
.PP
Definition at line 193 of file kfiledialog.cpp.
.PP
References KDirOperator::clearFilter(), KStdAccel::copy(), QString::find(), setMimeFilter(), KDirOperator::setNameFilter(), and QStringList::split().
.PP
Referenced by KURLRequester::fileDialog(), getExistingDirectory(), getExistingURL(), init(), and KURLRequester::setFilter().
.SS "\fBQString\fP KFileDialog::currentFilter () const"
.PP
Returns the current filter as entered by the user or one of the predefined set via \fBsetFilter\fP(). \fBParameters:\fP
.RS 4
\fIfilter\fP Contains the new filter (only the extension part, not the explanation), for example, '*.cpp' or '*.cpp *.cc'.
.RE
.PP
\fBSee also:\fP
.RS 4
\fBsetFilter()\fP 
.PP
\fBfilterChanged()\fP 
.RE
.PP
Definition at line 220 of file kfiledialog.cpp.
.SS "void KFileDialog::setFilterMimeType (const \fBQString\fP & label, const \fBKMimeType::List\fP & types, const \fBKMimeType::Ptr\fP & defaultType)"
.PP
Sets the filter up to specify the output type. \fBParameters:\fP
.RS 4
\fIlabel\fP the label to use instead of 'Filter:' 
.br
\fItypes\fP a list of mimetypes that can be used as output format 
.br
\fIdefaultType\fP the default mimetype to use as output format.
.RE
.PP
Do not use in conjunction with \fBsetFilter\fP() \fBThis class or method is obsolete, it is provided for compatibility only.\fP Definition at line 226 of file kfiledialog.cpp.
.PP
References QValueList::begin(), QValueList::end(), KStdAccel::label(), and setMimeFilter().
.SS "\fBKMimeType::Ptr\fP KFileDialog::currentFilterMimeType ()"
.PP
Returns the mimetype for the desired output format. This is only valid if \fBsetFilterMimeType\fP() has been called previously.
.PP
\fBSee also:\fP
.RS 4
\fBsetFilterMimeType()\fP 
.RE
.PP
Definition at line 275 of file kfiledialog.cpp.
.PP
References currentMimeFilter(), and KMimeType::mimeType().
.SS "void KFileDialog::setMimeFilter (const \fBQStringList\fP & types, const \fBQString\fP & defaultType = QString::null)"
.PP
Sets the filter up to specify the output type. \fBParameters:\fP
.RS 4
\fItypes\fP a list of mimetypes that can be used as output format 
.br
\fIdefaultType\fP the default mimetype to use as output format, if any. If \fCdefaultType\fP is set, it will be set as the current item. Otherwise, a first item showing all the mimetypes will be created. Typically, \fCdefaultType\fP should be empty for loading and set for saving.
.RE
.PP
Do not use in conjunction with \fBsetFilter\fP() Definition at line 240 of file kfiledialog.cpp.
.PP
References KDirOperator::clearFilter(), QString::fromLatin1(), QString::isEmpty(), KDirOperator::setMimeFilter(), and QStringList::split().
.PP
Referenced by setFilter(), and setFilterMimeType().
.SS "\fBQString\fP KFileDialog::currentMimeFilter () const"
.PP
The mimetype for the desired output format. This is only valid if \fBsetMimeFilter\fP() has been called previously.
.PP
\fBSee also:\fP
.RS 4
\fBsetMimeFilter()\fP 
.RE
.PP
Definition at line 264 of file kfiledialog.cpp.
.PP
Referenced by currentFilterMimeType().
.SS "void KFileDialog::clearFilter ()"
.PP
Clears any mime- or namefilter. Does not reload the directory. Definition at line 255 of file kfiledialog.cpp.
.PP
References KDirOperator::clearFilter().
.SS "void KFileDialog::setPreviewWidget (const \fBQWidget\fP * w)"
.PP
\fBThis class or method is obsolete, it is provided for compatibility only.\fP Add a preview widget and enter the preview mode. In this mode the dialog is split and the right part contains your widget. This widget has to inherit \fBQWidget\fP and it has to implement a slot \fBshowPreview\fP(const \fBKURL\fP &); which is called every time the file changes. You may want to look at koffice/lib/kofficecore/koFilterManager.cc for some hints :)
.PP
Ownership is transferred to KFileDialog. You need to create the preview-widget with 'new', i.e. on the heap. Definition at line 280 of file kfiledialog.cpp.
.PP
References KDirOperator::clearHistory(), and KDirOperator::setPreviewWidget().
.PP
Referenced by getImageOpenURL().
.SS "void KFileDialog::setPreviewWidget (const \fBKPreviewWidgetBase\fP * w)"
.PP
Adds a preview widget and enters the preview mode. In this mode the dialog is split and the right part contains your preview widget.
.PP
Ownership is transferred to KFileDialog. You need to create the preview-widget with 'new', i.e. on the heap.
.PP
\fBParameters:\fP
.RS 4
\fIw\fP The widget to be used for the preview. 
.RE
.PP
Definition at line 286 of file kfiledialog.cpp.
.PP
References KDirOperator::clearHistory(), and KDirOperator::setPreviewWidget().
.SS "\fBQString\fP KFileDialog::getOpenFileName (const \fBQString\fP & startDir = QString::null, const \fBQString\fP & filter = QString::null, \fBQWidget\fP * parent = 0, const \fBQString\fP & caption = QString::null)\fC [static]\fP"
.PP
Creates a modal file dialog and return the selected filename or an empty string if none was chosen. Note that with this method the user must select an existing filename.
.PP
\fBParameters:\fP
.RS 4
\fIstartDir\fP This can either be 
.IP "\(bu" 2
The URL of the directory to start in. 
.IP "\(bu" 2
QString::null to start in the current working directory, or the last directory where a file has been selected. 
.IP "\(bu" 2
':<keyword>' to start in the directory last used by a filedialog in the same application that specified the same keyword. 
.IP "\(bu" 2
'::<keyword>' to start in the direcotry last used by a filedialog in any application that specified the same keyword. 
.PP
.br
\fIfilter\fP This is a space seperated list of shell globs. You can set the text to be displayed for the glob, and provide multiple globs. See \fBsetFilter\fP() for details on how to do this... 
.br
\fIparent\fP The widget the dialog will be centered on initially. 
.br
\fIcaption\fP The name of the dialog widget. 
.RE
.PP
Definition at line 1344 of file kfiledialog.cpp.
.PP
References KDirOperator::clearHistory(), QDialog::exec(), QString::isNull(), ops, selectedFile(), KDialog::setCaption(), setMode(), and setOperationMode().
.SS "\fBQStringList\fP KFileDialog::getOpenFileNames (const \fBQString\fP & startDir = QString::null, const \fBQString\fP & filter = QString::null, \fBQWidget\fP * parent = 0, const \fBQString\fP & caption = QString::null)\fC [static]\fP"
.PP
Creates a modal file dialog and returns the selected filenames or an empty list if none was chosen. Note that with this method the user must select an existing filename.
.PP
\fBParameters:\fP
.RS 4
\fIstartDir\fP This can either be 
.IP "\(bu" 2
The URL of the directory to start in. 
.IP "\(bu" 2
QString::null to start in the current working directory, or the last directory where a file has been selected. 
.IP "\(bu" 2
':<keyword>' to start in the directory last used by a filedialog in the same application that specified the same keyword. 
.IP "\(bu" 2
'::<keyword>' to start in the direcotry last used by a filedialog in any application that specified the same keyword. 
.PP
.br
\fIfilter\fP This is a space seperated list of shell globs. You can set the text to be displayed for the glob, and provide multiple globs. See \fBsetFilter\fP() for details on how to do this... 
.br
\fIparent\fP The widget the dialog will be centered on initially. 
.br
\fIcaption\fP The name of the dialog widget. 
.RE
.PP
Definition at line 1360 of file kfiledialog.cpp.
.PP
References KDirOperator::clearHistory(), QDialog::exec(), QString::isNull(), ops, selectedFiles(), KDialog::setCaption(), setMode(), and setOperationMode().
.SS "\fBKURL\fP KFileDialog::getOpenURL (const \fBQString\fP & startDir = QString::null, const \fBQString\fP & filter = QString::null, \fBQWidget\fP * parent = 0, const \fBQString\fP & caption = QString::null)\fC [static]\fP"
.PP
Creates a modal file dialog and returns the selected URL or an empty string if none was chosen. Note that with this method the user must select an existing URL.
.PP
\fBParameters:\fP
.RS 4
\fIstartDir\fP This can either be 
.IP "\(bu" 2
The URL of the directory to start in. 
.IP "\(bu" 2
QString::null to start in the current working directory, or the last directory where a file has been selected. 
.IP "\(bu" 2
':<keyword>' to start in the directory last used by a filedialog in the same application that specified the same keyword. 
.IP "\(bu" 2
'::<keyword>' to start in the direcotry last used by a filedialog in any application that specified the same keyword. 
.PP
.br
\fIfilter\fP This is a space seperated list of shell globs. You can set the text to be displayed for the glob, and provide multiple globs. See \fBsetFilter\fP() for details on how to do this... 
.br
\fIparent\fP The widget the dialog will be centered on initially. 
.br
\fIcaption\fP The name of the dialog widget. 
.RE
.PP
Definition at line 1376 of file kfiledialog.cpp.
.PP
References KDirOperator::clearHistory(), QDialog::exec(), QString::isNull(), ops, selectedURL(), KDialog::setCaption(), setMode(), and setOperationMode().
.SS "\fBKURL::List\fP KFileDialog::getOpenURLs (const \fBQString\fP & startDir = QString::null, const \fBQString\fP & filter = QString::null, \fBQWidget\fP * parent = 0, const \fBQString\fP & caption = QString::null)\fC [static]\fP"
.PP
Creates a modal file dialog and returns the selected URLs or an empty list if none was chosen. Note that with this method the user must select an existing filename.
.PP
\fBParameters:\fP
.RS 4
\fIstartDir\fP This can either be 
.IP "\(bu" 2
The URL of the directory to start in. 
.IP "\(bu" 2
QString::null to start in the current working directory, or the last directory where a file has been selected. 
.IP "\(bu" 2
':<keyword>' to start in the directory last used by a filedialog in the same application that specified the same keyword. 
.IP "\(bu" 2
'::<keyword>' to start in the direcotry last used by a filedialog in any application that specified the same keyword. 
.PP
.br
\fIfilter\fP This is a space seperated list of shell globs. You can set the text to be displayed for the glob, and provide multiple globs. See \fBsetFilter\fP() for details on how to do this... 
.br
\fIparent\fP The widget the dialog will be centered on initially. 
.br
\fIcaption\fP The name of the dialog widget. 
.RE
.PP
Definition at line 1390 of file kfiledialog.cpp.
.PP
References KDirOperator::clearHistory(), QDialog::exec(), QString::isNull(), ops, selectedURLs(), KDialog::setCaption(), setMode(), and setOperationMode().
.SS "\fBQString\fP KFileDialog::getSaveFileName (const \fBQString\fP & startDir = QString::null, const \fBQString\fP & filter = QString::null, \fBQWidget\fP * parent = 0, const \fBQString\fP & caption = QString::null)\fC [static]\fP"
.PP
Creates a modal file dialog and returns the selected filename or an empty string if none was chosen. Note that with this method the user need not select an existing filename.
.PP
\fBParameters:\fP
.RS 4
\fIstartDir\fP This can either be 
.IP "\(bu" 2
The URL of the directory to start in. 
.IP "\(bu" 2
a relative path or a filename determining the directory to start in and the file to be selected. 
.IP "\(bu" 2
QString::null to start in the current working directory, or the last directory where a file has been selected. 
.IP "\(bu" 2
':<keyword>' to start in the directory last used by a filedialog in the same application that specified the same keyword. 
.IP "\(bu" 2
'::<keyword>' to start in the direcotry last used by a filedialog in any application that specified the same keyword. 
.PP
.br
\fIfilter\fP This is a space seperated list of shell globs. You can set the text to be displayed for the glob, and provide multiple globs. See \fBsetFilter\fP() for details on how to do this... 
.br
\fIparent\fP The widget the dialog will be centered on initially. 
.br
\fIcaption\fP The name of the dialog widget. 
.RE
.PP
Definition at line 1588 of file kfiledialog.cpp.
.PP
References KRecentDocument::add(), QString::at(), QDialog::exec(), QString::isEmpty(), QString::isNull(), selectedFile(), KDialog::setCaption(), setOperationMode(), and setSelection().
.SS "\fBKURL\fP KFileDialog::getSaveURL (const \fBQString\fP & startDir = QString::null, const \fBQString\fP & filter = QString::null, \fBQWidget\fP * parent = 0, const \fBQString\fP & caption = QString::null)\fC [static]\fP"
.PP
Creates a modal file dialog and returns the selected filename or an empty string if none was chosen. Note that with this method the user need not select an existing filename.
.PP
\fBParameters:\fP
.RS 4
\fIstartDir\fP This can either be 
.IP "\(bu" 2
The URL of the directory to start in. 
.IP "\(bu" 2
a relative path or a filename determining the directory to start in and the file to be selected. 
.IP "\(bu" 2
QString::null to start in the current working directory, or the last directory where a file has been selected. 
.IP "\(bu" 2
':<keyword>' to start in the directory last used by a filedialog in the same application that specified the same keyword. 
.IP "\(bu" 2
'::<keyword>' to start in the direcotry last used by a filedialog in any application that specified the same keyword. 
.PP
.br
\fIfilter\fP This is a space seperated list of shell globs. You can set the text to be displayed for the glob, and provide multiple globs. See \fBsetFilter\fP() for details on how to do this... 
.br
\fIparent\fP The widget the dialog will be centered on initially. 
.br
\fIcaption\fP The name of the dialog widget. 
.RE
.PP
Definition at line 1609 of file kfiledialog.cpp.
.PP
References KRecentDocument::add(), QString::at(), QDialog::exec(), KURL::isMalformed(), QString::isNull(), selectedURL(), KDialog::setCaption(), setOperationMode(), and setSelection().
.SS "\fBQString\fP KFileDialog::getExistingDirectory (const \fBQString\fP & startDir = QString::null, \fBQWidget\fP * parent = 0, const \fBQString\fP & caption = QString::null)\fC [static]\fP"
.PP
Creates a modal file dialog and returns the selected directory or an empty string if none was chosen. \fBParameters:\fP
.RS 4
\fIstartDir\fP This can either be 
.IP "\(bu" 2
The URL of the directory to start in. 
.IP "\(bu" 2
QString::null to start in the current working directory, or the last directory where a file has been selected. 
.IP "\(bu" 2
':<keyword>' to start in the directory last used by a filedialog in the same application that specified the same keyword. 
.IP "\(bu" 2
'::<keyword>' to start in the direcotry last used by a filedialog in any application that specified the same keyword. 
.PP
.br
\fIparent\fP The widget the dialog will be centered on initially. 
.br
\fIcaption\fP The name of the dialog widget. 
.RE
.PP
Definition at line 1421 of file kfiledialog.cpp.
.PP
References KDirOperator::clearHistory(), QDialog::exec(), QString::isNull(), ops, selectedFile(), KDialog::setCaption(), setFilter(), and setMode().
.SS "\fBKURL\fP KFileDialog::getExistingURL (const \fBQString\fP & startDir = QString::null, \fBQWidget\fP * parent = 0, const \fBQString\fP & caption = QString::null)\fC [static]\fP"
.PP
Creates a modal file dialog and returns the selected directory or an empty string if none was chosen. Contrary to \fBgetExistingDirectory\fP(), this method allows the selection of a remote directory.
.PP
\fBParameters:\fP
.RS 4
\fIstartDir\fP This can either be 
.IP "\(bu" 2
The URL of the directory to start in. 
.IP "\(bu" 2
QString::null to start in the current working directory, or the last directory where a file has been selected. 
.IP "\(bu" 2
':<keyword>' to start in the directory last used by a filedialog in the same application that specified the same keyword. 
.IP "\(bu" 2
'::<keyword>' to start in the direcotry last used by a filedialog in any application that specified the same keyword. 
.PP
.br
\fIparent\fP The widget the dialog will be centered on initially. 
.br
\fIcaption\fP The name of the dialog widget. 
.RE
.PP
\fBSince:\fP
.RS 4
3.1 
.RE
.PP
Definition at line 1406 of file kfiledialog.cpp.
.PP
References KDirOperator::clearHistory(), QDialog::exec(), QString::isNull(), ops, selectedURL(), KDialog::setCaption(), setFilter(), and setMode().
.SS "\fBKURL\fP KFileDialog::getImageOpenURL (const \fBQString\fP & startDir = QString::null, \fBQWidget\fP * parent = 0, const \fBQString\fP & caption = QString::null)\fC [static]\fP"
.PP
Creates a modal file dialog with an image previewer and returns the selected url or an empty string if none was chosen. \fBParameters:\fP
.RS 4
\fIstartDir\fP This can either be 
.IP "\(bu" 2
The URL of the directory to start in. 
.IP "\(bu" 2
QString::null to start in the current working directory, or the last directory where a file has been selected. 
.IP "\(bu" 2
':<keyword>' to start in the directory last used by a filedialog in the same application that specified the same keyword. 
.IP "\(bu" 2
'::<keyword>' to start in the direcotry last used by a filedialog in any application that specified the same keyword. 
.PP
.br
\fIparent\fP The widget the dialog will be centered on initially. 
.br
\fIcaption\fP The name of the dialog widget. 
.RE
.PP
Definition at line 1436 of file kfiledialog.cpp.
.PP
References QDialog::exec(), QString::isNull(), QStringList::join(), KImageIO::mimeTypes(), selectedURL(), KDialog::setCaption(), setMode(), setOperationMode(), and setPreviewWidget().
.SS "void KFileDialog::setMode (\fBKFile::Mode\fP m)"
.PP
\fBThis class or method is obsolete, it is provided for compatibility only.\fP use \fBsetMode\fP( unsigned int ) instead Definition at line 1640 of file kfiledialog.cpp.
.PP
References KDirOperator::dirOnlyMode(), and KDirOperator::setMode().
.PP
Referenced by KURLRequester::fileDialog(), getExistingDirectory(), getExistingURL(), getImageOpenURL(), getOpenFileName(), getOpenFileNames(), getOpenURL(), getOpenURLs(), KURLRequester::setMode(), and setMode().
.SS "void KFileDialog::setMode (unsigned int m)"
.PP
Sets the mode of the dialog. The mode is defined as (in \fBkfile.h\fP): \fC enum Mode { File = 1, Directory = 2, Files = 4, ExistingOnly = 8, LocalOnly = 16 }; \fP You can OR the values, e.g. \fC \fBKFile::Mode\fP mode = static_cast<KFile::Mode>( KFile::Files | KFile::ExistingOnly | KFile::LocalOnly ); setMode( mode ); \fP Definition at line 1651 of file kfiledialog.cpp.
.PP
References setMode().
.SS "\fBKFile::Mode\fP KFileDialog::mode () const"
.PP
Returns the mode of the filedialog. \fBSee also:\fP
.RS 4
\fBsetMode()\fP 
.RE
.PP
Definition at line 1656 of file kfiledialog.cpp.
.PP
References KDirOperator::mode(), and KFile::Mode.
.SS "void KFileDialog::setLocationLabel (const \fBQString\fP & text)"
.PP
Sets the text to be displayed in front of the selection. The default is 'Location'. Most useful if you want to make clear what the location is used for. Definition at line 188 of file kfiledialog.cpp.
.SS "\fBKToolBar\fP* KFileDialog::toolBar () const\fC [inline]\fP"
.PP
Returns a pointer to the toolbar. You can use this to insert custom items into it, e.g.: \fC yourAction = new \fBKAction\fP( i18n('Your Action'), 0, this, SLOT( yourSlot() ), this, 'action name' ); yourAction->plug( kfileDialog->\fBtoolBar()\fP ); \fP Definition at line 695 of file kfiledialog.h.
.SS "\fBKPushButton\fP * KFileDialog::okButton () const"
.PP
\fBReturns:\fP
.RS 4
a pointer to the OK-Button in the filedialog. You may use it e.g. to set a custom text to it. 
.RE
.PP
Definition at line 1751 of file kfiledialog.cpp.
.SS "\fBKPushButton\fP * KFileDialog::cancelButton () const"
.PP
\fBReturns:\fP
.RS 4
a pointer to the Cancel-Button in the filedialog. You may use it e.g. to set a custom text to it. 
.RE
.PP
Definition at line 1756 of file kfiledialog.cpp.
.SS "\fBKActionCollection\fP * KFileDialog::actionCollection () const"
.PP
\fBReturns:\fP
.RS 4
a pointer to the action collection, holding all the used KActions. 
.RE
.PP
Definition at line 1812 of file kfiledialog.cpp.
.PP
References KDirOperator::actionCollection().
.PP
Referenced by toggleSpeedbar().
.SS "int KFileDialog::pathComboIndex ()"
.PP
\fBReturns:\fP
.RS 4
the index of the path combobox so when inserting widgets into the dialog (e.g. subclasses) they can do so without hardcoding in an index 
.RE
.PP
Definition at line 1853 of file kfiledialog.cpp.
.SS "\fBKURL\fP KFileDialog::getStartURL (const \fBQString\fP & startDir, \fBQString\fP & recentDirClass)\fC [static]\fP"
.PP
This method implements the logic to determine the user's default directory to be listed. E.g. the documents direcory, home directory or a recently used directory. 
.PP
\fBParameters:\fP
.RS 4
\fIstartDir\fP A url/directory, to be used. May use the ':' and '::' syntax as documented in the \fBKFileDialog\fP() constructor. 
.br
\fIrecentDirClass\fP If the ':' or '::' syntax is used, recentDirClass will contain the string to be used later for \fBKRecentDir::dir\fP() 
.RE
.PP
\fBReturns:\fP
.RS 4
The URL that should be listed by default (e.g. by KFileDialog or \fBKDirSelectDialog\fP). 
.RE
.PP
\fBSince:\fP
.RS 4
3.1 
.RE
.PP
Definition at line 1868 of file kfiledialog.cpp.
.PP
References QDir::currentDirPath(), KRecentDirs::dir(), KGlobalSettings::documentPath(), QFile::encodeName(), KURL::fromPathOrURL(), KStdAccel::home(), QDir::homeDirPath(), KURL::isEmpty(), QString::isEmpty(), KCmdLineArgs::makeURL(), KURL::path(), KURL::protocol(), and KProtocolInfo::supportsListing().
.PP
Referenced by init(), and KDirSelectDialog::KDirSelectDialog().
.SS "void KFileDialog::fileSelected (const \fBQString\fP &)\fC [signal]\fP"
.PP
Emitted when the user selects a file. It is only emitted in single- selection mode. The best way to get notified about selected file(s) is to connect to the \fBokClicked()\fP signal inherited from \fBKDialogBase\fP and call \fBselectedFile\fP(), \fBselectedFiles\fP(), \fBselectedURL\fP() or \fBselectedURLs\fP(). Referenced by init().
.SS "void KFileDialog::fileHighlighted (const \fBQString\fP &)\fC [signal]\fP"
.PP
Emitted when the user highlights a file. Referenced by init().
.SS "void KFileDialog::selectionChanged ()\fC [signal]\fP"
.PP
Emitted when the user hilights one or more files in multiselection mode. Note: \fBfileHighlighted\fP() or \fBfileSelected\fP() are \fInot\fP emitted in multiselection mode. You may use selectedItems() to ask for the current highlighted items. 
.PP
\fBSee also:\fP
.RS 4
\fBfileSelected\fP 
.RE
.PP

.SS "void KFileDialog::filterChanged (const \fBQString\fP & filter)\fC [signal]\fP"
.PP
Emitted when the filter changed, i.e. the user entered an own filter or chose one of the predefined set via \fBsetFilter\fP().
.PP
\fBParameters:\fP
.RS 4
\fIfilter\fP contains the new filter (only the extension part, not the explanation), i.e. '*.cpp' or '*.cpp *.cc'.
.RE
.PP
\fBSee also:\fP
.RS 4
\fBsetFilter()\fP 
.PP
\fBcurrentFilter()\fP 
.RE
.PP
Referenced by init().
.SS "void KFileDialog::addDirEntry (\fBKFileItem\fP * entry, bool disableUpdating)\fC [protected]\fP"
.PP
adds a entry of the current directory. If disableUpdating is set to true, it will care about clever updating 
.SS "void KFileDialog::init (const \fBQString\fP & startDir, const \fBQString\fP & filter, \fBQWidget\fP * widget)\fC [protected]\fP"
.PP
Perform basic initialization tasks. Called by constructors. 
.PP
\fBSince:\fP
.RS 4
3.1 
.RE
.PP
Definition at line 715 of file kfiledialog.cpp.
.PP
References KActionCollection::action(), KDirOperator::actionCollection(), QWhatsThis::add(), QToolTip::add(), KDialogBase::adjustSize(), QString::arg(), KStdAccel::completion(), KComboBox::completionBox(), KDirOperator::completionObject(), KGlobal::config(), KGlobalSettings::desktopPath(), KDirOperator::dirCompletionObject(), KGlobalSettings::documentPath(), QDir::exists(), QFile::exists(), fileHighlighted(), fileSelected(), filterChanged(), QString::fromLatin1(), KToolBar::getButton(), getStartURL(), QDir::homeDirPath(), initGUI(), KActionMenu::insert(), KToolBar::insertButton(), KToolBar::insertWidget(), KCompletionBase::KeyBindingType, KDirOperator::mode(), KURL::path(), KMimeType::pixmapForURL(), KActionMenu::plug(), KAction::plug(), KActionMenu::popupMenu(), KConfigBase::readBoolEntry(), readConfig(), readRecentFiles(), QDir::rootDirPath(), KToolBar::setBarPos(), KCompletionBase::setCompletionObject(), KActionMenu::setDelayed(), setFilter(), KToolBar::setFlat(), KCompletionBase::setHandleSignals(), KToolBar::setIconText(), KToolBar::setItemAutoSized(), KDialogBase::setMainWidget(), QWidget::setMaximumWidth(), QWidget::setMinimumWidth(), KDirOperator::setOnlyDoubleClickSelectsFiles(), QDir::setPath(), KURL::setPath(), KToolBarButton::setPopup(), setSelection(), KAction::setShortcut(), KDirOperator::setupMenu(), KDirOperator::setViewConfig(), KAction::setWhatsThis(), KDialogBase::slotCancel(), KDialogBase::slotOk(), KDialog::spacingHint(), and toggleSpeedbar().
.PP
Referenced by KFileDialog().
.SS "void KFileDialog::initGUI ()\fC [protected, virtual]\fP"
.PP
rebuild geometry managment. Definition at line 1003 of file kfiledialog.cpp.
.PP
References QGridLayout::addWidget(), QGridLayout::setColStretch(), and KDialog::spacingHint().
.PP
Referenced by init().
.SS "void KFileDialog::multiSelectionChanged ()\fC [protected]\fP"
.PP
called when an item is highlighted/selected in multiselection mode. handles setting the locationEdit. Definition at line 691 of file kfiledialog.cpp.
.PP
References QString::append(), QComboBox::clearEdit(), QPtrListIterator::current(), QComboBox::lineEdit(), KFileItem::name(), KDirOperator::selectedItems(), KComboBox::setCurrentItem(), QComboBox::setEditText(), KGlobal::staticQString(), and QString::stripWhiteSpace().
.SS "void KFileDialog::readConfig (\fBKConfig\fP *, const \fBQString\fP & group = QString::null)\fC [protected, virtual]\fP"
.PP
Reads configuration and applies it (size, recent directories, ...). Definition at line 1662 of file kfiledialog.cpp.
.PP
References KGlobalSettings::Completion, KGlobalSettings::CompletionAuto, KGlobalSettings::completionMode(), KDialogBase::configDialogSize(), KConfigBase::group(), QString::isEmpty(), KConfigBase::readBoolEntry(), KDirOperator::readConfig(), KConfigBase::readNumEntry(), KConfigBase::readPathListEntry(), KCompletionBase::setCompletionMode(), KConfigBase::setGroup(), KURLComboBox::setMaxItems(), KURLComboBox::setURL(), KURLComboBox::setURLs(), KToolBar::sizeHint(), toggleSpeedbar(), KDirOperator::url(), and QSize::width().
.PP
Referenced by init().
.SS "void KFileDialog::writeConfig (\fBKConfig\fP *, const \fBQString\fP & group = QString::null)\fC [protected, virtual]\fP"
.PP
Saves the current configuration. Definition at line 1706 of file kfiledialog.cpp.
.PP
References KCompletionBase::completionMode(), KConfigBase::group(), QString::isEmpty(), KDialogBase::saveDialogSize(), KConfigBase::setGroup(), KDirOperator::writeConfig(), and KConfigBase::writeEntry().
.SS "void KFileDialog::readRecentFiles (\fBKConfig\fP *)\fC [protected, virtual]\fP"
.PP
Reads the recent used files and inserts them into the location combobox. Definition at line 1726 of file kfiledialog.cpp.
.PP
References KConfigBase::group(), QComboBox::insertItem(), KConfigBase::readNumEntry(), KConfigBase::readPathListEntry(), KComboBox::setCurrentItem(), KConfigBase::setGroup(), KURLComboBox::setMaxItems(), and KURLComboBox::setURLs().
.PP
Referenced by init().
.SS "void KFileDialog::saveRecentFiles (\fBKConfig\fP *)\fC [protected, virtual]\fP"
.PP
Saves the entries from the location combobox. Definition at line 1741 of file kfiledialog.cpp.
.PP
References KConfigBase::group(), KConfigBase::setGroup(), KURLComboBox::urls(), and KConfigBase::writeEntry().
.SS "\fBKURL::List\fP KFileDialog::tokenize (const \fBQString\fP & line) const\fC [protected]\fP"
.PP
Parses the string 'line' for files. If line doesn't contain any ', the whole line will be interpreted as one file. If the number of ' is odd, an empty list will be returned. Otherwise, all items enclosed in ' ' will be returned as correct urls. Definition at line 1507 of file kfiledialog.cpp.
.PP
References QValueList< KURL >::append(), QString::contains(), QString::find(), KURL::isMalformed(), QString::mid(), KStdAccel::name(), KURL::setFileName(), KMessageBox::sorry(), and KDirOperator::url().
.SS "void KFileDialog::toolbarCallback (int)\fC [protected, slot]\fP"
.PP
\fBThis class or method is obsolete, it is provided for compatibility only.\fP Definition at line 1190 of file kfiledialog.cpp.
.SS "void KFileDialog::toggleSpeedbar (bool)\fC [protected, slot]\fP"
.PP
\fBSince:\fP
.RS 4
3.1 
.RE
.PP
Definition at line 1817 of file kfiledialog.cpp.
.PP
References KActionCollection::action(), actionCollection(), KDirOperator::actionCollection(), KURL::equals(), QDir::homeDirPath(), KAction::isPlugged(), KAction::plug(), KURL::setPath(), KAction::unplug(), and KURLBarItem::url().
.PP
Referenced by init(), and readConfig().
.SS "void KFileDialog::updateStatusLine (int dirs, int files)\fC [protected, virtual, slot]\fP"
.PP
\fBThis class or method is obsolete, it is provided for compatibility only.\fP Definition at line 1339 of file kfiledialog.cpp.

.SH "Author"
.PP 
Generated automatically by Doxygen for kio Library from the source code.
