korganizer

kowhatsnextview.h
1/*
2 This file is part of KOrganizer.
3
4 Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org>
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19
20 As a special exception, permission is given to link this program
21 with any edition of TQt, and distribute the resulting executable,
22 without including the source code for TQt in the source distribution.
23*/
24#ifndef KOWHATSNEXTVIEW_H
25#define KOWHATSNEXTVIEW_H
26
27#include <tqtextbrowser.h>
28
29#include <korganizer/baseview.h>
30
31class TQListView;
32
34
35class WhatsNextTextBrowser : public TQTextBrowser {
36 TQ_OBJECT
37
38 public:
39 WhatsNextTextBrowser(TQWidget *parent) : TQTextBrowser(parent) {}
40
41 void setSource(const TQString &);
42
43 signals:
44 void showIncidence(const TQString &uid);
45};
46
47
52{
53 TQ_OBJECT
54
55 public:
56 KOWhatsNextView(Calendar *calendar, TQWidget *parent = 0,
57 const char *name = 0);
59
60 virtual int currentDateCount();
61 virtual Incidence::List selectedIncidences() { return Incidence::List(); }
62 DateList selectedIncidenceDates() { return DateList(); }
63
64 bool supportsDateNavigation() const { return true; }
65
66 public slots:
67 virtual void updateView();
68 virtual void showDates(const TQDate &start, const TQDate &end);
69 virtual void showIncidences( const Incidence::List &incidenceList, const TQDate &date );
70
71 void changeIncidenceDisplay(Incidence *, int);
72
73 protected:
74 void appendEvent( Incidence *, const TQDateTime &start = TQDateTime(),
75 const TQDateTime &end = TQDateTime() );
76 void appendTodo( Incidence * );
77
78 private slots:
79 void showIncidence(const TQString &);
80
81 private:
82 TQTextBrowser *mView;
83 TQString mText;
84 TQDate mStartDate;
85 TQDate mEndDate;
86
87 Incidence::List mTodos;
88};
89
90#endif
Viewer dialog for events.
This class provides a view of the next events and todos.
DateList selectedIncidenceDates()
virtual Incidence::List selectedIncidences()
virtual int currentDateCount()
Return number of currently shown dates.
bool supportsDateNavigation() const
Returns true if the view supports navigation through the date navigator ( selecting a date range,...
This class provides an interface for all views being displayed within the main calendar view.
Definition: baseview.h:60
virtual Calendar * calendar()
Return calendar object of this view.
Definition: baseview.h:89