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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00018 */ 00019 00020 #include <tqlayout.h> 00021 #include <tqlabel.h> 00022 #include <tqcombobox.h> 00023 00024 #include <tdelocale.h> 00025 #include <tdemessagebox.h> 00026 #include <tdeapplication.h> 00027 #include <tdeglobal.h> 00028 #include <kstandarddirs.h> 00029 #include <ksimpleconfig.h> 00030 00031 #include "exchangedialog.h" 00032 00033 ExchangeDialog::ExchangeDialog( const TQDate &_start, const TQDate &_end, TQWidget *parent) 00034 : KDialogBase(Plain,i18n("Exchange Plugin"),Ok|Cancel,Ok,parent) 00035 { 00036 TQFrame *topFrame = plainPage(); 00037 TQGridLayout *topLayout = new TQGridLayout( topFrame, 2, 2, 3 ); 00038 00039 TQLabel *label = new TQLabel(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 TQLabel( 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"