KDevelop API Documentation

buildtools/autotools/kfilednddetailview.h

Go to the documentation of this file.
00001 /*************************************************************************** 00002 * kfilednddetailview.h - description 00003 * ------------------- 00004 * begin : Wed Nov 1 2000 00005 * copyright : (C) 2000 by Björn Sahlström 00006 * email : kbjorn@users.sourceforge.net 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 **************************************************************************/ 00017 00018 #ifndef KFILEDNDDETAILVIEW_H 00019 #define KFILEDNDDETAILVIEW_H 00020 00022 // Qt specific include files 00023 #include <qwidget.h> 00024 #include <qtimer.h> 00026 // KDE specific include files 00027 #include <kfiledetailview.h> 00028 #include <kurldrag.h> 00029 00030 00040 class KFileDnDDetailView : public KFileDetailView { 00041 Q_OBJECT 00042 public: 00044 KFileDnDDetailView(QWidget *parent=0, const char *name=0); 00046 virtual ~KFileDnDDetailView(); 00050 void setDnDEnabled( bool ); 00054 bool isDnDEnabled() const { return m_dndEnabled; } 00061 void setAutoOpenTime( const int& time ); 00066 void useAutoOpenTimer( bool on=true ); 00072 bool isAutoOpening() const { return m_useAutoOpenTimer; } 00074 virtual void readConfig( KConfig*, const QString& group = QString::null ); 00076 virtual void writeConfig( KConfig*, const QString& group = QString::null ); 00077 signals: // Signals 00082 void dropped( QDropEvent* ); 00087 void dropped( KFileView*, QDropEvent* ); 00092 void dropped( KFileView*, KURL::List& urls ); 00093 protected slots: // Protected slots 00097 void slotOpenFolder(); 00098 protected: //Protected Methods 00100 virtual void contentsDragEnterEvent( QDragEnterEvent *e ); 00102 virtual void contentsDragMoveEvent( QDragMoveEvent *e ); 00104 virtual void contentsDragLeaveEvent( QDragLeaveEvent *e ); 00106 virtual void contentsDropEvent( QDropEvent* e ); 00110 virtual void startDrag(); 00114 virtual QDragObject* dragObject() const; 00118 virtual bool acceptDrag(QDropEvent* event) const; 00119 protected: // Private attributes 00120 QTimer m_autoOpenTimer; 00121 int m_autoOpenTime; 00122 bool m_useAutoOpenTimer; 00123 QListViewItem* m_dropItem; 00124 KURLDrag* m_dragObject; 00125 bool m_dndEnabled; 00126 }; 00127 00128 #endif
KDE Logo
This file is part of the documentation for KDevelop Version 3.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Oct 19 08:01:36 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003