korganizer

koeventview.h
1 /*
2  This file is part of KOrganizer.
3  Copyright (c) 1999 Preston Brown <pbrown@kde.org>
4  Copyright (c) 2000,2001 Cornelius Schumacher <schumacher@kde.org>
5  Copyright (C) 2003-2004 Reinhold Kainhofer <reinhold@kainhofer.com>
6 
7  This program is free software; you can redistribute it and/or modify
8  it under the terms of the GNU General Public License as published by
9  the Free Software Foundation; either version 2 of the License, or
10  (at your option) any later version.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program; if not, write to the Free Software
19  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 
21  As a special exception, permission is given to link this program
22  with any edition of TQt, and distribute the resulting executable,
23  without including the source code for TQt in the source distribution.
24 */
25 #ifndef _KOEVENTVIEW_H
26 #define _KOEVENTVIEW_H
27 
28 #include <libkcal/incidencebase.h>
29 
30 #include <korganizer/baseview.h>
31 
32 
33 namespace KCal {
34 class Incidence;
35 }
36 using namespace KCal;
37 
38 class KOEventPopupMenu;
39 class TQPopupMenu;
40 
56 {
57  TQ_OBJECT
58 
59 
60  public:
68  KOEventView(Calendar *cal,TQWidget *parent=0,const char *name=0);
69 
73  virtual ~KOEventView();
74 
79  virtual int maxDatesHint() = 0;
80 
84  KOEventPopupMenu *eventPopup();
85 
89  TQPopupMenu *newEventPopup();
90 
92  bool isEventView() { return true; }
93 
94  bool supportsDateNavigation() const { return true; }
95 
96  public slots:
97 
102  void defaultAction( Incidence * );
103 
104  signals:
112  void datesSelected(const DateList);
113 
114  //ET CVS MERGE !
119  void shiftedEvent(const TQDate& olddate, const TQDate& newdate);
120 
121 
122  protected slots:
123  void popupShow();
124  void popupEdit();
125  void popupDelete();
126  void popupCut();
127  void popupCopy();
128  virtual void showNewEventPopup();
129 
130  protected:
131  Incidence *mCurrentIncidence; // Incidence selected e.g. for a context menu
132 
133 };
134 
135 #endif
KOEventView is the abstract base class from which all other calendar views for event data are derived...
Definition: koeventview.h:56
void shiftedEvent(const TQDate &olddate, const TQDate &newdate)
Emitted when an event is moved using the mouse in an agenda view (week / month).
virtual int maxDatesHint()=0
provides a hint back to the caller on the maximum number of dates that the view supports.
void datesSelected(const DateList)
when the view changes the dates that are selected in one way or another, this signal is emitted.
bool isEventView()
This view is an view for displaying events.
Definition: koeventview.h:92
bool supportsDateNavigation() const
Returns true if the view supports navigation through the date navigator ( selecting a date range,...
Definition: koeventview.h:94
This class provides an interface for all views being displayed within the main calendar view.
Definition: baseview.h:60