korganizer Library API Documentation

kowhatsnextview.h

00001 /*
00002     This file is part of KOrganizer.
00003     Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org>
00004 
00005     This program is free software; you can redistribute it and/or modify
00006     it under the terms of the GNU General Public License as published by
00007     the Free Software Foundation; either version 2 of the License, or
00008     (at your option) any later version.
00009 
00010     This program is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00013     GNU General Public License for more details.
00014 
00015     You should have received a copy of the GNU General Public License
00016     along with this program; if not, write to the Free Software
00017     Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00018 */
00019 #ifndef KOWHATSNEXTVIEW_H
00020 #define KOWHATSNEXTVIEW_H
00021 
00022 #include <qtextbrowser.h>
00023 
00024 #include <korganizer/baseview.h>
00025 
00026 class QListView;
00027 
00028 class KOEventViewerDialog;
00029 
00030 class WhatsNextTextBrowser : public QTextBrowser {
00031     Q_OBJECT
00032   public:
00033     WhatsNextTextBrowser(QWidget *parent) : QTextBrowser(parent) {}
00034 
00035     void setSource(const QString &);
00036 
00037   signals:
00038     void showIncidence(const QString &uid);
00039 };
00040 
00041 
00045 class KOWhatsNextView : public KOrg::BaseView
00046 {
00047     Q_OBJECT
00048   public:
00049     KOWhatsNextView(Calendar *calendar, QWidget *parent = 0,
00050                     const char *name = 0);
00051     ~KOWhatsNextView();
00052 
00053     virtual int maxDatesHint();
00054     virtual int currentDateCount();
00055     virtual Incidence::List selectedIncidences();
00056     DateList selectedDates() { return DateList(); }
00057     virtual void printPreview(CalPrinter *calPrinter,
00058                               const QDate &, const QDate &);
00059 
00060   public slots:
00061     virtual void updateView();
00062     virtual void showDates(const QDate &start, const QDate &end);
00063     virtual void showEvents( const Event::List & );
00064 
00065     void changeEventDisplay(Event *, int);
00066 
00067   protected:
00068     void appendEvent(Incidence *, bool reply=false);
00069     void appendTodo(Incidence *);
00070 
00071   private slots:
00072     void showIncidence(const QString &);
00073 
00074   private:
00075     void createEventViewer();
00076 
00077     QTextBrowser *mView;
00078     QString mText;
00079 
00080     KOEventViewerDialog *mEventViewer;
00081 
00082     Incidence::List mTodos;
00083 };
00084 
00085 #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:31 2004 by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2003