-rw-r--r-- | korganizer/koeventpopupmenu.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/korganizer/koeventpopupmenu.h b/korganizer/koeventpopupmenu.h index e28745b..de5220b 100644 --- a/korganizer/koeventpopupmenu.h +++ b/korganizer/koeventpopupmenu.h | |||
@@ -5,79 +5,81 @@ | |||
5 | This program is free software; you can redistribute it and/or modify | 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 | 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 | 7 | the Free Software Foundation; either version 2 of the License, or |
8 | (at your option) any later version. | 8 | (at your option) any later version. |
9 | 9 | ||
10 | This program is distributed in the hope that it will be useful, | 10 | This program is distributed in the hope that it will be useful, |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | GNU General Public License for more details. | 13 | GNU General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License | 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 | 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. | 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
18 | 18 | ||
19 | As a special exception, permission is given to link this program | 19 | As a special exception, permission is given to link this program |
20 | with any edition of Qt, and distribute the resulting executable, | 20 | with any edition of Qt, and distribute the resulting executable, |
21 | without including the source code for Qt in the source distribution. | 21 | without including the source code for Qt in the source distribution. |
22 | */ | 22 | */ |
23 | #ifndef KOEVENTPOPUPMENU_H | 23 | #ifndef KOEVENTPOPUPMENU_H |
24 | #define KOEVENTPOPUPMENU_H | 24 | #define KOEVENTPOPUPMENU_H |
25 | // | 25 | // |
26 | // Context menu for event views with standard event actions | 26 | // Context menu for event views with standard event actions |
27 | // | 27 | // |
28 | 28 | ||
29 | #include <qpopupmenu.h> | 29 | #include <q3popupmenu.h> |
30 | //Added by qt3to4: | ||
31 | #include <Q3ValueList> | ||
30 | 32 | ||
31 | #include <libkcal/incidence.h> | 33 | #include <libkcal/incidence.h> |
32 | 34 | ||
33 | using namespace KCal; | 35 | using namespace KCal; |
34 | 36 | ||
35 | class KOEventPopupMenu : public QPopupMenu { | 37 | class KOEventPopupMenu : public Q3PopupMenu { |
36 | Q_OBJECT | 38 | Q_OBJECT |
37 | public: | 39 | public: |
38 | KOEventPopupMenu(); | 40 | KOEventPopupMenu(); |
39 | 41 | ||
40 | void addAdditionalItem(const QIconSet &icon,const QString &text, | 42 | void addAdditionalItem(const QIcon &icon,const QString &text, |
41 | const QObject *receiver, const char *member, | 43 | const QObject *receiver, const char *member, |
42 | bool editOnly=false); | 44 | bool editOnly=false); |
43 | 45 | ||
44 | 46 | ||
45 | public slots: | 47 | public slots: |
46 | void showIncidencePopup(Incidence *); | 48 | void showIncidencePopup(Incidence *); |
47 | void enableDefault( bool ); | 49 | void enableDefault( bool ); |
48 | 50 | ||
49 | protected slots: | 51 | protected slots: |
50 | void popupShow(); | 52 | void popupShow(); |
51 | void popupEdit(); | 53 | void popupEdit(); |
52 | void popupDelete(); | 54 | void popupDelete(); |
53 | void popupClone(); | 55 | void popupClone(); |
54 | void popupCancel(); | 56 | void popupCancel(); |
55 | void popupMove(); | 57 | void popupMove(); |
56 | void popupBeam(); | 58 | void popupBeam(); |
57 | void fillCatPopup(); | 59 | void fillCatPopup(); |
58 | void computeCatPopup( int ); | 60 | void computeCatPopup( int ); |
59 | void fillCalPopup(); | 61 | void fillCalPopup(); |
60 | void computeCalPopup( int ); | 62 | void computeCalPopup( int ); |
61 | 63 | ||
62 | signals: | 64 | signals: |
63 | void editIncidenceSignal(Incidence *); | 65 | void editIncidenceSignal(Incidence *); |
64 | void showIncidenceSignal(Incidence *); | 66 | void showIncidenceSignal(Incidence *); |
65 | void deleteIncidenceSignal(Incidence *); | 67 | void deleteIncidenceSignal(Incidence *); |
66 | void cloneIncidenceSignal(Incidence *); | 68 | void cloneIncidenceSignal(Incidence *); |
67 | void cancelIncidenceSignal(Incidence *); | 69 | void cancelIncidenceSignal(Incidence *); |
68 | void moveIncidenceSignal(Incidence *); | 70 | void moveIncidenceSignal(Incidence *); |
69 | void beamIncidenceSignal(Incidence *); | 71 | void beamIncidenceSignal(Incidence *); |
70 | void categoryChanged( Incidence * ); | 72 | void categoryChanged( Incidence * ); |
71 | 73 | ||
72 | private: | 74 | private: |
73 | Incidence *mCurrentIncidence; | 75 | Incidence *mCurrentIncidence; |
74 | 76 | ||
75 | bool mHasAdditionalItems; | 77 | bool mHasAdditionalItems; |
76 | QValueList<int> mEditOnlyItems; | 78 | Q3ValueList<int> mEditOnlyItems; |
77 | QValueList<int> mSingleOnlyItems; | 79 | Q3ValueList<int> mSingleOnlyItems; |
78 | bool isDisabled; | 80 | bool isDisabled; |
79 | QPopupMenu *mCatPopup; | 81 | Q3PopupMenu *mCatPopup; |
80 | QPopupMenu *mCalPopup; | 82 | Q3PopupMenu *mCalPopup; |
81 | }; | 83 | }; |
82 | 84 | ||
83 | #endif | 85 | #endif |