summaryrefslogtreecommitdiffabout
path: root/korganizer/kowhatsnextview.h
Unidiff
Diffstat (limited to 'korganizer/kowhatsnextview.h') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/kowhatsnextview.h20
1 files changed, 13 insertions, 7 deletions
diff --git a/korganizer/kowhatsnextview.h b/korganizer/kowhatsnextview.h
index 93574ef..49fc448 100644
--- a/korganizer/kowhatsnextview.h
+++ b/korganizer/kowhatsnextview.h
@@ -16,28 +16,34 @@
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#ifndef KOWHATSNEXTVIEW_H 19#ifndef KOWHATSNEXTVIEW_H
20#define KOWHATSNEXTVIEW_H 20#define KOWHATSNEXTVIEW_H
21 21
22#include <qtextbrowser.h> 22#include <q3textbrowser.h>
23#include <qtimer.h> 23#include <qtimer.h>
24//Added by qt3to4:
25#include <QShowEvent>
26#include <QHideEvent>
27#include <QLabel>
28#include <Q3ValueList>
29#include <Q3PtrList>
24 30
25#include <korganizer/baseview.h> 31#include <korganizer/baseview.h>
26 32
27class QListView; 33class Q3ListView;
28class QLabel; 34class QLabel;
29 35
30class KOEventViewerDialog; 36class KOEventViewerDialog;
31 37
32#include <qpainter.h> 38#include <qpainter.h>
33#include <qwidget.h> 39#include <qwidget.h>
34class WhatsNextTextBrowser : public QTextBrowser { 40class WhatsNextTextBrowser : public Q3TextBrowser {
35 Q_OBJECT 41 Q_OBJECT
36 public: 42 public:
37 WhatsNextTextBrowser(QWidget *parent) : QTextBrowser(parent) {}; 43 WhatsNextTextBrowser(QWidget *parent) : Q3TextBrowser(parent) {};
38 44
39 void setSource(const QString &); 45 void setSource(const QString &);
40 void printMe(); 46 void printMe();
41 47
42 signals: 48 signals:
43 void showIncidence(const QString &uid); 49 void showIncidence(const QString &uid);
@@ -55,25 +61,25 @@ class KOWhatsNextView : public KOrg::BaseView
55 const char *name = 0); 61 const char *name = 0);
56 ~KOWhatsNextView(); 62 ~KOWhatsNextView();
57 63
58 virtual int maxDatesHint(); 64 virtual int maxDatesHint();
59 virtual int currentDateCount(); 65 virtual int currentDateCount();
60 void setEventViewer(KOEventViewerDialog* v ); 66 void setEventViewer(KOEventViewerDialog* v );
61 virtual QPtrList<Incidence> selectedIncidences(); 67 virtual Q3PtrList<Incidence> selectedIncidences();
62 void clearList(); 68 void clearList();
63 DateList selectedDates() 69 DateList selectedDates()
64 {DateList q; 70 {DateList q;
65 return q;} 71 return q;}
66 virtual void printPreview(CalPrinter *calPrinter, 72 virtual void printPreview(CalPrinter *calPrinter,
67 const QDate &, const QDate &); 73 const QDate &, const QDate &);
68 74
69 public slots: 75 public slots:
70 virtual void updateView(); 76 virtual void updateView();
71 void printMe(); 77 void printMe();
72 virtual void showDates(const QDate &start, const QDate &end); 78 virtual void showDates(const QDate &start, const QDate &end);
73 virtual void showEvents(QPtrList<Event> eventList); 79 virtual void showEvents(Q3PtrList<Event> eventList);
74 void updateConfig(); 80 void updateConfig();
75 void changeEventDisplay(Event *, int); 81 void changeEventDisplay(Event *, int);
76 82
77 protected: 83 protected:
78 bool appendEvent(Incidence *, bool reply=false, bool notRed = true, bool appendTable = false); 84 bool appendEvent(Incidence *, bool reply=false, bool notRed = true, bool appendTable = false);
79 bool appendTodo(Incidence *, QString ind = "", bool isSub = false ); 85 bool appendTodo(Incidence *, QString ind = "", bool isSub = false );
@@ -93,10 +99,10 @@ class KOWhatsNextView : public KOrg::BaseView
93 QTimer* mTimer; 99 QTimer* mTimer;
94 WhatsNextTextBrowser *mView; 100 WhatsNextTextBrowser *mView;
95 QString mText; 101 QString mText;
96 // QLabel *mDateLabel; 102 // QLabel *mDateLabel;
97 KOEventViewerDialog *mEventViewer; 103 KOEventViewerDialog *mEventViewer;
98 104
99 QValueList<Incidence *> mTodos; 105 Q3ValueList<Incidence *> mTodos;
100}; 106};
101 107
102#endif 108#endif