Commit Graph

43 Commits (b602d423c73c30d56bae2760d41c59587874ef3d)

Author SHA1 Message Date
shainer b602d423c7 Allow users to set/edit filesystem labels.
When creating or editing a new formatted partition, allow
to set a filesystem label (16 chars maximum). Modify
the KPMHelpers to accept it as a new parameter. Partitions
created by default may get a meaningful label too.
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.
Adriaan de Groot 30a85668b7 REUSE: (GPL-3.0-or-later) C++ modules
Adriaan de Groot 220fd31226 [partition] Improve EncryptionWidget
- Use normal translation framework. The EncryptWidget was the one place
  not using the "usual" translation framework, but rolled its own.
- Emphasize that the checkbox-state (checked-ness) is the parameter,
  not a state of the EncryptWidget.
- All other instances of UI classes from Designer use a pointer-to-UI,
  not multiple inheritance.
- Convenience method for setting the pixmap in response to
  changes in the passphrase
- Tighten up types: enum -> enum class
- Reduce the scope for int-confusion by using an enum-class for
  the encryption state of the widget
- Include UI implementation header only in .cpp
- Apply coding style
- Update copyright
Adriaan de Groot 45a31a3022 [partition] Tidy includes
- sort includes a little
 - remove superfluous includes
 - update copyright
Adriaan de Groot d931b146e3 [partition] Shuffle new conveniences into partition service
- the general stuff from KPMHelpers ends up in the partition
   service; that only gets compiled when KPMCore is available anyway.
Adriaan de Groot e72ecaafd3 Merge branch 'kpmcore-manager'
Introduces a "partitioning service" into libcalamares,
shuffles a bunch of things into it, tries to help out
with settling the system between partitioning actions.
Adriaan de Groot 5a50a3a40c [partition] Consistent FS name usage
- explicit use of user-visible names in EditExistingPartitionDialog
 - consistent conversion of config-values to FS names (user-visible).
   The GS value comes from the ViewStep, and should always match
   something -- it's already converted to the canonical un-translated
   so the type should be good.
Adriaan de Groot 05dfc24af6 [partition] Be explicit about user-visible FS names, CreatePartitionDialog
Adriaan de Groot 4b3bb54320 [libcalamares] Move partition-finding into libcalamares
- Moved from KPMHelpers to the partition service
 - The is-partition and find-partition methods that make sense
   in general, are moved to libcalamares.
Caio Carvalho 01a972c6ea [partition] Fixing LVM LV name line edit visibility.
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>
Adriaan de Groot bd57f1f2f1 [partition] Fix re-editing a newly created partition
- If there is a partition already (newly) created, then pass that
   to the dialog so that it can use the setings previously applied
   (e.g. mount point and flags).
 - This avoids the case where you create or format a partition,
   then click on it again to edit it and the previous settings are lost.
Adriaan de Groot ca03dad67b [partition] Refactor setting the flags UI
- Setup the lsit of flags consistently, by providing the available
   and to-be-checked flags.
 - In CreatePartitionDialog, assume that ~0 is all the flags.
Adriaan de Groot 4f451eece5 [partition] Refactor getting the checked flags
Adriaan de Groot 950cc9070d [partition] Rename MountPoints to PartitionDialogHelpers
This file is full of helper functions for the partition-editing
dialogs. At first it was just mount-point helper functions,
but there is other functionality that can be refactored.
Adriaan de Groot 4402198b37 [partition] Centralize setting-of-mountpoint
- map empty to the 0'th index
 - add new entries as needed

This avoids having selected index 0, but a different text.
Adriaan de Groot a49c39bb53 [partition] Unmap mount-point special strings
- Reverse "(no mount point)" to the empty string
 - Provide convenience pointer-taking function
Adriaan de Groot fda2e54e0f [partition] Refactor filling combobox with moint points
- Move to one place which handles the standard mount points
 - While here, introduce explicit "(no mount point)" string
   into the combo box. This is prep-work for issue .
Caio Carvalho 77d2667b53 [partition] Checking if there is LUKS creation support and if partition is not Extended before enabling encryption in CreatePartitionDialog.
Andrius Štikonas 1b21668bff [partition] Switch to scoped Device enums.
Adriaan de Groot 1a42b8af41 Merge branch 'kpmcore-3.2'
- Bumps requireed KPMCore to 3.3 (in spite of the branch name)
 - Cleans up some dependencies

Thanks to Andrius Stikonas.
Adriaan de Groot 762ad54344 Documentation: change http links to GitHub to https
Andrius Štikonas 4912d8a6c2 Fix create partition job to work with LVM devices.
Adriaan de Groot 7e66499f36 Refactor check for EFI system.
The TODO stands, to delegate this to KPMCore.
Teo Mrnjavac e9f113a6a8 Translate user-visible strings!
shainer 8c1199df2d Check first selection of mountpoint too.
When opening the dialog.
shainer c8dbeb5341 Avoid creating a new partition with a used mountpoint.
We get the mountpoints already used by other partitions, and
disable the Ok button in the "Create new partition" dialog if
the user selects/writes a mountpoint which is already used.

We are going to do the same in the Edit partition dialog
after testing.
Teo Mrnjavac 8ff943e5b5 Improve check for encryption status.
Teo Mrnjavac 7a03dc102d Update fields when the default filesystem is chosen.
Teo Mrnjavac 395fb340b7 Make the Create Partition dialog obey the default FS type setting.
Teo Mrnjavac a00ebc01e7 Use EncryptWidget for relevant partition types in CreatePartitionDialog.
Teo Mrnjavac 5a134eb708 Copyright headers.
Teo Mrnjavac ada0a080fc Add flags setting support when creating a partition.
Teo Mrnjavac 5f54a56513 PMUtils is now KPMHelpers. Also fixup after PartUtils refactor.
Teo Mrnjavac c2eef9ac30 The Humongous Include Fixage For KPMcore Headers.
Teo Mrnjavac 49f470b503 Update non-mountable list in CreatePartitionDialog.
Teo Mrnjavac 3326ec4ace Clear mountPoint string when selecting a non-mountable filesystem type.
CAL-249 #close I pushed a fix, please test and reopen if still broken.
Teo Mrnjavac 8885a7e5f6 Fix bug with KPM enum which prevented logical partition creation.
Philip a62743185a [partition] use C++11 initialization list for mountPoints
Ramon Buldó 6a52811c30 Show efi mountpoint when creating/editing partitions
Aurélien Gâteau 97980f5fad Make PartitionSizeController handle cloning the partition for PartResizerWidget
Aurélien Gâteau 693e9229c8 Dispatch files in core/ gui/ and jobs/ dirs