#include <kexidragobjects.h>
Public Member Functions | |
| KexiFieldDrag (const TQString &sourceMimeType, const TQString &sourceName, const TQString &field, TQWidget *parent, const char *name) | |
| KexiFieldDrag (const TQString &sourceMimeType, const TQString &sourceName, const TQStringList &field, TQWidget *parent=0, const char *name=0) | |
| void | addField (const TQString &field) |
Static Public Member Functions | |
| static bool | canDecodeSingle (TQMimeSource *e) |
| static bool | canDecodeMultiple (TQMimeSource *e) |
| static bool | decodeSingle (TQDropEvent *e, TQString &sourceMimeType, TQString &sourceName, TQString &field) |
| static bool | decodeMultiple (TQDropEvent *e, TQString &sourceMimeType, TQString &sourceName, TQStringList &fields) |
Detailed Description
Drag object containing information about field(s).
Definition at line 31 of file kexidragobjects.h.
Constructor & Destructor Documentation
◆ KexiFieldDrag() [1/2]
| KexiFieldDrag::KexiFieldDrag | ( | const TQString & | sourceMimeType, |
| const TQString & | sourceName, | ||
| const TQString & | field, | ||
| TQWidget * | parent, | ||
| const char * | name ) |
implementation of KexiFieldDrag
Creates drag object for a single field field.
Definition at line 29 of file kexidragobjects.cpp.
◆ KexiFieldDrag() [2/2]
| KexiFieldDrag::KexiFieldDrag | ( | const TQString & | sourceMimeType, |
| const TQString & | sourceName, | ||
| const TQStringList & | field, | ||
| TQWidget * | parent = 0, | ||
| const char * | name = 0 ) |
Creates drag object for multiple fields fields. If there's less than two elements in the list, data is set up as for above ctor.
Definition at line 39 of file kexidragobjects.cpp.
◆ ~KexiFieldDrag()
| KexiFieldDrag::~KexiFieldDrag | ( | ) |
Definition at line 58 of file kexidragobjects.cpp.
Member Function Documentation
◆ canDecodeMultiple()
|
static |
- Returns
- true if event e (of class TQDragMoveEvent or TQDropEvent) can be decoded as "kexi/fields" data. If decoding of "kexi/field" type is supported, decoding of "kexi/fields" is always supported.
Definition at line 69 of file kexidragobjects.cpp.
◆ canDecodeSingle()
|
static |
- Returns
- true if event e (of class TQDragMoveEvent or TQDropEvent) can be decoded as "kexi/field" data
Definition at line 63 of file kexidragobjects.cpp.
◆ decodeMultiple()
|
static |
Decodes data of multiple-field drag ("kexi/fields" mime type) coming with event e. Sets sourceMimeType, sourceName and fields. Also works with "kexi/field" data.
- Returns
- true on successful decoding (e will be accepted in such case).
Definition at line 91 of file kexidragobjects.cpp.
◆ decodeSingle()
|
static |
Decodes data of single-field drag ("kexi/field" mime type) coming with event e. Sets sourceMimeType, sourceName and field.
- Returns
- true on successful decoding (e will be accepted in such case).
Definition at line 75 of file kexidragobjects.cpp.
The documentation for this class was generated from the following files:
