korganizer Library API Documentation

koviewmanager.h

00001 /* 00002 This file is part of KOrganizer. 00003 00004 Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> 00005 00006 This program is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation; either version 2 of the License, or 00009 (at your option) any later version. 00010 00011 This program is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with this program; if not, write to the Free Software 00018 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00019 00020 As a special exception, permission is given to link this program 00021 with any edition of Qt, and distribute the resulting executable, 00022 without including the source code for Qt in the source distribution. 00023 */ 00024 #ifndef KOVIEWMANAGER_H 00025 #define KOVIEWMANAGER_H 00026 00027 #include <qobject.h> 00028 00029 class CalendarView; 00030 00031 class KOListView; 00032 class KOAgendaView; 00033 class KOMonthView; 00034 class KOTimeSpanView; 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 void showTimeSpanView(); 00094 00095 void showEventView(); 00096 00097 void connectTodoView( KOTodoView *todoView ); 00098 00099 private: 00100 CalendarView *mMainView; 00101 00102 KOAgendaView *mAgendaView; 00103 KOListView *mListView; 00104 KOMonthView *mMonthView; 00105 KOTodoView *mTodoView; 00106 KOWhatsNextView *mWhatsNextView; 00107 KOJournalView *mJournalView; 00108 KOTimeSpanView *mTimeSpanView; 00109 00110 KOrg::BaseView *mCurrentView; 00111 00112 KOrg::BaseView *mLastEventView; 00113 00114 int mAgendaViewMode; 00115 }; 00116 00117 #endif
KDE Logo
This file is part of the documentation for korganizer Library Version 3.3.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Aug 27 12:53:27 2004 by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2003