korganizer
koeventview.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef _KOEVENTVIEW_H
00026 #define _KOEVENTVIEW_H
00027
00028 #include <libkcal/incidencebase.h>
00029
00030 #include <korganizer/baseview.h>
00031
00032
00033 namespace KCal {
00034 class Incidence;
00035 }
00036 using namespace KCal;
00037
00038 class KOEventPopupMenu;
00039 class TQPopupMenu;
00040
00055 class KOEventView : public KOrg::BaseView
00056 {
00057 Q_OBJECT
00058
00059 public:
00067 KOEventView(Calendar *cal,TQWidget *parent=0,const char *name=0);
00068
00072 virtual ~KOEventView();
00073
00078 virtual int maxDatesHint() = 0;
00079
00083 KOEventPopupMenu *eventPopup();
00084
00088 TQPopupMenu *newEventPopup();
00089
00091 bool isEventView() { return true; }
00092
00093 bool supportsDateNavigation() const { return true; }
00094
00095 public slots:
00096
00101 void defaultAction( Incidence * );
00102
00103 signals:
00111 void datesSelected(const DateList);
00112
00113
00118 void shiftedEvent(const TQDate& olddate, const TQDate& newdate);
00119
00120
00121 protected slots:
00122 void popupShow();
00123 void popupEdit();
00124 void popupDelete();
00125 void popupCut();
00126 void popupCopy();
00127 virtual void showNewEventPopup();
00128
00129 protected:
00130 Incidence *mCurrentIncidence;
00131
00132 };
00133
00134 #endif
|