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 /korganizer/koeventpopupmenu.h | |
parent | 11edc920afe4f274c0964436633aa632c8288a40 (diff) | |
download | kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.zip kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.gz kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.bz2 |
initial public commit of qt4 portp1
Diffstat (limited to 'korganizer/koeventpopupmenu.h') (more/less context) (ignore whitespace changes)
-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 | |||
@@ -13,44 +13,46 @@ | |||
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(); |
@@ -60,24 +62,24 @@ class KOEventPopupMenu : public QPopupMenu { | |||
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 |