kdgantt

#include <KDGanttViewItemDrag.h>

Inherits TQStoredDrag.

Public Member Functions

 KDGanttViewItemDrag (KDGanttViewItem *item, TQWidget *source, const char *name)
 
TQByteArray encodedData (const char *c) const
 
KDGanttViewItemgetItem ()
 

Static Public Member Functions

static bool canDecode (const TQMimeSource *e)
 
static bool decode (const TQMimeSource *e, TQString &)
 

Detailed Description

Drag and drop of KD Gantt items.

This class implements drag and drop of KD Gantt items within a Gantt chart. It is mainly used for internal purposes, but made a part of the public API nevertheless, as you may want to subclass it for some specialized functionality.

Definition at line 42 of file KDGanttViewItemDrag.h.

Constructor & Destructor Documentation

◆ KDGanttViewItemDrag()

KDGanttViewItemDrag::KDGanttViewItemDrag ( KDGanttViewItem item,
TQWidget *  source,
const char *  name 
)

The constructor. Creates a KDGanttViewItemDrag object and initializes the drag data in the form of an XML document.

Parameters
itemthe item that is dragged
sourcethe source widget
namethe internal object name

Definition at line 57 of file KDGanttViewItemDrag.cpp.

Member Function Documentation

◆ canDecode()

bool KDGanttViewItemDrag::canDecode ( const TQMimeSource *  e)
static

Returns whether this drag object class can decode the data passed in e.

Parameters
ethe mime source that has been dragged
Returns
true if KDGanttViewItemDrag can decode the data in e.

Definition at line 115 of file KDGanttViewItemDrag.cpp.

◆ decode()

bool KDGanttViewItemDrag::decode ( const TQMimeSource *  e,
TQString &  string 
)
static

Decodes the data passed in e into an XML string that is written into string.

Parameters
ethe data to decode
stringthe resulting XML string
Returns
true if the operation succeeded

Definition at line 132 of file KDGanttViewItemDrag.cpp.

◆ encodedData()

TQByteArray KDGanttViewItemDrag::encodedData ( const char *  c) const

Returns the encoded data of the drag object.

Parameters
cthe format of the data
Returns
the encoded data of the drag object

Definition at line 89 of file KDGanttViewItemDrag.cpp.

◆ getItem()

KDGanttViewItem * KDGanttViewItemDrag::getItem ( )

Returns the dragged item

Returns
the dragged item

Definition at line 103 of file KDGanttViewItemDrag.cpp.


The documentation for this class was generated from the following files: