24 #ifndef JOURNALENTRY_H
25 #define JOURNALENTRY_H
29 #include <libkcal/resourcecalendar.h>
41 class IncidenceChangerBase;
50 class JournalEntry : public TQWidget {
56 JournalEntry( Journal* j, TQWidget *parent );
57 virtual ~JournalEntry();
60 Journal *journal() const { return mJournal; }
62 TQDate date() const { return mDate; }
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 &);
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;
115 class JournalDateEntry : public TQVBox {
121 JournalDateEntry( Calendar *, TQWidget *parent );
122 virtual ~JournalDateEntry();
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& );
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;
|