kowhatsnextview.h
00001
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 <qtextbrowser.h>
00028
00029
#include <korganizer/baseview.h>
00030
00031
class QListView;
00032
00033
class KOEventViewerDialog;
00034
00035
class WhatsNextTextBrowser :
public QTextBrowser {
00036 Q_OBJECT
00037
public:
00038 WhatsNextTextBrowser(
QWidget *parent) :
QTextBrowser(parent) {}
00039
00040
void setSource(
const QString &);
00041
00042 signals:
00043
void showIncidence(
const QString &uid);
00044 };
00045
00046
00050 class KOWhatsNextView :
public KOrg::BaseView
00051 {
00052 Q_OBJECT
00053
public:
00054
KOWhatsNextView(Calendar *calendar,
QWidget *parent = 0,
00055
const char *name = 0);
00056 ~
KOWhatsNextView();
00057
00058
virtual int maxDatesHint();
00059
virtual int currentDateCount();
00060
virtual Incidence::List
selectedIncidences();
00061 DateList
selectedDates() {
return DateList(); }
00062
virtual void printPreview(
CalPrinter *calPrinter,
00063
const QDate &,
const QDate &);
00064
00065
public slots:
00066
virtual void updateView();
00067
virtual void showDates(
const QDate &start,
const QDate &end);
00068
virtual void showIncidences(
const Incidence::List & );
00069
00070
void changeIncidenceDisplay(Incidence *,
int);
00071
00072
protected:
00073
void appendEvent(Incidence *,
bool reply=
false);
00074
void appendTodo(Incidence *);
00075
00076
private slots:
00077
void showIncidence(
const QString &);
00078
00079
private:
00080
QTextBrowser *mView;
00081
QString mText;
00082
00083 Incidence::List mTodos;
00084 };
00085
00086
#endif
This file is part of the documentation for korganizer Library Version 3.3.0.