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 public:
00038 WhatsNextTextBrowser(TQWidget *parent) : TQTextBrowser(parent) {}
00039
00040 void setSource(const TQString &);
00041
00042 signals:
00043 void showIncidence(const TQString &uid);
00044 };
00045
00046
00050 class KOWhatsNextView : public KOrg::BaseView
00051 {
00052 Q_OBJECT
00053 public:
00054 KOWhatsNextView(Calendar *calendar, TQWidget *parent = 0,
00055 const char *name = 0);
00056 ~KOWhatsNextView();
00057
00058 virtual int currentDateCount();
00059 virtual Incidence::List selectedIncidences() { return Incidence::List(); }
00060 DateList selectedIncidenceDates() { return DateList(); }
00061
00062 bool supportsDateNavigation() const { return true; }
00063
00064 public slots:
00065 virtual void updateView();
00066 virtual void showDates(const TQDate &start, const TQDate &end);
00067 virtual void showIncidences( const Incidence::List &incidenceList, const TQDate &date );
00068
00069 void changeIncidenceDisplay(Incidence *, int);
00070
00071 protected:
00072 void appendEvent( Incidence *, const TQDateTime &start = TQDateTime(),
00073 const TQDateTime &end = TQDateTime() );
00074 void appendTodo( Incidence * );
00075
00076 private slots:
00077 void showIncidence(const TQString &);
00078
00079 private:
00080 TQTextBrowser *mView;
00081 TQString mText;
00082 TQDate mStartDate;
00083 TQDate mEndDate;
00084
00085 Incidence::List mTodos;
00086 };
00087
00088 #endif
|