korganizer
koviewmanager.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef KOVIEWMANAGER_H
00026 #define KOVIEWMANAGER_H
00027
00028 #include <qobject.h>
00029
00030 class CalendarView;
00031
00032 class KOListView;
00033 class KOAgendaView;
00034 class KOMonthView;
00035 class KOTodoView;
00036 class KOWhatsNextView;
00037 class KOJournalView;
00038
00039 namespace KOrg { class BaseView; }
00040 using namespace KCal;
00041
00046 class KOViewManager : public QObject
00047 {
00048 Q_OBJECT
00049 public:
00050 KOViewManager( CalendarView * );
00051 virtual ~KOViewManager();
00052
00054 void showView( KOrg::BaseView * );
00055
00056 void readSettings( KConfig *config );
00057 void writeSettings( KConfig *config );
00058
00060 void readCurrentView( KConfig * );
00062 void writeCurrentView( KConfig * );
00063
00064 KOrg::BaseView *currentView();
00065
00066 void setDocumentId( const QString & );
00067
00068 void updateView();
00069 void updateView( const QDate &start, const QDate &end );
00070
00071 void raiseCurrentView();
00072
00073 void connectView( KOrg::BaseView * );
00074 void addView( KOrg::BaseView * );
00075
00076 Incidence *currentSelection();
00077 QDate currentSelectionDate();
00078
00079 KOAgendaView *agendaView() const { return mAgendaView; }
00080 KOTodoView *todoView() const { return mTodoView; }
00081
00082 public slots:
00083 void showWhatsNextView();
00084 void showListView();
00085 void showAgendaView();
00086 void showDayView();
00087 void showWorkWeekView();
00088 void showWeekView();
00089 void showNextXView();
00090 void showMonthView();
00091 void showTodoView();
00092 void showJournalView();
00093
00094 void showEventView();
00095
00096 void connectTodoView( KOTodoView *todoView );
00097
00098 void zoomInHorizontally();
00099 void zoomOutHorizontally();
00100 void zoomInVertically();
00101 void zoomOutVertically();
00102
00103 private:
00104 CalendarView *mMainView;
00105
00106 KOAgendaView *mAgendaView;
00107 KOListView *mListView;
00108 KOMonthView *mMonthView;
00109 KOTodoView *mTodoView;
00110 KOWhatsNextView *mWhatsNextView;
00111 KOJournalView *mJournalView;
00112
00113 KOrg::BaseView *mCurrentView;
00114
00115 KOrg::BaseView *mLastEventView;
00116
00117 int mAgendaViewMode;
00118 };
00119
00120 #endif
|