20 Commits (eaa0c02f8db46a18d1b7928ff00296d0a24d4417)

Author SHA1 Message Date
Adriaan de Groot eaa0c02f8d [packagechooser] Initial support for appstream items
- Use *appstream* as key in one of the items for the package-
   chooser to load data from the AppStream cache in the system.
 - Usable for some applications; for DE-selection not so much.
 - Currently unimplemented.
6 years ago
Adriaan de Groot f3de320288 [packagechooser] Drop hard-coded data
- Now that the configuration can do all the things, we don't need
   a hard-coded model with bogus entries.
6 years ago
Adriaan de Groot 6ddae94628 [packagechooser] Allow to override some of AppData
- The ID and Screenshot entries might be weird in AppData (in particular,
   a remove URL) so put those back under the control of Calamares even
   when using AppData as the source of descriptions.
6 years ago
Adriaan de Groot d72391942f [packagechooser] Implement AppData loading
- An item can refer to *appdata* and load that, or provide
   the data in the config file itself.
 - Fix documentation about translations.
6 years ago
Adriaan de Groot 6e05a1ef05 [packagechooser] Load translated strings as well
- This makes it possible to put the translations into the config
   file, and have them displayed when the Calamares language changes.
6 years ago
Adriaan de Groot b16354133d [packagechooser] Switch to a list form
- Using id's as keys in a map orders them indeterminately -- in
   practice, alphabetically by key. Switch to a list form so that
   the products stick to the order they have in the config file
   (which means distro's can list "preferred" versions at top).
6 years ago
Adriaan de Groot 791f9cbccb [packagechooser] Read packages model from config
- add key *items* which will be used to fill up the model for
   software products.

TODO: needs translation support
6 years ago
Adriaan de Groot d5275d5e10 [packagechooser] Allow the model to set the introductory text 6 years ago
Adriaan de Groot 140c0db7a4 [packagechooser] Set GlobalStorage packagechooser_<id> 6 years ago
Adriaan de Groot c59ffc7765 [packagechooser] Set default ID as documented 6 years ago
Adriaan de Groot b711c791bd [packagechooser] Fix build, tidy code 6 years ago
Adriaan de Groot 87d7b2a5c0 [packagechooser] Allow setting an ID for the module's GS key 6 years ago
Adriaan de Groot 76077743af [packagechooser] Add configuration setting for selection mode
- Add a *mode* key to the configuration file
 - Change some names around to be more consistent (not user-visible)
6 years ago
Adriaan de Groot ab7374628b [packagechooser] Use sample screenshots 6 years ago
Adriaan de Groot 86d8db6bbf [packagechooser] Enforce selection mode on the next-button 6 years ago
Adriaan de Groot 2272d2ab43 [packagechooser] Add selection modes
- Introduce different selection modes (most don't work yet)
 - Use model data in the main widget
6 years ago
Adriaan de Groot 86e2e6242f [packagechooser] Warn about weird calling orders 6 years ago
Adriaan de Groot a32dcdad86 [packagechooser] Support multiple selection modes 6 years ago
Adriaan de Groot d1a85ba5ca [packagechooser] Add a model for the list to use
- Model contents currently hard-coded
6 years ago
Adriaan de Groot 735d5d2683 [packagechooser] Add stub of module
Package chooser is a **low density** package selector -- unlike
netinstall which offers a high density tree view -- for picking
zero, one, or more items from a small collection of packages.

This can be used, e.g., for "pick exactly one desktop environment",
"pick zero or more text editors" which can then be installed
by another module. The UI is big and shiny (rather than netinstall's
text-based tree view) and isn't suitable for more than a dozen or
so items.
6 years ago