summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-12-19 20:02:48 -0600
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-12-19 20:02:48 -0600
commitf2202a722098c06a136d27fed0c295673623c0ad (patch)
tree11986feaeb749a0a15ef250c938ed674da28c282 /ui
parentb0f8b8e769b433a943b14e70ea4522c537eb8c29 (diff)
downloadhorizon-f2202a722098c06a136d27fed0c295673623c0ad.tar.gz
horizon-f2202a722098c06a136d27fed0c295673623c0ad.tar.bz2
horizon-f2202a722098c06a136d27fed0c295673623c0ad.tar.xz
horizon-f2202a722098c06a136d27fed0c295673623c0ad.zip
Qt UI: Add more page definitions, required for the partitioner
Diffstat (limited to 'ui')
-rw-r--r--ui/qt5/horizonwizard.cc6
-rw-r--r--ui/qt5/horizonwizard.hh18
2 files changed, 17 insertions, 7 deletions
diff --git a/ui/qt5/horizonwizard.cc b/ui/qt5/horizonwizard.cc
index 1edf599..a180782 100644
--- a/ui/qt5/horizonwizard.cc
+++ b/ui/qt5/horizonwizard.cc
@@ -60,6 +60,10 @@ static std::map<int, std::string> help_id_map = {
{HorizonWizard::Page_Intro, "intro"},
{HorizonWizard::Page_Input, "input"},
{HorizonWizard::Page_Partition, "partition"},
+ {HorizonWizard::Page_PartitionDisk, "partition-disk"},
+ {HorizonWizard::Page_PartitionChoose, "partition-manipulation"},
+ {HorizonWizard::Page_PartitionManual, "partition-manual"},
+ {HorizonWizard::Page_PartitionMount, "partition-mountpoints"},
#ifdef NON_LIBRE_FIRMWARE
{HorizonWizard::Page_Firmware, "firmware"},
#endif /* NON_LIBRE_FIRMWARE */
@@ -364,7 +368,7 @@ QString HorizonWizard::toHScript() {
break;
}
- if(auto_erase_disk.empty()) {
+ if(auto_disk.empty()) {
lines << part_lines;
} else {
/* XXX TODO: examples for thoughts on auto-partition setups are in
diff --git a/ui/qt5/horizonwizard.hh b/ui/qt5/horizonwizard.hh
index 637d12b..04facda 100644
--- a/ui/qt5/horizonwizard.hh
+++ b/ui/qt5/horizonwizard.hh
@@ -37,6 +37,10 @@ public:
Page_Intro, /* introduction */
Page_Input, /* keyboard layout */
Page_Partition, /* partitioning */
+ Page_PartitionDisk, /* disk selection */
+ Page_PartitionChoose, /* erase, use free, manual, use existing */
+ Page_PartitionManual, /* manual */
+ Page_PartitionMount, /* choose mountpoints - manual and existing */
#ifdef NON_LIBRE_FIRMWARE
Page_Firmware, /* firmware */
#endif /* NON_LIBRE_FIRMWARE */
@@ -117,8 +121,10 @@ public:
std::string version;
/*! The architecture being installed. */
Arch arch;
- /*! The disk to erase and partition based on the system. */
- std::string auto_erase_disk;
+ /*! Whether to erase the disk when automatically partitioning. */
+ bool erase;
+ /*! The disk to partition automatically. */
+ std::string auto_disk;
/*! The HorizonScript lines describing what to do about partitioning.
* If auto_erase_disk is set, this is not used.
* Otherwise, this should have any relevant disklabel/partition/fs etc. */
@@ -130,6 +136,8 @@ public:
/*! The currently probed network interfaces
* @note Only available in Installation Environment. */
std::map<std::string, NetworkInterface> interfaces;
+ /*! Determines the network interface to use. */
+ std::string chosen_auto_iface;
/*! Determines whether networking will be enabled. */
bool network;
/*! Determines whether to use DHCP. */
@@ -138,14 +146,12 @@ public:
bool grub;
/*! Determines whether to install eudev. */
bool eudev;
- /*! Determines the packages to install. */
- PackageType pkgtype;
/*! Determines the /bin/sh provider. */
BinShProvider binsh;
/*! Determines the /sbin/init provider. */
InitSystem sbininit;
- /*! Determines the network interface to use. */
- std::string chosen_auto_iface;
+ /*! Determines the packages to install. */
+ PackageType pkgtype;
/*! If pkgtype is Custom, a list of packages to install. */
QStringList packages;
/*! Determines the kernel to install. */