korganizer
kojournalview.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef KOJOURNALVIEW_H
00025 #define KOJOURNALVIEW_H
00026
00027 #include <korganizer/baseview.h>
00028 #include "journalentry.h"
00029
00030 class JournalEntry;
00031 class QScrollView;
00032 class QVBox;
00033
00041 class KOJournalView : public KOrg::BaseView
00042 {
00043 Q_OBJECT
00044 public:
00045 KOJournalView( Calendar *calendar, QWidget *parent = 0,
00046 const char *name = 0);
00047 ~KOJournalView();
00048
00049 virtual int currentDateCount();
00050 virtual Incidence::List selectedIncidences();
00051 DateList selectedDates() { return DateList(); }
00052 void appendJournal( Journal*journal, const QDate &dt);
00053
00054 public slots:
00055
00056 virtual void dayPassed( const QDate & ) {}
00057 void updateView();
00058 void flushView();
00059
00060 void showDates( const QDate &start, const QDate &end );
00061 void showIncidences( const Incidence::List &incidenceList );
00062
00063 void changeIncidenceDisplay( Incidence *, int );
00064 void setIncidenceChanger( IncidenceChangerBase *changer );
00065 void newJournal();
00066 signals:
00067 void flushEntries();
00068 void setIncidenceChangerSignal( IncidenceChangerBase * );
00069 void journalEdited( Journal* );
00070 void journalDeleted( Journal* );
00071
00072 protected:
00073 void clearEntries();
00074
00075 private:
00076 QScrollView *mSV;
00077 QVBox *mVBox;
00078 QMap<QDate, JournalDateEntry*> mEntries;
00079
00080 };
00081
00082 #endif
|