summaryrefslogtreecommitdiffabout
path: root/korganizer/koeventviewerdialog.h
Unidiff
Diffstat (limited to 'korganizer/koeventviewerdialog.h') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/koeventviewerdialog.h70
1 files changed, 70 insertions, 0 deletions
diff --git a/korganizer/koeventviewerdialog.h b/korganizer/koeventviewerdialog.h
new file mode 100644
index 0000000..21cb3ee
--- a/dev/null
+++ b/korganizer/koeventviewerdialog.h
@@ -0,0 +1,70 @@
1/*
2 This file is part of KOrganizer.
3 Copyright (c) 2000, 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 KOEVENTVIEWERDIALOG_H
20#define KOEVENTVIEWERDIALOG_H
21//
22// Viewer dialog for events.
23//
24
25#include <qtextview.h>
26
27#include <kdialogbase.h>
28
29#include <libkcal/event.h>
30
31using namespace KCal;
32
33class KOEventViewer;
34
35class KOEventViewerDialog : public KDialogBase {
36 Q_OBJECT
37 public:
38 KOEventViewerDialog(QWidget *parent=0,const char *name=0);
39 virtual ~KOEventViewerDialog();
40
41 void setEvent(Event *event);
42 void addEvent(Event *event);
43 void setTodo(Todo *event);
44 void setJournal(Journal *journal);
45 void setIncidence(Incidence *inc);
46 void addIncidence(Incidence *inc);
47 void addText(QString text);
48 void showMe();
49 void setSyncMode( bool );
50 void setColorMode( int m );
51 int executeS( bool );
52 public slots:
53 void updateConfig();
54 signals:
55 void editIncidence( Incidence* );
56 void jumpToTime( const QDate &);
57 void showAgendaView( bool );
58private slots:
59 void editIncidence();
60 void showIncidence();
61
62 private:
63 bool mSyncMode;
64 int mSyncResult;
65 KOEventViewer *mEventViewer;
66 Incidence* mIncidence;
67 void keyPressEvent ( QKeyEvent * e );
68};
69
70#endif