19 #ifndef __konqdrag_h__
20 #define __konqdrag_h__
22 #include <tqdragobject.h>
25 #include <tqiconview.h>
27 #include <libkonq_export.h>
38 class LIBKONQ_EXPORT KonqIconDrag :
public TQIconDrag
43 KonqIconDrag( TQWidget * dragSource,
const char* name = 0 );
44 virtual ~KonqIconDrag() {}
46 const char* format(
int i )
const;
47 TQByteArray encodedData(
const char* mime )
const;
49 void append(
const TQIconDragItem &item,
const TQRect &pr,
50 const TQRect &tr,
const TQString &url );
52 void setMoveSelection(
bool move ) { m_bCutSelection = move; }
54 static bool canDecode(
const TQMimeSource* e );
74 virtual const char* format(
int i )
const;
75 virtual TQByteArray encodedData(
const char* mime )
const;
77 void append(
const TQIconDragItem &item,
const TQRect &pr,
78 const TQRect &tr,
const TQString &url,
const KURL &mostLocalURL );
81 TQStringList m_kdeURLs;
85 class LIBKONQ_EXPORT KonqDrag :
public TQUriDrag
89 static KonqDrag * newDrag(
const KURL::List & urls,
90 bool move, TQWidget * dragSource = 0,
const char* name = 0 );
100 KonqDrag(
const KURL::List & urls,
const KURL::List& mostLocalUrls,
bool cut, TQWidget * dragSource = 0 );
104 KonqDrag(
const TQStrList & urls,
bool cut, TQWidget * dragSource,
const char* name );
107 virtual ~KonqDrag() {}
109 virtual const char* format(
int i )
const;
110 virtual TQByteArray encodedData(
const char* mime )
const;
112 void setMoveSelection(
bool move ) { m_bCutSelection = move; }
115 static bool decodeIsCutSelection(
const TQMimeSource *e );
118 bool m_bCutSelection;
Clipboard/dnd data for: Icons + URLs + MostLocal URLs + isCut KDE4: merge with KonqIconDrag.