1
/***************************************************************************
2
kaptainwizard.cpp - description
4
begin : Wed Sep 13 2000
5
copyright : (C) 2000 by Ter�k Zsolt
6
email : tz124@hszk.bme.hu
7
***************************************************************************/
9
/***************************************************************************
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
16
***************************************************************************/
21
#include "kaptainwizard.h"
28
KaptainWizard::KaptainWizard(KRule * start, QWidget *parent, const char *name)
29
: QWizard(parent, name, true)
32
QBoxLayout * myLayout;
36
setCaption(start->getTitle());
38
QValueList<int> pages=start->children();
39
QValueListIterator<int> it;
40
for (it=pages.begin(); it!=pages.end(); ++it)
42
myPage=new QWidget(this);
43
myLayout=new QVBoxLayout(myPage, BORDER, SPACING);
44
myRule=gr->getRule(*it);
48
new KPlace(myRule, false, false, false, false, false, myPage, myLayout, this, this, true, false);
49
addPage(myPage, myRule->getTitle());
50
setHelpEnabled (myPage, false);
51
setFinishEnabled (myPage, false);
55
setFinishEnabled ( myPage, true );
58
KaptainWizard::~KaptainWizard()