00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
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"