kocounterdialog.cpp
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
#include <klocale.h>
00022
00023
#include <libkcal/event.h>
00024
#include "koeventviewer.h"
00025
00026
#include "kocounterdialog.h"
00027
#include "kocounterdialog.moc"
00028
00029 KOCounterDialog::KOCounterDialog(QWidget *parent,
const char *name)
00030 : KDialogBase(parent,name,false,i18n("Counter-event Viewer"),User1|User2,User1,
00031 false,i18n("Decline"),i18n("Accept"))
00032 {
00033 mEventViewer =
new KOEventViewer(
this);
00034 setMainWidget(mEventViewer);
00035
00036 connect(
this,SIGNAL(user1Clicked()),
this,SLOT(slotCancel()));
00037 connect(
this,SIGNAL(user2Clicked()),
this,SLOT(slotOk()));
00038
00039
00040 setMinimumSize(300,200);
00041 resize(320,300);
00042 }
00043
00044 KOCounterDialog::~KOCounterDialog()
00045 {
00046 }
00047
00048
void KOCounterDialog::setEvent(Event *event)
00049 {
00050 mEventViewer->setEvent(event);
00051 }
00052
00053
void KOCounterDialog::addEvent(Event *event)
00054 {
00055 mEventViewer->addEvent(event);
00056 }
00057
00058
void KOCounterDialog::setTodo(Todo *event)
00059 {
00060 mEventViewer->setTodo(event);
00061 }
00062
00063
void KOCounterDialog::addText(QString text)
00064 {
00065 mEventViewer->addText(text);
00066 }
This file is part of the documentation for korganizer Library Version 3.2.2.