-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtoplevel.cpp
More file actions
44 lines (33 loc) · 1.01 KB
/
Copy pathtoplevel.cpp
File metadata and controls
44 lines (33 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#include "toplevel.h"
#include "themepage.h"
#include "intropage.h"
#include "linkpage.h"
#include "drivepage.h"
#include "printerpage.h"
#include "kwm.h"
TopLevel::TopLevel()
: KTopLevelWidget()
{
setCaption(i18n("The KDE Setup Wizard"));
wizard = new KWizard(this);
wizard->setOkButton();
connect(wizard, SIGNAL(okclicked()), kapp, SLOT(quit()));
addPage(i18n("Introduction"), new IntroPage(wizard));
addPage(i18n("Theme selection"), new ThemePage(wizard));
addPage(i18n("Drive configuration"), new DrivePage(wizard));
addPage(i18n("Printer integration"), new PrinterPage(wizard));
addPage(i18n("Link creation"), new LinkPage(wizard));
resize(690,530);
move((kapp->desktop()->width()-width()) / 2,
(kapp->desktop()->height()-height()) /2);
setView(wizard);
}
void TopLevel::addPage(QString title, QWidget *page)
{
KWizardPage *wizpage = new KWizardPage();
wizpage->w = page;
wizpage->title = title;
wizpage->enabled = TRUE;
wizard->addPage(wizpage);
}
#include "toplevel.moc"