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., 675 Mass Ave, Cambridge, MA 02139, 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 QPtrList<Incidence> selectedIncidences();
00056     DateList selectedDates()
00057       {DateList q;
00058        return q;}    
00059     virtual void printPreview(CalPrinter *calPrinter,
00060                               const QDate &, const QDate &);
00061   
00062   public slots:
00063     virtual void updateView();
00064     virtual void showDates(const QDate &start, const QDate &end);
00065     virtual void showEvents(QPtrList<Event> eventList);
00066 
00067     void changeEventDisplay(Event *, int);
00068   
00069   protected:
00070     void appendEvent(Incidence *, bool reply=false);
00071     void appendTodo(Incidence *);
00072   
00073   private slots:
00074     void showIncidence(const QString &);
00075 
00076   private:
00077     void createEventViewer();
00078 
00079     QTextBrowser *mView;
00080     QString mText;
00081 
00082     KOEventViewerDialog *mEventViewer;
00083     
00084     QValueList<Incidence *> mTodos;
00085 };
00086 
00087 #endif
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.4.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sat Oct 18 02:47:32 2003 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001