summaryrefslogtreecommitdiffabout
path: root/korganizer/kowhatsnextview.h
authorzautrix <zautrix>2004-06-26 19:01:18 (UTC)
committer zautrix <zautrix>2004-06-26 19:01:18 (UTC)
commitb9aad1f15dc600e4dbe4c62d3fcced6363188ba3 (patch) (unidiff)
tree2c3d4004fb21c72cba65793859f9bcd8ffd3a49c /korganizer/kowhatsnextview.h
downloadkdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.zip
kdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.tar.gz
kdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.tar.bz2
Initial revision
Diffstat (limited to 'korganizer/kowhatsnextview.h') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/kowhatsnextview.h91
1 files changed, 91 insertions, 0 deletions
diff --git a/korganizer/kowhatsnextview.h b/korganizer/kowhatsnextview.h
new file mode 100644
index 0000000..fff769a
--- a/dev/null
+++ b/korganizer/kowhatsnextview.h
@@ -0,0 +1,91 @@
1/*
2 This file is part of KOrganizer.
3 Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org>
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18*/
19#ifndef KOWHATSNEXTVIEW_H
20#define KOWHATSNEXTVIEW_H
21
22#include <qtextbrowser.h>
23
24#include <korganizer/baseview.h>
25
26class QListView;
27class QLabel;
28
29class KOEventViewerDialog;
30
31class WhatsNextTextBrowser : public QTextBrowser {
32 Q_OBJECT
33 public:
34 WhatsNextTextBrowser(QWidget *parent) : QTextBrowser(parent) {}
35
36 void setSource(const QString &);
37
38 signals:
39 void showIncidence(const QString &uid);
40};
41
42
43/**
44 This class provides a view of the next events and todos
45*/
46class KOWhatsNextView : public KOrg::BaseView
47{
48 Q_OBJECT
49 public:
50 KOWhatsNextView(Calendar *calendar, QWidget *parent = 0,
51 const char *name = 0);
52 ~KOWhatsNextView();
53
54 virtual int maxDatesHint();
55 virtual int currentDateCount();
56 void setEventViewer(KOEventViewerDialog* v );
57 virtual QPtrList<Incidence> selectedIncidences();
58 DateList selectedDates()
59 {DateList q;
60 return q;}
61 virtual void printPreview(CalPrinter *calPrinter,
62 const QDate &, const QDate &);
63
64 public slots:
65 virtual void updateView();
66 virtual void showDates(const QDate &start, const QDate &end);
67 virtual void showEvents(QPtrList<Event> eventList);
68 void updateConfig();
69 void changeEventDisplay(Event *, int);
70
71 protected:
72 void appendEvent(Incidence *, bool reply=false, bool notRed = true);
73 bool appendTodo(Incidence *, QString ind = "", bool isSub = false );
74 void appendDay( int i, QDate date );
75 QDate mEventDate;
76
77 private slots:
78 void showIncidence(const QString &);
79
80 private:
81 //void createEventViewer();
82
83 QTextBrowser *mView;
84 QString mText;
85 // QLabel *mDateLabel;
86 KOEventViewerDialog *mEventViewer;
87
88 QValueList<Incidence *> mTodos;
89};
90
91#endif