koeventviewer.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef KOEVENTVIEWER_H
00024 #define KOEVENTVIEWER_H
00025
00026
00027
00028
00029
00030 #include <qtextview.h>
00031
00032 #include <libkcal/event.h>
00033
00034 using namespace KCal;
00035
00036 class KOEventViewer : public QTextView {
00037 Q_OBJECT
00038 public:
00039 KOEventViewer(QWidget *parent=0,const char *name=0);
00040 virtual ~KOEventViewer();
00041
00042 void setEvent(Event *event);
00043 void setTodo(Todo *event);
00044
00045 void appendEvent(Event *event);
00046 void appendTodo(Todo *event);
00047
00048 void clearEvents(bool now=false);
00049
00050 protected:
00051 void addTag(const QString & tag,const QString & text);
00052
00053 void formatCategories(Incidence *event);
00054 void formatAttendees(Incidence *event);
00055 void formatReadOnly(Incidence *event);
00056
00057 private:
00058 QTextView *mEventTextView;
00059
00060 QString mText;
00061 };
00062
00063 #endif
This file is part of the documentation for kdelibs Version 3.1.4.