5452 Commits (a85ff30ad44dbbdc75f04758545a9677a1fdc4bc)

Author SHA1 Message Date
Adriaan de Groot 15cbdf2a18 [calamares] Allow multiple instances if -d is given
- Calamares doesn't like to run multiple instances, since they would
  interfere with each other (stealing disks from each other, for instance).
  The single-application code tries to prevent that.
- For -d runs, for developers where presumably they know what they are
  doing, the single-application restriction is annoying: especially if
  you need two instances at once for some kind of visual comparison.

Drop the single-app requirement if -d is given.
5 years ago
demmm 1ece171597 start of adding requirements to welcomeq
just QML, no real connections yet
hardcoded to not visible
not clear if requirementsModel is available to welcomeq
5 years ago
Adriaan de Groot 60aecaf0b8 [calamares] Fix height of the navigation bar in QML
- If the QML navigation panel sets a height, use that
- If it doesn't, use 48px (which *may* make sense, but like many
  screen dimensions in Calamares doesn't take HiDPI into account)
- Give the demo QML an explicit height of 48
5 years ago
Adriaan de Groot bb2b5fd982 [libcalamaresui] No reason for bail() to be a method 5 years ago
Adriaan de Groot 526716556c [libcalamaresui] Store the slideshow-from-images data
- This code has existed for a long time but never stored anything
  to the Branding object, and the most literal slideshow (just some
  images) was not implemented.
5 years ago
FLVAL e5f2aba8e2
Add files via upload
Region "Africa" zones # 52 
14:25:19 [6]:  ..  Zone "Asmara" QPoint(445,183) 
14:25:19 [6]:  ..  First zone found 2 "2.0" 
14:25:19 [6]:  ..  Also in zone 3 "3.0"
5 years ago
Adriaan de Groot 401a34fcbd [libcalamares] Fix tests on FreeBSD
- https requests can fail if ca_nss isn't installed; ping something
  else then.
5 years ago
Adriaan de Groot 7277d52828 [libcalamares] Expand range of errors for network requests
- All failures were being reported as Timeout, which is confusing
  when they are not. Introduce HttpError for the not-timeout
  other kinds of errors.
- Add operator<< for RequestStatus for nicer error logging.
5 years ago
Adriaan de Groot 5dc358093e [welcome] Apply coding style 5 years ago
Adriaan de Groot 713132d4af [welcome] Move GeoIP loading into Config
- The Config object can handle GeoIP loading on its own. Both
  View steps that used this had a derpy view->setCountry() that
  didn't really do anything with the view anymore.
5 years ago
Adriaan de Groot 6434374bf3 [welcome] Move languageIcon loading into the Config object
- The QML module had an additional check that the normal one
  did not; add it in the merged code.
5 years ago
Adriaan de Groot a7a6c937ea [libcalamaresui] Add needed includes
- Return type QPixmap means we should definitely #include it
5 years ago
Adriaan de Groot 120a2b0f03 [welcome] Move get-the-show*Url code into Config
- Since this is configuration-loading, put it in the Config
  class; reduces code duplication between welcome and welcomeq.
5 years ago
Adriaan de Groot e65a0ee617 [welcome] Update welcome example
- donate **does** have a corresponding branding setting
- show that "false" is a valid setting
5 years ago
Adriaan de Groot cd44f548f5 [libcalamaresui] Add donateUrl to the branding settings
SEE #1384
5 years ago
Adriaan de Groot 9e344f50a7 [bootloader] Refactor efi-next-boot
- move the setup-next-boot code to a function on its own
- credit to Gaë
5 years ago
Adriaan de Groot 7c633f1253
Merge pull request #1394 from gportay/set-efi-bootnext
[bootloader] Set the EFI Boot Next
5 years ago
Calamares CI b66867f0ff i18n: [dummypythonqt] Automatic merge of Transifex translations 5 years ago
Gaël PORTAY 4a9c8d0278 [bootloader] Set the EFI Boot Next
- This forces the EFI firmware to boot the loader that was just
   created, whatever the boot order set in the firmware setup (USB,
   CD/DVD, HD...).
 - It is safe to use the first Boot Entry listed in BootOrder as the
   previous command creates the new entry and adds it to the first place
   of the BootOrder.
5 years ago
Adriaan de Groot 7d1800a0d7 [welcome] Apply coding style 5 years ago
Adriaan de Groot 70054e5db4 [welcome] Chase Branding API change 5 years ago
Adriaan de Groot 0046c3f161 [tracking] Chase Branding API change
- While here, apply coding style
5 years ago
Adriaan de Groot c0a3614f09 [partition] Chase Branding API change 5 years ago
Adriaan de Groot da82adeeee [finished] Chase Branding API change
- while here, also apply coding style
5 years ago
Adriaan de Groot dc1a4fab8e [libcalamaresui] Chase Branding API change 5 years ago
Adriaan de Groot 794939b6a8 [calamares] Chase Branding API change 5 years ago
Adriaan de Groot 62696a3a48 [libcalamaresui] Remove the special * operator for string-enums in branding
- This is a good example of being overly clever in C++
- the whole API with an enum requesting a specific string is a bit weird,
  although it makes sense from the 'might need more strings specified'
  point of view.
5 years ago
Adriaan de Groot 7d8e54ba47 Merge branch 'qml-globalstorage'
- Make GlobalStorage generally available to QML modules (as Global
  from io.calamares.core)
5 years ago
Adriaan de Groot 0e71957b74 [libcalamaresui] Apply coding style 5 years ago
Adriaan de Groot 8af17fafe1 [libcalamaresui] Register Global Storage (as 'Global') for QML 5 years ago
Adriaan de Groot dc523525c2 [libcalamaresui] Register the right type for ViewManager (C&P typo) 5 years ago
Philip Müller e4bdeaa943 [displaymanager] don't write AutomaticLogin lines
- sometimes if you use external OEM modules you might have those lines already present
- by skipping them you won't have double lines when rerun the module in a later step
5 years ago
Adriaan de Groot f4f720bc8f i18n: update English sources 5 years ago
Adriaan de Groot 156a473565 [welcomeq] Hook the translations up to the language combobox 5 years ago
Adriaan de Groot 4786a91eb8 [welcome] Order get/setters consistently
- code styling OCD, all the other ones are get, then set
- getters can be in the header, they're boring
5 years ago
Adriaan de Groot 22e64d8c18 [branding] Remove duplicate keys for images (thanks Bill) 5 years ago
Adriaan de Groot 8eace7ba5c Merge branch 'wallpaper'
Merge in the documentation from Bill Auger and then implement
what it documents (this had been missing; productWallpaper was
an orphan setting).

FIXES #1380
5 years ago
Adriaan de Groot 3d6e5c5df7 [calamares] Implement productWallpaper setting
- If we have a wallpaper, bung in an extra QWidget between the main
  window and the panels (sidebar, nav and main) where we set a
  stylesheet that displays the chosen image.
5 years ago
Adriaan de Groot 1d44c88e0a [libcalamaresui] Refactor loading of stylesheet
- prep-work for adding special-case styling for productWallpaper
5 years ago
Adriaan de Groot ddde817abf [libcalamaresui] Apply coding style 5 years ago
Adriaan de Groot fabb351b77 [libcalamaresui] Give ViewManager widgets names for styling 5 years ago
bill-auger e2bbaf2cee [branding] add documentation for WIP 'productWallpaper' branding 5 years ago
Calamares CI d46122dab9 i18n: [dummypythonqt] Automatic merge of Transifex translations 5 years ago
Adriaan de Groot cb99f446b3 Merge branch 'issue-1192'
FIXES #1192

(Calls it the *boot* flag when using KPMCore4, which also shows the
flag *boot* in the flags list of the partitioning dialogs)
5 years ago
Adriaan de Groot 479b467bb6 [partition] Substitute in the right flag name
- This uses "esp" in KPMCore 3 and "boot" in KPMCore 4
5 years ago
Adriaan de Groot 79e8c447b9 [libcalamares] Test some specific KPM partition flags 5 years ago
Adriaan de Groot cc1a1079e4
Merge pull request #1383 from demmm/master
[welcomeq] add language bar
5 years ago
Adriaan de Groot 23af4fcdac
Merge pull request #1387 from gportay/set-efi-system-partition-name
[partition] Allow a configurable EFI System Partition name
5 years ago
Adriaan de Groot 4c3c8c6239
Merge pull request #1389 from gportay/update-debug-trace
[partition] Update debug output
5 years ago
Adriaan de Groot 3f4e167aca [libcalamares] Expand kpm test with API 3/4 differences
- fix build
- KPMCore 3 distinguishes esp and boot
- KPMCore 4 does not
5 years ago
Adriaan de Groot 43c5e1fc96 [libcalamares] Fix build of tests
- Typed in on FreeBSD, where it doesn't get built
5 years ago
Adriaan de Groot cca067a34d [libcalamares] Add a bogus test showing flag names 5 years ago
Adriaan de Groot 1f6752307d [welcome] Massage layout when banner is used
- simplify handling of image loading (if the image doesn't exist,
  Branding will bail out on startup)
- reduce space above the banner if it is in use
5 years ago
Adriaan de Groot c3941b6e65 [welcome] Shuffle code
- things that can be done in the designer file should be there,
  not weirdly repeated in code elsewhere
- drop the insertion of an extra spacer (why not include it in the
  designer file?)
- shuffle all the connect() calls down to the end of the constructor
5 years ago
Adriaan de Groot be86561913 [branding] Example banner graphic that matches the default branding.desc
- Bogus "CalaMinix" (maybe the example branding should be consistent
   with that) banner.
 - Turn off the (example) banner in the default branding.
5 years ago
Gaël PORTAY 77a31ac3b2 [partition] Update debug output
The mount-point is known as mountPoint in the global storage.

This commit updates the trace to reflect its real name.
5 years ago
Gaël PORTAY d6c373c48d [partition] Allow a configurable EFI System Partition name
This commit adds the new configuration `efiSystemPartitionName` to the
file partition.conf.

This option sets the partition name to the EFI System Partition that is
created. If this option is unset, the partition is left unnamed.
5 years ago
Adriaan de Groot 86ffab1873 [libcalamares] Use convenience Logger::NoQuote 5 years ago
Adriaan de Groot 6de82e6857 [libcalamares] Add convenience for QDebug.noquote()
- Use << Logger::NoQuote{} to turn off quoting **and** the space
- In practice, in Calamares we use this only around other processes'
  output, where we want neither quotes nor spaces.
5 years ago
Adriaan de Groot c59af8881c [umount] Avoid SIGPIPE
- collect output from umount process, and then ignore it
5 years ago
Adriaan de Groot e51fbdc851 [locale] Apply coding style 5 years ago
Adriaan de Groot d348977d07 [libcalamares] Fix tests
- the test checks that the default locale is C or en_US .. let's just
  make it so instead of relying on the environment. This fixes tests
  on my dev-laptop, which happens to be set to en_NL (with volapuk
  date format).
5 years ago
Adriaan de Groot f8df49e40f [partition] Fix up tests
- Although we long ago replaced the getPartitions implementation, the
  test is still there, and on a machine with no /dev/sda (e.g. because
  root is on nvme) the echo-awk-shell-pipeline can give an empty string;
  this is turned into a QStringList{""} which has one element, while
  the new version has 0 elements.
- Special-case the test that empty strings should be empty lists, rather
  than 1-element lists with an empty element.
5 years ago
Adriaan de Groot a0b4b2bf5e
Merge pull request #1381 from bill-auger/patch-welcome-banner
[welcome] add optional branding banner to welcome page
5 years ago
Adriaan de Groot 1f3046dcca Merge branch 'issue-1374'
This is just updating tests, not fixing things.
5 years ago
Adriaan de Groot 69fae85fe8 [locale] Fix test-build
- needs <set> if it doesn't get pulled in implicitly
- mark tests as expected-to-fail to not block release
- SEE #1374
5 years ago
demmm 828448b2ff [welcomeq] make release notes part of welcome window
use Loader option for those notes too, commented out file shows it is possible to load from anywhere
5 years ago
demmm 249150dd1b [welcomeq] add language bar
reads data from languagesModel correctly, debug added to see index changes
code cleanup
button layout improved
install info text added, better spacing of text
about button no longer commented out, 3 reasons:
- info provided by any about is standard, will be odd if it can't be found
- about.qml is a seperate file, can be completely adjusted
- not showing it takes away the options for new QML cala users to see what is possible with Loader, thus stopping new possible contributors
5 years ago
bill-auger 7bce58f6f2 [welcome] add optional branding banner to welcome page 5 years ago
Adriaan de Groot a63a92e3d5 [locale]Fix build (clang, Debian)
- This is a follow-up to d0c205c1cc6a2ae49935c92bfd52911b9a0d43f7;
  I really don't know why static constexpr const elements that are
  not referenced by address need to be defined separately.
5 years ago
Adriaan de Groot ebb5efcd42 [locale] Mark test as expected-to-fail
- There are still 88 issues with the timezone images
5 years ago
Adriaan de Groot e804ad2488 [libcalamaresui] Rename enlarge()
- rename enlarge to ensureSize() and change the meaning from
  "make this much bigger" to "make sure this is displayed",
  which is easier on the caller to calculate.
5 years ago
Adriaan de Groot 2a4c74c099 [calamares] Layout-wranging
- the navigation bar was set "too tall", leave it at the natural
  layout height for this widget
- margins needed some massaging to give contents some more space
  (contents has a margin, so it doesn't need more space above
  the navigation bar)
5 years ago
Adriaan de Groot ade623f6b8 [locale] Shuffle code
- Put the building-up-the-overall-page in one spot
- Claim a little more vertical space for the TZ widget
5 years ago
Adriaan de Groot c0be53523c [locale] Give TZWidget a fixed size 5 years ago
Adriaan de Groot a4c5e18c4b [netinstall] Allow the netinstall.yaml to contain key *groups*
- This makes it easier to just copy the example, *groups*-key
  and all, into an online YAML file and serve that up.
  You get easier (local) testing.
5 years ago
Adriaan de Groot 2aca5464b7 [netinstall] Display package descriptions
- For packages with a description, show that
- Add an example in the config-file
5 years ago
Adriaan de Groot 960008b124 [netinstall] Allow rich descriptions of packages
- the *packages* list can now be package-names, or
  package-names-and-a-description.
5 years ago
Adriaan de Groot 39ed591414
Merge pull request #1378 from FLVAL/master
[locale] Timezones correction + Pin reduced
5 years ago
FLVAL 3f6e242fd9
Add files via upload
Resaved cause showing not 100% upload with latest correction
5 years ago
FLVAL 82c4e7aa54
Add files via upload
- udpated the _0.0 and _1.0 to not get overlap between Gibraltar and Cueta
- Fakaofo correction on _10.0 and _-11.0
- pin reduced size
5 years ago
Adriaan de Groot 82ba4be5e7 [locale] Test for pixel-perfect location of Gibraltar and Ceuta
- Can't get Gibraltar (and Ceuta) to be distinguished
5 years ago
Adriaan de Groot 3db901bd09 [locale] Expand tests to show overlapping locations
- This isn't something that Calamares can acutally fix,
  so the test will be disabled later. After all, if
  Brazzaville and Kinshasa are close enough that on the
  map they are the same pixel, we can't move the cities.
5 years ago
Adriaan de Groot 2633cf1ef6 [locale] Fix timezone maps for -1,0,1 timezones
- Merge branch 'master' of https://github.com/FLVAL/calamares
- Add credits to CHANGES

FIXES #1377
SEE #1374
5 years ago
Adriaan de Groot 7b4b268875 [netinstall] Hit the docs with a hammer
- Merge all the format documentation into netinstall.conf,
  where the example is given in full as an embedded
  *groups* entry.
- Get README.md to point to the example.
- Fix up headers in netinstall.yaml, pointing to the
  embedded example in netinstall.conf.
5 years ago
FLVAL e5b2faad9a
Add files via upload
Timezones updated for these countries found on pixel detection tool 

Dublin is in 0 (-1 needs editing)
Gibraltar should be 1.0 (0 needs editing)
Guernsey and Jersey are in 0 (1.0 needs editing)
Lisbon is in 0 (-1 needs editing)
Vilnius should be in 2 (1 needs editing)
5 years ago
Adriaan de Groot cd66405363 [locale] Test TZ images properly
- the test wasn't built with DEBUG_TIMEZONES, so it didn't get the
   overlap-checking code at all.
5 years ago
Adriaan de Groot d0c205c1cc [locale] Fix build (gcc, Debian) 5 years ago
Adriaan de Groot d20a621e93 [users] Apply coding style 5 years ago
Adriaan de Groot ab5d5fb772 [users] Log pwquality error message as well (better than just "-14") 5 years ago
Adriaan de Groot b890345b1f [locale] Tidy includes 5 years ago
Adriaan de Groot f7a87338b8 [locale] math headers got lost 5 years ago
Adriaan de Groot a2a10d14b6 [locale] Improve logging in tests 5 years ago
Adriaan de Groot 29fd0e0319 [locale] Expand test to check zones-overlap
- Document index and find methods,
- Check that each location is claimed by only one image (e.g. by
  one zone). This is currently false.
5 years ago
Adriaan de Groot 1d5c4f13aa [locale] Move the find-a-zone-image-for position to the image list 5 years ago
Adriaan de Groot 6173f9337a [locale] Refactor long+lat -> x,y mapping
- Move this code to a static method since it only depends on the
  expected image size (which here, is managed by the image list).
5 years ago
Adriaan de Groot 3945008956 [locale] Test the TZ image loader
- QImage needs Qt5::Gui, so this isn't a guiless-test; it can use
  the offscreen QPA, though.
- Check that the images are all the same size
- Debugging / check code removed from timezonewidget
5 years ago
Adriaan de Groot 340c462062 [locale] Refactor loading of timezone images
- Move the image-loading to a separate class
5 years ago
Adriaan de Groot 4b65600c08 [locale] Remove useless localeglobal
- Although ::init() was called, none of the actual functionality
   from localeglobal was still in use.
5 years ago
Adriaan de Groot 36d9e7d8f4 [locale] Extend tests with tz-image-validation
- The idea is to check all the TZ images for consistency, like
  TimeZoneWidget::setCurrentLocation() does when DEBUG_TIMEZONES is
  on; a zone-pixel should be set in only **one** image.

The test so far is just a stub.
5 years ago