summaryrefslogtreecommitdiff
path: root/ui/qt5/partitionchoicepage.cc
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-02-22 18:59:11 -0600
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-02-22 18:59:11 -0600
commit4a4f03c9228f9ca9e3ca94da46add73337ef49af (patch)
treeec7cbf7b0d24ad6138eb3f2f6f2b1522170a922f /ui/qt5/partitionchoicepage.cc
parent8c48e8c1f66ab379b1c7e9e114a21ca4d39df790 (diff)
downloadhorizon-4a4f03c9228f9ca9e3ca94da46add73337ef49af.tar.gz
horizon-4a4f03c9228f9ca9e3ca94da46add73337ef49af.tar.bz2
horizon-4a4f03c9228f9ca9e3ca94da46add73337ef49af.tar.xz
horizon-4a4f03c9228f9ca9e3ca94da46add73337ef49af.zip
Qt UI: Wire up Partition Choice UI to wizard ivars
Diffstat (limited to 'ui/qt5/partitionchoicepage.cc')
-rw-r--r--ui/qt5/partitionchoicepage.cc16
1 files changed, 16 insertions, 0 deletions
diff --git a/ui/qt5/partitionchoicepage.cc b/ui/qt5/partitionchoicepage.cc
index ce0a473..ed61768 100644
--- a/ui/qt5/partitionchoicepage.cc
+++ b/ui/qt5/partitionchoicepage.cc
@@ -26,6 +26,10 @@ PartitionChoicePage::PartitionChoicePage(QWidget *parent)
eraseButton = new QRadioButton(tr("&Erase and Use Whole Disk"));
eraseButton->setHidden(true);
+ connect(eraseButton, &QRadioButton::clicked, [=] {
+ horizonWizard()->auto_part = true;
+ horizonWizard()->erase = true;
+ });
eraseLabel = new QLabel(tr("The entire disk will be erased and then automatically partitioned.<br><strong>Warning: This will destroy all existing data on the disk.</strong>"));
eraseLabel->setHidden(true);
eraseLabel->setIndent(25);
@@ -34,6 +38,10 @@ PartitionChoicePage::PartitionChoicePage(QWidget *parent)
fitInButton = new QRadioButton(tr("Use &Free Space"));
fitInButton->setHidden(true);
+ connect(fitInButton, &QRadioButton::clicked, [=] {
+ horizonWizard()->auto_part = true;
+ horizonWizard()->erase = false;
+ });
fitInLabel = new QLabel(tr("The free space on the disk will be automatically partitioned for use with Adélie. Existing data will be preserved."));
fitInLabel->setHidden(true);
fitInLabel->setIndent(25);
@@ -41,6 +49,10 @@ PartitionChoicePage::PartitionChoicePage(QWidget *parent)
useExistingButton = new QRadioButton(tr("Use Existing &Partition"));
useExistingButton->setHidden(true);
+ connect(useExistingButton, &QRadioButton::clicked, [=] {
+ horizonWizard()->auto_part = false;
+ horizonWizard()->erase = false;
+ });
useExistingLabel = new QLabel(tr("No partitions will be modified. You must select the partition on which you wish to install Adélie."));
useExistingLabel->setHidden(true);
useExistingLabel->setIndent(25);
@@ -48,6 +60,10 @@ PartitionChoicePage::PartitionChoicePage(QWidget *parent)
manualButton = new QRadioButton(tr("&Manual"));
manualButton->setHidden(true);
+ connect(manualButton, &QRadioButton::clicked, [=] {
+ horizonWizard()->auto_part = false;
+ horizonWizard()->erase = false;
+ });
manualLabel = new QLabel(tr("Open a partitioning tool."));
manualLabel->setHidden(true);
manualLabel->setIndent(25);