21#include <tqcheckbox.h>
22#include <tqpushbutton.h>
25#include <kiconloader.h>
26#include <tdeglobalsettings.h>
27#include <kstdguiitem.h>
29#include "kexidatasourcewizard.h"
30#include "kexidswelcome.h"
32KexiDSWelcome::KexiDSWelcome(KexiDataSourceWizard *parent)
36 KexiDSPixmap *pic = new KexiDSPixmap( this);
38 TQLabel *lText = new TQLabel(i18n( "Kexi can help you with creation of %2 using data sources in almost no time with the \"%1 Wizard\""), this);
39 lText->setAlignment(AlignTop | AlignLeft | WordBreak);
40 TQCheckBox *useWizard = new TQCheckBox(i18n( "Create %1 using the \"%1 Wizard\""), this);
41 connect(useWizard, TQ_SIGNAL(toggled( bool)), this, TQ_SLOT(setUseWizard( bool)));
42 useWizard->setChecked( true);
44 TQSpacerItem *spacer = new TQSpacerItem(320, 220);
45 TQCheckBox *dontShow = new TQCheckBox(i18n( "Do not show this wizard again"), this);
47 TQGridLayout *g = new TQGridLayout( this);
49 g->addMultiCellWidget(pic, 0, 4, 0, 0);
50 g->addWidget(lText, 0, 1);
51 g->addWidget(useWizard, 2, 1);
52 g->addItem(spacer, 3, 1);
53 g->addWidget(dontShow, 4, 1);
57KexiDSWelcome::setUseWizard( bool use)
59#if !defined(TQ_WS_WIN)
60 bool useIcons = TDEGlobalSettings::showIconsOnPushButtons();
66 KGuiItem forward = KStdGuiItem::forward(KStdGuiItem::UseRTL);
69 m_wiz->nextButton()->setIconSet( forward.iconSet() );
71 m_wiz->nextButton()->setText(i18n( "&Next"));
76 m_wiz->nextButton()->setIconSet(SmallIconSet( "apply"));
78 m_wiz->nextButton()->setText(i18n( "&Finish"));
81 m_wiz->finishNext(!use);
84KexiDSWelcome::~KexiDSWelcome()
88#include "kexidswelcome.moc"
|