00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
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
00080
00081 mEntry->setDate(start);
00082
00083 Journal *j =
calendar()->journal(start);
00084
if (j) mEntry->setJournal(j);
00085
else mEntry->clear();
00086
00087
00088 }
00089
00090 void KOJournalView::showEvents(
const Event::List & )
00091 {
00092
00093
00094 }
00095
00096 void KOJournalView::changeEventDisplay(Event *,
int )
00097 {
00098
updateView();
00099 }