From 386ff62ca3aba790f9831ee7c194d24f6fb781fe Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Fri, 8 Nov 2019 02:38:58 -0600 Subject: UI: Import some of the 2016 prototype - welcome to Qt UI development --- ui/qt5/horizonwizard.hh | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 ui/qt5/horizonwizard.hh (limited to 'ui/qt5/horizonwizard.hh') diff --git a/ui/qt5/horizonwizard.hh b/ui/qt5/horizonwizard.hh new file mode 100644 index 0000000..c47fb49 --- /dev/null +++ b/ui/qt5/horizonwizard.hh @@ -0,0 +1,41 @@ +#ifndef HORIZONWIZARD_HH +#define HORIZONWIZARD_HH + +#include +#include + +class HorizonWizard : public QWizard { +public: + enum { + Page_Intro, /* introduction */ + Page_Input, /* keyboard layout */ + Page_Partition, /* partitioning */ +#ifdef NON_LIBRE_FIRMWARE + Page_Firmware, /* firmware */ +#endif /* NON_LIBRE_FIRMWARE */ + Page_Network, /* network type selection (DHCP/static) */ + Page_Network_Iface, /* network interface selection */ + Page_Network_Wireless, /* wireless */ + Page_Network_DHCP, /* interstitial for DHCP */ + Page_Network_Portal, /* shown if captive portal is detected */ + Page_Network_Manual, /* static addressing */ + Page_DateTime, /* date and time, TZ, NTP */ + Page_Hostname, /* hostname */ + Page_PkgSimple, /* simple package selection */ + Page_PkgCustom, /* custom package selection */ + Page_Boot, /* boot loader configuration */ + Page_Root, /* root passphrase */ + Page_Accounts, /* user account configuration */ +#ifndef HAS_INSTALL_ENV + Page_Write, /* write HorizonScript to disk */ +#else /* HAS_INSTALL_ENV */ + Page_Commit /* begin install */ +#endif /* !HAS_INSTALL_ENV */ + }; + + HorizonWizard(QWidget *parent = nullptr); + /* collected information stored here */ + std::string keymap; +}; + +#endif /* !HORIZONWIZARD_HH */ -- cgit v1.2.3-70-g09d2