exchangedialog.cpp
1/*
2 This file is part of KOrganizer.
3 Copyright (c) 2002 Jan-Pascal van Best <janpascal@vanbest.org>
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18*/
19
20#include <tqlayout.h>
21#include <tqlabel.h>
22#include <tqcombobox.h>
23
24#include <tdelocale.h>
25#include <tdemessagebox.h>
26#include <tdeapplication.h>
27#include <tdeglobal.h>
28#include <tdestandarddirs.h>
29#include <ksimpleconfig.h>
30
31#include "exchangedialog.h"
32
33ExchangeDialog::ExchangeDialog( const TQDate &_start, const TQDate &_end, TQWidget *parent)
34 : KDialogBase(Plain,i18n("Exchange Plugin"),Ok|Cancel,Ok,parent)
35{
36 TQFrame *topFrame = plainPage();
37 TQGridLayout *topLayout = new TQGridLayout( topFrame, 2, 2, 3 );
38
39 TQLabel *label = new TQLabel(i18n("Start date:"),topFrame);
40 topLayout->addWidget(label, 0, 0);
41
42 m_start = new KDateWidget( _start, topFrame );
43 topLayout->addWidget( m_start, 0, 1 );
44
45 m_end = new KDateWidget( _end, topFrame );
46 topLayout->addWidget( new TQLabel( i18n( "End date:" ), topFrame ), 1, 0 );
47 topLayout->addWidget( m_end, 1, 1 );
48}
49
50ExchangeDialog::~ExchangeDialog()
51{
52}
53
54void ExchangeDialog::slotOk()
55{
56 accept();
57}
58#include "exchangedialog.moc"