korganizer
koeventviewer.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef KOEVENTVIEWER_H
00026 #define KOEVENTVIEWER_H
00027
00028 #include "korganizer_export.h"
00029 #include <ktextbrowser.h>
00030
00031 class KConfig;
00032 class QUrl;
00033
00034 namespace KCal {
00035 class Incidence;
00036 class Event;
00037 }
00038 using namespace KCal;
00039
00043 class KORGANIZER_EVENTVIEWER_EXPORT KOEventViewer : public KTextBrowser
00044 {
00045 Q_OBJECT
00046 public:
00047 KOEventViewer( QWidget *parent = 0 );
00048 virtual ~KOEventViewer();
00049
00051 void setSource( const QUrl &name );
00052
00053 virtual bool appendIncidence( Incidence * );
00054
00060 void clearEvents( bool now = false );
00061
00065 void addText( const QString &text );
00066
00070 void setDefaultText( const QString &text );
00071
00072 void readSettings( KConfig *config );
00073 void writeSettings ( KConfig *config );
00074
00075 public slots:
00079 virtual void setIncidence( Incidence * );
00080 void changeIncidenceDisplay( Incidence *incidence, int action );
00081 virtual void editIncidence();
00082
00087 virtual void showIncidenceContext();
00088
00089 private:
00090 Incidence *mIncidence;
00091 QString mDefaultText;
00092 QString mText;
00093 };
00094
00095 #endif