author | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
commit | a08aff328d4393031d5ba7d622c2b05705a89d73 (patch) (unidiff) | |
tree | 8ee90d686081c52e7c69b5ce946e9b1a7d690001 /libkcal/dndfactory.h | |
parent | 11edc920afe4f274c0964436633aa632c8288a40 (diff) | |
download | kdepimpi-p1.zip kdepimpi-p1.tar.gz kdepimpi-p1.tar.bz2 |
initial public commit of qt4 portp1
-rw-r--r-- | libkcal/dndfactory.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libkcal/dndfactory.h b/libkcal/dndfactory.h index 2df5259..a873c37 100644 --- a/libkcal/dndfactory.h +++ b/libkcal/dndfactory.h | |||
@@ -1,83 +1,85 @@ | |||
1 | //Added by qt3to4: | ||
2 | #include <QDropEvent> | ||
1 | /* | 3 | /* |
2 | This file is part of libkcal. | 4 | This file is part of libkcal. |
3 | 5 | ||
4 | Copyright (c) 1998 Preston Brown | 6 | Copyright (c) 1998 Preston Brown |
5 | Copyright (c) 2001,2002,2003 Cornelius Schumacher <schumacher@kde.org> | 7 | Copyright (c) 2001,2002,2003 Cornelius Schumacher <schumacher@kde.org> |
6 | Copyright (C) 2003-2004 Reinhold Kainhofer <reinhold@kainhofer.com> | 8 | Copyright (C) 2003-2004 Reinhold Kainhofer <reinhold@kainhofer.com> |
7 | 9 | ||
8 | This library is free software; you can redistribute it and/or | 10 | This library is free software; you can redistribute it and/or |
9 | modify it under the terms of the GNU Library General Public | 11 | modify it under the terms of the GNU Library General Public |
10 | License as published by the Free Software Foundation; either | 12 | License as published by the Free Software Foundation; either |
11 | version 2 of the License, or (at your option) any later version. | 13 | version 2 of the License, or (at your option) any later version. |
12 | 14 | ||
13 | This library is distributed in the hope that it will be useful, | 15 | This library is distributed in the hope that it will be useful, |
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 16 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
16 | Library General Public License for more details. | 18 | Library General Public License for more details. |
17 | 19 | ||
18 | You should have received a copy of the GNU Library General Public License | 20 | You should have received a copy of the GNU Library General Public License |
19 | along with this library; see the file COPYING.LIB. If not, write to | 21 | along with this library; see the file COPYING.LIB. If not, write to |
20 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 22 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
21 | Boston, MA 02111-1307, USA. | 23 | Boston, MA 02111-1307, USA. |
22 | */ | 24 | */ |
23 | 25 | ||
24 | #ifdef DESKTOP_VERSION | 26 | #ifdef DESKTOP_VERSION |
25 | 27 | ||
26 | #ifndef KCAL_DNDFACTORY_H | 28 | #ifndef KCAL_DNDFACTORY_H |
27 | #define KCAL_DNDFACTORY_H | 29 | #define KCAL_DNDFACTORY_H |
28 | 30 | ||
29 | //#include "libkcal_export.h" | 31 | //#include "libkcal_export.h" |
30 | 32 | ||
31 | namespace KCal { | 33 | namespace KCal { |
32 | 34 | ||
33 | class ICalDrag; | 35 | class ICalDrag; |
34 | class Event; | 36 | class Event; |
35 | class Todo; | 37 | class Todo; |
36 | class Calendar; | 38 | class Calendar; |
37 | #define LIBKCAL_EXPORT | 39 | #define LIBKCAL_EXPORT |
38 | 40 | ||
39 | /** | 41 | /** |
40 | This class implements functions to create Drag and Drop objects used for | 42 | This class implements functions to create Drag and Drop objects used for |
41 | Drag-and-Drop and Copy-and-Paste. | 43 | Drag-and-Drop and Copy-and-Paste. |
42 | 44 | ||
43 | @short vCalendar/iCalendar Drag-and-Drop object factory. | 45 | @short vCalendar/iCalendar Drag-and-Drop object factory. |
44 | */ | 46 | */ |
45 | class LIBKCAL_EXPORT DndFactory | 47 | class LIBKCAL_EXPORT DndFactory |
46 | { | 48 | { |
47 | public: | 49 | public: |
48 | DndFactory( Calendar * ); | 50 | DndFactory( Calendar * ); |
49 | 51 | ||
50 | /** | 52 | /** |
51 | Create a drag object. | 53 | Create a drag object. |
52 | */ | 54 | */ |
53 | ICalDrag *createDrag( Incidence *incidence, QWidget *owner ); | 55 | ICalDrag *createDrag( Incidence *incidence, QWidget *owner ); |
54 | 56 | ||
55 | /** Create Todo object from drop event */ | 57 | /** Create Todo object from drop event */ |
56 | Todo *createDropTodo(QDropEvent *de); | 58 | Todo *createDropTodo(QDropEvent *de); |
57 | /** Create Event object from drop event */ | 59 | /** Create Event object from drop event */ |
58 | Event *createDrop(QDropEvent *de); | 60 | Event *createDrop(QDropEvent *de); |
59 | 61 | ||
60 | /** cut incidence to clipboard */ | 62 | /** cut incidence to clipboard */ |
61 | void cutIncidence( Incidence * ); | 63 | void cutIncidence( Incidence * ); |
62 | /** copy the incidence to clipboard */ | 64 | /** copy the incidence to clipboard */ |
63 | bool copyIncidence( Incidence * ); | 65 | bool copyIncidence( Incidence * ); |
64 | /** pastes the event or todo and returns a pointer to the new incidence pasted. */ | 66 | /** pastes the event or todo and returns a pointer to the new incidence pasted. */ |
65 | Incidence *pasteIncidence( const QDate &, const QTime *newTime = 0 ); | 67 | Incidence *pasteIncidence( const QDate &, const QTime *newTime = 0 ); |
66 | 68 | ||
67 | private: | 69 | private: |
68 | Calendar *mCalendar; | 70 | Calendar *mCalendar; |
69 | 71 | ||
70 | class Private; | 72 | class Private; |
71 | Private *d; | 73 | Private *d; |
72 | }; | 74 | }; |
73 | 75 | ||
74 | } | 76 | } |
75 | 77 | ||
76 | #endif | 78 | #endif |
77 | 79 | ||
78 | #else // dummy implementation for embedded | 80 | #else // dummy implementation for embedded |
79 | #include "dndfactory_dummy.h" | 81 | #include "dndfactory_dummy.h" |
80 | #define cutIncidence cutEvent | 82 | #define cutIncidence cutEvent |
81 | #define pasteIncidence pasteEvent | 83 | #define pasteIncidence pasteEvent |
82 | #define copyIncidence copyEvent | 84 | #define copyIncidence copyEvent |
83 | #endif | 85 | #endif |