korganizer
kocounterdialog.cpp00001
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 #include <klocale.h>
00027
00028 #include <libkcal/event.h>
00029 #include <libkcal/todo.h>
00030 #include "koeventviewer.h"
00031
00032 #include "kocounterdialog.h"
00033 #include "kocounterdialog.moc"
00034
00035 KOCounterDialog::KOCounterDialog( QWidget *parent, const char *name )
00036 : KDialogBase( parent, name, false, i18n("Counter-Event Viewer"),
00037 User1 | User2, User1, false, i18n("Decline"), i18n("Accept") )
00038 {
00039 mEventViewer = new KOEventViewer( this );
00040 setMainWidget( mEventViewer );
00041
00042 connect( this, SIGNAL( user1Clicked() ), SLOT( slotCancel() ) );
00043 connect( this, SIGNAL( user2Clicked() ), SLOT( slotOk( ) ) );
00044
00045
00046 setMinimumSize( 300, 200 );
00047 resize( 320, 300 );
00048 }
00049
00050 KOCounterDialog::~KOCounterDialog()
00051 {
00052 }
00053
00054 void KOCounterDialog::setIncidence( Incidence *incidence )
00055 {
00056 mEventViewer->setIncidence( incidence );
00057 }
00058
00059 void KOCounterDialog::addIncidence( Incidence *incidence )
00060 {
00061 mEventViewer->appendIncidence( incidence );
00062 }
00063
00064 void KOCounterDialog::addText( const QString &text )
00065 {
00066 mEventViewer->addText( text );
00067 }
|