koeventviewer.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
#ifndef KOEVENTVIEWER_H
00021
#define KOEVENTVIEWER_H
00022
00023
#include <qtextbrowser.h>
00024
00025
#include <libkcal/event.h>
00026
00027
using namespace KCal;
00028
00029
00033 class KOEventViewer :
public QTextBrowser
00034 {
00035 Q_OBJECT
00036
public:
00037
KOEventViewer( QWidget *parent = 0,
const char *name = 0 );
00038
virtual ~
KOEventViewer();
00039
00040
void setSource(
const QString & );
00041
void setEvent( Event *event );
00042
void addEvent( 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
void addText(
const QString &text );
00051
00052
protected:
00053
void addTag(
const QString &tag,
const QString &text );
00054
void addLink(
const QString &ref,
const QString &text,
00055
bool newline =
true );
00056
00057
void formatCategories( Incidence * );
00058
void formatAttendees( Incidence * );
00059
void formatReadOnly( Incidence * );
00060
void formatAttachments( Incidence * );
00061
00062
private:
00063 QTextBrowser *mEventTextView;
00064
00065 QString mText;
00066 };
00067
00068
#endif
This file is part of the documentation for korganizer Library Version 3.2.2.