• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

korganizer

koeventviewer.h

Go to the documentation of this file.
00001 /*
00002   This file is part of KOrganizer.
00003 
00004   Copyright (c) 2001,2003 Cornelius Schumacher <schumacher@kde.org>
00005   Copyright (c) 2005 Rafal Rzepecki <divide@users.sourceforge.net>
00006 
00007   This program is free software; you can redistribute it and/or modify
00008   it under the terms of the GNU General Public License as published by
00009   the Free Software Foundation; either version 2 of the License, or
00010   (at your option) any later version.
00011 
00012   This program is distributed in the hope that it will be useful,
00013   but WITHOUT ANY WARRANTY; without even the implied warranty of
00014   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00015   GNU General Public License for more details.
00016 
00017   You should have received a copy of the GNU General Public License along
00018   with this program; if not, write to the Free Software Foundation, Inc.,
00019   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00020 
00021   As a special exception, permission is given to link this program
00022   with any edition of Qt, and distribute the resulting executable,
00023   without including the source code for Qt in the source distribution.
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

korganizer

Skip menu "korganizer"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  •   doc
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal