• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KFile

kdirselectdialog.h

Go to the documentation of this file.
00001 /*
00002   Copyright (C) 2001 Michael Jarrett <michaelj@corel.com>
00003   Copyright (C) 2001 Carsten Pfeiffer <pfeiffer@kde.org>
00004   Copyright (C) 2009 Shaun Reich <shaun.reich@kdemail.net>
00005 
00006   This library is free software; you can redistribute it and/or
00007   modify it under the terms of the GNU Library General Public
00008   License version 2 as published by the Free Software Foundation.
00009 
00010   This library is distributed in the hope that it will be useful,
00011   but WITHOUT ANY WARRANTY; without even the implied warranty of
00012   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013   Library General Public License for more details.
00014 
00015   You should have received a copy of the GNU Library General Public License
00016   along with this library; see the file COPYING.LIB.  If not, write to
00017   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018   Boston, MA 02110-1301, USA.
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

KFile

Skip menu "KFile"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal