tdecore
tdemultipledrag.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef TDEMULTIPLEDRAG_H
00021 #define TDEMULTIPLEDRAG_H
00022
00023 #ifndef QT_NO_DRAGANDDROP
00024
00025 #include <tqdragobject.h>
00026 #include <tqvaluelist.h>
00027 #include "tdelibs_export.h"
00028
00029 class KMultipleDragPrivate;
00054 class TDECORE_EXPORT KMultipleDrag : public TQDragObject
00055 {
00056 Q_OBJECT
00057
00058 public:
00065 KMultipleDrag( TQWidget *dragSource = 0, const char *name = 0 );
00066
00074 void addDragObject( TQDragObject *dragObject );
00075
00083 virtual TQByteArray encodedData( const char *mime ) const;
00084
00091 virtual const char* format( int i ) const;
00092
00093 protected:
00094
00095 TQPtrList<TQDragObject> m_dragObjects;
00096 TQValueList<int> m_numberFormats;
00097 protected:
00098 virtual void virtual_hook( int id, void* data );
00099 private:
00100 KMultipleDragPrivate* d;
00101 };
00102
00103 #endif // QT_NO_DRAGANDDROP
00104
00105 #endif // TDEMULTIPLEDRAG_H