korganizer Library API Documentation

kojournalview.cpp

00001 /* 00002 This file is part of KOrganizer. 00003 Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> 00004 00005 This program is free software; you can redistribute it and/or modify 00006 it under the terms of the GNU General Public License as published by 00007 the Free Software Foundation; either version 2 of the License, or 00008 (at your option) any later version. 00009 00010 This program is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 GNU General Public License for more details. 00014 00015 You should have received a copy of the GNU General Public License 00016 along with this program; if not, write to the Free Software 00017 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00018 00019 As a special exception, permission is given to link this program 00020 with any edition of Qt, and distribute the resulting executable, 00021 without including the source code for Qt in the source distribution. 00022 */ 00023 00024 // 00025 // View of Journal entries 00026 00027 #include <qlayout.h> 00028 #include <qpopupmenu.h> 00029 00030 #include <klocale.h> 00031 #include <kdebug.h> 00032 00033 #include <libkcal/calendar.h> 00034 00035 #include "journalentry.h" 00036 00037 #include "kojournalview.h" 00038 using namespace KOrg; 00039 #include "kojournalview.moc" 00040 00041 KOJournalView::KOJournalView(Calendar *calendar, QWidget *parent, 00042 const char *name) 00043 : KOrg::BaseView(calendar, parent, name) 00044 { 00045 mEntry = new JournalEntry(calendar,this); 00046 00047 QBoxLayout *topLayout = new QVBoxLayout(this); 00048 topLayout->addWidget(mEntry); 00049 } 00050 00051 KOJournalView::~KOJournalView() 00052 { 00053 } 00054 00055 int KOJournalView::currentDateCount() 00056 { 00057 return 0; 00058 } 00059 00060 Incidence::List KOJournalView::selectedIncidences() 00061 { 00062 Incidence::List eventList; 00063 00064 return eventList; 00065 } 00066 00067 void KOJournalView::updateView() 00068 { 00069 kdDebug(5850) << "KOJournalView::updateView() does nothing" << endl; 00070 } 00071 00072 void KOJournalView::flushView() 00073 { 00074 mEntry->flushEntry(); 00075 } 00076 00077 void KOJournalView::showDates(const QDate &start, const QDate &) 00078 { 00079 // kdDebug(5850) << "KOJournalView::selectDates()" << endl; 00080 00081 mEntry->setDate(start); 00082 00083 Journal *j = calendar()->journal(start); 00084 if (j) mEntry->setJournal(j); 00085 else mEntry->clear(); 00086 00087 // emit incidenceSelected( 0 ); 00088 } 00089 00090 void KOJournalView::showEvents( const Event::List & ) 00091 { 00092 // After new creation of list view no events are selected. 00093 // emit incidenceSelected( 0 ); 00094 } 00095 00096 void KOJournalView::changeEventDisplay(Event *, int /*action*/) 00097 { 00098 updateView(); 00099 }
KDE Logo
This file is part of the documentation for korganizer Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Jul 28 23:58:13 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003