author | zautrix <zautrix> | 2005-06-29 10:36:31 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-29 10:36:31 (UTC) |
commit | b7044dfc9516d546683973985555c481d59fc677 (patch) (unidiff) | |
tree | b521090cfc8eb6c8c6a6f6f8167c83058ea1361b /korganizer/koviewmanager.h | |
parent | f226b4cd2ce06a6948811fe04d80fe3ffa44f695 (diff) | |
download | kdepimpi-b7044dfc9516d546683973985555c481d59fc677.zip kdepimpi-b7044dfc9516d546683973985555c481d59fc677.tar.gz kdepimpi-b7044dfc9516d546683973985555c481d59fc677.tar.bz2 |
journal fixxx
-rw-r--r-- | korganizer/koviewmanager.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/korganizer/koviewmanager.h b/korganizer/koviewmanager.h index 838583b..d5a8e3b 100644 --- a/korganizer/koviewmanager.h +++ b/korganizer/koviewmanager.h | |||
@@ -1,127 +1,128 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of KOrganizer. | 2 | This file is part of KOrganizer. |
3 | Copyright (c) 2001 | 3 | Copyright (c) 2001 |
4 | Cornelius Schumacher <schumacher@kde.org> | 4 | Cornelius Schumacher <schumacher@kde.org> |
5 | 5 | ||
6 | This program is free software; you can redistribute it and/or modify | 6 | This program is free software; you can redistribute it and/or modify |
7 | it under the terms of the GNU General Public License as published by | 7 | it under the terms of the GNU General Public License as published by |
8 | the Free Software Foundation; either version 2 of the License, or | 8 | the Free Software Foundation; either version 2 of the License, or |
9 | (at your option) any later version. | 9 | (at your option) any later version. |
10 | 10 | ||
11 | This program is distributed in the hope that it will be useful, | 11 | This program is distributed in the hope that it will be useful, |
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the | 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the |
14 | GNU General Public License for more details. | 14 | GNU General Public License for more details. |
15 | 15 | ||
16 | You should have received a copy of the GNU General Public License | 16 | You should have received a copy of the GNU General Public License |
17 | along with this program; if not, write to the Free Software | 17 | along with this program; if not, write to the Free Software |
18 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 18 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
19 | 19 | ||
20 | As a special exception, permission is given to link this program | 20 | As a special exception, permission is given to link this program |
21 | with any edition of Qt, and distribute the resulting executable, | 21 | with any edition of Qt, and distribute the resulting executable, |
22 | without including the source code for Qt in the source distribution. | 22 | without including the source code for Qt in the source distribution. |
23 | */ | 23 | */ |
24 | #ifndef KOVIEWMANAGER_H | 24 | #ifndef KOVIEWMANAGER_H |
25 | #define KOVIEWMANAGER_H | 25 | #define KOVIEWMANAGER_H |
26 | 26 | ||
27 | #include <qobject.h> | 27 | #include <qobject.h> |
28 | 28 | ||
29 | #include <korganizer/baseview.h> | 29 | #include <korganizer/baseview.h> |
30 | 30 | ||
31 | class CalendarView; | 31 | class CalendarView; |
32 | 32 | ||
33 | class KOListView; | 33 | class KOListView; |
34 | class KOAgendaView; | 34 | class KOAgendaView; |
35 | class KOMonthView; | 35 | class KOMonthView; |
36 | class KOTimeSpanView; | 36 | class KOTimeSpanView; |
37 | class KOTodoView; | 37 | class KOTodoView; |
38 | class KOWhatsNextView; | 38 | class KOWhatsNextView; |
39 | class KOJournalView; | 39 | class KOJournalView; |
40 | 40 | ||
41 | using namespace KCal; | 41 | using namespace KCal; |
42 | 42 | ||
43 | /** | 43 | /** |
44 | This class manages the views of the calendar. It owns the objects and handles | 44 | This class manages the views of the calendar. It owns the objects and handles |
45 | creation and selection. | 45 | creation and selection. |
46 | */ | 46 | */ |
47 | class KOViewManager : public QObject | 47 | class KOViewManager : public QObject |
48 | { | 48 | { |
49 | Q_OBJECT | 49 | Q_OBJECT |
50 | public: | 50 | public: |
51 | KOViewManager( CalendarView * ); | 51 | KOViewManager( CalendarView * ); |
52 | virtual ~KOViewManager(); | 52 | virtual ~KOViewManager(); |
53 | 53 | ||
54 | /** changes the view to be the currently selected view */ | 54 | /** changes the view to be the currently selected view */ |
55 | void showView(KOrg::BaseView *, bool fullScreen = false ); | 55 | void showView(KOrg::BaseView *, bool fullScreen = false ); |
56 | void updateWNview(); | 56 | void updateWNview(); |
57 | void readSettings(KConfig *config); | 57 | void readSettings(KConfig *config); |
58 | void writeSettings(KConfig *config); | 58 | void writeSettings(KConfig *config); |
59 | bool showsNextDays(); | 59 | bool showsNextDays(); |
60 | /** Read which view was shown last from config file */ | 60 | /** Read which view was shown last from config file */ |
61 | void readCurrentView(KConfig *); | 61 | void readCurrentView(KConfig *); |
62 | /** Write which view is currently shown to config file */ | 62 | /** Write which view is currently shown to config file */ |
63 | void writeCurrentView(KConfig *); | 63 | void writeCurrentView(KConfig *); |
64 | 64 | ||
65 | KOrg::BaseView *currentView(); | 65 | KOrg::BaseView *currentView(); |
66 | 66 | ||
67 | void setDocumentId( const QString & ); | 67 | void setDocumentId( const QString & ); |
68 | 68 | ||
69 | void updateView( const QDate &start, const QDate &end ); | 69 | void updateView( const QDate &start, const QDate &end ); |
70 | void clearAllViews(); | 70 | void clearAllViews(); |
71 | 71 | ||
72 | void raiseCurrentView( bool fullScreen = false , bool updateView = false); | 72 | void raiseCurrentView( bool fullScreen = false , bool updateView = false); |
73 | 73 | ||
74 | void addView(KOrg::BaseView *); | 74 | void addView(KOrg::BaseView *); |
75 | 75 | ||
76 | Incidence *currentSelection(); | 76 | Incidence *currentSelection(); |
77 | QDate currentSelectionDate(); | 77 | QDate currentSelectionDate(); |
78 | 78 | ||
79 | KOAgendaView *agendaView() const { return mAgendaView; } | 79 | KOAgendaView *agendaView() const { return mAgendaView; } |
80 | 80 | ||
81 | signals: | 81 | signals: |
82 | void printWNV(); | 82 | void printWNV(); |
83 | void signalFullScreen( bool ); | 83 | void signalFullScreen( bool ); |
84 | void signalAgendaView( bool ); | 84 | void signalAgendaView( bool ); |
85 | public slots: | 85 | public slots: |
86 | void setDefaultCalendar(int); | ||
86 | void slotprintWNV(); | 87 | void slotprintWNV(); |
87 | void showNextView(); | 88 | void showNextView(); |
88 | void showMonth( const QDate & ); | 89 | void showMonth( const QDate & ); |
89 | void showDateView( int, QDate ); | 90 | void showDateView( int, QDate ); |
90 | void updateView(); | 91 | void updateView(); |
91 | void showWhatsNextView(); | 92 | void showWhatsNextView(); |
92 | void showListView(); | 93 | void showListView(); |
93 | void showAgendaView( bool fullScreen = false ); | 94 | void showAgendaView( bool fullScreen = false ); |
94 | void showDayView(); | 95 | void showDayView(); |
95 | void showWorkWeekView(); | 96 | void showWorkWeekView(); |
96 | void showWeekView(); | 97 | void showWeekView(); |
97 | void showNextXView(); | 98 | void showNextXView(); |
98 | void showMonthView(); | 99 | void showMonthView(); |
99 | void showMonthViewWeek(); | 100 | void showMonthViewWeek(); |
100 | void showTodoView(); | 101 | void showTodoView(); |
101 | void showJournalView(); | 102 | void showJournalView(); |
102 | void showTimeSpanView(); | 103 | void showTimeSpanView(); |
103 | 104 | ||
104 | private: | 105 | private: |
105 | void resetDateSilent( QDate date , int days ); | 106 | void resetDateSilent( QDate date , int days ); |
106 | int flagResetViewChangeDate; | 107 | int flagResetViewChangeDate; |
107 | QDate currentViewChangeDate; | 108 | QDate currentViewChangeDate; |
108 | void createMonthView(); | 109 | void createMonthView(); |
109 | CalendarView *mMainView; | 110 | CalendarView *mMainView; |
110 | 111 | ||
111 | int mCurrentAgendaView; | 112 | int mCurrentAgendaView; |
112 | KOAgendaView *mAgendaView; | 113 | KOAgendaView *mAgendaView; |
113 | KOListView *mListView; | 114 | KOListView *mListView; |
114 | KOMonthView *mMonthView; | 115 | KOMonthView *mMonthView; |
115 | KOTodoView *mTodoView; | 116 | KOTodoView *mTodoView; |
116 | KOWhatsNextView *mWhatsNextView; | 117 | KOWhatsNextView *mWhatsNextView; |
117 | KOJournalView *mJournalView; | 118 | KOJournalView *mJournalView; |
118 | KOTimeSpanView *mTimeSpanView; | 119 | KOTimeSpanView *mTimeSpanView; |
119 | 120 | ||
120 | KOrg::BaseView *mCurrentView; // currently active event view | 121 | KOrg::BaseView *mCurrentView; // currently active event view |
121 | 122 | ||
122 | int mAgendaViewMode; | 123 | int mAgendaViewMode; |
123 | bool mFlagShowNextxDays; | 124 | bool mFlagShowNextxDays; |
124 | 125 | ||
125 | }; | 126 | }; |
126 | 127 | ||
127 | #endif | 128 | #endif |