22 #include <tqcombobox.h> 24 #include <tdelocale.h> 25 #include <tdemessagebox.h> 26 #include <tdeapplication.h> 27 #include <tdeglobal.h> 28 #include <tdestandarddirs.h> 29 #include <tdesimpleconfig.h> 31 #include "exchangedialog.h" 33 ExchangeDialog::ExchangeDialog( const TQDate &_start, const TQDate &_end, TQWidget *parent) 34 : KDialogBase(Plain,i18n( "Exchange Plugin"),Ok|Cancel,Ok,parent) 36 TQFrame *topFrame = plainPage(); 37 TQGridLayout *topLayout = new TQGridLayout( topFrame, 2, 2, 3 ); 39 TQLabel *label = new TQLabel(i18n( "Start date:"),topFrame); 40 topLayout->addWidget(label, 0, 0); 42 m_start = new KDateWidget( _start, topFrame ); 43 topLayout->addWidget( m_start, 0, 1 ); 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 ); 50 ExchangeDialog::~ExchangeDialog() 54 void ExchangeDialog::slotOk() 58 #include "exchangedialog.moc"
|