diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-11-08 02:38:58 -0600 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-11-08 02:38:58 -0600 |
commit | 386ff62ca3aba790f9831ee7c194d24f6fb781fe (patch) | |
tree | 9bb4233e965f3fe71224fd0a5983c1e631787ae4 /ui/qt5/intropage.cc | |
parent | 561db34595bd4181fde3781d3a00bab9a6d1403f (diff) | |
download | horizon-386ff62ca3aba790f9831ee7c194d24f6fb781fe.tar.gz horizon-386ff62ca3aba790f9831ee7c194d24f6fb781fe.tar.bz2 horizon-386ff62ca3aba790f9831ee7c194d24f6fb781fe.tar.xz horizon-386ff62ca3aba790f9831ee7c194d24f6fb781fe.zip |
UI: Import some of the 2016 prototype - welcome to Qt UI development
Diffstat (limited to 'ui/qt5/intropage.cc')
-rw-r--r-- | ui/qt5/intropage.cc | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/ui/qt5/intropage.cc b/ui/qt5/intropage.cc new file mode 100644 index 0000000..b67b534 --- /dev/null +++ b/ui/qt5/intropage.cc @@ -0,0 +1,62 @@ +#include "intropage.hh" + +#include <QLabel> +#include <QVBoxLayout> + +IntroPage::IntroPage(QWidget *parent) : HorizonWizardPage(parent) { + QLabel *descLabel; + QVBoxLayout *layout; + + loadWatermark("intro"); + setTitle(tr("Welcome to Adélie Linux")); + +#ifndef HAS_INSTALL_ENV + 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='https://help.adelielinux.org/html/install/'>" + "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.\n\n" + + "If you are unable to use a mouse, you may press " + "the Tab key to cycle between the available buttons." + " The currently selected button will be highlighted. " + "Press the Return key to make your selection.")); +#endif + descLabel->setWordWrap(true); + + layout = new QVBoxLayout; + layout->addWidget(descLabel); + setLayout(layout); +} + +int IntroPage::nextId() const { + return HorizonWizard::Page_Input; +} |