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
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)
2020-07-29 14:21:19 +02:00
apt-ghetto
2b3cc17782
Revert Manual Partition instructions
...
With PR calamares/calamares#1357 the label of the "Manual partitioning" option
was changed, which introduced several downsides:
* The label is shown for UEFI and for BIOS installations.
* The mountpoint of the ESP is and should be distro specific.
* The label always mentioned GPT, which is irrelevant.
* The label should explain, what the option does, and not, what
problems can occur under certain circumstances.
2020-07-24 17:56:58 +02:00
Adriaan de Groot
3e51fe4651
[partition] Remove spurious Q_FUNC_INFO from logging
...
- The Q_FUNC_INFO was integrated into regular logging with commit
5248a37eb3
2020-05-19 16:44:44 +02:00
Adriaan de Groot
68bb066755
[partition] Consolidate SwapChoice handling
...
- pickOne() may be useful, given a set of swap choices; expose it
- move type definitions to PartitionActions, where some of them
come from.
2020-05-18 14:12:50 +02:00
Adriaan de Groot
72857b75d0
[partition] Chase moving PrettyRadioButton to libcalamaresui
...
- Update includes
- Use exposed API instead of accessing internals of the button
2020-05-18 11:26:22 +02:00
Adriaan de Groot
c0a3614f09
[partition] Chase Branding API change
2020-05-04 12:52:14 +02:00
demmm
8dc81b6987
Increase Manual Partition instructions
...
used downstream since 2014, has helped a lot with increaisng correct setups
2020-03-25 19:43:29 +01:00
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
2020-03-09 21:43:14 -05: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
4202126f34
[fsresizer] [partition] Fix build with moved headers
...
- PartitionIterator has moved into libcalamares
- While here, sort and organize #include lines
- Add using to keep code impact small
2019-06-13 12:27:39 +02:00
Adriaan de Groot
3bdbfe6bff
[partition] Avoid crash if combobox is gone and model resets
...
- Since the lambda is connected to the model only, it should
check that the target combo exists as well.
2019-05-31 12:08:58 +02:00
Adriaan de Groot
2ce2b08027
[partition] Indent lambdas to tab-stop.
...
- Lambdas are all over the place in this codebase, formulate
a standard and start adjusting code to it in passing.
2019-05-31 12:08:58 +02:00
Adriaan de Groot
f1f5b6c1bb
[partition] Restore BootLoader path in Choice Page
...
- after model resets, restore what was previously selected.
- This avoids having an **empty** combobox, SEE #1141 but does
not actually set it back to the value the user had previously
picked (e.g. changing swap settings **still** breaks the
selection).
2019-05-31 12:08:58 +02:00
Adriaan de Groot
d3783ef293
[partition] Use GiB and MiB consistently
2019-05-06 16:47:11 +02:00
Adriaan de Groot
502d43d111
[welcome] [partition] Rename GlobalStorage variable used for storage
...
- Change name passed into GS to use "GiB" instead of "GB", for
consistency. This needs to be done in consumers as well.
2019-05-06 16:39:14 +02:00
Adriaan de Groot
516b3b4b6c
[partition] Adjust to logging-API changes
...
- missed due to #ifdef on a KPMcore API version I don't have on
my main workstation.
2019-04-25 13:42:59 +02:00
Adriaan de Groot
cef2f50510
Reduce warnings about extra ;
...
- Trailing ; after Q_UNUSED
- Trailing ; after CALAMARES_RETRANSLATE
2019-04-18 12:06:09 +02:00
Adriaan de Groot
63b317902d
[libcalamares] [partition] Adjust to logging changes
...
- Use the un-paren'ed Continuation and SubEntry
2019-04-15 08:27:43 -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
04146df36b
[partition] Reduce logging for mounted partitions
...
- The other log entries say when something is possible,
not when something is **not** possible.
2019-04-04 17:46:48 +02:00