00001
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::setEvent( Event *event )
00055 {
00056 mEventViewer->
setEvent( event );
00057 }
00058
00059
void KOCounterDialog::addEvent( Event *event )
00060 {
00061 mEventViewer->
appendEvent( event );
00062 }
00063
00064
void KOCounterDialog::setTodo( Todo *todo )
00065 {
00066 mEventViewer->
setTodo( todo );
00067 }
00068
00069
void KOCounterDialog::addText(
const QString &text )
00070 {
00071 mEventViewer->
addText( text );
00072 }