libkcal

KCal::DndFactory Class Reference

#include <dndfactory.h>

Public Member Functions

 DndFactory (Calendar *)
 
ICalDragcreateDrag (Incidence *incidence, TQWidget *owner)
 
TodocreateDropTodo (TQDropEvent *de)
 
EventcreateDrop (TQDropEvent *de)
 
void cutIncidence (Incidence *)
 
bool copyIncidence (Incidence *)
 
bool cutIncidences (const Incidence::List &incidences)
 
bool copyIncidences (const Incidence::List &incidences)
 
IncidencepasteIncidence (const TQDate &, const TQTime *newTime=0)
 
Incidence::List pasteIncidences (const TQDate &newDate=TQDate(), const TQTime *newTime=0)
 

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.

Member Function Documentation

◆ copyIncidence()

bool DndFactory::copyIncidence ( Incidence selectedInc)

copy the incidence to clipboard

Definition at line 199 of file dndfactory.cpp.

◆ copyIncidences()

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

copies a list of incidences to the clipboard

Definition at line 179 of file dndfactory.cpp.

◆ createDrag()

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

Create a drag object.

Definition at line 106 of file dndfactory.cpp.

◆ createDrop()

Event * DndFactory::createDrop ( TQDropEvent *  de)

Create Event object from drop event.

Definition at line 121 of file dndfactory.cpp.

◆ createDropTodo()

Todo * DndFactory::createDropTodo ( TQDropEvent *  de)

Create Todo object from drop event.

Definition at line 140 of file dndfactory.cpp.

◆ cutIncidence()

void DndFactory::cutIncidence ( Incidence selectedInc)

cut incidence to clipboard

Definition at line 159 of file dndfactory.cpp.

◆ cutIncidences()

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

cuts a list of incidences to the clipboard

Definition at line 166 of file dndfactory.cpp.

◆ pasteIncidence()

Incidence * DndFactory::pasteIncidence ( const TQDate &  newDate,
const TQTime *  newTime = 0 
)

pastes the event or todo and returns a pointer to the new incidence pasted.

Definition at line 249 of file dndfactory.cpp.

◆ pasteIncidences()

Incidence::List DndFactory::pasteIncidences ( const TQDate &  newDate = TQDate(),
const TQTime *  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: