306 Commits (9ef22f4168b7343cfbd0b348669fa72ec3e4c7f1)

Author SHA1 Message Date
Adriaan de Groot 9ef22f4168 Merge branch 'calamares' of https://github.com/LordTermor/calamares into pr-1667 5 years ago
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
5 years ago
Artem Grinev 9302ad1468 [partition] Erase disk FS choice 5 years ago
Adriaan de Groot 7a26143fbc [partition] All action-changes should update next 5 years ago
Adriaan de Groot 1fe337d6ed [partition] Improve logging of device-checking
- Avoid lots of function headers between the checks applied to
  each individual device.
5 years ago
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.
5 years ago
Adriaan de Groot 1155b6fc3d [partition] Improve debug-output a little 5 years ago
Adriaan de Groot 0ec77f5d85 [partition] Warnings-- (uninitialized value) 5 years ago
Adriaan de Groot 2b4bc7adf4 [partition] Apply newer formatting tool 5 years ago
Adriaan de Groot bb426ebac4 [partition] Add missing ; (and apply coding style) 5 years ago
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
6 years ago
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.
6 years ago
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
6 years ago
Adriaan de Groot d7e64de24a [partition] Adjust docs to function
- @params referring to things that don't exist
- @brief that is 3 lines long
6 years ago
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.
6 years ago
Adriaan de Groot 27dc81f8b9 [partition] Fix typo in debug message, reported by Kevin Kofler 6 years ago
Adriaan de Groot 36396d0cfd [partition] Adjust message and fix debug message 6 years ago
Yuri Chornoivan 1448a9b9a1
Add missing space 6 years ago
Adriaan de Groot a955791766 Apply coding style globally again 6 years ago
Gaël PORTAY 2bbbb68838 [partition] Add setting for requiredPartitionTableType 6 years ago
Gaël PORTAY 70f8beb931 [partition] Add setting for defaultPartitionTableType 6 years ago
Adriaan de Groot 9486ee6fbf
Merge pull request #1524 from gportay/partition-message-user-if-no-option-available
[partition] Message user if no option available
6 years ago
Adriaan de Groot 92a874dae7 [partition] move the swap-choice to Config 6 years ago
Gaël PORTAY 79740c77a3 [partition] Message user if no option available 6 years ago
Adriaan de Groot 6e30a7b8f6 [partition] Move is-manual-partitioning-allowed to the Config object 6 years ago
Adriaan de Groot 0f4fe6294c [partition] Migrate type for SwapChoice to Config object 6 years ago
Adriaan de Groot 881661e94b [partition] Migrate InstallChoice to the Config object 6 years ago
Adriaan de Groot b41e4624c9 [partition] Move 'selected installation option' to Config 6 years ago
Adriaan de Groot 10d194d693 [partition] Simplify button-selection 6 years ago
Adriaan de Groot a92cb32cef [partition] set the right buttons if an action is pre-selected 6 years ago
Adriaan de Groot b518ef7dfe [partition] Select initial swap choice 6 years ago
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.
6 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.
6 years ago
Adriaan de Groot 30a85668b7 REUSE: (GPL-3.0-or-later) C++ modules 6 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.
6 years ago
Adriaan de Groot 824dac62d8 [partition] ChoicePage to use Config object 6 years ago
Adriaan de Groot baabcc5bb4 Merge branch 'calamares' into issue-1297 6 years ago
Adriaan de Groot 33fd5a1fad [partition] Report a valid choice if a partition is selected 6 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)
6 years ago
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.
6 years ago
Adriaan de Groot 3e51fe4651 [partition] Remove spurious Q_FUNC_INFO from logging
- The Q_FUNC_INFO was integrated into regular logging with commit
  5248a37eb3
6 years ago
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.
6 years ago
Adriaan de Groot 72857b75d0 [partition] Chase moving PrettyRadioButton to libcalamaresui
- Update includes
- Use exposed API instead of accessing internals of the button
6 years ago
Adriaan de Groot c0a3614f09 [partition] Chase Branding API change 6 years ago
demmm 8dc81b6987 Increase Manual Partition instructions
used downstream since 2014, has helped a lot with increaisng correct setups
6 years ago
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
6 years ago
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.
7 years ago
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
7 years ago
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.
7 years ago
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.
7 years ago