Adriaan de Groot
e47dc4aa78
[partition] Fix build with translated buttons
2021-09-08 11:28:38 +02:00
Adriaan de Groot
226419f794
[partition] Translate button texts in warning boxes
2021-09-08 11:15:12 +02:00
waneon
4bf3afac48
[partition] Fix invalid variable name
2021-08-27 19:18:09 -04:00
Adriaan de Groot
46ca4d93e7
[partition] Improve constness, naming
2021-08-26 17:30:55 +02:00
Adriaan de Groot
ad9306d7bb
Merge pull request #1749 from LordTermor/calamares
...
[partition] Disable delete button for extended partition
2021-08-26 17:18:09 +02:00
Artem Grinev
74a3a2da78
[partition] Fix Delete button for extended
...
Extended partition can't be removed when contains children. This commit
adds missing check.
2021-08-12 02:13:16 +04:00
Adriaan de Groot
131352ca03
[partition] Apply coding style
2021-06-22 00:21:01 +02:00
Adriaan de Groot
e2bf717ea0
[partition] Rewrite new-partition API
...
The existing API required calling the one constructor with
specific pointers (nullptr for a partition-from-free-space)
followed by calling one of the initFrom*() functions. This
is fragile design.
Use tag-classes to distinguish create-from-free-space and
edit-another-freshly-created-partition cases, refactor
to merge the initFrom*() methods into the constructors
and factor out the shared UI creation.
Callers can now use the tag-class to distinguish. While
here, adjust both callers to use QPointer, avoiding some
very specific dialog-on-the-stack crash possibilities.
2021-06-22 00:17:46 +02:00
Adriaan de Groot
f06766085a
[partition] Rename function, to track down consumers
2021-06-22 00:11:46 +02:00
Adriaan de Groot
186d32ebee
[partition] More missing ;
2021-03-16 16:11:02 +01:00
Adriaan de Groot
a955791766
Apply coding style globally again
2020-10-12 14:27:01 +02:00
Adriaan de Groot
010526ee2a
[partition] Coding style
2020-09-29 14:04:12 +02:00
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.
2020-08-26 02:28:38 +02:00
Adriaan de Groot
30a85668b7
REUSE: (GPL-3.0-or-later) C++ modules
2020-08-26 02:22:49 +02:00
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.
2019-06-13 14:41:33 +02:00
Adriaan de Groot
2bc95d11d3
[partition] Unrelated typo in comment
2019-05-31 12:08:58 +02:00
Adriaan de Groot
0ebabfafd4
[partition] Move BootLoaderModel convenience functions
...
- These were hidden inside PartitionPage, but are useful elsewhere.
2019-05-31 12:08:58 +02:00
Adriaan de Groot
81715ba199
[partition] Warnings-- by using nullptr instead of 0
2019-05-14 05:29:19 -04:00
Adriaan de Groot
e8264a4503
[partition] Prefer GPT on EFI systems for new partition table
2019-04-25 14:40:27 +02:00
Adriaan de Groot
3533bb3c2d
Merge branch 'master' into issue-1061
2019-04-24 12:26:01 -04:00
Adriaan de Groot
c0710cabe4
[partition] [fsresizer] Adjust to new #define
...
- Using KPMCORE4API is clearer than just relying on a version number
2019-04-12 12:16:55 +02:00
Adriaan de Groot
7806ccbe72
[partition] Drop superfluous debug logging
...
- While here, update copyright header
2019-04-01 07:39:19 -04:00
Adriaan de Groot
b03d72952b
[partition] Improve logging
2019-03-30 06:36:51 -04:00
Adriaan de Groot
273c32705d
[partition] Restore selected bootloader
...
- After the BootLoader model is reset, if a bootloader location
has been selected before, try to find it in the (now-reset)
model to preserve the selection.
2019-03-29 12:00:27 -04:00
Adriaan de Groot
dc04aa999d
[partition] Introduce post-reset slot for boot loader selection
2019-03-29 11:34:07 -04:00
Adriaan de Groot
fdb4311a70
Merge branch 'issue-1098'
...
- Doesn't fix the issue, but adds useful things I want in master
already, also for debugging other issues.
2019-03-01 07:09:45 -05:00
Adriaan de Groot
2b149fb944
[partition] Uncomment updateButtons()
...
- This was commented out to combat the crash in device->type()
- I believe the crash was caused by double-deletion, which was
fixed in 2092ec3c9a
by not re-
parenting an immutable copy of something.
- Restore the button-fix, since we need that to keep the
*create* button in-sync with the selected partition.
FIXES #1097
2019-03-01 06:56:52 -05:00
Adriaan de Groot
b4cefff975
[partition] Avoid heap-wrangling
...
- The CreatePartitionDialog doesn't need to be on the heap, it's
modal here. Avoid QPointer weirdness as well.
2019-02-26 07:21:36 -05:00
Adriaan de Groot
943f3fb1f9
[partition] Improve debug-logging
...
- Use cDebug() instead of qDebug()
- Be more chatty when selecting a bootloader installation path
2019-02-26 07:10:56 -05:00
Adriaan de Groot
92d9c9491a
[partition] Reduce lambda-happiness
...
- Make some methods that are called mostly as slots, actual slots,
instead of going through extra lambdas.
- Use QOverload<>::of for disambiguation instead of homebrew casts.
2019-02-26 07:05:32 -05:00
Adriaan de Groot
b9fa0398c0
[partition] Disable one call to updateButtons()
...
- suggested by @abucodonosor, removing this one call seems
to solve the data race for the device model.
2019-02-11 18:26:45 -05:00
Adriaan de Groot
6316173f1b
[partition] More conservative handling of device pointers
...
- thanks @abucodonosor
2019-02-11 17:45:23 -05:00
Arnaud Ferraris
dfb5412c57
[partition] Preserve current device when going to manual partitioning
...
Fixes #1043
Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com>
2019-01-10 16:28:05 +01:00
Adriaan de Groot
e3bf9fc220
[partition] Fix build with KPMCore <= 3.3.0
...
- Reported by Philip Mueller
2018-09-21 16:19:05 -04:00
Caio Carvalho
7fd0ad5795
[partition] Disabling partition buttons for inactive RAID.
2018-08-13 09:51:35 -03:00
Adriaan de Groot
5d5feeb0ab
Merge branch 'master' of https://github.com/cjlcarvalho/calamares into lvm-update
2018-06-28 23:48:13 +02:00
Caio Carvalho
67d9ebbfc0
[partition] Setting revertButton enabled after deactivating VG.
2018-06-26 01:29:57 -03:00
Caio Carvalho
295e14530e
[partition] Adding resizing, deactivating and removing procedures for LVM VGs.
2018-06-26 00:38:52 -03:00
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>
2018-06-15 05:59:11 -04:00
Caio
0465cc4214
[partition] Including revert on creation of LVM VGs.
2018-06-08 20:20:05 -03:00
Caio
208d58bcd9
[partition] Including CreateVolumeGroupDialog and fixing some of its GUI issues.
2018-06-07 17:22:22 -03:00
Caio
d15ce56c97
[partition] Initial implementation of VolumeGroupBaseDialog.
2018-06-04 16:31:58 -03:00
Adriaan de Groot
90a2e482be
[partition] Check for available partition type before creating
...
- Avoid situation where you make 5 or more primaries in an
MSDOS partition table.
FIXES #953
2018-05-16 10:56:06 -04:00
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.
2018-05-16 09:14:50 -04:00
Andrius Štikonas
1b21668bff
[partition] Switch to scoped Device enums.
2018-04-18 23:59:15 +03:00
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.
2018-01-02 13:25:11 +01:00
Adriaan de Groot
762ad54344
Documentation: change http links to GitHub to https
2017-12-20 08:39:09 -05:00
Chantara Tith
2a785bdf89
Disable newPartitionTableButton for LVM device.
2017-11-11 21:47:30 +00:00
Adriaan de Groot
9116718448
Clang: warnings-reduction
2017-09-10 15:19:36 -04:00
Adriaan de Groot
7e66499f36
Refactor check for EFI system.
...
The TODO stands, to delegate this to KPMCore.
2017-08-28 05:36:45 -04:00