KFile
kdirselectdialog.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef KDIRSELECTDIALOG_H
00021 #define KDIRSELECTDIALOG_H
00022
00023 #include <kfile_export.h>
00024
00025 #include <kdialog.h>
00026 #include <kurl.h>
00027
00028 class QAbstractItemView;
00029
00035 class KFILE_EXPORT KDirSelectDialog : public KDialog
00036 {
00037 Q_OBJECT
00038
00039 public:
00047 explicit KDirSelectDialog(const KUrl& startDir = KUrl(),
00048 bool localOnly = false,
00049 QWidget *parent = 0L);
00050
00054 ~KDirSelectDialog();
00055
00059 KUrl url() const;
00060
00064 QAbstractItemView* view() const;
00065
00069 bool localOnly() const;
00070
00086 static KUrl selectDirectory( const KUrl& startDir = KUrl(),
00087 bool localOnly = false, QWidget *parent = 0L,
00088 const QString& caption = QString());
00089
00093 KUrl startDir() const;
00094
00095 public Q_SLOTS:
00099 void setCurrentUrl( const KUrl& url );
00100
00101 protected:
00102 virtual void accept();
00103
00107 virtual void hideEvent( QHideEvent *event );
00108
00109 private:
00110 class Private;
00111 Private* const d;
00112
00113 Q_PRIVATE_SLOT( d, void _k_slotCurrentChanged() )
00114 Q_PRIVATE_SLOT( d, void _k_slotExpand(const QModelIndex&) )
00115 Q_PRIVATE_SLOT( d, void _k_slotUrlActivated(const QString&) )
00116 Q_PRIVATE_SLOT( d, void _k_slotComboTextChanged(const QString&) )
00117 Q_PRIVATE_SLOT( d, void _k_slotContextMenu(const QPoint&) )
00118 Q_PRIVATE_SLOT( d, void _k_slotUser1() )
00119 };
00120
00121 #endif