KDE3Support
k3multipledrag.h
Go to the documentation of this file.
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., 51 Franklin Street, Fifth Floor, 00017 Boston, MA 02110-1301, USA. 00018 */ 00019 00020 #ifndef K3MULTIPLEDRAG_H 00021 #define K3MULTIPLEDRAG_H 00022 00023 #ifndef QT_NO_DRAGANDDROP 00024 00025 #include <kde3support_export.h> 00026 #include <Qt3Support/Q3DragObject> 00027 #include <Qt3Support/Q3ValueList> 00028 00029 class K3MultipleDragPrivate; 00055 class KDE3SUPPORT_EXPORT K3MultipleDrag : public Q3DragObject 00056 { 00057 Q_OBJECT 00058 00059 public: 00066 K3MultipleDrag( QWidget *dragSource = 0, const char *name = 0 ); 00067 00075 void addDragObject( Q3DragObject *dragObject ); 00076 00084 virtual QByteArray encodedData( const char *mime ) const; 00085 00092 virtual const char* format( int i ) const; 00093 00094 protected: 00095 virtual void virtual_hook( int id, void* data ); 00096 private: 00097 Q3PtrList<Q3DragObject> m_dragObjects; 00098 QList<int> m_numberFormats; 00099 K3MultipleDragPrivate* d; 00100 }; 00101 00102 #endif // QT_NO_DRAGANDDROP 00103 00104 #endif // K3MULTIPLEDRAG_H
KDE 4.6 API Reference