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 Member Functions | |
DndFactory (Calendar *) | |
ICalDrag * | createDrag (Event *selectedEv, QWidget *owner) |
create an object to be used with the Xdnd Drag And Drop protocol. | |
ICalDrag * | createDragTodo (Todo *selectedEv, QWidget *owner) |
create an object to be used with the Xdnd Drag And Drop protocol. | |
Todo * | createDropTodo (QDropEvent *de) |
Create Todo object from drop event. | |
Event * | createDrop (QDropEvent *de) |
Create Event object from drop event. | |
void | cutEvent (Event *) |
cut event to clipboard | |
bool | copyEvent (Event *) |
cut, copy, and paste operations follow. | |
Event * | pasteEvent (const QDate &, const QTime *newTime=0L) |
pastes the event and returns a pointer to the new event pasted. |
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 37 of file dndfactory.h.
Member Function Documentation
|
create an object to be used with the Xdnd Drag And Drop protocol.
Definition at line 46 of file dndfactory.cpp. References KCal::CalendarLocal::addEvent(), KCal::Calendar::getTimeZoneStr(), and KCal::Calendar::setTimeZone(). |
|
create an object to be used with the Xdnd Drag And Drop protocol.
Definition at line 58 of file dndfactory.cpp. References KCal::CalendarLocal::addTodo(), KCal::Calendar::getTimeZoneStr(), and KCal::Calendar::setTimeZone(). |
|
Create Todo object from drop event.
Definition at line 90 of file dndfactory.cpp. References QDropEvent::accept(), QPtrList::first(), KCal::Calendar::getTimeZoneStr(), QPtrList::isEmpty(), KCal::Calendar::setTimeZone(), and KCal::CalendarLocal::todos(). |
|
Create Event object from drop event.
Definition at line 70 of file dndfactory.cpp. References QDropEvent::accept(), KCal::Calendar::events(), QPtrList::first(), KCal::Calendar::getTimeZoneStr(), QPtrList::isEmpty(), and KCal::Calendar::setTimeZone(). |
|
cut event to clipboard
Definition at line 111 of file dndfactory.cpp. References copyEvent(), and KCal::Calendar::deleteEvent(). |
|
cut, copy, and paste operations follow.
Definition at line 118 of file dndfactory.cpp. References KCal::CalendarLocal::addEvent(), QApplication::clipboard(), KCal::Calendar::getTimeZoneStr(), QClipboard::setData(), and KCal::Calendar::setTimeZone(). Referenced by cutEvent(). |
|
pastes the event and returns a pointer to the new event pasted.
Definition at line 131 of file dndfactory.cpp. References QDate::addDays(), KCal::Calendar::addEvent(), QApplication::clipboard(), QClipboard::data(), QDateTime::date(), KCal::Event::dtEnd(), KCal::IncidenceBase::dtStart(), KCal::Calendar::events(), QPtrList::first(), KCal::Incidence::recreate(), KCal::Event::setDtEnd(), KCal::Incidence::setDtStart(), QDateTime::time(), and KCal::CalendarLocal::todos(). |
The documentation for this class was generated from the following files: