5950 Commits (42417ed3b2c633c4f1dc514c4e5c77f8f74c07ef)

Author SHA1 Message Date
Adriaan de Groot cdb99ad887 CMake: shuffle WITH_* settings for calamares executable
- reminder to make all the ABI-relevant WITH_* settings available as #defines
- move the compilation of KDSAG to the calamares executable, not the library
- when DBus activation is on, drop all of kdsingleapplicationguard
6 years ago
Adriaan de Groot 13ded5f005 [libcalamares] #include-styling 6 years ago
Adriaan de Groot c90ebb5d82 [libcalamares] Apply Qt defines consistently
- Move some definitions that influence Qt compilation
  up to the top-level.
6 years ago
Adriaan de Groot c3c4b79147 Merge branch 'fix-slideshow' 6 years ago
Adriaan de Groot 6248c6d032 [branding] Document slideshow options 6 years ago
Adriaan de Groot 20c1ae246d [libcalamaresui] Center slideshow pictures 6 years ago
Adriaan de Groot 5aafa0f4c4 [libcalamaresui] Expose slideshow image names for API -1
- Branding shows the slide pathnames or the slide QML, depending
  on selected API (which depends on the config-file).
- Use one slideshow or the other.
6 years ago
Adriaan de Groot df74604755 [libcalamaresui] Implement non-QML Slideshow 6 years ago
Adriaan de Groot e7f4479df1 [libcalamaresui] Move all the slideshow code out of ExecutionViewStep
- The SlideshowQML now handles all the bits that were in
  the viewstep.
- The viewstep uses the abstract Slideshow API.
6 years ago
Adriaan de Groot 3f9878afc1 [welcomeq] Use the model properties to show recommendations and requirements 6 years ago
Adriaan de Groot 1a1fde1885 [welcome] [welcomeq] Chase API change for requirements progress 6 years ago
Adriaan de Groot 5c8a99c77b [libcalamares] After running the checker, re-compute satisfaction
- If nothing is added to the model (e.g. it is empty) then the satisfaction
  still needs to be re-calculated (to true).
6 years ago
Adriaan de Groot f856c07b04 [libcalamares] Move progress signal to RequirementsModel
- It is the requirements model (checking) that reports progress, and now
  the model is accessible (ask for it with requirementsModel(), make the
  messages come from there.
6 years ago
Adriaan de Groot 90f8e748ef [welcome] Improve debugging of general requirements
- distinguish 'this has not been checked' from 'checked and failed'
6 years ago
Adriaan de Groot 9e0aa76375 [welcome] Order member pointers
- Create config before the page
- .. and in doing so, create the page in the initializer list instead
6 years ago
Adriaan de Groot e930c74e85 [welcomeq] Coding style
- Apply coding style tool
- Remove commented-out cruft
- Drop TODO's that don't apply anymore
6 years ago
Adriaan de Groot ed71b2fbf5 [tracking] Only accept valid policy URLs 6 years ago
Adriaan de Groot 044f5ce2b5 [tracking] Use the config object
- right now only holds the global policy URL (as a string)
6 years ago
Adriaan de Groot a69d47c115 [tracking] Add a Config object 6 years ago
Adriaan de Groot 8ed8b5dfa3 [tracking] Reduce compiler warnings
- Newly added enum value NoTracking needs explicit handling
  in some switch()es, although it will never be passed in.
6 years ago
Adriaan de Groot fd2853b2cf [tracking] Switch setTrackingLevel() to use enum 6 years ago
Adriaan de Groot 6d744374db [tracking] Use enum-conveniences 6 years ago
Adriaan de Groot c0fa212fa9 [welcome] Be slightly more verbose in reporting missed req's 6 years ago
Adriaan de Groot 09b73dce06 [libcalamares] Implement the HasDetails role 6 years ago
Adriaan de Groot 7d00f7e0dc [welcome] Explain in the debug log what failed 6 years ago
Adriaan de Groot fabe5ec439 [welcome] Config should not have its own RequirementsModel
- Use the one from ModuleManager
6 years ago
Adriaan de Groot 153757933a [libcalamares] Stop emitting signals with RequirementsList
- The architecture of letting someone build up a list of requirements
  from data emitted by the ModuleManager is broken: if it gets loaded
  later, it will miss data; passing around complicated objects is
  no fun anyway. Get rid of it, on the way to "ModuleManager has
  its own model of requirements".
6 years ago
Adriaan de Groot 9b0ea3f63d [libcalamares] Remove runaround through free function
- Call into a method directly to do the work of adding
  results from a single module.
6 years ago
Adriaan de Groot b7c60cec66 [libcalamares] Re-vamp RequirementsChecker
- Give the ModuleManager a RequirementsModel -- that is the source
  of truth about the module-requirements of the modules managed
  by that particular ModuleManager.
- Let the RequirementsChecker operate on a given RequirementsModel.
6 years ago
Adriaan de Groot 039065ee4a [libcalamares] Minor debugging support in RequirementsModel 6 years ago
Adriaan de Groot 8306de731a [welcome] Setting requirements from own reqs is totally wrong
- The requirements are collected by ModuleManager, checked
  by an internal RequirementsChecker and changes to the
  requirements state are all signalled from ModuleManager.

By connecting the requirements in the welcome modules' Config
only to their own configs -- and immediately checking them,
which is bad on its own -- we end up with a disconnect between
what the ModuleManager says about requirements, and what
the welcome modules report on.
6 years ago
Adriaan de Groot d87d714b8d [libcalamares] Make the requirements model more adaptable
- Either replace the list of results, or add to them
- Lock model while adding rows
6 years ago
Adriaan de Groot 0f5db0ba5e [libcalamares] Remove direct access to model internals
- This was just for the ResultsListWidget, which can also use
  normal role-based model access.
6 years ago
Adriaan de Groot 616fbb08f3 [libcalamares] Improve docs of RequirementsModel 6 years ago
demmm 32ae0a7bf6 set a bogus username in Map.qml 6 years ago
Adriaan de Groot df1f9f1b56 [libcalamaresui] Prep-work for image-slideshow
Doesn't compile (but I need to get it off this machine)

- Prepare to implement a picture-based slideshow alongside QML
- Split QML loading into the slideshow component

This might be good prep-work for moving QML loading out of the QMLViewStep as well.
6 years ago
demmm 34e7b06cc9 [localeq] move to QtLocation map based module
fully implemented:
* loading of a live map, ESRI based, zooming & dragging possible
* IP address is translated to map coordinates
* loading of the map centers to the obtained coordinates, with a marker set
* coordinates are translated to a timezone, label visible at bottom of the map
* mouse movement will show changing coordinates
* clicking on new location will center map there, marker moved too, timezone label adjusted
* hasInternet switch set to either load Map.qml or Offline.qml

not done:
* get hasInternet status
* fill the fine-tune 181n.qml with proper locale & language data
* connect the obtained timezone to globalstorage

comments are left in the various files for what needs attention/changes
6 years ago
Adriaan de Groot 36a1d60c0e Merge branch 'rawfs-compat'
Improve testing framework while adding tests to rawfs to double-
check that the conversion (for Python 3.3 compatibility) of
capture_output is correct.
6 years ago
Adriaan de Groot 1ae38c8ebc CMake: add tests when there are test-configs
- If a module has tests/#.global or tests/#.job, these are used
  as arguments to a test-run of loadmodule (which reads them
  and runs the module with that configuration).
- This makes the old python-loading test and test-runner entirely
  obsolete, so remove them too.
6 years ago
Adriaan de Groot 91f88cebf0 [calamares] Move testing application out of intermediate dir
- src/modules doesn't seem like a really good place for stray sources
  for a testing application. Move it.
6 years ago
Adriaan de Groot 74fb88f9ac [rawfs] Minor testing support
- set *bogus* to do no harm
- add some test configurations
6 years ago
Adriaan de Groot dc87c11ac4 [rawfs] Slightly more debugging 6 years ago
Adriaan de Groot 7ff97bbb94
Merge pull request #1398 from demmm/master
start of adding requirements to welcomeq
6 years ago
Adriaan de Groot 55fb7565d4
Merge pull request #1396 from FLVAL/master
Add files via upload
6 years ago
Adriaan de Groot 175082e3ad [rawfs] Make compatible with Python 3.3 6 years ago
Adriaan de Groot 4e3f9fb6b3 Merge branch 'simplify-unique'
- Use DBus service / activation to ensure uniqueness of Calamares
  instances, and **don't** require debug-instances to be unique.
6 years ago
Adriaan de Groot b7214b8ede [calamares] Switch over to DBus unique activation
- By default, try to use DBus service to keep Calamares unique
- The older implementation via KDSingleApplicationGuard is still
  available, just not used by default.
6 years ago
Adriaan de Groot 5af2a87709 [calamares] Remove redundant KF5/ in includes
- We link to these frameworks, which gives us a KF5 include path already
6 years ago
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.
6 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
6 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
6 years ago
Adriaan de Groot bb2b5fd982 [libcalamaresui] No reason for bail() to be a method 6 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.
6 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"
6 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.
6 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.
6 years ago
Adriaan de Groot 5dc358093e [welcome] Apply coding style 6 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.
6 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.
6 years ago
Adriaan de Groot a7a6c937ea [libcalamaresui] Add needed includes
- Return type QPixmap means we should definitely #include it
6 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.
6 years ago
Adriaan de Groot e65a0ee617 [welcome] Update welcome example
- donate **does** have a corresponding branding setting
- show that "false" is a valid setting
6 years ago
Adriaan de Groot cd44f548f5 [libcalamaresui] Add donateUrl to the branding settings
SEE #1384
6 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ë
6 years ago
Adriaan de Groot 7c633f1253
Merge pull request #1394 from gportay/set-efi-bootnext
[bootloader] Set the EFI Boot Next
6 years ago
Calamares CI b66867f0ff i18n: [dummypythonqt] Automatic merge of Transifex translations 6 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.
6 years ago
Adriaan de Groot 7d1800a0d7 [welcome] Apply coding style 6 years ago
Adriaan de Groot 70054e5db4 [welcome] Chase Branding API change 6 years ago
Adriaan de Groot 0046c3f161 [tracking] Chase Branding API change
- While here, apply coding style
6 years ago
Adriaan de Groot c0a3614f09 [partition] Chase Branding API change 6 years ago
Adriaan de Groot da82adeeee [finished] Chase Branding API change
- while here, also apply coding style
6 years ago
Adriaan de Groot dc1a4fab8e [libcalamaresui] Chase Branding API change 6 years ago
Adriaan de Groot 794939b6a8 [calamares] Chase Branding API change 6 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.
6 years ago
Adriaan de Groot 7d8e54ba47 Merge branch 'qml-globalstorage'
- Make GlobalStorage generally available to QML modules (as Global
  from io.calamares.core)
6 years ago
Adriaan de Groot 0e71957b74 [libcalamaresui] Apply coding style 6 years ago
Adriaan de Groot 8af17fafe1 [libcalamaresui] Register Global Storage (as 'Global') for QML 6 years ago
Adriaan de Groot dc523525c2 [libcalamaresui] Register the right type for ViewManager (C&P typo) 6 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
6 years ago
Adriaan de Groot f4f720bc8f i18n: update English sources 6 years ago
Adriaan de Groot 156a473565 [welcomeq] Hook the translations up to the language combobox 6 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
6 years ago
Adriaan de Groot 22e64d8c18 [branding] Remove duplicate keys for images (thanks Bill) 6 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
6 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.
6 years ago
Adriaan de Groot 1d44c88e0a [libcalamaresui] Refactor loading of stylesheet
- prep-work for adding special-case styling for productWallpaper
6 years ago
Adriaan de Groot ddde817abf [libcalamaresui] Apply coding style 6 years ago
Adriaan de Groot fabb351b77 [libcalamaresui] Give ViewManager widgets names for styling 6 years ago
bill-auger e2bbaf2cee [branding] add documentation for WIP 'productWallpaper' branding 6 years ago
Calamares CI d46122dab9 i18n: [dummypythonqt] Automatic merge of Transifex translations 6 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)
6 years ago
Adriaan de Groot 479b467bb6 [partition] Substitute in the right flag name
- This uses "esp" in KPMCore 3 and "boot" in KPMCore 4
6 years ago
Adriaan de Groot 79e8c447b9 [libcalamares] Test some specific KPM partition flags 6 years ago
Adriaan de Groot cc1a1079e4
Merge pull request #1383 from demmm/master
[welcomeq] add language bar
6 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
6 years ago
Adriaan de Groot 4c3c8c6239
Merge pull request #1389 from gportay/update-debug-trace
[partition] Update debug output
6 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
6 years ago
Adriaan de Groot 43c5e1fc96 [libcalamares] Fix build of tests
- Typed in on FreeBSD, where it doesn't get built
6 years ago
Adriaan de Groot cca067a34d [libcalamares] Add a bogus test showing flag names 6 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
6 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
6 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.
6 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.
6 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.
6 years ago
Adriaan de Groot 86ffab1873 [libcalamares] Use convenience Logger::NoQuote 6 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.
6 years ago
Adriaan de Groot c59af8881c [umount] Avoid SIGPIPE
- collect output from umount process, and then ignore it
6 years ago
Adriaan de Groot e51fbdc851 [locale] Apply coding style 6 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).
6 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.
6 years ago
Adriaan de Groot a0b4b2bf5e
Merge pull request #1381 from bill-auger/patch-welcome-banner
[welcome] add optional branding banner to welcome page
6 years ago
Adriaan de Groot 1f3046dcca Merge branch 'issue-1374'
This is just updating tests, not fixing things.
6 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
6 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
6 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
6 years ago
bill-auger 7bce58f6f2 [welcome] add optional branding banner to welcome page 6 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.
6 years ago
Adriaan de Groot ebb5efcd42 [locale] Mark test as expected-to-fail
- There are still 88 issues with the timezone images
6 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.
6 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)
6 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
6 years ago
Adriaan de Groot c0be53523c [locale] Give TZWidget a fixed size 6 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.
6 years ago
Adriaan de Groot 2aca5464b7 [netinstall] Display package descriptions
- For packages with a description, show that
- Add an example in the config-file
6 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.
6 years ago
Adriaan de Groot 39ed591414
Merge pull request #1378 from FLVAL/master
[locale] Timezones correction + Pin reduced
6 years ago
FLVAL 3f6e242fd9
Add files via upload
Resaved cause showing not 100% upload with latest correction
6 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
6 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
6 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.
6 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
6 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.
6 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)
6 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.
6 years ago
Adriaan de Groot d0c205c1cc [locale] Fix build (gcc, Debian) 6 years ago
Adriaan de Groot d20a621e93 [users] Apply coding style 6 years ago
Adriaan de Groot ab5d5fb772 [users] Log pwquality error message as well (better than just "-14") 6 years ago
Adriaan de Groot b890345b1f [locale] Tidy includes 6 years ago
Adriaan de Groot f7a87338b8 [locale] math headers got lost 6 years ago
Adriaan de Groot a2a10d14b6 [locale] Improve logging in tests 6 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.
6 years ago
Adriaan de Groot 1d5c4f13aa [locale] Move the find-a-zone-image-for position to the image list 6 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).
6 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
6 years ago
Adriaan de Groot 340c462062 [locale] Refactor loading of timezone images
- Move the image-loading to a separate class
6 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.
6 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.
6 years ago
Adriaan de Groot e84db033b0 [locale] Debug-message typo 6 years ago
Adriaan de Groot f9d888ec24 [locale] Warnings--
- remove unused variables, tighten up code some
- while here, apply coding style
6 years ago
Adriaan de Groot 022e62b829 [licale] Fix build with DEBUG_TIMEZONES
- QLatin1String isn't a constexpr; the whole ZONE is a bit derpy,
  so let's just #define it.
6 years ago
Adriaan de Groot 05990fb287 CMake: handle DEBUG_* consistently
- Make all four DEBUG_ flags actual CMake options, rather than
  stuffing some of them in the rather-peculiar _enable_debug_flags.
  Each debug option turns on suitable compile flags in the module(s)
  that are affected.
6 years ago
Adriaan de Groot 16a5ca2a55 [libcalamares] Format floats with trailing digits
- When writing YAML, given a float **always** write
   some decimal digits (e.g. "1.0" rather than "1")
   so that the type of the written-out thing stays
   float.
 - Avoids test failure with the sample `welcome.conf`
   file which reads 1.0 and would write out 1, which then
   led to type differences.
6 years ago
Adriaan de Groot 3b354b8b20 [libcalamares] Handle qlonglong when writing YAML
- Handle qlonglong explicitly
- Add a fallbackfor things that convert to qulonglong, to
  avoid these remaining integer types from hitting the
  very end of the if-chain, and being written out as
  the **string** "<typename>"
6 years ago
Adriaan de Groot c6463a30ea [libcalamares] Be far more detailed in comparing maps
- just comparing a==b (both QVariantMap) gives a
  not-so-informative message, so go through the keys looking
  for differences.
6 years ago
Calamares CI 748973a17c i18n: [dummypythonqt] Automatic merge of Transifex translations 6 years ago
Adriaan de Groot 8a6925c5be i18n: update English texts 6 years ago
Adriaan de Groot 8b41a71668 [partition] Apply coding style to core/ 6 years ago
Adriaan de Groot b08cb52d0a [partition] Mark /boot or / as bootable
FIXES #1175
6 years ago
Adriaan de Groot 0c6dd4e788 [partition] No "jobs/" needed in jobs includes 6 years ago
Adriaan de Groot f85732ccb0 [partition] Coding style on Jobs 6 years ago
Adriaan de Groot 1e3ff51bfe [finished] Don't translate placeholder text 6 years ago
Adriaan de Groot 087c88753c [netinstall] Expand the table of common-strings
When one of these common names for the netinstall page is used,
it gets pulled out of the standard translations, so that it
doesn't have to be translated in the per-distro config file.
These labels are common enough that they make sense for
everyone to have lying around.

FIXES #1367

(I say "fixed" but of course it's going to depend on the translation
workflow to make these available)
6 years ago
Adriaan de Groot 11aa6da1e9 Merge branch 'issue-1335'
FIXES #1335
6 years ago
Adriaan de Groot 129bfa3a2e [unpackfs] Counting works better when you update the variable 6 years ago
Adriaan de Groot bea41465e2 [unpackfs] Update progress around every 1% 6 years ago
Adriaan de Groot facf5af589 [unpackfs] Don't jump back in progress while counting 6 years ago
Adriaan de Groot af0d04d523 [unpackfs] Report progress more carefully
- Mark entries as totally-done
- Show a message when counting an entry
6 years ago
Adriaan de Groot f33c737e99 [libcalamares] Pretty debug formatting
- toggle nospace() and noquote() part-way through the line,
  so that they only affect the output obtained from the external
  command.
6 years ago
Adriaan de Groot 4abb87ccca [libcalamares] Improve reporting on process failures
- In production, cDebug() might not show up, so the log will not
  contain the lines saying what program is being run;
- Errors should at least mention the program name, but "env" or
  "chroot" is not useful, so pull that from *args*, which is
  the command we actually want to run.
6 years ago
Adriaan de Groot 752399ca6b [libcalamares] Error out on empty command
- an empty command isn't going to work (although it might successfully
  run chroot or env in the target system, that's not useful)
- while here, move variable declarations closer to their use.
6 years ago
Adriaan de Groot 88c75fb5dc [libcalamares] Simplify program-arguments creation 6 years ago
Adriaan de Groot 21f060c3fd [unpackfs] Check for squashfs tools earlier 6 years ago
Adriaan de Groot 391bd1098f [unpackfs] An entry knows where it is mounted
- `imgmountdir` no longer defined in `UnpackOperation.run()`
6 years ago
Adriaan de Groot 065a506470 [netinstall] Resize name column
- Once group data is loaded and pre-expanded groups are open,
  adjust the column width so that all the names are visible.
6 years ago
Adriaan de Groot a97f4771d6 [calamares] Fix test-loader for modules after ViewManager API
- The ViewManager needs to be told when loading is done now (because of
  the quit-at-end settings)

See 7393198f7b
6 years ago
Adriaan de Groot 9db7dd3f3e [netinstall] Add a group with long names 6 years ago
Adriaan de Groot 9b14bf6826 [unpackfs] Rework progress reporting
- Slice overall progress into chunks, with each chunk of equal size
  (as long as we have no overall count information) and place
  the progress of the current chunk into its own slice.
6 years ago
Adriaan de Groot 7e4cb28c1c [unpackfs] Refactor mounting for an entry
- The entry knows where it should be mounted, and can remember that
- mount_entry() didn't use self, so made no sense as a method
  of the Operation class
6 years ago
Adriaan de Groot 49a584377e [unpackfs] Refactor counting an entry
- This does not have to live in the Operation
- Uses only the local imgmountdir (where the entry is mounted)
6 years ago
demmm e63160cbe9 [localeq] Repeater with zonesModel crashes cala
probably due to dynamically loading items
regionModel now lists, zonesModel only lists one delegate, but
working on QML modules can now continue without crashing cala
6 years ago
Adriaan de Groot ede561789a Merge branch 'qml-keyboard'
This doesn't actually **work** though, the QML uses older Calamares-internal
APIs and uses a ResponsiveBase that we don't have. Merge it mostly for
the Config and model changes.

FIXES #1355
6 years ago
Adriaan de Groot af4220331e [libcalamaresui] Move lambda to a "real" slot. 6 years ago
Adriaan de Groot 7393198f7b [libcalamaresui] Tell the manager explicitly when loading is done
- Add some extra checks for validity of m_currentStep (an index)
- Start off with explicitly invalid index, and keep it so until
  loading is complete; this prevents the situation where quit-at-end
  gets triggered after loading the very first module.
6 years ago
Adriaan de Groot c2fac3a717 [calamares] Minor clean-ups 6 years ago
Adriaan de Groot 59ef307af2 Merge panel-layout code: choose where to place sidebar + nav 6 years ago
Adriaan de Groot 6c418402e3 [localeq] Hit QML file with a hammer
- io.calamares.modules doesn't exist
- ResponsiveBase doesn't exist

The module is now non-functional, but at least it loads and renders
a list of regions and zones.
6 years ago
Adriaan de Groot 54b8ad5475 [localeq] Fix loading default QML
- need our own copy of the QRC, that includes the QML
6 years ago
Adriaan de Groot c602f2493a [keyboardq] Make QML available
- name default / example QML conventionally
 - copy QRC from keyboard -- the QML needs to be included in the QRC --
   since we don't want to have the QML in the keyboard module.
6 years ago
Adriaan de Groot 7b6b53ab8c [calamares] Re-do building the main layout
- follow branding settings, taking the panel-sides into account
- drop fixed width and height for QML parts
- give panels a minimum appropriate-dimension if they don't have one

This allows, for instance, putting both Widget sidebar and QML navigation
on the left-hand side of the window.
6 years ago
Adriaan de Groot e15e7d1dc5 [libcalamaresui] Load panel-side settings
- Introduce an enum for panel-side
- Expose this to QML -- I can imagine that QML panels need to know
  which side of the Calamares window they're on.
- Refactor loading the setting into a method that handles both
  flavor and side
6 years ago
Adriaan de Groot b48e0ebb37 [branding] Introduce placement options for nav, sidebar
- There's no real reason to force the sidebar left and nav at the bottom,
  certainly with QML supporting more layouts and being more flexible,
  so document a mechanism to place the sidebar and navigation along
  "edges" of the Calamares window.
6 years ago
Camilo Higuita 835850c02a [keyboardq] apply the style script 6 years ago
Camilo Higuita 1a46e08cc2 [keyboard] changes to the keyboardmodel to work with qml 6 years ago
Camilo Higuita 0872de7910 [keyboard] Add Config object, split out a keyboardq
- Introduce new QML-ified module for the keyboard
- To share code, move *keyboard* module to a Config-object
6 years ago
Adriaan de Groot 733801980c [libcalamaresui] Fix up icon name for back-button 6 years ago
Adriaan de Groot 10dd32edd2 [libcalamaresui] Fix isAtVeryEnd()
- With an empty list, the question is meaningless
- .. and we called this with an empty list while constructing the
  ViewManager; if quit-at-end is true, then this would terminate
  Calamares immediately because the list was at the end.
6 years ago
Adriaan de Groot 081f5ec4d9 [libcalamaresui] Remove unused static methods
- The UI bits that needed these button-setup functions have
  moved to CalamaresWindow (with copies of those functions)
6 years ago
Adriaan de Groot a3c966cc6c Merge branch 'issue-1361'
FIXES #1361
6 years ago
Adriaan de Groot c7733f51d0
Merge pull request #1365 from demmm/master
[welcomeq] buttons connecting
6 years ago
Adriaan de Groot fafc508d63 [welcome] Update the widget's notion of the locale
- when the locale changes, tell the widget so that the drop-down
  displays the right language.

FIXES #1361
6 years ago
Adriaan de Groot 5956c6678e [welcome] Don't const& POD
- simplify parameter types in some set-methods
- while here, shuffle methods to bring things together
6 years ago
Adriaan de Groot e756cc8720 [libcalamares] Tidy RequirementsModel some more
- put signals in conventional place
- remove const int& parameter, that can just be int
- drop oddly-guarded code (that leaks memory); if the index (row)
  being passed in, it's probably best to just crash
- remove unused signal warningMessageChanged
6 years ago
Adriaan de Groot 4e7020d030 [libcalamares] Polish model
- make signals consistent in carrying a parameter
- explain why there's no Q_ENUM
6 years ago
Adriaan de Groot d2f5185d49 [welcome] Remove unused m_configurationMap
- the configuration is split into specific properties, not
  stored generically.
6 years ago
Adriaan de Groot 39afbdb570 [welcome] Shuffle signals to conventional location
- signals after slots, before private
- while here give the *MessageChanged signals a parameter (the changed
  message)
6 years ago
Adriaan de Groot 9d97972a34 [welcome] Apply coding style 6 years ago
Adriaan de Groot ca7733c8e4 [welcome] Drop RequirementsModel
- Use the one from libcalamares
- Massage warning message into Config after it was removed from the model
6 years ago
Adriaan de Groot 3bf69c9da8 [calamares] Pacify gcc 6 years ago
Adriaan de Groot e5562a5069 [libcalamares] Move RequirementsModel to libcalamares (1/2)
- Add the model and support code to libcalamares. The model still
  has some cruft that should be in the Welcome config.
6 years ago
demmm 34292618d8 welcomeq buttons connecting
minor spelling corrections
6 years ago
Adriaan de Groot e2fee79957 [libcalamaresui] Set icon on back-button 6 years ago
Adriaan de Groot abe3f4cda0 Merge branch 'issue-1344'
FIXES #1344
6 years ago
Adriaan de Groot 510f9352e7 [calamares] Tweak QML sidebar
- some margins and extra space
 - left-align text
 - progress lozenges instead of pointy rectangles
6 years ago
Adriaan de Groot 1038de899b [calamares] Update sidebar and navigation QML
- use the right colors (from branding, not from desktop theme)
- apply branding logo
6 years ago
Adriaan de Groot ff37792dc9 [calamares] Resize QML to width of parent window 6 years ago
Adriaan de Groot 476a576dda [libcalamaresui] Ensure all button labels are accurate
- since lots of state is updated when the labels change, call that
  in the constructor so that any QML bindings get current values.
6 years ago
Adriaan de Groot c755c7ed98 [libcalamaresui] restore quit-at-very-end functionality
- This doesn't need to go indirectly through a button
6 years ago
Adriaan de Groot 91d0ba1007 [libcalamaresui] Remove *quit* button from ViewManager
- Mostly like the other buttons
- Also show/hide the button and set tooltip
6 years ago
Adriaan de Groot 0c71c7c23f [calamares] Set initial states of next, back buttons 6 years ago
Adriaan de Groot 38deb66e42 [libcalamaresui] Remove *back* button from ViewManager
- Now the back button should be done by clients as well
- Refactor in CalamaresWindow to avoid leaking local button pointers
  to surrounding code.
- Add macro UPDATE_BUTTON_PROPERTY for convenience in ViewManager
  (ugh, macro) to change a value and emit corresponding update signal.
6 years ago
Adriaan de Groot 8920be6bca [libcalamaresui] Remove *next* button from ViewManager
- add properties for the next button (enabled, label, icon...)
- update those properties as normal
- connect to the properties in the UI implementation
6 years ago
Adriaan de Groot c638343c18 [libcalamares] Give ViewManager a real quit() slot
- instead of creating a lambda, give ViewManager a real slot
- hook up the new navigation buttons to the next, back, quit slots
6 years ago
demmm 2c2bba5525 actually set About button to false... 6 years ago
demmm b3f59cee25 filling About in QML, button still disabled
using Loader, can be reused for other widgets conversion
leave onClick example with full path, commneted out
title text for About is hardcoded, discuss option to make this configurable in welcome.conf
background color hardcoded, tested to work well in dark themes too
6 years ago
Adriaan de Groot 9f66b63c00 [calamares] Indulge in template-fu to refactor
- since we've got two blocks of code copy-pasted, which both
  decide to call one or the other of two member functions based
  on a flavor value, turn that into a templated function.
- passing member functions looks a bit weird, and calling them
  is syntactically surprising, but it cuts down the code a lot.
6 years ago
Adriaan de Groot 2dcf265c40 [calamares] Give QML navigation bar a fixed height 6 years ago
Adriaan de Groot 02fc4ce806 [calamares] Load QML navigation 6 years ago
Adriaan de Groot d4f903b95c [calamares] Create navigation panel in CalamaresWindow
- this is a non-functional duplicate panel, so it looks funny
6 years ago
Adriaan de Groot 6c8aa5da63 [libcalamaresui] Remove commented-out code 6 years ago
Adriaan de Groot 57e6864902 [libcalamaresui] Add panel flavor
- rename enum to more general PanelFlavor
- introduce branding settings for navigation (e.g. for switching
  the navigation buttons off, or using QML)
6 years ago
Adriaan de Groot d4083c9bbb [libcalamaresui] Add "hidden" as alias for "none" in sidebar settings 6 years ago
Adriaan de Groot d8ecd302e1 [libcalamares] Apply coding style
- minor space issues
 - drop a blank line after moc-warnings.h to avoid if being sorted
   downwards, after the MOC file it's protecting
6 years ago
Adriaan de Groot 1765412b61 [libcalamaresui] Move RequirementsChecker to libcalamares
- the checker only collects and calls requirements; it has no
  UI component, and only manages data (and a thread to do the
  checking). Move it out of the UI library.
6 years ago
Adriaan de Groot 7655584022 [libcalamaresui] Move Module to libcalamares
- The Module class has no UI-specific code in it; it's all about
  loading and data-management. Move it out of the UI library.
6 years ago
Adriaan de Groot e04f87fe95 [libcalamaresui] Refactor moduleFromDescriptor
- this function lives in Module -- and is the only thing typing
  Module to the ViewSteps and JobTypes. Split it out into its
  own funciton. Nothing else in Module needs to befriend the
  ViewSteps, so we move the friend declaration around a bit
  as well.
- while here, apply coding style.

This is prep-work for moving module to libcalamares.
6 years ago
Adriaan de Groot 4ddd1ecceb [libcalamares] Move Requirement to libcalamares
- This isn't a UI component: a requirement can be checked and
  reported-on without a UI entirely.
6 years ago
demmm c10ef9e3bc [welcome] Improve welcomeq visuals
- set image to fill
 - keep aspect ratio
 - don't hardcode text color
 - variation in icons used
 - expand header text to check fit
6 years ago
Adriaan de Groot eda2e4e10a [calamares] Tweak looks of basic-QML-sidebar
- Use the new currentStepIndex (suggested by Camilo) to see if something
  is selected / current.
6 years ago
Adriaan de Groot fff4caf0de [libcalamaresui] Apply coding style
- while here, update copyright
6 years ago
Adriaan de Groot 3d7e5bc90d [libcalamaresui] Expose just currentIndex
- drop the current and completed roles, and expose only
  the currentIndex. QML can use the QObject property on
  the model, while QWidgets can call internally through
  the model's data() function.
- we don't need to provide role names for this, so drop that bit.
- simplify the delegate code while here.
6 years ago
Adriaan de Groot aad79f664e [libcalamaresui] Expose currentIndex also as model data 6 years ago
Adriaan de Groot b8962cec2d [libcalamaresui] Expose currentStepIndex 6 years ago
Adriaan de Groot b271ed19b7 [partition] Fix typo in message 6 years ago
Adriaan de Groot 83f5f9e1a7 [libcalamares] Introduce generic delete-later class
Don't bother with QScopeGuard just right now, since I can't
find a use-case in the Calamares codebase.

FIXES #1358
6 years ago
Adriaan de Groot 7c56a50632 [netinstall] Expand documentation of groups format 6 years ago
Calamares CI 2b6eb8473e i18n: [dummypythonqt] Automatic merge of Transifex translations 6 years ago
Adriaan de Groot 33a4b08ac0 Merge branch 'issue-1343'
- Also add documentation to CHANGES

FIXES #1343
FIXES #1319
6 years ago
Adriaan de Groot 433ed8384f [netinstall] Inherit criticalness in groups
- Groups inherit slightly differently: if a subgroup **explicitly**
  configures criticalness, use that. It would be weird, but possibly,
  to have a non-critical subgroup of a critical group.
6 years ago
Adriaan de Groot 83a89c144c [netinstall] Packages should inherit critical-ness from parent 6 years ago
Adriaan de Groot 14a3e10cc2 [netinstall] Simplify getItemPackages
- Use convenience predicate isPackage()
- Name child->item(i) for brevity
6 years ago
Adriaan de Groot 464561b420 [netinstall] Update subgroup-checkedness based on children
- An unselected group with (some) selected subgroups was not
  displayed as (semi)checked -- it was unchecked, because
  its checked-ness was not updated based on the children.
6 years ago
Adriaan de Groot 63b940a623 [netinstall] Implement immutable groups
- An immutable group doesn't show a checkbox at all
6 years ago
Adriaan de Groot 7a42a4d71f [netinstall] Add example section that is immutable
- The section can't be changed, but is selected (it doesn't
  make sense otherwise)
6 years ago
Adriaan de Groot 85551f0fdb [netinstall] Various refactoring
- move ready-indication to Config
- don't check pointers that can't be null
- hand the whole Config to the page
6 years ago
Adriaan de Groot 4cdfe1276a [netinstall] Rip loading out of the UI page
- Create a config object in the ViewStep
- Model lives in the config object and loads there
- Give model to the UI page for display
6 years ago
Adriaan de Groot 9a35427113 [netinstall] Remove unused m_jobs
- Netinstall doesn't make any jobs itself, so drop the member variable
- Use type alias, and simplify jobs()
6 years ago
Adriaan de Groot 1a74a713b6 [netinstall] Make status an enum
- Since we might change translations after loading, display
  the message based on the status enum, rather than
  setting it once at load-time.
6 years ago
Adriaan de Groot 7a4f6f7bfd
Merge pull request #1357 from demmm/master
[partition] Increase Manual Partition instructions
6 years ago
Adriaan de Groot 463435db68 [localeq] De-cruft CMakeLists
- Remove commented-out code
- Fix layout
- Update to modern CMake approach
6 years ago
Adriaan de Groot ba8811c628 [keyboard] Apply coding style
- Include order
- ci/calamaresstyle
- modern alias for job-list
6 years ago
Adriaan de Groot ac08598176 Branding: expand the stylesheet example
- Mention that the sidebar menu can't be styled
- Point to more documentation about styling
- Give an example of styling buttons with an icon
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 215bc46469 [welcome] Update copyright years in about-popup 6 years ago
Adriaan de Groot de5c97af11 Merge branch 'milohr-qml-bits'
FIXES #1352
6 years ago
Adriaan de Groot 2a93c7e236 [welcome] Chase changed API in master 6 years ago
Adriaan de Groot ce244d8514 [welcome] Style in viewstep (unrelated to merge) 6 years ago
Adriaan de Groot 875f79b49f [libcalamares] Drop unused parameter
- the `parent` when installing a translator was not used, so drop it
  from the API. Chase some uses of the API, but leave welcome-modules
   broken: there's a merge of those coming.
6 years ago
Adriaan de Groot 81912f9e7d [welcome] Style in Config 6 years ago
Adriaan de Groot 1ede7003c0 [welcome] Apply coding style 6 years ago
Adriaan de Groot ff74113675 Merge branch 'qml-bits' of https://github.com/milohr/calamares into milohr-qml-bits 6 years ago
Adriaan de Groot e3b4689cab [libcalamares] Warnings--
- It's the perennial struggle between Qt index types and STL ones
6 years ago
Adriaan de Groot 998790d69c [libcalamares] Warnings-- 6 years ago
Adriaan de Groot 4aeb774812 [libcalamares] POD don't bother with const& 6 years ago
Adriaan de Groot 177d6fe861 [libcalamares] Apply coding style 6 years ago
Adriaan de Groot 08b5012946 [locale] Apply coding style to Config
- ci/calamaresstyle
- sort includes by kind (local module, Calamares, Qt, STL)
- add copyright line
6 years ago
Adriaan de Groot 412a8043a9 Merge branch 'qml-locale' of https://github.com/milohr/calamares into milohr-qml-locale 6 years ago
Adriaan de Groot 26dd93b67c [partition] Simplify code
- isEfi only used meaningfully once
- if (isEfi) followed by if (!isEfi) can be simpler
- create bios-but-not-GPT strings in one go
- mark TODO that this should warn only if needed
- use weird * notation for branding-strings
6 years ago
Adriaan de Groot b57e198c29 [partition] Apply coding style
- This isn't particularly related to the change at hand, though.
6 years ago
demmm b6228d137c Adding popup warning/instructions for GPT with BIOS
see https://github.com/calamares/calamares/issues/1339#issuecomment-600862507
this is a very generic warning, used downstream since 2016
stopped virtual all BIOS GPT failures and questions
6 years ago
Camilo Higuita b6b9f888fc correct typo 6 years ago
Camilo Higuita e02077d58e some models need to be updated to work with locale qml view step 6 years ago
Camilo Higuita 8ff1996e12 add the localq module and config to locale 6 years ago
Adriaan de Groot 1de2a4ff14 [libcalamares] Introduce quit-at-end
- In some cases, it makes sense to close Calamares automatically
  when it is done. Set *quit-at-end* to do so -- although this
  probably also means you should remove the *finished* page.
6 years ago
Camilo Higuita 1c0e69e1c2 wraning message is not from conf but form the requirements model 6 years ago
Camilo Higuita 2d09557297 update wlecome to latest 6 years ago
Adriaan de Groot 71b55995ee [dummypython] Fix up progress reporting
- It's annoying to have 100% progress reported (from the processing
  of list items) and then have another 3 seconds delay.

Unrelated to the issue-at-hand, but spotted in testing.
6 years ago
Adriaan de Groot 1d30c99d89 [libcalamaresui] The ExecutionViewStep is done when the queue is
- While the queue is running, pretend that the EVS is not at the
  last page.

FIXES #1351
6 years ago
Adriaan de Groot 184462a875 [libcalamares] Make status of JobQueue queryable
- while the queue is executing (the thread is running jobs) the
  isRunning() method returns true.
- re-work some internals to reset isRunning() before emitting
  finished() signal.
6 years ago
Adriaan de Groot 112895fddc [libcalamares] Keep jobIndex in-sync with the jobs
- Never skip updating the jobIndex, because it is used in emitProgress()
  to find which job to ask for status.
6 years ago
Adriaan de Groot 1ec7251275 [libcalamares] Make isAtVeryEnd() internal 6 years ago
Adriaan de Groot 1eec1a9fe7 [libcalamares] Fix typo in API
- "asynchronouse" is not a thing
6 years ago
Adriaan de Groot f5b4e5d5e1 [netinstall] Add data-loading to the Config object
- Mostly copied from NetInstallPage
6 years ago
Adriaan de Groot 938536c0c3 [netinstall] Allow post-creation loading of model data
- Instead of loading all in the constructor, provide a public
  setupModelData().
- This allows creating the model and setting it for UI, before
  the load completes.
6 years ago
Adriaan de Groot 5e03df723c [netinstall] Add a (stub) Config object
- Add initial definition of Config object, which will extract the model-
  setting and loading code from the page, and which is also prep-work
  for a QML version of this module.
- While here, remove superfluous code
6 years ago
Adriaan de Groot cf59e2884a [welcome] Reduce warnings from moc-generated code 6 years ago
Adriaan de Groot 1a5c916923 [netinstall] Implement `local` loading of packages
- For a static list of selectable packages (e.g. what you might otherwise
  use file:/// for with a static file on the ISO) you can now stick the
  list in the config file itself, simplifying some setups.
- Also saves faffing about with network.

SEE #1319
6 years ago
Adriaan de Groot f59cae2dbb [netinstall] Document `local` URL
- `local` is supposed to read from the config-file, rather than
  externally; this simplifies examples, makes it easier to have
  multiple netinstalls, and condenses the documentation.
6 years ago
Adriaan de Groot fa28788f78 [netinstall] Build the model from QVariantList always 6 years ago
Adriaan de Groot ebc1db6a7b [netinstall] Test loading of a whole (example) file 6 years ago
Adriaan de Groot f592a3f373 [netinstall] Expand tests to include group-checking
- Check groups
- Check whole treemodels recursively (this is not in PackageTreeItem,
  because that explicitly ignores the tree structure).
- Also a stub of checking example files (from the src dir)
6 years ago
Adriaan de Groot 025ab8b524 [netinstall] Be explicit about checkedness-to-bool conversions 6 years ago
Adriaan de Groot 0e2b3986b9 [netinstall] Use explicit accessor for the type-of-item 6 years ago
Adriaan de Groot f7191ac29e [netinstall] Compare two PackageTreeItems
- Packages and groups check different fields for equality.
- Selected-state is **not** part of equality.
- Also operator !=
6 years ago
Adriaan de Groot 52d3f4417f [netinstall] Add explicit isGroup()
- Previously you would either need to know where in the tree a
  PackageTreeItem was, or guess that an empty packageName() means that
  it's a group.
6 years ago
Adriaan de Groot bca316299e [netinstall] Add tests
- Just some simple tests for the Items
- Test creation of package group from variant
- This needs Qt5::Gui to link because QStandardItem is a GUI class,
  although we can run the tests without a GUI.
6 years ago
Adriaan de Groot dc403237f2 [netinstall] Build model from QVariantList
- As an alternative to the YAML-wranging, build the model from
  a QVariantList instead.
- Expose this as a constructor, too.
6 years ago
Adriaan de Groot 4143ad67af [netinstall] Remove superfluous code
- The constructor for PackageTreeItem now takes over the selected
  state from the parent.
6 years ago
Adriaan de Groot c7b646315a [netinstall] Add immutable to groups settings 6 years ago
Adriaan de Groot 4cb2ed9552 [netinstall] Chase removal of ItemData
- Simplify creation of PackageTreeItems by interpreting the
  YAML directly (instead of via ItemData),
- Simplify list types,
- Drop superfluous API.
6 years ago
Adriaan de Groot c66ef5a201 [netinstall] Refactor: kill ItemData
- This doesn't compile right now.
- The nested class ItemData doesn't do anything useful or
  meaningful that having model items with the right data wouldn't.
6 years ago
Adriaan de Groot 8825c9c995 [netinstall] Apply coding style 6 years ago
Adriaan de Groot 1718f7a8a8
Merge branch 'master' into partition-type 6 years ago
Adriaan de Groot 377a78a405
Merge pull request #1347 from gportay/partition-name
[partition] Name partition using filesystem label
6 years ago
Adriaan de Groot 74aaccda15
Merge pull request #1341 from gportay/filesystem-features
[partition] Add support for filesystem-specific features (KPMCore 4.2.0 required)
6 years ago
Adriaan de Groot 54356a22ba [fsresizer] Chase API change in tests
- Missed this earlier because the module is not enabled in FreeBSD.
6 years ago
Gaël PORTAY 15cce29a51 [partition] Add support for filesystem-specific features 6 years ago
Gaël PORTAY c5ebe13aeb [partition] Add support for partition type 6 years ago
Gaël PORTAY cba4d2e93b [partition] Name partition using filesystem label 6 years ago
Adriaan de Groot 3b0c0435bc [libcalamaresui] Chase API change in Yaml
- We can drop a bunch of calls to toMap() now.
6 years ago
Adriaan de Groot 1678a03cb3 [libcalamares] Tighten up types
- If we're converting a YAML map to a QVariant (Map), may as well
  express that in the types. This makes the return from, say,
  `yamlMapToVariant()` cheaper, but incurs conversion in
  `yamlToVariant()` .. previously the place for costs was
  swapped around.
- For those cases that want-and-expect a Map, or List, this makes
  the calls slightly cheaper. For the generic case, the costs move
  around internally.
6 years ago
Adriaan de Groot 2eb84e2de1 [partition] [tracking] [welcome] Missing Q_OBJECT
- These aren't strictly necessary for the code, but they
  help with translations.
6 years ago
Adriaan de Groot d65e0fb4c8 [libcalamares] Fix build with GCC
- <memory> isn't implicitly-included for std::unique_ptr
6 years ago
Adriaan de Groot 9fe679dca8 Merge commit 'afc0c78b4c01ac734b9877b11ae94597c685d804'
Pull in the instance-weight changes and type-improvements,
but not the part where special-casing of unsquash is dropped:
weights are still per-job, not per-module.
6 years ago
Calamares CI 2eff1f0e78 i18n: [dummypythonqt] Automatic merge of Transifex translations 6 years ago
Gabriel Craciunescu 47c167dc04 [bootloader] Resume from outer swap partition
- These fixes are similar to the other swap-from-LUKS changes,
  and just needed to be applied to a different module.
6 years ago
Gabriel Craciunescu 65a989d3cd [grubcfg] With LUKS, resume from the correct swap name
FIXES #1208
6 years ago
Adriaan de Groot 489fd0b272 [welcomeq] Fix QML import
- Now using the properly-namespaced QML import for Calamares things
6 years ago
Adriaan de Groot cd7884a0e5 [welcomeq] Fix build with clang
- can't convert lambda-with-captures to a function pointer (Clang 9)
- instead, use a context property .. QmlViewStep already sets a
  "config" property with the Config object, but WelcomeQ wants it
  as another name as well.
- this avoids registering the Welcome object across all QML pages,
  as well.

NOTE: needs to have the QML adjusted for this change.
6 years ago
Adriaan de Groot c4324fd3ea [libcalamaresui] Provide convenience method for context properties 6 years ago
Adriaan de Groot 3f87cc214a [calamares] Warnings--
- Set the width of the QML sidebar explicitly
- Handle all sidebar-flavor enum values explicitly
6 years ago
Adriaan de Groot afc0c78b4c [libcalamares] Refactor job-weight computations
- only check index-vs-length once
6 years ago
Adriaan de Groot 07da6e3905 [libcalamares] Expand instance with weight 6 years ago
Adriaan de Groot e37809a126 [libcalamares] Detailed InstanceDescription type 6 years ago
Adriaan de Groot 0e68013bb3 [libcalamares] Start making InstanceDescription a stronger type
- Replace a map-of-strings with a class type.
- For now, doesn't compile.
- Intention is to construct from a YAML / QVariant from the
  *instances* list in `settings.conf`.
6 years ago
Adriaan de Groot 3897bd54df Changes: write some of the QML docs
- Fix references; I decided to put it in Qml.h, which is
  the header for the code that does the work.
6 years ago
Adriaan de Groot 4576cb4fa0 [notesqml] Fix up documentation pointers 6 years ago
Adriaan de Groot aeffda945f [calamares] Use the ViewManager model to show steps 6 years ago
Adriaan de Groot b5a09d2f83 [branding] Don't hide the sidebar by default 6 years ago
Adriaan de Groot cec406e402 [calamares] Add a sample QML-sidebar
- The built-in one is loaded if no branding file is found.
- This sidebar is just the most basic of QML examples.
6 years ago
Adriaan de Groot cc3b0b2859 [calamares] Remove cruft from CMakeLists.txt 6 years ago
Adriaan de Groot 32ebb08788 [calamares] Search for sidebar QML file
- change name to "calamares-sidebar" so it's clear that
  it is a core component.
6 years ago
Adriaan de Groot 8d6e3e547c [libcalamaresui] Add qmlSearch for non-modules
- Refactor into a support method and two API points
- Use std::transform for doing-things-to-a-list
- Add searchQmlFile that only takes a name, for
  non-modules to use.
6 years ago
Adriaan de Groot 0fd7fec25e [libcalamaresui] Move registration into Qml-service
- Registration of QML modules may need to be done
  for more parts of Calamares. Move into the library,
  out of the model.
- Register for QML when using the QML sidebar.
6 years ago
Adriaan de Groot c628192163 Merge branch 'progress-model' 6 years ago
Adriaan de Groot a0b4d58000 [calamares] The very simplest of QML sidebars 6 years ago
Adriaan de Groot a834d67283 [notesqml] Adjust to new name for Branding 6 years ago
Adriaan de Groot 28c2da12ae [libcalamaresui] Register in io.calamares namespace
- Register both Branding and ViewManager for QML
- Note that this changes the name of Branding
- Add code-docs about object ownership
6 years ago
Adriaan de Groot 7a8eb09cdb [libcalamaresui] Move QML-searching
- This is utility code, so it can be in the QML "service"
  from Calamares, rather than in the QmlViewStep itself.
  That makes it usable for other QML bits as well.
6 years ago
Adriaan de Groot 7d99ad3177 [welcomeq] Adjust to Config-API that QmlViewStep expects 6 years ago
Adriaan de Groot 862b05221d [libcalamaresui] Drop 'name' parameter in QmlViewStep
- The name is just the module identifier, and now we
  search for *m@i* and also *m* from that identifier,
  the name becomes much less important -- and it
  can be set from the config key *qmlFilename* as well.
6 years ago
Adriaan de Groot 8f1ab99190 [libcalamaresui] Search module name as well
- When searching for QML file, obey module name
  (full instance, module-only) and then others.
6 years ago
Adriaan de Groot 165bcfd75d [libcalamaresui] "namespace" QML settings
- To avoid name-collisions in otherwise well-behaved
  modules and configurations, make the QML settings
  more specific:
    search -> qmlSearch
    filename -> qmlFilename
6 years ago
Adriaan de Groot 0f50dc8d33 [welcomeq] Include the QML search mode 7 years ago
Adriaan de Groot 8302f2182b [welcomeq] The QML file name still has a q 7 years ago
Camilo Higuita d26fa63ccd [welcomeq] initial work for welcomeview in qml 7 years ago
Camilo Higuita d7f7c16958 [welcome] using config for both qcc2 or qwidgets 7 years ago
Adriaan de Groot 4ab5b4a5e6 [calamares] Progress"tree" is a list
- No need for a TreeView when it's just a one-dimensional
  list of items.
7 years ago
Adriaan de Groot 99c03f7fbb [libcalamaresui] Behave better as a model 7 years ago
Adriaan de Groot 8f0a6d3065 [calamares] The ViewManager is its own model
- Having a ProgressTreeModel that does nothing but
  proxy to ViewManager methods is kind of useless.
- Move the relevant code from ProgressTreeModel to
  ViewManager.
- Remove now-unused ProgressTreeModel.
7 years ago
Adriaan de Groot b209668d33 [calamares] Fix singleton-ness of the progress view
- Create the ViewManager earlier,
- Create a ProgressTreeModel here for the view,
- Do not weirdly set the model much later.
7 years ago
Adriaan de Groot 290a708e56 [calamares] No need for progresstreeview to be singleton 7 years ago
Adriaan de Groot e9965d37e3 [calamares] Don't create sidebar if we don't want it 7 years ago
Adriaan de Groot 80f49bed1d [libcalamaresui] Add a sidebar flavor setting 7 years ago
Adriaan de Groot 9a63d63d5b [calamares] Factor out the creation of the sidebar 7 years ago
Adriaan de Groot 04cb5f14f7 [calamares] Role names for progress model 7 years ago
Adriaan de Groot ba4b42b4ee [calamares] Introduce a "completed" role
- This is for future support of a QML progress view
7 years ago
Adriaan de Groot d3f55af51e [calamares] Clean up progress tree model
- It's still not a real tree
- Remove unused classes / files
- Apply coding style
7 years ago
Adriaan de Groot 76144fb3dc [calamares] Remove superfluous ViewStepItem
- The model is a simple list, not a tree (it may have been in the
  distant past).
- All the information needed comes from the ViewSteps held by the
  ViewManager.
- The delegate and fake-step handling was never used.
7 years ago
Adriaan de Groot 5a59eb1963 [calamares] Remove unused method from progresstreemodel 7 years ago
Adriaan de Groot 7ec6dff352 [calamares] Apply coding style to progresstree 7 years ago
Adriaan de Groot e2d9ce737c [netinstall] Implement pre-expanded groups
- Return relevant data
- Document code
- Add to README.md documentation about new key
7 years ago
Adriaan de Groot b9b48cfbb1 [netinstall] Apply coding style
- Some missing {} were not noticed by astyle
7 years ago
Adriaan de Groot 4f216b0394 [netinstall] Refactor model-data setting
- Introduce convenience methods getString(), getBool() to pick
  out an entry from item definitions in YAML format.
- Apply coding style.
- Pick up the "expanded" property as well.
7 years ago
Adriaan de Groot 0f7f5216ee [netinstall] isHidden is const after construction 7 years ago
Adriaan de Groot b074696ac1 [netinstall] isCritical is const after construction 7 years ago
Adriaan de Groot 09006a936d [netinstall] Expand groups if requested 7 years ago
Adriaan de Groot 4f22a70b08 [netinstall] Restructure model-method data() 7 years ago
Adriaan de Groot df86972ea7 [netinstall] Introduce constexpr names for columns and roles 7 years ago
Adriaan de Groot 3d68c74a19 [netinstall] Sanitize PackageTreeItem::data()
- Use of != nullptr for QString just a bad idea
- Massage code so structure for packages resembles that of groups
7 years ago
Adriaan de Groot 201c5ddfe1 [netinstall] Add some debug-logging
- Also, prepare for a start-expanded setting
7 years ago
Adriaan de Groot 4cf3ec8663 [netinstall] Resolve TODO (changes translations) 7 years ago
Adriaan de Groot 3302fe319b [netinstall] Fix typo's in README 7 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
7 years ago
Adriaan de Groot 1299c64415 [interactiveterminal] Tidy up includes
- The KF5/ part of the path isn't necessary, and some of the KF5
  includes can be found with a shorter name (with modern ECM and
  imported targets)
7 years ago
Adriaan de Groot 350627172d [partition] Tidy up includes 7 years ago
Adriaan de Groot c5b038587e [welcome] Tidy up includes 7 years ago
Adriaan de Groot ebb3f319cc [modules] Be more consistent in include punctuation
- Use <> for Qt, system, externals
 - Use double-quotes for Calamares headers
7 years ago
Adriaan de Groot 841ea9ff48 [libcalamares] Tidy up includes
- Remove commented-out includes
- Consistent punctuation
7 years ago
Adriaan de Groot c4bfad9399 [packages] Provide status feedback
- The status message should be updated; the name is constant.

FIXES #1330
7 years ago
Adriaan de Groot ef249043f9 [libcalamares] call Python method only from Python thread 7 years ago
Adriaan de Groot b4aaf85ccf [libcalamares] Call Python function if available for status 7 years ago
Adriaan de Groot 252089e372 [libcalamares] Refactor pretty_name() call
- Split out a general method-that-returns-string caller.
7 years ago
Adriaan de Groot ed4cdbeacc [dummypython] Provide status 7 years ago
Adriaan de Groot aa62ca639b [libcalamares] Start getting prettyDescription from Python 7 years ago
Adriaan de Groot 9b5a391c86 [libcalamares] Factor out Python helper
- the strange construction of Helper and treating it as a singleton
  can be factored out into a separate singleton-handling instance()
  function. The Helper should never be destroyed.
7 years ago
Adriaan de Groot 3025c5383b [libcalamares] Document the pretty*() functions for Jobs 7 years ago
Adriaan de Groot 6d29c19e3e [libcalamares] Progress is float 7 years ago
Adriaan de Groot d3828a82fc [packages] Make dummy backend slower
- insert sleeps to make it slower (easier when testing)
- improve debug logging clarity by noting where the messages
  are coming from
7 years ago
Adriaan de Groot 0abde6f1a7 [libcalamares] Don't print funcinfo in continuations
- when a single function does more logging, it generally marks
  those as subsequent debug-messages (with Continuation, or SubEntry)
  and we don't need to print funcinfo for those, since it was already
  printed the first time.
7 years ago
Adriaan de Groot 5248a37eb3 [libcalamares] Add FUNC_INFO into all debug messages
- This is needlessly verbose
- Chase CreatePartitionTableJob which needs to bind to a temporary
7 years ago
Adriaan de Groot 3ddee8090c [libcalamares] Drop intermediate CLog class
- All the real work is done in CDebug, so remove the base class.
7 years ago
Adriaan de Groot ae633c7e7b [removeuser] Remove superfluous formatting around logging 7 years ago
Adriaan de Groot 623a8c2d43 [removeuser] Port to C++
No changes in functionality; add a little description in the .conf file.
7 years ago
Adriaan de Groot bfe45aea18 [netinstall] Warnings--, unused parameter 7 years ago
Adriaan de Groot 3df0878e43 [initramfs] Warnings--
Initializing the JobQuene (and hence Global Storage) and
the System instance is a bit odd, avoid unused-variable
warning with an ugly cast instead.
7 years ago
Adriaan de Groot 0793971d01 [libcalamares] Warnings--, unused variable 7 years ago
Adriaan de Groot 72dcf886bf [contextualprocess] Improve tests, fix off-by-one
- there's no string representation for a QVariantMap, so it
  won't be converted; in *debug* output it looks like there's a
  string there.
- off-by-one when diving into compound selectors, spotted by
  test, now fixed.
7 years ago
Adriaan de Groot 28bf4082b3 [contextualprocess] Tests for new lookup behavior 7 years ago
Adriaan de Groot bdb208c079 [contextualprocess] Split API
In order to test some of the internals, split them into Binding.h.
This makes the interface visible for tests. The implementation
still lives in the same place.

While here, adjust the test to the changed **example** which
now lists an additional variable.
7 years ago
Adriaan de Groot 4a5b3e7bc8 [contextualprocess] Document new behavior for compound keys 7 years ago
Adriaan de Groot d114a3dc21 [contextualprocess] Allow selection from GS with "var1.var2.var3" 7 years ago
Adriaan de Groot f5522425f6
Merge pull request #1331 from PureTryOut/apk-support
[packages] Add apk (Alpine Linux package manager) support
7 years ago
Adriaan de Groot 54a4644893 [partition] Store filesystem types
- Write a new GS key filesystems_use, which is a map of filesystems
  in use on the target system.
7 years ago
Adriaan de Groot d4b26bbaf0 [partition] Tighten up the types of internal methods 7 years ago
Calamares CI 29ba5c961d i18n: [dummypythonqt] Automatic merge of Transifex translations 7 years ago
Adriaan de Groot b0abb99ee1 [libcalamares] Don't log useless FUNC_INFO for Python
- When a Python module calls utils.debug(), there's no point
  in logging the C++ funcinfo that passes the parameters on;
  don't use cDebug() with its attendant magic.
7 years ago
Adriaan de Groot f818d4b446 [libcalamares] Log Q_FUNC_INFO as part of debug
- Warnings, errors, don't get funcinfo, but regular cDebug()
  calls do. Other special-cases, like calling Logger::CDebug()
  constructor explicitly, don't get funcinfo either.

FIXES #1328
7 years ago
Bart Ribbers 136d22188e
[packages] Add apk (Alpine Linux package manager) support 7 years ago
Adriaan de Groot 3456aabfce [libcalamares] Expand utility of list-logging
- Allow logging any QList type (needs explicit call in usage).
- Add a DebugList inheriting from DebugListT to keep existing
  code that logs QStringLists.
- For Calamares 3.3, consider using C++17 and class template deduction.
7 years ago
Adriaan de Groot 8f060a741f [calamares] Default to log-level 1 (not 8)
- This bug has been here since f233cac7a1,
  where a check for isSet() (of the -D option) was dropped. So since then,
  Calamares has always been running with full logging (-D8) on.
- The recently-added "easter egg" of showing the debug-button when
  log-level is 8 (to allow debugging-in-production) trips over the
  default-log-level of 8, so the debug-button is always visible.

So, minor bugs in the debugging-setup, combine to show a debug-button
when there shouldn't be one.

FIXES #1329
7 years ago
Adriaan de Groot 2db3b413f4 [libcalamares] Unmount with mount point, not device
- The manpage for umount says that -R can only be used with
  a mount point (e.g. /usr/local) and not a device name;
  this makes sense because a device might be mounted in multiple
  locations, but the mountpoint (and things mounted under it) lives
  in the filesystem tree.
- Existing code tried to unmount -R the device, not the mount point,
  and so always failed; leaving things mounted that shouldn't.
7 years ago
Philip Müller 0c8257df3d [initcpio] Don't claim other swap
From downstream ee99e34e25ed1224504bbef93fb41e5cad6b0ee8
7 years ago
Matti Hyttinen 717b8947d5
Update main.py
Unset GRUB_SAVEDEFAULT if / or /boot is in btrfs or f2fs partition. This avoids the error "sparse file not allowed" at boot time. Btrfs and f2fs do not support saving default entry in grub.
7 years ago
Adriaan de Groot c20ac0836e [users] Take setRootPassword into account when hiding fields 7 years ago
Adriaan de Groot 7752cf31b3 [users] Improve documentation of setRootPassword 7 years ago
Adriaan de Groot 14979b1630 [libcalamares] TemporaryMount with backwards logic
- because mount() returns an exit code, and 0 is "success",
  the if (!code) was backwards: when mounting succeeded, the
  TemporaryMount object thought it failed.
- This leads to temp-mounts being left *all over* the place
  from os-prober and fstab-handling.
7 years ago
Adriaan de Groot a865620f90 [calamares] Easter egg: running -D8 will show the Debug Information button 7 years ago
Adriaan de Groot ee52e37b36 [libcalamares] Don't hard-code full paths
- See editorial in the code-comment. Still need to test that
   chroot(8) doesn't need a full path, otherwise this will
   go to /usr/bin/env udevadm to force lookup (redundantly
   if not in a chroot)
7 years ago
Adriaan de Groot 8c527ab592 [users] Overwrite host(s|name) files in target 7 years ago
Adriaan de Groot 4621937477 [users] Use right check on writing hostname
- !failed() also means "didn't write the file because it already
  exists", which is sometimes acceptable -- but not here.
  Use the more-strict bool() conversion, which is only when
  the file was actually written.
7 years ago
Adriaan de Groot 862b7e34df [libcalamares] Add tests for file-overwrite 7 years ago
Adriaan de Groot f89951716e [libcalamares] Add mode to createTargetFile()
- Unconditionally **not** overwriting the target file isn't an option:
  writing hostname, for instance, expects that to be done even
  if `/etc/hostname` already exists on the target filesystem.
7 years ago
Adriaan de Groot 6a02f2cfec [machineid] Fix tests
- Make tests more resilient: do them in a temp-dir, and clean it
  up after successful tests. This was prompted by tests failing
  because of things hanging around in /tmp.
7 years ago
Adriaan de Groot adf81c0ab5 [locale][packagechooser] Fix tests, QCOMPARE again 7 years ago
Adriaan de Groot 6352b50ed0 [initramfs] Fix more tests 7 years ago
Adriaan de Groot e49fb74847 [libcalamares] Fix more tests 7 years ago
Adriaan de Groot 39cc43f26b [libcalamares] Fix tests
- QCOMPARE() is sensitive to differing types in actual and expected,
  and uchar and int (and mode_t and int) are different.
7 years ago
Adriaan de Groot a78556b56a [unpackfs] Revert text mode
- Follow original patch from Gabriel Craciunescu: just drop
  the *bufsize* parameter and stick to binary reads.

Text mode was associated in my testing with multiple hangs,
which didn't show up during binary-reads.
7 years ago
Adriaan de Groot 248776144e [unpackfs] Now it's text, it's not encoded anymore 7 years ago
Calamares CI aec6058dc5 i18n: [dummypythonqt] Automatic merge of Transifex translations 7 years ago
Adriaan de Groot 61ca6384cc [partition] Fix tests
- One of the files listed in the test has moved (to libcalamares),
- Don't bother with an extra intermediate SRCS variable.
7 years ago
Adriaan de Groot 6d0f5e4111 Merge branch 'kpmcore-manager' 7 years ago
Adriaan de Groot a2d245ef92 Merge branch 'issue-swaps' 7 years ago
Adriaan de Groot 327c1c0e7b [unpackfs] Reading from the pipe is line-oriented
- Using bufsize=1 causes warnings, since we never bothered
  to explicitly set text mode.
7 years ago
Adriaan de Groot 7c7af28a0d [unpackfs] Make clear that the FS is unsupported by *this* kernel
Patch from Gabriel Craciunescu. FS support is determined be
the kernel, not by Calamares, so make that clearer in the message.
7 years ago
Adriaan de Groot 50161cdab9 [grubcfg] Use own swap
- In situations where there are more swap partitions, only use
  partitions this install "owns".
7 years ago
Adriaan de Groot 5247c13f98 [partition] Follow 'claimed' settings for claiming swap
- By the time the GS is actually written, new (for partition state)
  is always false. So "new" is the wrong thing to track. It should
  have had a better name anyway,
- We store custom properties on the partition objects to indicate
  what happens to them; use those properties (instead of state,
  as done originally), call it "claimed" to indicate that the partition
  is part of this installation.

For now, only new (as in, formatted, created-by-us) partitions are
claimed.

- The effect here is that only "new" swap will be added to the system,
  so in erase-disk installations, or manual partitioning.
- Install-alongside and replace will now **not** claim the swap already
  on the disk; I think we'll need another UI knob for that one.

FIXES #1316
7 years ago
Adriaan de Groot 35a2db064b [partition] Make debug-logging match the functionality
- `createPartitionList()` is called for the summary widget (via
  `prettyDescription()`), and from `exec()`. Only the latter
  actually *writes* to Global Storage, so it's misleading to
  think that the pretty-printed version ends up in GS.
- This makes the "new" key useless, since by the time `exec()` is called
  the partitoons are no longer new.
7 years ago
Adriaan de Groot f9d9cd2df4 [fstab] Document the remapping of fs names
- Shuffle the code a little so it's clear where the remapping
  happens, and explain why we look for "swap" in fstab and
  "linuxswap" elsewhere.
7 years ago
Adriaan de Groot 8ecb364f8c [initramfs] Fix up tests
- These tests don't actually test anything in this specific module,
  they do test CalamaresUtils::System.
- Wrangling System and JobQueue and GlobalStorage instances is fraught
7 years ago
Adriaan de Groot fba1bf7072 CMake: add DEFINITIONS option to calamares_add_test
- There's a handful of tests that need this, it's possible
  there will be more, so just add it to the infrastructure.
7 years ago
Adriaan de Groot 1bb43e06e2 Merge branch 'master' into kpmcore-manager 7 years ago
Adriaan de Groot 7cbc43616e [netinstall] Some more "standard" alternative labels
- Hide the labels from the compiler to avoid warnings
- Add some more labels proposed by ArcoLinux
7 years ago
Adriaan de Groot 5dac67b710 [notesqml] Cut down the example text to be translated. 7 years ago
Adriaan de Groot 2d754dac6d [notesqml] Rename example file to save translators 7 years ago
Adriaan de Groot 51ad7df31c [netinstall] Don't give the translators a bogus string 7 years ago
Adriaan de Groot 538779991e [netinstall] Add some "standard" sidebar labels for the module 7 years ago
Adriaan de Groot 81752b6f7c [libcalamares] Document how TranslatedString context works
- Support re-using class-specific tr() calls in a standard way
- Document this in the netinstall.conf which uses it
7 years ago
Adriaan de Groot a03394f177 [netinstall] Use tr() infrastructure for config-translations 7 years ago
Adriaan de Groot 0ef28f6a50 [libcalamares] Translatable config strings use tr()-infrastructure
- Allow TranslatedString to get a context parameter; if it has
  one, it will try to use the regular tr()-infrastructure
  **as fallback** for the translations from the config file itself.
- This makes it possible to offer -- and translate -- some "standard"
  phrases in the module, while allowing the config file the knob
  to change strings. Using one of the standard strings gets translations
  for "free", while introducing something entirely new means sourcing
  translations for it as well.
7 years ago
Adriaan de Groot 25e3f91754 [welcome] Remove the QML testing bits
- The welcomeq module has actual QML support
7 years ago
Adriaan de Groot bff07ded25 Merge remote-tracking branch 'origin/welcome-q'
- Updates QmlViewStep with slightly neater API
- Introduces Config object for QML pages
- Updates notesqml and welcomeq to use that API
7 years ago
Adriaan de Groot c20f7ee534 [netinstall] Rip out derpy translations of PackageModel
- The model always has two columns, and the column names are always
  the same. We don't need to specially set headers for that.
- Use QCoreApplication::translation() to re-use the existing
  translations and avoid creating "new" strings (in a new context).
7 years ago
Adriaan de Groot f6d8ed85e4 [netinstall] Allow a title above the netinstall tree
- Supports translation via the config file. This is useful
  (like label:sidebar) when displaying more than one netinstall page.
7 years ago
Adriaan de Groot 5b67ca315a [netinstall] It should be easier to get the number 2 7 years ago
Adriaan de Groot 497ecda14d [netinstall] Move translation of widget headers
Editorial: I really don't like plain CALAMARES_RETRANSLATE() thrown
into the middle of code.
7 years ago
Adriaan de Groot 45c15de623 [netinstall] Configurable name in the sidebar 7 years ago
Adriaan de Groot be567dc508 [netinstall] Remove unused m_prettyStatus 7 years ago
Adriaan de Groot 4ae484dbca [netinstall] Initial work for configurable sidebar label
- Now that multiple netinstall pages may be supported, it's annoying
  that they all have the same name. Copy the approach from other
  modules (e.g. notesQML) of having the sidebar and other labels
  configured in the config file.
7 years ago
Adriaan de Groot 0877a994f1 [netinstall] Update copyright 7 years ago
Adriaan de Groot d909b8119e [netinstall] Code-style 7 years ago
Adriaan de Groot bc5aa1f837 [netinstall] Pretend to clean up resources 7 years ago
Adriaan de Groot 5f1bd4396e [netinstall] Avoid duplicate operations
- Since operations are added each time you leave this page,
   the existing operations (from a previous visit) need to be
   cleaned up. With the old setup of only **one** possible
   set of operations, this wasn't a problem. Now, merging
   in operations is necessary. Implement that by looking for
   the *source* property in an operation.

FIXES #1303
7 years ago
Adriaan de Groot 74169c166a [netinstall] Mark operations with source-module
- This will allow us to find the operations later, by looking for
  the same source-module.
- While here, tidy up types
7 years ago
Adriaan de Groot 7cadfb8ddd [packages] Log unfamiliar package operations
- unknown operations get a warning
 - "source" will be added from netinstall shortly
7 years ago
Adriaan de Groot 056b0d7548 [netinstall] Refactor variant-from-ItemData 7 years ago
Adriaan de Groot d5675508fa [netinstall] More coding-style
The tools don't always pick up all the style changes in one go
(I think astyle has trouble parsing some Calamares code)
7 years ago
Adriaan de Groot 8286bff95f [netinstall] Shuffle code around a bit
- introduce char const for key name (consistency, it's used lots)
 - polish debugging a bit
 - add some inline code-docs
7 years ago
Adriaan de Groot 17eb3f5e33 [netinstall] Apply coding style 7 years ago
Adriaan de Groot 1b80cf82de [fstab] Don't add swap that wasn't made new for us 7 years ago
Adriaan de Groot 158e11de1e [partition] Indicate that a filesystem is new in GS 7 years ago
Adriaan de Groot 7c2a196568 [users] Document new knobs
- while here, update copyright notice

FIXES #1140
7 years ago
Adriaan de Groot f7e8488edf [users] Correct DBus return from hostnamed calls 7 years ago
Adriaan de Groot 094c213baa [users] Also test hostname-setting via hostnamed
SEE #1140
7 years ago
Adriaan de Groot f1435452ea [users] Polish up tests
- Don't remove test artifacts on failure
 - Coding style
7 years ago
Adriaan de Groot c5b45c37fc [users] Add tests of the file-writing components 7 years ago
Adriaan de Groot 371fe267b1 Merge branch 'better-hostname' 7 years ago
Adriaan de Groot 94f5b13db0 [libcalamaresui] Restore previous DLLEXPORT names
- Different libraries should have different EXPORTs, so that
   you can IMPORT one while building the other. Reported (and
   kindly explained) by Kevin Kofler.
 - Stick to one header file, though.

While here, update copyright on file.
7 years ago
Adriaan de Groot 49eb8212e3 [users] Imporove enum-naming 7 years ago
Adriaan de Groot e74831fcb4 [users] Add .conf entries for hostname settings
- Set hostname not-at-all, or via one of two mechanisms
 - Write /etc/hosts or not
7 years ago
Adriaan de Groot 61d096c9ec [users] Prep-work for configurable actions
- tidy include style
 - add setting to UsersViewStep for hostname action
7 years ago
Adriaan de Groot 33b3321698 [users] Simplify reading configuration 7 years ago
Adriaan de Groot dbba0c9b03 [users] Move Job creation from the widget to the ViewStep
- Having the widget do creation ties the step heavily to that UI;
   start moving towards a state where we have a Config object (not
   here yet; it still queries the UI part) that moves data around
   between UI and ViewStep.
7 years ago
Adriaan de Groot 2471e74aab [users] Provide some accessors to the UI-page data 7 years ago
Adriaan de Groot ef4bb5e13b [users] Make SetHostName job actions configurable 7 years ago
Adriaan de Groot 6719a41aef [libcalamares] Switch tests to calamares_add_test() 7 years ago
Adriaan de Groot 51e135cfbd CMake: chase introduction of IMPORTED yamlcpp 7 years ago
Adriaan de Groot 6f996d8eed CMake: give yamlcpp a proper imported target
- This makes linking easier,
 - Adds the right includes (needed on FreeBSD),
 - Lets us drop silly GUI setting for non-GUI tests (I think this was
   a side-effect of compiling on FreeBSD, where UI would pull in
   /usr/local/include).
7 years ago
Adriaan de Groot 4495a4c739 CMake: Allow extra libraries in calamares_add_test
- Extra libraries specified via LIBRARIES part of CMake function
 - Convert all the other module tests
7 years ago
Adriaan de Groot 637a57d534 [machineid] Change to calamares_add_test
- The test-macro handles cases without ECM or testing transparently.
 - Adds compile defines for STATICTEST.
7 years ago
Adriaan de Groot 6bdc4a55de CMake: new convenience module CalamaresAddTest 7 years ago
Adriaan de Groot b42520b0ef [machineid] Apply new STATICTEST specifier, hide implementation details 7 years ago
Adriaan de Groot 92260e7d0b [libcalamares] Document DllMacro.h and add STATICTEST
- document the export macros
 - introduce a "static" that is switched off when re-building code
   for tests.
7 years ago
Adriaan de Groot b044549013 [libcalamares] Merge PluginDllMacro.h into DllMacro.h
- Let's just have one header definining export- and visibility-
   macros for Calamares. They are still selected based on the
   export flags (*_PRO), just defined in one header instead of two.
7 years ago
Adriaan de Groot aaa6f6bd55 [libcalamaresui] Drop UiDllMacro.h
- The scattering of DLL export macro's is kind of useless;
   there are several headers, and then the export macro isn't
   even applied consistently. Just drop the one for UI exports,
   which was only used in libcalamaresui.
7 years ago
Adriaan de Groot 44bf0a5d6d [users] Add method for using hostnamed
SEE #1140
7 years ago
Adriaan de Groot 9a7465bfd5 [users] Refactor writing-hostname and writing-hosts
- Move to separate functions, as prep-work for making the actions
   configurable (and optional).
7 years ago
Adriaan de Groot 214f9a308e Merge branch 'improve-tests' 7 years ago
Adriaan de Groot d5f3e2e7d4
Merge pull request #1318 from yurchor/patch-2
[partition] Fix typo: partitons -> partitions
7 years ago
Yuri Chornoivan ea82a26dae
Fix typo:; partitons -> partitions
Many thanks in advance for reviewing.
7 years ago
Yuri Chornoivan b582c27bf4
Fix minor typo
Many thanks in advance for reviewing.
7 years ago
Adriaan de Groot 90f79b0692 [users] Restore error-checking to set-hostname code
- Use the new CreationResult code for compact results
7 years ago
Adriaan de Groot 781322ab41 [libcalamares] Use more descriptive variable name
- If the test failed, you'd get a cryptic message like
	FAIL!  : NetworkTests::testPing() 'r' returned FALSE. ()
   So rename the variable so the failure mode is more obvious.
   (Could have used QVERIFY2() instead, this is simpler)
7 years ago
Adriaan de Groot f6526f7d9f [libcalamares] Add some tests for CreationResult
- More important is the compiler warning that will show up
   if we add more failure states.
7 years ago
Adriaan de Groot 274115c727 [libcalamares] Update tests to reflect changed API 7 years ago
Adriaan de Groot 2d7398161d [libcalamares] More detail for createTargetFile()
- Return a result-object with statrus information and the path
   which was previously used (empty for "failures").
7 years ago
Adriaan de Groot 695b88b8a7 [users] Tidy up hostname creation
- Use the createTargetFile() convenience functions to do the
   actual work.
 - This probably involves more copying around of buffers, since it's
   creating one big QString and sending that off, rather than writing
   little chunks to a file, but I feel this is worth the code simplification.
 - Drops all the error checking for creation, though, because the API for
   createTargetFile() lousy.
7 years ago
Adriaan de Groot b337a6b3f5 [user] Apply coding style 7 years ago
Adriaan de Groot 2bb4dd8e22 [users] Refactor hostname-guessing 7 years ago
Gabriel Craciunescu 7c323bdcdc [users] Try to guess suggested hostname from dmi
- nothing compicated for now, just try to get something
  from /sys/devices/virtual/dmi/id/product_name and fallback
  to -pc thingy if we can't
7 years ago
Adriaan de Groot 7f295d9565 [partition] Apply coding style to core/ subdir
Because this is a giant code change, with no functional effect,
I've been saving this until the end of the kpmcore-manager branch.
7 years ago
Adriaan de Groot 2bc296b468 [unpackfs] Fix typo's introduced in june 7 years ago
Adriaan de Groot 45a31a3022 [partition] Tidy includes
- sort includes a little
 - remove superfluous includes
 - update copyright
7 years ago
Adriaan de Groot d931b146e3 [partition] Shuffle new conveniences into partition service
- the general stuff from KPMHelpers ends up in the partition
   service; that only gets compiled when KPMCore is available anyway.
7 years ago
Adriaan de Groot e72ecaafd3 Merge branch 'kpmcore-manager'
Introduces a "partitioning service" into libcalamares,
shuffles a bunch of things into it, tries to help out
with settling the system between partitioning actions.
7 years ago
Adriaan de Groot 5a50a3a40c [partition] Consistent FS name usage
- explicit use of user-visible names in EditExistingPartitionDialog
 - consistent conversion of config-values to FS names (user-visible).
   The GS value comes from the ViewStep, and should always match
   something -- it's already converted to the canonical un-translated
   so the type should be good.
7 years ago
Adriaan de Groot 57b608083e [partition] Fix build - missing ) 7 years ago
Adriaan de Groot ca67534cd2 [partition] Improve logging of bad configs 7 years ago
Adriaan de Groot 472ec32617 [partition] Be explicit about user-visible FS names, ReplaceWidget 7 years ago
Adriaan de Groot 05dfc24af6 [partition] Be explicit about user-visible FS names, CreatePartitionDialog 7 years ago
Adriaan de Groot 88cff387c3 [partition] Be explicit about user-visible FS names, FormatPartitionJob 7 years ago
Adriaan de Groot bacca04695 [partition] Be explicit about what's user visible in SetPartitionFlagsJob 7 years ago
Adriaan de Groot 29894cec6a [partition] Convenience userVisibleFS()
- Mark uses of filesystem-name where it's intentional that they
   are user-visible, with a new convenience function.
7 years ago
Adriaan de Groot dac5516b2c [partition] Update copyright, coding style 7 years ago
Adriaan de Groot a0449abab9 [partition] Do not translate filesystem names
- Move contents of FSName to KPMHelpers
 - Use the new functions from FillGlobalStorage

Needs more use in the rest of the partition module.
7 years ago
Adriaan de Groot f410a4bb68 [libcalamares] Convenience function for FS names
Because getting the untranslated name of a FileSystem is something
that needs doing consistently, add some functions for that;
it makes it easier to spot places where that isn't done.

Probably doesn't compile, and needs extra documentation.
7 years ago
Adriaan de Groot c055e1da49 [partition] Use untranslated name of filesystem
- Patch from Gabriel Craciunescu
7 years ago
Adriaan de Groot aa0a799492 [welcomeq] QML warnings--
The config bits are all constant, so avoid NOTIFY warnings.
7 years ago
Adriaan de Groot f094cb543b [libcalamaresui] Set config object earlier
- The config context object should be set earlier, otherwise
   QML code will try binding to a non-existent config already
 - Document that QMLViewStep::setConfigurationMap() parent implementation
   should be called **last**, at the end of the subclass implementation.
7 years ago
Adriaan de Groot 7e0cc7af41 [welcomeq] Add configuration file
- copy the buttons-config part from welcome.conf
 - create buttons in the QML part
7 years ago
Adriaan de Groot 85b873a1a2 [libcalamaresui] Log QML error message
- When loading fails, log a useful error message from the QML
   engine (to help debug the QML)
7 years ago
Adriaan de Groot 49ed97cb77 [libcalamares] Allow QML ViewSteps to expose a config object 7 years ago
Adriaan de Groot f0134aab71 [welcomeq] Add more fields to Config
- getters as slots, for later access from QML
7 years ago
Adriaan de Groot 86bf9287ab [notesqml] Use Branding strings 7 years ago
Adriaan de Groot ae35256177 [welcomeq] Add top-text
- Fix QML indentation to the canonical 4-spaces
 - Add a header at the top of the page
 - Force the image to load from the filesystem
7 years ago
Adriaan de Groot 18942f835f [libcalamares] Remove confusing name-qualifiers
- Using Branding::ImageEntry, when ImageEntry is an enum class
   defined *in* Branding, is superfluous, and it also confuses
   moc; the enum type isn't recognized from QML.
7 years ago
Camilo Higuita 15d8503726 [libcalamaresui] Expose the branding strings & urls to qml 7 years ago
Adriaan de Groot 152c3352c2 [welcomeq] Compile the QML into the module
- Default implementation is in the QRC
 - Register Branding for QML modules (just once)
7 years ago
Camilo Higuita b5e17b7ea5 [welcomeq] Add full-featured QML for welcome page
This is a merge of several commits by Camilo.
7 years ago