25 #include <tqdragobject.h>
27 #include <tdelibs_export.h>
29 class KColorDragPrivate;
43 KColorDrag( TQWidget *dragsource = 0,
const char *name = 0 );
47 KColorDrag(
const TQColor &col, TQWidget *dragsource = 0,
const char *name = 0 );
50 virtual const char *format(
int i)
const;
51 virtual TQByteArray encodedData (
const char * m )
const;
56 void setColor(
const TQColor &col);
60 static bool canDecode(TQMimeSource *e);
64 static bool decode(TQMimeSource *e, TQColor &col);
68 static KColorDrag* makeDrag(
const TQColor&,TQWidget *dragsource) TDE_DEPRECATED;
73 virtual void virtual_hook(
int id,
void* data );
A drag-and-drop object for colors.