29#include <libkcal/resourcecalendar.h>
41class IncidenceChangerBase;
50class JournalEntry :
public TQWidget {
54 typedef ListBase<JournalEntry> List;
56 JournalEntry( Journal* j, TQWidget *parent );
57 virtual ~JournalEntry();
59 void setJournal(Journal *);
60 Journal *journal()
const {
return mJournal; }
62 TQDate date()
const {
return mDate; }
65 void readJournal( Journal *j );
67 bool isReadOnly()
const {
return mReadOnly; }
68 void setReadOnly(
bool readonly );
75 void timeCheckBoxToggled(
bool on);
77 void setIncidenceChanger( IncidenceChangerBase *changer ) { mChanger = changer; }
78 void setDate(
const TQDate &);
82 void deleteIncidence( Incidence * );
83 void editIncidence( Incidence *,
const TQDate& );
87 bool eventFilter( TQObject *o, TQEvent *e );
92 void writeJournalPrivate( Journal *j );
99 KLineEdit *mTitleEdit;
101 TQCheckBox *mTimeCheck;
102 KTimeEdit *mTimeEdit;
103 TQButton *mDeleteButton;
104 TQButton *mEditButton;
105 TQButton *mPrintButton;
107 TQGridLayout *mLayout;
110 bool mWriteInProgress;
111 IncidenceChangerBase *mChanger;
115class JournalDateEntry :
public TQVBox {
119 typedef ListBase<JournalDateEntry> List;
121 JournalDateEntry( Calendar *, TQWidget *parent );
122 virtual ~JournalDateEntry();
124 void addJournal( Journal * );
125 Journal::List journals()
const;
127 void setDate(
const TQDate & );
128 TQDate date()
const {
return mDate; }
134 void setIncidenceChangerSignal( IncidenceChangerBase *changer );
135 void setDateSignal(
const TQDate & );
137 void editIncidence( Incidence *,
const TQDate& );
138 void deleteIncidence( Incidence * );
139 void newJournal( ResourceCalendar *,
const TQString &,
const TQDate & );
142 void emitNewJournal();
143 void setIncidenceChanger( IncidenceChangerBase *changer );
144 void journalEdited( Journal* );
145 void journalDeleted( Journal* );
150 TQMap<Journal*,JournalEntry*> mEntries;
152 KActiveLabel *mTitle;
154 IncidenceChangerBase *mChanger;