libkcal

KCal::DndFactory Class Reference

#include <dndfactory.h>

List of all members.


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 *)
ICalDragcreateDrag (Incidence *incidence, QWidget *owner)
TodocreateDropTodo (QDropEvent *de)
EventcreateDrop (QDropEvent *de)
KCal::Incidence::List createDropIncidences (QDropEvent *de)
void cutIncidence (Incidence *)
bool copyIncidence (Incidence *)
bool cutIncidences (const Incidence::List &incidences)
bool copyIncidences (const Incidence::List &incidences)
IncidencepasteIncidence (const QDate &, const QTime *newTime=0)
Incidence::List pasteIncidences (const QDate &newDate=QDate(), const QTime *newTime=0)

Member Function Documentation

ICalDrag * DndFactory::createDrag ( Incidence incidence,
QWidget *  owner 
)

Create a drag object.

Definition at line 106 of file dndfactory.cpp.

Todo * DndFactory::createDropTodo ( QDropEvent *  de  ) 

Create Todo object from drop event.

Definition at line 158 of file dndfactory.cpp.

Event * DndFactory::createDrop ( QDropEvent *  de  ) 

Create Event object from drop event.

Definition at line 121 of file dndfactory.cpp.

Incidence::List DndFactory::createDropIncidences ( QDropEvent *  de  ) 

Generic method that creates an incidence drop.

Definition at line 140 of file dndfactory.cpp.

void DndFactory::cutIncidence ( Incidence selectedInc  ) 

cut incidence to clipboard

Definition at line 177 of file dndfactory.cpp.

bool DndFactory::copyIncidence ( Incidence selectedInc  ) 

copy the incidence to clipboard

Definition at line 217 of file dndfactory.cpp.

bool DndFactory::cutIncidences ( const Incidence::List &  incidences  ) 

cuts a list of incidences to the clipboard

Definition at line 184 of file dndfactory.cpp.

bool DndFactory::copyIncidences ( const Incidence::List &  incidences  ) 

copies a list of incidences to the clipboard

Definition at line 197 of file dndfactory.cpp.

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 267 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 224 of file dndfactory.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys