korganizer Library API Documentation

kocounterdialog.cpp

00001 /* 00002 This file is part of KOrganizer. 00003 Copyright (c) 2000,2001 Cornelius Schumacher <schumacher@kde.org> 00004 00005 This program is free software; you can redistribute it and/or modify 00006 it under the terms of the GNU General Public License as published by 00007 the Free Software Foundation; either version 2 of the License, or 00008 (at your option) any later version. 00009 00010 This program is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 GNU General Public License for more details. 00014 00015 You should have received a copy of the GNU General Public License 00016 along with this program; if not, write to the Free Software 00017 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 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 // TODO: Set a sensible size (based on the content?). 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 }
KDE Logo
This file is part of the documentation for korganizer Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Jul 28 23:58:13 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003