-rw-r--r-- | korganizer/kowhatsnextview.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/korganizer/kowhatsnextview.h b/korganizer/kowhatsnextview.h index 715037f..d6727ac 100644 --- a/korganizer/kowhatsnextview.h +++ b/korganizer/kowhatsnextview.h | |||
@@ -42,59 +42,60 @@ class WhatsNextTextBrowser : public QTextBrowser { | |||
42 | signals: | 42 | signals: |
43 | void showIncidence(const QString &uid); | 43 | void showIncidence(const QString &uid); |
44 | }; | 44 | }; |
45 | 45 | ||
46 | 46 | ||
47 | /** | 47 | /** |
48 | This class provides a view of the next events and todos | 48 | This class provides a view of the next events and todos |
49 | */ | 49 | */ |
50 | class KOWhatsNextView : public KOrg::BaseView | 50 | class KOWhatsNextView : public KOrg::BaseView |
51 | { | 51 | { |
52 | Q_OBJECT | 52 | Q_OBJECT |
53 | public: | 53 | public: |
54 | KOWhatsNextView(Calendar *calendar, QWidget *parent = 0, | 54 | KOWhatsNextView(Calendar *calendar, QWidget *parent = 0, |
55 | const char *name = 0); | 55 | const char *name = 0); |
56 | ~KOWhatsNextView(); | 56 | ~KOWhatsNextView(); |
57 | 57 | ||
58 | virtual int maxDatesHint(); | 58 | virtual int maxDatesHint(); |
59 | virtual int currentDateCount(); | 59 | virtual int currentDateCount(); |
60 | void setEventViewer(KOEventViewerDialog* v ); | 60 | void setEventViewer(KOEventViewerDialog* v ); |
61 | virtual QPtrList<Incidence> selectedIncidences(); | 61 | virtual QPtrList<Incidence> selectedIncidences(); |
62 | DateList selectedDates() | 62 | DateList selectedDates() |
63 | {DateList q; | 63 | {DateList q; |
64 | return q;} | 64 | return q;} |
65 | virtual void printPreview(CalPrinter *calPrinter, | 65 | virtual void printPreview(CalPrinter *calPrinter, |
66 | const QDate &, const QDate &); | 66 | const QDate &, const QDate &); |
67 | 67 | ||
68 | public slots: | 68 | public slots: |
69 | virtual void updateView(); | 69 | virtual void updateView(); |
70 | void printMe(); | 70 | void printMe(); |
71 | virtual void showDates(const QDate &start, const QDate &end); | 71 | virtual void showDates(const QDate &start, const QDate &end); |
72 | virtual void showEvents(QPtrList<Event> eventList); | 72 | virtual void showEvents(QPtrList<Event> eventList); |
73 | void updateConfig(); | 73 | void updateConfig(); |
74 | void changeEventDisplay(Event *, int); | 74 | void changeEventDisplay(Event *, int); |
75 | 75 | ||
76 | protected: | 76 | protected: |
77 | bool appendEvent(Incidence *, bool reply=false, bool notRed = true, bool appendTable = false); | 77 | bool appendEvent(Incidence *, bool reply=false, bool notRed = true, bool appendTable = false); |
78 | bool appendTodo(Incidence *, QString ind = "", bool isSub = false ); | 78 | bool appendTodo(Incidence *, QString ind = "", bool isSub = false ); |
79 | void appendDay( int i, QDate date ); | 79 | void appendDay( int i, QDate date ); |
80 | QDate mEventDate; | 80 | QDate mEventDate; |
81 | virtual void showEvent ( QShowEvent * ); | 81 | virtual void showEvent ( QShowEvent * ); |
82 | virtual void hideEvent ( QHideEvent * ); | 82 | virtual void hideEvent ( QHideEvent * ); |
83 | 83 | ||
84 | private slots: | 84 | private slots: |
85 | void showIncidence(const QString &); | 85 | void showIncidence(const QString &); |
86 | void restartTimer(); | 86 | void restartTimer(); |
87 | 87 | ||
88 | 88 | ||
89 | private: | 89 | private: |
90 | int mCurrentMaxPrio; | ||
90 | //void createEventViewer(); | 91 | //void createEventViewer(); |
91 | QTimer* mTimer; | 92 | QTimer* mTimer; |
92 | WhatsNextTextBrowser *mView; | 93 | WhatsNextTextBrowser *mView; |
93 | QString mText; | 94 | QString mText; |
94 | // QLabel *mDateLabel; | 95 | // QLabel *mDateLabel; |
95 | KOEventViewerDialog *mEventViewer; | 96 | KOEventViewerDialog *mEventViewer; |
96 | 97 | ||
97 | QValueList<Incidence *> mTodos; | 98 | QValueList<Incidence *> mTodos; |
98 | }; | 99 | }; |
99 | 100 | ||
100 | #endif | 101 | #endif |