korganizer Library API Documentation

kowhatsnextview.h

00001 /* 00002 This file is part of KOrganizer. 00003 00004 Copyright (c) 2001 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 As a special exception, permission is given to link this program 00021 with any edition of Qt, and distribute the resulting executable, 00022 without including the source code for Qt in the source distribution. 00023 */ 00024 #ifndef KOWHATSNEXTVIEW_H 00025 #define KOWHATSNEXTVIEW_H 00026 00027 #include <qtextbrowser.h> 00028 00029 #include <korganizer/baseview.h> 00030 00031 class QListView; 00032 00033 class KOEventViewerDialog; 00034 00035 class WhatsNextTextBrowser : public QTextBrowser { 00036 Q_OBJECT 00037 public: 00038 WhatsNextTextBrowser(QWidget *parent) : QTextBrowser(parent) {} 00039 00040 void setSource(const QString &); 00041 00042 signals: 00043 void showIncidence(const QString &uid); 00044 }; 00045 00046 00050 class KOWhatsNextView : public KOrg::BaseView 00051 { 00052 Q_OBJECT 00053 public: 00054 KOWhatsNextView(Calendar *calendar, QWidget *parent = 0, 00055 const char *name = 0); 00056 ~KOWhatsNextView(); 00057 00058 virtual int maxDatesHint(); 00059 virtual int currentDateCount(); 00060 virtual Incidence::List selectedIncidences(); 00061 DateList selectedDates() { return DateList(); } 00062 virtual void printPreview(CalPrinter *calPrinter, 00063 const QDate &, const QDate &); 00064 00065 public slots: 00066 virtual void updateView(); 00067 virtual void showDates(const QDate &start, const QDate &end); 00068 virtual void showIncidences( const Incidence::List & ); 00069 00070 void changeIncidenceDisplay(Incidence *, int); 00071 00072 protected: 00073 void appendEvent(Incidence *, bool reply=false); 00074 void appendTodo(Incidence *); 00075 00076 private slots: 00077 void showIncidence(const QString &); 00078 00079 private: 00080 QTextBrowser *mView; 00081 QString mText; 00082 00083 Incidence::List mTodos; 00084 }; 00085 00086 #endif
KDE Logo
This file is part of the documentation for korganizer Library Version 3.3.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Aug 27 12:53:27 2004 by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2003