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

KFile

kfiletreeview.h

Go to the documentation of this file.
00001 /*
00002    This file is part of the KDE project
00003 
00004    Copyright (C) 2007 Tobias Koenig <tokoe@kde.org>
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 as published by the Free Software Foundation; either
00009    version 2 of the License, or (at your option) any later version.
00010 
00011    This library is distributed in the hope that it will be useful,
00012    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014    Library General Public License for more details.
00015 
00016    You should have received a copy of the GNU Library General Public License
00017    along with this library; see the file COPYING.LIB.  If not, write to
00018    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00019    Boston, MA 02110-1301, USA.
00020 */
00021 
00022 #ifndef KFILETREEVIEW_H
00023 #define KFILETREEVIEW_H
00024 
00025 #include <QtGui/QTreeView>
00026 
00027 #include <kurl.h>
00028 
00029 #include <kfile_export.h>
00030 
00034 class KFILE_EXPORT KFileTreeView : public QTreeView
00035 {
00036     Q_OBJECT
00037 
00038     public:
00042         KFileTreeView(QWidget *parent = 0);
00043 
00047         ~KFileTreeView();
00048 
00052         KUrl currentUrl() const;
00053 
00057         KUrl selectedUrl() const;
00058 
00062         KUrl::List selectedUrls() const;
00063 
00067         KUrl rootUrl() const;
00068 
00069     public Q_SLOTS:
00076         void setDirOnlyMode(bool enabled);
00077 
00081         void setShowHiddenFiles(bool enabled);
00082 
00086         void setCurrentUrl(const KUrl &url);
00087 
00093         void setRootUrl(const KUrl &url);
00094 
00095     Q_SIGNALS:
00099         void activated(const KUrl &url);
00100 
00104         void currentChanged(const KUrl &url);
00105 
00106     protected:
00107         virtual void contextMenuEvent( QContextMenuEvent* );
00108 
00109     private:
00110       class Private;
00111       Private* const d;
00112 
00113       Q_PRIVATE_SLOT(d, void _k_activated(const QModelIndex&))
00114       Q_PRIVATE_SLOT(d, void _k_currentChanged(const QModelIndex&, const QModelIndex&))
00115       Q_PRIVATE_SLOT(d, void _k_expanded(const QModelIndex&))
00116 };
00117 
00118 #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