KCal::DndFactory Class Reference
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. More...
#include <dndfactory.h>
Public Methods | |
DndFactory (Calendar *) | |
ICalDrag * | createDrag (Incidence *incidence, QWidget *owner) |
Todo * | createDropTodo (QDropEvent *de) |
Event * | createDrop (QDropEvent *de) |
void | cutEvent (Event *) |
void | cutTodo (Todo *) |
bool | copyEvent (Event *) |
bool | copyTodo (Todo *) |
Incidence * | pasteIncidence (const QDate &, const QTime *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 39 of file dndfactory.h.
Member Function Documentation
|
Create a drag object.
Definition at line 46 of file dndfactory.cpp. References KCal::Calendar::addIncidence(), KCal::Incidence::clone(), KCal::Calendar::timeZoneId(), and KCal::IncidenceBase::type(). |
|
Create Todo object from drop event.
Definition at line 80 of file dndfactory.cpp. References QDropEvent::accept(), KCal::Calendar::timeZoneId(), and KCal::CalendarLocal::todos(). |
|
Create Event object from drop event.
Definition at line 61 of file dndfactory.cpp. References QDropEvent::accept(), KCal::Calendar::events(), and KCal::Calendar::timeZoneId(). |
|
cut event to clipboard.
Definition at line 100 of file dndfactory.cpp. References copyEvent(), and KCal::Calendar::deleteEvent(). |
|
cut todo to clipboard.
Definition at line 107 of file dndfactory.cpp. References copyTodo(), and KCal::Calendar::deleteTodo(). |
|
copy event to clipboard.
Definition at line 114 of file dndfactory.cpp. References KCal::CalendarLocal::addEvent(), QApplication::clipboard(), QClipboard::setData(), and KCal::Calendar::timeZoneId(). Referenced by cutEvent(). |
|
copy todo to clipboard.
Definition at line 126 of file dndfactory.cpp. References KCal::CalendarLocal::addTodo(), QApplication::clipboard(), QClipboard::setData(), and KCal::Calendar::timeZoneId(). Referenced by cutTodo(). |
|
pastes the event or todo and returns a pointer to the new incidence pasted.
Definition at line 138 of file dndfactory.cpp. References QDate::addDays(), KCal::Calendar::addEvent(), QDateTime::addSecs(), KCal::Calendar::addTodo(), QApplication::clipboard(), QClipboard::data(), QDateTime::date(), KCal::Todo::dtDue(), KCal::Event::dtEnd(), KCal::IncidenceBase::dtStart(), KCal::Calendar::events(), KCal::Incidence::recreate(), KCal::Todo::setDtDue(), KCal::Event::setDtEnd(), KCal::Incidence::setDtStart(), QDateTime::time(), KCal::Calendar::timeZoneId(), and KCal::CalendarLocal::todos(). |
The documentation for this class was generated from the following files: