kotimespanview.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 KOTIMESPANVIEW_H
25 #define KOTIMESPANVIEW_H
26 
27 #include "koeventview.h"
28 
29 class TDEConfig;
30 class TimeSpanWidget;
31 
32 class KOTimeSpanView : public KOEventView
33 {
34  TQ_OBJECT
35 
36  public:
37  KOTimeSpanView( Calendar *calendar, TQWidget *parent = 0,
38  const char *name = 0 );
39  ~KOTimeSpanView();
40 
41  virtual int maxDatesHint();
42  virtual int currentDateCount();
43  virtual Incidence::List selectedIncidences();
44  DateList selectedDates() { return DateList(); }
45 
46  void readSettings();
47  void writeSettings( TDEConfig * );
48 
49  public slots:
50  virtual void updateView();
51  virtual void showDates( const TQDate &start, const TQDate &end );
52  virtual void showIncidences( const Incidence::List &incidenceList );
53 
54  void changeIncidenceDisplay(Incidence *, int);
55 
56  private:
57  void insertItems( const TQDate &start, const TQDate & end );
58 
59  TimeSpanWidget *mTimeSpanWidget;
60 };
61 
62 #endif
KOEventView is the abstract base class from which all other calendar views for event data are derived...
Definition: koeventview.h:56
virtual int maxDatesHint()=0
provides a hint back to the caller on the maximum number of dates that the view supports.
virtual void showIncidences(const Incidence::List &incidenceList, const TQDate &date)=0
Show given incidences.
virtual void changeIncidenceDisplay(Incidence *, int)=0
Updates the current display to reflect the changes to one particular incidence.
virtual void showDates(const TQDate &start, const TQDate &end)=0
Show incidences for the given date range.
virtual void updateView()=0
Updates the current display to reflect changes that may have happened in the calendar since the last ...
virtual int currentDateCount()=0
Return number of currently shown dates.
virtual Incidence::List selectedIncidences()=0