summaryrefslogtreecommitdiffabout
path: root/korganizer/kojournalview.h
Unidiff
Diffstat (limited to 'korganizer/kojournalview.h') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/kojournalview.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/korganizer/kojournalview.h b/korganizer/kojournalview.h
index 7fa94ae..22f26cd 100644
--- a/korganizer/kojournalview.h
+++ b/korganizer/kojournalview.h
@@ -16,65 +16,70 @@
16 along with this program; if not, write to the Free Software 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. 17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 18
19 As a special exception, permission is given to link this program 19 As a special exception, permission is given to link this program
20 with any edition of Qt, and distribute the resulting executable, 20 with any edition of Qt, and distribute the resulting executable,
21 without including the source code for Qt in the source distribution. 21 without including the source code for Qt in the source distribution.
22*/ 22*/
23#ifndef _KOJOURNALVIEW_H 23#ifndef _KOJOURNALVIEW_H
24#define _KOJOURNALVIEW_H 24#define _KOJOURNALVIEW_H
25 25
26#include <korganizer/baseview.h> 26#include <korganizer/baseview.h>
27#include <qlayout.h> 27#include <qlayout.h>
28//Added by qt3to4:
29#include <QKeyEvent>
30#include <Q3PtrList>
31#include <QLabel>
32#include <Q3BoxLayout>
28 33
29class JournalEntry; 34class JournalEntry;
30class QLabel; 35class QLabel;
31 36
32/** 37/**
33 * This class provides a journal view. 38 * This class provides a journal view.
34 39
35 * @short View for Journal components. 40 * @short View for Journal components.
36 * @author Cornelius Schumacher <schumacher@kde.org> 41 * @author Cornelius Schumacher <schumacher@kde.org>
37 * @see KOBaseView 42 * @see KOBaseView
38 */ 43 */
39class KOJournalView : public KOrg::BaseView 44class KOJournalView : public KOrg::BaseView
40{ 45{
41 Q_OBJECT 46 Q_OBJECT
42 public: 47 public:
43 KOJournalView(Calendar *calendar, QWidget *parent = 0, 48 KOJournalView(Calendar *calendar, QWidget *parent = 0,
44 const char *name = 0); 49 const char *name = 0);
45 ~KOJournalView(); 50 ~KOJournalView();
46 51
47 virtual int currentDateCount(); 52 virtual int currentDateCount();
48 void clearList(); 53 void clearList();
49 virtual QPtrList<Incidence> selectedIncidences(); 54 virtual Q3PtrList<Incidence> selectedIncidences();
50 DateList selectedDates() 55 DateList selectedDates()
51 {DateList q; 56 {DateList q;
52 return q;}; 57 return q;};
53 void checkModified(); 58 void checkModified();
54 signals: 59 signals:
55 void deleteJournal(Journal *); 60 void deleteJournal(Journal *);
56 public slots: 61 public slots:
57 void showOnly ( Journal* ); 62 void showOnly ( Journal* );
58 void newJournal(); 63 void newJournal();
59 void updateView(); 64 void updateView();
60 void flushView(); 65 void flushView();
61 void updateConfig(); 66 void updateConfig();
62 void showDates( const QDate &start, const QDate &end ); 67 void showDates( const QDate &start, const QDate &end );
63 void showEvents(QPtrList<Event> eventList); 68 void showEvents(Q3PtrList<Event> eventList);
64 69
65 void changeEventDisplay(Event *, int); 70 void changeEventDisplay(Event *, int);
66 71
67 private: 72 private:
68 void showList(QPtrList<Journal> jl); 73 void showList(Q3PtrList<Journal> jl);
69 Calendar *mCalendar; 74 Calendar *mCalendar;
70 JournalEntry* getNewEntry(); 75 JournalEntry* getNewEntry();
71 QPtrList<JournalEntry> jEntries; 76 Q3PtrList<JournalEntry> jEntries;
72 void keyPressEvent ( QKeyEvent * ) ; 77 void keyPressEvent ( QKeyEvent * ) ;
73 QBoxLayout *mTopLayout; 78 Q3BoxLayout *mTopLayout;
74 QWidget *parWid; 79 QWidget *parWid;
75 QLabel * mDateLabel; 80 QLabel * mDateLabel;
76 QDate mDate; 81 QDate mDate;
77 82
78}; 83};
79 84
80#endif 85#endif