krop's commit fixes my problem in a better way, reverting
[kdepim.git] / korganizer / koeventviewerdialog.h
blob30b8dc7c96b9dba3692cb694e4d3f2518db7a000
1 /*
2 This file is part of KOrganizer.
4 Copyright (c) 2000, 2001 Cornelius Schumacher <schumacher@kde.org>
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.
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.
16 You should have received a copy of the GNU General Public License along
17 with this program; if not, write to the Free Software Foundation, Inc.,
18 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 As a special exception, permission is given to link this program
21 with any edition of Qt, and distribute the resulting executable,
22 without including the source code for Qt in the source distribution.
24 #ifndef KOEVENTVIEWERDIALOG_H
25 #define KOEVENTVIEWERDIALOG_H
27 #include "korganizer_export.h"
28 #include "koeventviewer.h"
29 #include <KDialog>
31 namespace KCal {
32 class Incidence;
34 using namespace KCal;
36 class KOEventViewer;
38 /**
39 Viewer dialog for events.
41 class KORGANIZER_EVENTVIEWER_EXPORT KOEventViewerDialog : public KDialog
43 Q_OBJECT
44 public:
45 explicit KOEventViewerDialog( Calendar *calendar, QWidget *parent = 0, bool compact = false );
46 virtual ~KOEventViewerDialog();
48 void setIncidence( Incidence *incidence ) { mEventViewer->setIncidence( incidence ); }
49 void appendIncidence( Incidence *incidence ) { mEventViewer->appendIncidence( incidence ); }
51 void setCalendar( Calendar *calendar );
52 void addText( const QString &text );
54 private:
55 KOEventViewer *mEventViewer;
58 #endif