80 Commits (feab8bebbaee178cd125451f7e233e93b487c315)

Author SHA1 Message Date
Gaël PORTAY feab8bebba [partition] Remove unused attribute m_defaultFsType
This attribute is used since the commit fcd0e8d36 [partition] Apply
partition layout when replacing free space
5 years ago
Adriaan de Groot 51b47862cd [partition] Mark destructors `override`
This reduces compiler warnings related to virtual-overriding
functions: all the destructors are virtual.
5 years ago
Gaël PORTAY 2bbbb68838 [partition] Add setting for requiredPartitionTableType 5 years ago
Adriaan de Groot 92a874dae7 [partition] move the swap-choice to Config 5 years ago
Adriaan de Groot 6e30a7b8f6 [partition] Move is-manual-partitioning-allowed to the Config object 5 years ago
Adriaan de Groot 0f4fe6294c [partition] Migrate type for SwapChoice to Config object 5 years ago
Adriaan de Groot 881661e94b [partition] Migrate InstallChoice to the Config object 5 years ago
Adriaan de Groot b41e4624c9 [partition] Move 'selected installation option' to Config 5 years ago
Adriaan de Groot a92cb32cef [partition] set the right buttons if an action is pre-selected 5 years ago
Adriaan de Groot 1cd9b93a22 REUSE: Giant boilerplate cleanup
- point to main Calamares site in the 'part of' headers instead
  of to github (this is the "this file is part of Calamares"
  opening line for most files).
- remove boilerplate from all source files, CMake modules and completions,
  this is the 3-paragraph summary of the GPL-3.0-or-later, which has
  a meaning entirely covered by the SPDX tag.
5 years ago
Adriaan de Groot 30a85668b7 REUSE: (GPL-3.0-or-later) C++ modules 5 years ago
Adriaan de Groot 41ce42cd4b [partition] Drop InstallChoice enum from Page
- The enum for install choice was copied into PartitionActions and
  used in the Config object; its definition does not belong in the UI.
- Chase the renamings required.
5 years ago
Adriaan de Groot 824dac62d8 [partition] ChoicePage to use Config object 5 years ago
Adriaan de Groot f1c4caba48 [partition] Refactor checking next-enabled
- move the calculations to an own method (so it can use
  early-return and log things to explain why next is disabled)
5 years ago
Adriaan de Groot 72857b75d0 [partition] Chase moving PrettyRadioButton to libcalamaresui
- Update includes
- Use exposed API instead of accessing internals of the button
5 years ago
Adriaan de Groot 5f20eedb6e [partition] Use swap-choice member, not the combobox pointer
- Store changes to the selected swap-choice when the combobox changes
 - Use that member instead of dereferencing the combobox

This avoids nullptr crashes when the combobox isn't even created
(e.g. when there is only one swap choice).
6 years ago
Adriaan de Groot a4e6d4cd35 [partition] Rename combo box
- Too much confusion possible between the different members all
   named variations of *SwapChoice*
 - Update copyright years, too
6 years ago
Adriaan de Groot 73c39adf9c Merge branch 'improve-swap-ui' 6 years ago
Adriaan de Groot a51a000681 Merge branch 'master' into improve-swap-ui 6 years ago
Arnaud Ferraris 5cacc0ddc6 Merge remote-tracking branch 'upstream/master' into partition-layout 6 years ago
Arnaud Ferraris dfb5412c57 [partition] Preserve current device when going to manual partitioning
Fixes #1043

Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com>
6 years ago
Arnaud Ferraris ba673b17ee [partition] Add configuration option to disable manual partitioning
In some cases where a custom partition layout is used, use of this
layout is mandatory (this can be the case when using a read-only rootfs
which is updated by block-cpying an image file to it).

For these cases, the user must not be able to change the partition
layout, therefore we have to disable manual partitioning.

In order to stay consistent with current behaviour, manual partitioning
is still enabled by default. It will only be disabled if the partition
module's config file contains the corresponding option set to "false".

Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com>
6 years ago
Adriaan de Groot 4973d00ace [partition] Only create drop-down if there is something to select
- Swap choices may be 0 (then choose none), 1 (choose that one)
   or more (currently undecided)
6 years ago
Adriaan de Groot 00df8a9fb1 [partition] Remove unused code
- Swap choice for replace and alongside will happen much, much later.
6 years ago
Adriaan de Groot a66ea106d6 [partition] Missing implicit include 6 years ago
Adriaan de Groot 2998c27545 [partition] Use configured swap choices in choice page 6 years ago
Adriaan de Groot 0231619c7c [partition] Refactor slot for change in action
- Let's not go overboard on lambdas,
 - Needed for others that also want to update the partitioning preview
6 years ago
Adriaan de Groot 5136021416 [partition] Move SwapChoice to another namespace
- The choice of swap needs to be handled in more places,
   so make the enum available in the partition module core instead
   of just inside the choice page.
7 years ago
Adriaan de Groot cfa940b35c [partition] Support translations of swap choices
- Introduce enum to indicate what is selected
 - Support translations
 - Fill selections for erase
7 years ago
Adriaan de Groot 7d0451fe69 [partition] Rename Choice -> InstallChoice
- There are more choices to be made (or to come) when partitioning,
   so don't take the most generic term for one enum.
7 years ago
Adriaan de Groot dd8e53dc22 Copyright: update copyright lines on files touched in 2018
Contributions from:
  Adriaan de Groot <groot@kde.org>
  Gabriel Craciunescu <crazy@frugalware.org>
  AlmAck <gluca86@gmail.com>
  Andrius Štikonas <andrius@stikonas.eu>
  Caio Carvalho <caiojcarvalho@gmail.com>
  Raul Rodrigo Segura <raurodse@gmail.com>
7 years ago
Adriaan de Groot 05967311de [partition] Be defensive against no device-device-available.
Scenario is this: you have no suitable installation devices on
your system (everything is mounted, or HDD has died), click through
to partition page, where you have all the buttons available, but no
devices in the list. The following actions then cause a crash:

 - clicking "back"
 - clicking any button

Prevent that:
 - you can click "back", but if there is no device selected
   nothing happens to the device state (no nullptr deref,
   and no crash)
 - button code is now more resilient to this scenario
 - buttons are hidden until a device is available, so you
   can't even click on them to trigger the code.
7 years ago
Adriaan de Groot 762ad54344 Documentation: change http links to GitHub to https 7 years ago
Teo Mrnjavac 6545443b24 Documentation++ 8 years ago
Teo Mrnjavac 5796b05fda Allow disabling automated LUKS modes. 9 years ago
Teo Mrnjavac a17f369cee React to reuse home checkbox by setting /home mount point.
Rearranged Replace workflow a bit: onPartitionReplaceSelected is now
the on choice slot, which in turn calls doReplaceSelectedPartition.
onHomeCheckBoxStateChanged also calls doReplaceSelectedPartition if we
need to redo the Replace task with/without a separate home to keep.
m_reuseHomeCheckBox is hidden by default.
9 years ago
Teo Mrnjavac 2c68802446 Reapply the action choice instead. 9 years ago
Teo Mrnjavac f5ff716369 Make everything obey the default filesystem type setting. 9 years ago
Teo Mrnjavac b792ea0216 Rebuild autopartition proposal when encryption choice changes. 9 years ago
Teo Mrnjavac 0cc9560a99 Hook up EncryptWidget in ChoicePage, plus improve next status handling. 9 years ago
Teo Mrnjavac e91d213872 Improve setting ESP. 9 years ago
Teo Mrnjavac 7a89b53538 Refactor leave event of ChoicePage, add ESP mount point support.
PVS now calls ChoicePage::onLeave, which in turn runs ChoicePage::
doAlongsideApply and/or sets up the ESP mount point based on the UI
state if it's running in EFI mode and the action is Alongside or
Replace.
If setting up under BIOS, Alongside and Replace always install
the bootloader in the MBR of the current device.
9 years ago
Teo Mrnjavac b17b7a9c89 Asynchronous rescan on device change. 9 years ago
Teo Mrnjavac 30c38c4f4d Safer pointer. 9 years ago
Teo Mrnjavac 5ccfc20258 Refactor bootloader picker into the bottom layout. 9 years ago
Teo Mrnjavac 5242536b2a Make doAlongsideApply public in ChoicePage. 9 years ago
Teo Mrnjavac 27d69502a3 Alongside apply slot. 9 years ago
Teo Mrnjavac cad8845f12 Better name for alongside slot. 9 years ago
Teo Mrnjavac 80018e1d5b Signal-slot plumbing and splitter setup for Alongside. 9 years ago
Teo Mrnjavac 3869338c39 Make the QButtonGroup a member in ChoicePage. 9 years ago