korganizer
exchangedialog.cpp00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
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( const QDate &_start, const 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"
|