Diffstat (limited to 'korganizer/koeventpopupmenu.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | korganizer/koeventpopupmenu.h | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/korganizer/koeventpopupmenu.h b/korganizer/koeventpopupmenu.h new file mode 100644 index 0000000..6993899 --- a/dev/null +++ b/korganizer/koeventpopupmenu.h | |||
@@ -0,0 +1,73 @@ | |||
1 | /* | ||
2 | This file is part of KOrganizer. | ||
3 | Copyright (c) 2000,2001 Cornelius Schumacher <schumacher@kde.org> | ||
4 | |||
5 | This program is free software; you can redistribute it and/or modify | ||
6 | it under the terms of the GNU General Public License as published by | ||
7 | the Free Software Foundation; either version 2 of the License, or | ||
8 | (at your option) any later version. | ||
9 | |||
10 | This program is distributed in the hope that it will be useful, | ||
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | GNU General Public License for more details. | ||
14 | |||
15 | You should have received a copy of the GNU General Public License | ||
16 | along with this program; if not, write to the Free Software | ||
17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||
18 | |||
19 | As a special exception, permission is given to link this program | ||
20 | with any edition of Qt, and distribute the resulting executable, | ||
21 | without including the source code for Qt in the source distribution. | ||
22 | */ | ||
23 | #ifndef KOEVENTPOPUPMENU_H | ||
24 | #define KOEVENTPOPUPMENU_H | ||
25 | // | ||
26 | // Context menu for event views with standard event actions | ||
27 | // | ||
28 | |||
29 | #include <qpopupmenu.h> | ||
30 | |||
31 | #include <libkcal/incidence.h> | ||
32 | |||
33 | using namespace KCal; | ||
34 | |||
35 | class KOEventPopupMenu : public QPopupMenu { | ||
36 | Q_OBJECT | ||
37 | public: | ||
38 | KOEventPopupMenu(); | ||
39 | |||
40 | void addAdditionalItem(const QIconSet &icon,const QString &text, | ||
41 | const QObject *receiver, const char *member, | ||
42 | bool editOnly=false); | ||
43 | |||
44 | |||
45 | public slots: | ||
46 | void showIncidencePopup(Incidence *); | ||
47 | |||
48 | protected slots: | ||
49 | void popupShow(); | ||
50 | void popupEdit(); | ||
51 | void popupDelete(); | ||
52 | void popupClone(); | ||
53 | void popupCancel(); | ||
54 | void popupMove(); | ||
55 | void popupBeam(); | ||
56 | |||
57 | signals: | ||
58 | void editIncidenceSignal(Incidence *); | ||
59 | void showIncidenceSignal(Incidence *); | ||
60 | void deleteIncidenceSignal(Incidence *); | ||
61 | void cloneIncidenceSignal(Incidence *); | ||
62 | void cancelIncidenceSignal(Incidence *); | ||
63 | void moveIncidenceSignal(Incidence *); | ||
64 | void beamIncidenceSignal(Incidence *); | ||
65 | |||
66 | private: | ||
67 | Incidence *mCurrentIncidence; | ||
68 | |||
69 | bool mHasAdditionalItems; | ||
70 | QValueList<int> mEditOnlyItems; | ||
71 | }; | ||
72 | |||
73 | #endif | ||