libkcal
KCal::DndFactory Class Reference
#include <dndfactory.h>
Detailed Description
This class implements functions to create Drag and Drop objects used for Drag-and-Drop and Copy-and-Paste.vCalendar/iCalendar Drag-and-Drop object factory.
Definition at line 42 of file dndfactory.h.
Public Member Functions | |
DndFactory (Calendar *) | |
ICalDrag * | createDrag (Incidence *incidence, QWidget *owner) |
Todo * | createDropTodo (QDropEvent *de) |
Event * | createDrop (QDropEvent *de) |
void | cutIncidence (Incidence *) |
bool | copyIncidence (Incidence *) |
bool | cutIncidences (const Incidence::List &incidences) |
bool | copyIncidences (const Incidence::List &incidences) |
Incidence * | pasteIncidence (const QDate &, const QTime *newTime=0) |
Incidence::List | pasteIncidences (const QDate &newDate=QDate(), const QTime *newTime=0) |
Member Function Documentation
Todo * DndFactory::createDropTodo | ( | QDropEvent * | de | ) |
Event * DndFactory::createDrop | ( | QDropEvent * | de | ) |
void DndFactory::cutIncidence | ( | Incidence * | selectedInc | ) |
bool DndFactory::copyIncidence | ( | Incidence * | selectedInc | ) |
bool DndFactory::cutIncidences | ( | const Incidence::List & | incidences | ) |
bool DndFactory::copyIncidences | ( | const Incidence::List & | incidences | ) |
Incidence * DndFactory::pasteIncidence | ( | const QDate & | newDate, | |
const QTime * | newTime = 0 | |||
) |
pastes the event or todo and returns a pointer to the new incidence pasted.
Definition at line 249 of file dndfactory.cpp.
Incidence::List DndFactory::pasteIncidences | ( | const QDate & | newDate = QDate() , |
|
const QTime * | newTime = 0 | |||
) |
pastes and returns the incidences from the clipboard If no date and time are given, the incidences will be pasted at their original time
Definition at line 206 of file dndfactory.cpp.
The documentation for this class was generated from the following files: