kowhatsnextview.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef KOWHATSNEXTVIEW_H
00020 #define KOWHATSNEXTVIEW_H
00021
00022 #include <qtextbrowser.h>
00023
00024 #include <korganizer/baseview.h>
00025
00026 class QListView;
00027
00028 class KOEventViewerDialog;
00029
00030 class WhatsNextTextBrowser : public QTextBrowser {
00031 Q_OBJECT
00032 public:
00033 WhatsNextTextBrowser(QWidget *parent) : QTextBrowser(parent) {}
00034
00035 void setSource(const QString &);
00036
00037 signals:
00038 void showIncidence(const QString &uid);
00039 };
00040
00041
00045 class KOWhatsNextView : public KOrg::BaseView
00046 {
00047 Q_OBJECT
00048 public:
00049 KOWhatsNextView(Calendar *calendar, QWidget *parent = 0,
00050 const char *name = 0);
00051 ~KOWhatsNextView();
00052
00053 virtual int maxDatesHint();
00054 virtual int currentDateCount();
00055 virtual Incidence::List selectedIncidences();
00056 DateList selectedDates() { return DateList(); }
00057 virtual void printPreview(CalPrinter *calPrinter,
00058 const QDate &, const QDate &);
00059
00060 public slots:
00061 virtual void updateView();
00062 virtual void showDates(const QDate &start, const QDate &end);
00063 virtual void showEvents( const Event::List & );
00064
00065 void changeEventDisplay(Event *, int);
00066
00067 protected:
00068 void appendEvent(Incidence *, bool reply=false);
00069 void appendTodo(Incidence *);
00070
00071 private slots:
00072 void showIncidence(const QString &);
00073
00074 private:
00075 void createEventViewer();
00076
00077 QTextBrowser *mView;
00078 QString mText;
00079
00080 KOEventViewerDialog *mEventViewer;
00081
00082 Incidence::List mTodos;
00083 };
00084
00085 #endif
This file is part of the documentation for korganizer Library Version 3.2.2.