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

KFile

  • sources
  • kde-4.14
  • kdelibs
  • kfile
kdirselectdialog.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2001 Michael Jarrett <michaelj@corel.com>
3  Copyright (C) 2001 Carsten Pfeiffer <pfeiffer@kde.org>
4  Copyright (C) 2009 Shaun Reich <shaun.reich@kdemail.net>
5 
6  This library is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Library General Public
8  License version 2 as published by the Free Software Foundation.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Library General Public License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this library; see the file COPYING.LIB. If not, write to
17  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  Boston, MA 02110-1301, USA.
19 */
20 
21 #ifndef KDIRSELECTDIALOG_H
22 #define KDIRSELECTDIALOG_H
23 
24 #include <kfile_export.h>
25 
26 #include <kdialog.h>
27 #include <kurl.h>
28 
29 class QAbstractItemView;
30 
36 class KFILE_EXPORT KDirSelectDialog : public KDialog
37 {
38  Q_OBJECT
39 
40 public:
48  explicit KDirSelectDialog(const KUrl& startDir = KUrl(),
49  bool localOnly = false,
50  QWidget *parent = 0L);
51 
55  ~KDirSelectDialog();
56 
63  KUrl url() const;
64 
68  QAbstractItemView* view() const;
69 
73  bool localOnly() const;
74 
90  static KUrl selectDirectory( const KUrl& startDir = KUrl(),
91  bool localOnly = false, QWidget *parent = 0L,
92  const QString& caption = QString());
93 
97  KUrl startDir() const;
98 
99 public Q_SLOTS:
103  void setCurrentUrl( const KUrl& url );
104 
105 protected:
106  virtual void accept();
107 
111  virtual void hideEvent( QHideEvent *event );
112 
113 private:
114  class Private;
115  Private* const d;
116 
117  Q_PRIVATE_SLOT( d, void slotCurrentChanged() )
118  Q_PRIVATE_SLOT( d, void slotExpand(const QModelIndex&) )
119  Q_PRIVATE_SLOT( d, void slotUrlActivated(const QString&) )
120  Q_PRIVATE_SLOT( d, void slotComboTextChanged(const QString&) )
121  Q_PRIVATE_SLOT( d, void slotContextMenuRequested(const QPoint&) )
122  Q_PRIVATE_SLOT( d, void slotNewFolder() )
123  Q_PRIVATE_SLOT( d, void slotMoveToTrash() )
124  Q_PRIVATE_SLOT( d, void slotDelete() )
125  Q_PRIVATE_SLOT( d, void slotProperties() )
126 };
127 
128 #endif
QHideEvent
kdialog.h
caption
QString caption()
QModelIndex
QWidget
QAbstractItemView
kurl.h
QPoint
KDialog
KUrl
QWidget::hideEvent
virtual void hideEvent(QHideEvent *event)
QString
QDialog::accept
virtual void accept()
KDirSelectDialog
A pretty dialog for a KDirSelect control for selecting directories.
Definition: kdirselectdialog.h:36
kfile_export.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:27:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KFile

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal