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

KFile

kfileplacesview.h

Go to the documentation of this file.
00001 /*  This file is part of the KDE project
00002     Copyright (C) 2007 Kevin Ottens <ervin@kde.org>
00003 
00004     This library is free software; you can redistribute it and/or
00005     modify it under the terms of the GNU Library General Public
00006     License version 2 as published by the Free Software Foundation.
00007 
00008     This library is distributed in the hope that it will be useful,
00009     but WITHOUT ANY WARRANTY; without even the implied warranty of
00010     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011     Library General Public License for more details.
00012 
00013     You should have received a copy of the GNU Library General Public License
00014     along with this library; see the file COPYING.LIB.  If not, write to
00015     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00016     Boston, MA 02110-1301, USA.
00017 
00018 */
00019 #ifndef KFILEPLACESVIEW_H
00020 #define KFILEPLACESVIEW_H
00021 
00022 #include <kfile_export.h>
00023 
00024 #include <QtGui/QListView>
00025 
00026 #include <kurl.h>
00027 
00028 class QResizeEvent;
00029 class QContextMenuEvent;
00030 
00034 class KFILE_EXPORT KFilePlacesView : public QListView
00035 {
00036     Q_OBJECT
00037 public:
00038     KFilePlacesView(QWidget *parent = 0);
00039     ~KFilePlacesView();
00040 
00050     void setDropOnPlaceEnabled(bool enabled);
00051     bool isDropOnPlaceEnabled() const;
00052 
00059     void setAutoResizeItemsEnabled(bool enabled);
00060     bool isAutoResizeItemsEnabled() const;
00061 
00062 public Q_SLOTS:
00063     void setUrl(const KUrl &url);
00064     void setShowAll(bool showAll);
00065     virtual QSize sizeHint() const;
00066     virtual void setModel(QAbstractItemModel *model);
00067 
00068 protected:
00069     virtual void contextMenuEvent(QContextMenuEvent *event);
00070     virtual void resizeEvent(QResizeEvent *event);
00071     virtual void showEvent(QShowEvent *event);
00072     virtual void hideEvent(QHideEvent *event);
00073     virtual void dragEnterEvent(QDragEnterEvent *event);
00074     virtual void dragLeaveEvent(QDragLeaveEvent *event);
00075     virtual void dragMoveEvent(QDragMoveEvent *event);
00076     virtual void dropEvent(QDropEvent *event);
00077     virtual void paintEvent(QPaintEvent *event);
00078 
00079 protected Q_SLOTS:
00080     void rowsInserted(const QModelIndex &parent, int start, int end);
00081     void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight);
00082 
00083 Q_SIGNALS:
00084     void urlChanged(const KUrl &url);
00085 
00091     void urlsDropped(const KUrl &dest, QDropEvent *event, QWidget *parent);
00092 
00093 private:
00094     Q_PRIVATE_SLOT(d, void adaptItemSize())
00095     Q_PRIVATE_SLOT(d, void _k_placeClicked(const QModelIndex &))
00096     Q_PRIVATE_SLOT(d, void _k_placeEntered(const QModelIndex &))
00097     Q_PRIVATE_SLOT(d, void _k_placeLeft(const QModelIndex &))
00098     Q_PRIVATE_SLOT(d, void _k_storageSetupDone(const QModelIndex &, bool))
00099     Q_PRIVATE_SLOT(d, void _k_adaptItemsUpdate(qreal))
00100     Q_PRIVATE_SLOT(d, void _k_itemAppearUpdate(qreal))
00101     Q_PRIVATE_SLOT(d, void _k_itemDisappearUpdate(qreal))
00102     Q_PRIVATE_SLOT(d, void _k_enableSmoothItemResizing())
00103     Q_PRIVATE_SLOT(d, void _k_trashUpdated(KJob *))
00104     Q_PRIVATE_SLOT(d, void _k_capacityBarFadeValueChanged())
00105     Q_PRIVATE_SLOT(d, void _k_triggerDevicePolling())
00106 
00107     class Private;
00108     Private * const d;
00109     friend class Private;
00110 };
00111 
00112 #endif

KFile

Skip menu "KFile"
  • Main Page
  • Namespace List
  • 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
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
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