korganizer Library API Documentation

koeventviewer.h

00001 /*
00002     This file is part of KOrganizer.
00003 
00004     Copyright (c) 2001,2003 Cornelius Schumacher <schumacher@kde.org>
00005 
00006     This program is free software; you can redistribute it and/or modify
00007     it under the terms of the GNU General Public License as published by
00008     the Free Software Foundation; either version 2 of the License, or
00009     (at your option) any later version.
00010 
00011     This program is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00014     GNU General Public License for more details.
00015 
00016     You should have received a copy of the GNU General Public License
00017     along with this program; if not, write to the Free Software
00018     Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
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
KDE Logo
This file is part of the documentation for korganizer Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat May 1 11:38:29 2004 by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2003