Adriaan de Groot
0be4c38a87
[partition] Remove useless parameter
...
- previously, updateSwapChoicesTr() wanted to be a static free function,
but it needs QObject::tr() ; drop the unnecessary parameter (since it
is a member function).
2021-08-04 01:45:22 +02:00
Adriaan de Groot
390acd41b2
[partition] Factor out manual partitioning translation
...
- needs to be called when the button is created, too
2021-08-04 01:42:00 +02:00
Adriaan de Groot
2820316d16
Partition: don't set text if button doesn't exist
2021-08-05 14:23:11 +02:00
Adriaan de Groot
e8cb5c621a
[partition] Fix build
2021-07-26 20:54:43 +02:00
Adriaan de Groot
616f3d4fd7
[partition] Simplify retranslation of swap choices and manual partitioning
2021-07-26 16:18:31 +02:00
Adriaan de Groot
e0b8942242
[partition] Introduce retranslate slot for ChoicePage, code style
2021-07-26 16:12:41 +02:00
Adriaan de Groot
c2d0a247a3
[partition] Simplify code for overloads
2021-07-12 16:52:24 +02:00
Adriaan de Groot
56ecf01dea
Merge branch 'pr-1667' into calamares
...
Allow user-selection of FS type
FIXES #1667
2021-07-05 12:31:58 +02:00
Adriaan de Groot
c3bc305bb6
[partition] Shuffle Config and ViewStep to top
...
Modules nearly always have a Config and either a Job or ViewStep
as their "top level" components. Everything else is implementation-
detail. The *partition* module was unusual in that those two
"top level" components were tucked away in subdirectories.
Shuffle them to the top: this makes it more clear that these
two files are there to coordinate the module.
2021-06-29 11:22:47 +02:00
Adriaan de Groot
131352ca03
[partition] Apply coding style
2021-06-22 00:21:01 +02:00
Adriaan de Groot
fb7e6101ff
[partition] Hook erase-fs-type changes to the config-object
2021-06-18 13:53:47 +02:00
Adriaan de Groot
d8a862ec82
[partition] Use Q_EMIT
2021-06-18 11:31:53 +02:00
Adriaan de Groot
9ef22f4168
Merge branch 'calamares' of https://github.com/LordTermor/calamares into pr-1667
2021-06-15 11:48:33 +02:00
Adriaan de Groot
df634573bf
[partition] Resize combo box to show whole pop-up
...
The (collapsed) combo box should be wide enough to show the
entire pop-up (expanded) box data.
FIXES #1700
2021-06-08 14:09:31 +02:00
Artem Grinev
9302ad1468
[partition] Erase disk FS choice
2021-03-31 20:15:02 +04:00
Adriaan de Groot
7a26143fbc
[partition] All action-changes should update next
2021-03-29 15:52:55 +02:00
Adriaan de Groot
1fe337d6ed
[partition] Improve logging of device-checking
...
- Avoid lots of function headers between the checks applied to
each individual device.
2021-03-29 15:25:57 +02:00
Adriaan de Groot
7b09344a8b
[partition] Update next-button
...
You'll need a VM with 2 disks to demonstrate:
- Configure Calamares to pick "none" as initial action on
the partition page (this is a safe choice),
- Enter partition page,
- No action is selected, and the next> button is greyed out.
- Click erase; notice next> is now available.
- Change devices, notice no action is selected, but next>
is still available. Clicking on it, though, does nothing.
When changing to "no action", update the next-button's
availability.
2021-03-29 14:24:56 +02:00
Adriaan de Groot
1155b6fc3d
[partition] Improve debug-output a little
2021-03-29 14:14:05 +02:00
Adriaan de Groot
0ec77f5d85
[partition] Warnings-- (uninitialized value)
2021-03-29 11:06:16 +02:00
Adriaan de Groot
2b4bc7adf4
[partition] Apply newer formatting tool
2021-03-16 16:08:13 +01:00
Adriaan de Groot
bb426ebac4
[partition] Add missing ; (and apply coding style)
2021-03-16 16:01:25 +01:00
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
2020-11-12 15:15:51 -05:00
Adriaan de Groot
4d444cbfbb
[partition] Reduce warnings (Clang, FreeBSD)
...
The code doesn't match the comment: there are no by-ref captures
in the code, and the shadowing of parameters and local variables
is confusing. Remove one variable that is passed in as an argument
(and just pass the value as argument) and copy-capture the other
rather than doing weird argument passing.
2020-10-31 23:37:06 +01:00
Adriaan de Groot
0a44ce381e
[partition] Reduce warnings (Clang, FreeBSD)
...
- remove unused this captures from lambda
- rename variables that are short, cryptic, and shadowed
- remove documentation for parameters that don't exist
2020-10-31 23:16:48 +01:00
Adriaan de Groot
d7e64de24a
[partition] Adjust docs to function
...
- @params referring to things that don't exist
- @brief that is 3 lines long
2020-10-23 23:14:00 +02:00
Gaël PORTAY
d91683eec6
[partition] Fix message user if no option available
...
The button m_eraseButton is not tested while the button
m_somethingElseButton is tested twice.
2020-10-22 13:23:36 -04:00
Adriaan de Groot
27dc81f8b9
[partition] Fix typo in debug message, reported by Kevin Kofler
2020-10-17 16:41:08 +02:00
Adriaan de Groot
36396d0cfd
[partition] Adjust message and fix debug message
2020-10-16 22:32:32 +02:00
Yuri Chornoivan
1448a9b9a1
Add missing space
2020-10-15 20:55:37 +03:00
Adriaan de Groot
a955791766
Apply coding style globally again
2020-10-12 14:27:01 +02:00
Gaël PORTAY
2bbbb68838
[partition] Add setting for requiredPartitionTableType
2020-10-07 08:10:24 -04:00
Gaël PORTAY
70f8beb931
[partition] Add setting for defaultPartitionTableType
2020-10-06 20:46:17 -04:00
Adriaan de Groot
9486ee6fbf
Merge pull request #1524 from gportay/partition-message-user-if-no-option-available
...
[partition] Message user if no option available
2020-10-07 01:32:13 +02:00
Adriaan de Groot
92a874dae7
[partition] move the swap-choice to Config
2020-10-06 15:44:14 +02:00
Gaël PORTAY
79740c77a3
[partition] Message user if no option available
2020-10-06 04:10:27 -04:00
Adriaan de Groot
6e30a7b8f6
[partition] Move is-manual-partitioning-allowed to the Config object
2020-10-02 13:04:12 +02:00
Adriaan de Groot
0f4fe6294c
[partition] Migrate type for SwapChoice to Config object
2020-10-02 12:22:53 +02:00
Adriaan de Groot
881661e94b
[partition] Migrate InstallChoice to the Config object
2020-10-02 12:08:42 +02:00
Adriaan de Groot
b41e4624c9
[partition] Move 'selected installation option' to Config
2020-09-29 14:00:49 +02:00
Adriaan de Groot
10d194d693
[partition] Simplify button-selection
2020-09-29 12:22:50 +02:00
Adriaan de Groot
a92cb32cef
[partition] set the right buttons if an action is pre-selected
2020-09-28 17:46:42 +02:00
Adriaan de Groot
b518ef7dfe
[partition] Select initial swap choice
2020-09-28 15:37:12 +02:00
Adriaan de Groot
ffed7b6d71
[partition] Warnings-- over QButtonGroup
...
- this was deprecated in 5.15 and an alternative introduced also
in 5.15, so it's a pain in the butt for backwards-compatibility.
2020-09-23 11:16:23 +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
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.
2020-07-31 23:20:51 +02:00
Adriaan de Groot
824dac62d8
[partition] ChoicePage to use Config object
2020-07-30 10:44:10 +02:00
Adriaan de Groot
baabcc5bb4
Merge branch 'calamares' into issue-1297
2020-07-29 22:35:23 +02:00
Adriaan de Groot
33fd5a1fad
[partition] Report a valid choice if a partition is selected
2020-07-29 17:58:13 +02:00