Diffstat (limited to 'korganizer/kowhatsnextview.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | korganizer/kowhatsnextview.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/korganizer/kowhatsnextview.h b/korganizer/kowhatsnextview.h index fff769a..1118bdd 100644 --- a/korganizer/kowhatsnextview.h +++ b/korganizer/kowhatsnextview.h | |||
@@ -11,24 +11,25 @@ | |||
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | GNU General Public License for more details. | 13 | GNU General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License | 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 | 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 <qtextbrowser.h> |
23 | #include <qtimer.h> | ||
23 | 24 | ||
24 | #include <korganizer/baseview.h> | 25 | #include <korganizer/baseview.h> |
25 | 26 | ||
26 | class QListView; | 27 | class QListView; |
27 | class QLabel; | 28 | class QLabel; |
28 | 29 | ||
29 | class KOEventViewerDialog; | 30 | class KOEventViewerDialog; |
30 | 31 | ||
31 | class WhatsNextTextBrowser : public QTextBrowser { | 32 | class WhatsNextTextBrowser : public QTextBrowser { |
32 | Q_OBJECT | 33 | Q_OBJECT |
33 | public: | 34 | public: |
34 | WhatsNextTextBrowser(QWidget *parent) : QTextBrowser(parent) {} | 35 | WhatsNextTextBrowser(QWidget *parent) : QTextBrowser(parent) {} |
@@ -63,29 +64,33 @@ class KOWhatsNextView : public KOrg::BaseView | |||
63 | 64 | ||
64 | public slots: | 65 | public slots: |
65 | virtual void updateView(); | 66 | virtual void updateView(); |
66 | virtual void showDates(const QDate &start, const QDate &end); | 67 | virtual void showDates(const QDate &start, const QDate &end); |
67 | virtual void showEvents(QPtrList<Event> eventList); | 68 | virtual void showEvents(QPtrList<Event> eventList); |
68 | void updateConfig(); | 69 | void updateConfig(); |
69 | void changeEventDisplay(Event *, int); | 70 | void changeEventDisplay(Event *, int); |
70 | 71 | ||
71 | protected: | 72 | protected: |
72 | void appendEvent(Incidence *, bool reply=false, bool notRed = true); | 73 | void appendEvent(Incidence *, bool reply=false, bool notRed = true); |
73 | bool appendTodo(Incidence *, QString ind = "", bool isSub = false ); | 74 | bool appendTodo(Incidence *, QString ind = "", bool isSub = false ); |
74 | void appendDay( int i, QDate date ); | 75 | void appendDay( int i, QDate date ); |
75 | QDate mEventDate; | 76 | QDate mEventDate; |
77 | virtual void showEvent ( QShowEvent * ); | ||
78 | virtual void hideEvent ( QHideEvent * ); | ||
76 | 79 | ||
77 | private slots: | 80 | private slots: |
78 | void showIncidence(const QString &); | 81 | void showIncidence(const QString &); |
82 | void restartTimer(); | ||
83 | |||
79 | 84 | ||
80 | private: | 85 | private: |
81 | //void createEventViewer(); | 86 | //void createEventViewer(); |
82 | 87 | QTimer* mTimer; | |
83 | QTextBrowser *mView; | 88 | QTextBrowser *mView; |
84 | QString mText; | 89 | QString mText; |
85 | // QLabel *mDateLabel; | 90 | // QLabel *mDateLabel; |
86 | KOEventViewerDialog *mEventViewer; | 91 | KOEventViewerDialog *mEventViewer; |
87 | 92 | ||
88 | QValueList<Incidence *> mTodos; | 93 | QValueList<Incidence *> mTodos; |
89 | }; | 94 | }; |
90 | 95 | ||
91 | #endif | 96 | #endif |