• Skip to content
  • Skip to link menu
KDE 4.1 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 
00005   This library is free software; you can redistribute it and/or
00006   modify it under the terms of the GNU Library General Public
00007   License version 2 as published by the Free Software Foundation.
00008 
00009   This library is distributed in the hope that it will be useful,
00010   but WITHOUT ANY WARRANTY; without even the implied warranty of
00011   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012   Library General Public License for more details.
00013 
00014   You should have received a copy of the GNU Library General Public License
00015   along with this library; see the file COPYING.LIB.  If not, write to
00016   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017   Boston, MA 02110-1301, USA.
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

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
  • Kross
  • KUtils
  • Nepomuk
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
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