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

KFile

  • 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
29class QAbstractItemView;
30
36class KFILE_EXPORT KDirSelectDialog : public KDialog
37{
38 Q_OBJECT
39
40public:
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
99public Q_SLOTS:
103 void setCurrentUrl( const KUrl& url );
104
105protected:
106 virtual void accept();
107
111 virtual void hideEvent( QHideEvent *event );
112
113private:
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
KDialog::hideEvent
virtual void hideEvent(QHideEvent *)
KDialog::KDialog
KDialog(QWidget *parent=0, Qt::WindowFlags flags=0)
KDirSelectDialog::accept
virtual void accept()
Definition kdirselectdialog.cpp:462
KDirSelectDialog::startDir
KUrl startDir() const
Definition kdirselectdialog.cpp:431
KDirSelectDialog::setCurrentUrl
void setCurrentUrl(const KUrl &url)
Sets the current url in the dialog.
Definition kdirselectdialog.cpp:436
KDirSelectDialog::KDirSelectDialog
KDirSelectDialog(const KUrl &startDir=KUrl(), bool localOnly=false, QWidget *parent=0L)
Creates a new directory selection dialog.
Definition kdirselectdialog.cpp:272
KDirSelectDialog::view
QAbstractItemView * view() const
Returns a pointer to the view which is used for displaying the directories.
Definition kdirselectdialog.cpp:421
KDirSelectDialog::selectDirectory
static KUrl selectDirectory(const KUrl &startDir=KUrl(), bool localOnly=false, QWidget *parent=0L, const QString &caption=QString())
Creates a KDirSelectDialog, and returns the result.
Definition kdirselectdialog.cpp:487
KDirSelectDialog::url
KUrl url() const
Returns the currently selected URL, or an empty one if no item is selected.
Definition kdirselectdialog.cpp:405
KDirSelectDialog::localOnly
bool localOnly() const
Returns whether only local directories can be selected.
Definition kdirselectdialog.cpp:426
KUrl
QWidget
kdialog.h
kfile_export.h
kurl.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.13.2 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-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 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
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