21#ifndef KEXI_DRAGOBJECTS_H_
22#define KEXI_DRAGOBJECTS_H_
24#include <tqdragobject.h>
35 KexiFieldDrag( const TQString& sourceMimeType, const TQString& sourceName,
36 const TQString& field, TQWidget *parent, const char *name);
40 KexiFieldDrag( const TQString& sourceMimeType, const TQString& sourceName,
41 const TQStringList& field, TQWidget *parent=0, const char *name=0);
45 void addField( const TQString& field);
49 static bool canDecodeSingle( TQMimeSource* e );
55 static bool canDecodeMultiple( TQMimeSource* e );
60 static bool decodeSingle( TQDropEvent* e, TQString& sourceMimeType,
61 TQString& sourceName, TQString& field );
66 static bool decodeMultiple( TQDropEvent* e, TQString& sourceMimeType,
67 TQString& sourceName, TQStringList& fields );
70class KEXICORE_EXPORT KexiDataProviderDrag : public TQStoredDrag
73 KexiDataProviderDrag( const TQString& sourceMimeType, const TQString& sourceName,
74 TQWidget *parent=0, const char *name=0);
75 ~KexiDataProviderDrag() { };
77 static bool canDecode( TQDragMoveEvent* e);
78 static bool decode( TQDropEvent* e, TQString& sourceMimeType, TQString& sourceName);
Drag object containing information about field(s).
|