korganizer
kowhatsnextview.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef KOWHATSNEXTVIEW_H
00025 #define KOWHATSNEXTVIEW_H
00026
00027 #include <tqtextbrowser.h>
00028
00029 #include <korganizer/baseview.h>
00030
00031 class TQListView;
00032
00033 class KOEventViewerDialog;
00034
00035 class WhatsNextTextBrowser : public TQTextBrowser {
00036 Q_OBJECT
00037 TQ_OBJECT
00038 public:
00039 WhatsNextTextBrowser(TQWidget *parent) : TQTextBrowser(parent) {}
00040
00041 void setSource(const TQString &);
00042
00043 signals:
00044 void showIncidence(const TQString &uid);
00045 };
00046
00047
00051 class KOWhatsNextView : public KOrg::BaseView
00052 {
00053 Q_OBJECT
00054 TQ_OBJECT
00055 public:
00056 KOWhatsNextView(Calendar *calendar, TQWidget *parent = 0,
00057 const char *name = 0);
00058 ~KOWhatsNextView();
00059
00060 virtual int currentDateCount();
00061 virtual Incidence::List selectedIncidences() { return Incidence::List(); }
00062 DateList selectedIncidenceDates() { return DateList(); }
00063
00064 bool supportsDateNavigation() const { return true; }
00065
00066 public slots:
00067 virtual void updateView();
00068 virtual void showDates(const TQDate &start, const TQDate &end);
00069 virtual void showIncidences( const Incidence::List &incidenceList, const TQDate &date );
00070
00071 void changeIncidenceDisplay(Incidence *, int);
00072
00073 protected:
00074 void appendEvent( Incidence *, const TQDateTime &start = TQDateTime(),
00075 const TQDateTime &end = TQDateTime() );
00076 void appendTodo( Incidence * );
00077
00078 private slots:
00079 void showIncidence(const TQString &);
00080
00081 private:
00082 TQTextBrowser *mView;
00083 TQString mText;
00084 TQDate mStartDate;
00085 TQDate mEndDate;
00086
00087 Incidence::List mTodos;
00088 };
00089
00090 #endif
|