summaryrefslogtreecommitdiff
path: root/welcomepage.cc
blob: aa84eb546fd458d72cdfa89fd7a081ecc2cb5465 (plain) (blame)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#include "welcomepage.hh"

#include <QLabel>
#include <QVBoxLayout>

WelcomePage::WelcomePage(QWidget *parent) : HorizonWizardPage(parent)
{
        QLabel *descLabel;
        QVBoxLayout *layout;

        loadWatermark("welcome");
        setTitle(tr("Welcome to Adélie Linux"));

#ifdef NOT_NATIVE
        descLabel = new QLabel(
                    tr("<p>"
                       "Horizon will guide you through creation of a basic "
                       "<code>installfile</code> "
                       "for installing Adélie Linux on another computer."
                       "<p>"
                       "<b>IMPORTANT:</b> Not all advanced settings will "
                       "be available to you.  You may be allowed to "
                       "specify an invalid or non-bootable disk layout or "
                       "network configuration.  For best results, always "
                       "run System Installation directly on the computer "
                       "you wish to run Adélie Linux."
                       "<p>"
                       "For more information about the "
                       "<code>installfile</code> "
                       "format and syntax, see the "
                       "<a href='http://docs.adelielinux.org/'>"
                       "Adélie Linux Installation Guide</a> on the "
                       "Internet."));
        descLabel->setOpenExternalLinks(true);
        descLabel->setTextFormat(Qt::RichText);
#else
        descLabel = new QLabel(
                    tr("The streamlined installation process for Adélie "
                       "Linux will only take about 10-15 minutes of your "
                       "time.  After you're done, your computer will be "
                       "running the reliable, secure, libre Adélie Linux "
                       "operating system.\n\n"

                       "When you're ready to answer a few questions, get "
                       "started by choosing Next.  If you'd like more "
                       "information about the installation procedure, "
                       "choose Help at any time."));
#endif
        descLabel->setWordWrap(true);

        layout = new QVBoxLayout;
        layout->addWidget(descLabel);
        setLayout(layout);
}

int WelcomePage::nextId() const
{
#ifndef NOT_NATIVE
        if(this->horizonWizard()->interfaces.size() > 0)
        {
#endif
                return HorizonWizard::Page_Networking;
#ifndef NOT_NATIVE
        }
        else
        {
                return HorizonWizard::Page_Software;
        }
#endif
}