korganizer Library API Documentation

exchangedialog.cpp

00001 /* 00002 This file is part of KOrganizer. 00003 Copyright (c) 2002 Jan-Pascal van Best <janpascal@vanbest.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 #include <qlayout.h> 00021 #include <qlabel.h> 00022 #include <qcombobox.h> 00023 00024 #include <klocale.h> 00025 #include <kmessagebox.h> 00026 #include <kapplication.h> 00027 #include <kglobal.h> 00028 #include <kstandarddirs.h> 00029 #include <ksimpleconfig.h> 00030 00031 #include "exchangedialog.h" 00032 00033 ExchangeDialog::ExchangeDialog(QDate _start, QDate _end, QWidget *parent) 00034 : KDialogBase(Plain,i18n("Exchange Plugin"),Ok|Cancel,Ok,parent) 00035 { 00036 QFrame *topFrame = plainPage(); 00037 QGridLayout *topLayout = new QGridLayout( topFrame, 2, 2, 3 ); 00038 00039 QLabel *label = new QLabel(i18n("Start date:"),topFrame); 00040 topLayout->addWidget(label, 0, 0); 00041 00042 m_start = new KDateWidget( _start, topFrame ); 00043 topLayout->addWidget( m_start, 0, 1 ); 00044 00045 m_end = new KDateWidget( _end, topFrame ); 00046 topLayout->addWidget( new QLabel( i18n( "End date:" ), topFrame ), 1, 0 ); 00047 topLayout->addWidget( m_end, 1, 1 ); 00048 } 00049 00050 ExchangeDialog::~ExchangeDialog() 00051 { 00052 } 00053 00054 void ExchangeDialog::slotOk() 00055 { 00056 accept(); 00057 } 00058 #include "exchangedialog.moc"
KDE Logo
This file is part of the documentation for korganizer Library Version 3.3.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Oct 1 15:19:30 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003