kdecore Library API Documentation

kmultipledrag.h

00001 /* This file is part of the KDE project 00002 Copyright (C) 2001 David Faure <faure@kde.org> 00003 00004 This program is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License as published by the Free Software Foundation; either 00007 version 2 of the License. 00008 00009 This program is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 Library General Public License for more details. 00013 00014 You should have received a copy of the GNU Library General Public License 00015 along with this program; see the file COPYING. If not, write to 00016 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00017 Boston, MA 02111-1307, USA. 00018 */ 00019 00020 #ifndef KMULTIPLEDRAG_H 00021 #define KMULTIPLEDRAG_H 00022 00023 #ifndef QT_NO_DRAGANDDROP 00024 00025 #include <qdragobject.h> 00026 #include <qvaluelist.h> 00027 00028 class KMultipleDragPrivate; 00053 class KMultipleDrag : public QDragObject 00054 { 00055 Q_OBJECT 00056 00057 public: 00064 KMultipleDrag( QWidget *dragSource = 0L, const char *name = 0L ); 00065 00073 void addDragObject( QDragObject *dragObject ); 00074 00075 protected: 00082 virtual QByteArray encodedData( const char *mime ) const; 00083 00089 virtual const char* format( int i ) const; 00090 00091 QPtrList<QDragObject> m_dragObjects; 00092 QValueList<int> m_numberFormats; 00093 protected: 00094 virtual void virtual_hook( int id, void* data ); 00095 private: 00096 KMultipleDragPrivate* d; 00097 }; 00098 00099 #endif // QT_NO_DRAGANDDROP 00100 00101 #endif // KMULTIPLEDRAG_H
KDE Logo
This file is part of the documentation for kdecore Library Version 3.2.3.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Oct 8 11:14:01 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003