21#include <tqcheckbox.h>
22#include <tqpushbutton.h>
25#include <kiconloader.h>
26#include <tdeglobalsettings.h>
27#include <kstdguiitem.h>
28#include <tdeversion.h>
30#include "kexidatasourcewizard.h"
31#include "kexidswelcome.h"
33KexiDSWelcome::KexiDSWelcome(KexiDataSourceWizard *parent)
37 KexiDSPixmap *pic = new KexiDSPixmap( this);
39 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);
40 lText->setAlignment(AlignTop | AlignLeft | WordBreak);
41 TQCheckBox *useWizard = new TQCheckBox(i18n( "Create %1 using the \"%1 Wizard\""), this);
42 connect(useWizard, TQ_SIGNAL(toggled( bool)), this, TQ_SLOT(setUseWizard( bool)));
43 useWizard->setChecked( true);
45 TQSpacerItem *spacer = new TQSpacerItem(320, 220);
46 TQCheckBox *dontShow = new TQCheckBox(i18n( "Do not show this wizard again"), this);
48 TQGridLayout *g = new TQGridLayout( this);
50 g->addMultiCellWidget(pic, 0, 4, 0, 0);
51 g->addWidget(lText, 0, 1);
52 g->addWidget(useWizard, 2, 1);
53 g->addItem(spacer, 3, 1);
54 g->addWidget(dontShow, 4, 1);
58KexiDSWelcome::setUseWizard( bool use)
60#if KDE_IS_VERSION(3,1,9) && !defined(TQ_WS_WIN)
61 bool useIcons = TDEGlobalSettings::showIconsOnPushButtons();
67 KGuiItem forward = KStdGuiItem::forward(KStdGuiItem::UseRTL);
70 m_wiz->nextButton()->setIconSet( forward.iconSet() );
72 m_wiz->nextButton()->setText(i18n( "&Next"));
77 m_wiz->nextButton()->setIconSet(SmallIconSet( "apply"));
79 m_wiz->nextButton()->setText(i18n( "&Finish"));
82 m_wiz->finishNext(!use);
85KexiDSWelcome::~KexiDSWelcome()
89#include "kexidswelcome.moc"
|