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
00021 #ifndef KDIRSELECTDIALOG_H
00022 #define KDIRSELECTDIALOG_H
00023
00024 #include <kfile_export.h>
00025
00026 #include <kdialog.h>
00027 #include <kurl.h>
00028
00029 class QAbstractItemView;
00030
00036 class KFILE_EXPORT KDirSelectDialog : public KDialog
00037 {
00038 Q_OBJECT
00039
00040 public:
00048 explicit KDirSelectDialog(const KUrl& startDir = KUrl(),
00049 bool localOnly = false,
00050 QWidget *parent = 0L);
00051
00055 ~KDirSelectDialog();
00056
00060 KUrl url() const;
00061
00065 QAbstractItemView* view() const;
00066
00070 bool localOnly() const;
00071
00087 static KUrl selectDirectory( const KUrl& startDir = KUrl(),
00088 bool localOnly = false, QWidget *parent = 0L,
00089 const QString& caption = QString());
00090
00094 KUrl startDir() const;
00095
00096 public Q_SLOTS:
00100 void setCurrentUrl( const KUrl& url );
00101
00102 protected:
00103 virtual void accept();
00104
00108 virtual void hideEvent( QHideEvent *event );
00109
00110 private:
00111 class Private;
00112 Private* const d;
00113
00114 Q_PRIVATE_SLOT( d, void slotCurrentChanged() )
00115 Q_PRIVATE_SLOT( d, void slotExpand(const QModelIndex&) )
00116 Q_PRIVATE_SLOT( d, void slotUrlActivated(const QString&) )
00117 Q_PRIVATE_SLOT( d, void slotComboTextChanged(const QString&) )
00118 Q_PRIVATE_SLOT( d, void slotContextMenuRequested(const QPoint&) )
00119 Q_PRIVATE_SLOT( d, void slotNewFolder() )
00120 Q_PRIVATE_SLOT( d, void slotMoveToTrash() )
00121 Q_PRIVATE_SLOT( d, void slotDelete() )
00122 Q_PRIVATE_SLOT( d, void slotProperties() )
00123 };
00124
00125 #endif