26 #include <tdelocale.h>
28 #include <libkcal/event.h>
29 #include <libkcal/todo.h>
30 #include "koeventviewer.h"
32 #include "kocounterdialog.h"
33 #include "kocounterdialog.moc"
35 KOCounterDialog::KOCounterDialog( Calendar *calendar, TQWidget *parent, const char *name )
36 : KDialogBase( parent, name, false, i18n( "Counter-Event Viewer"),
37 User1 | User2, User1, false, i18n( "Decline"), i18n( "Accept") )
40 setMainWidget( mEventViewer );
42 connect( this, TQ_SIGNAL( user1Clicked() ), TQ_SLOT( slotCancel() ) );
43 connect( this, TQ_SIGNAL( user2Clicked() ), TQ_SLOT( slotOk( ) ) );
46 setMinimumSize( 300, 200 );
50 KOCounterDialog::~KOCounterDialog()
54 void KOCounterDialog::setIncidence( Incidence *incidence )
59 void KOCounterDialog::addIncidence( Incidence *incidence )
61 mEventViewer->appendIncidence( incidence );
64 void KOCounterDialog::addText( const TQString &text )
Viewer widget for events.
void setIncidence(Incidence *incidence, const TQDate &date) Show given incidence in viewer.
void addText(const TQString &text) Add given text to currently shown content.
|