Adriaan de Groot
5795801be5
[welcome] Remove unneeded member variables.
...
- local to the constructor, only needed to be members because
of the weird split between constructor and init()
2020-01-28 13:00:21 +01:00
Adriaan de Groot
5aae736ced
[welcome] Create ResultWidget in separate method
2020-01-28 12:53:19 +01:00
Adriaan de Groot
bede280f91
[welcome] Refactor ResultsListWidget
...
- no point in having init() called immediately after the constructor,
if it only makes sense to have one call to init() ever to create
the widget.
- while here, give it the same kind of structure as the dialog,
holding on to a reference to the list.
2020-01-28 12:41:36 +01:00
Adriaan de Groot
320dcac946
[welcome] Drop unneeded member variable
2020-01-28 12:23:53 +01:00
Adriaan de Groot
ed1b3b576f
[welcome] Refactor ResultsListDialog
...
- drop useless debugging
- add documentation
- move to its own spot in the file (not mixed in with ResultsListWidget)
2020-01-28 12:21:22 +01:00
Adriaan de Groot
41ac21bdcd
[welcome] Refactor results-details dialog
...
- Factor out the "details" dialog into a separate class
with a translation slot. This resolves the crash reported in #1307 .
2020-01-27 19:35:41 +01:00
Calamares CI
a017451607
i18n: [dummypythonqt] Automatic merge of Transifex translations
2020-01-27 16:40:04 +01:00
Calamares CI
ae2536a9c3
i18n: [dummypythonqt] Automatic merge of Transifex translations
2020-01-25 23:26:40 +01:00
Adriaan de Groot
39cc13cb25
[shellprocess] Tidy code
...
- resolve TODO, use a unique_ptr to hang onto the command-list
- sort the #includes, use correct quoting
2020-01-25 15:23:10 +01:00
Adriaan de Groot
96946a8447
Merge branch 'fix-unpackfs-progress'
...
This is an ugly hack, using Bill Auger's support for Job weights.
The unpackfs job is arbitrarily awarded a weight of 12. That makes it
(in a Netrunner install) use progress from 12% to 40% or so, overall,
as all the files are unpacked.
Also fixes bug reported by Kevin Kofler that unpackfs was only reporting
progress when it hit an exact multiple of 100 (instead of over 100).
SEE #1176
2020-01-25 11:53:31 +01:00
Adriaan de Groot
cdd2b9cc79
Modules: set noconfig:true on Python modules
...
- hwclock, initramfs, localecfg and networkcfg don't have any
config file to work with, so set that explicitly in the module.desc
2020-01-24 23:10:41 +01:00
Adriaan de Groot
00deeec8c8
[libcalamaresui] Use InstanceKey instead of strings
...
- Replace return type of Module::instanceKey() by the structured
ModuleSystem::InstanceKey type
- Chase API breakage
2020-01-24 17:47:06 +01:00
Adriaan de Groot
b5d0acdf81
[luksbootkeyfile] Set NO_CONFIG
2020-01-24 13:13:50 +01:00
Adriaan de Groot
40f64f0c11
[hostinfo] Set NO_CONFIG and remove unused configuration methods
2020-01-24 13:12:25 +01:00
Adriaan de Groot
fd058302b8
[dracutlukscfg] set NO_CONFIG and coding style
2020-01-24 13:08:25 +01:00
Adriaan de Groot
d1f162f92a
Docs: describe *noconfig* module option
2020-01-21 18:31:13 +01:00
Adriaan de Groot
10d1c4cf5b
[unpackfs] Improve progress reporting
...
- don't rely on exactly 100 files being copied (thanks to Kevin Kofler)
2020-01-20 19:39:05 +01:00
Adriaan de Groot
fbb452f9bf
CMake: add support for NO_CONFIG
...
- A C++ module should set NO_CONFIG to flag that it doesn't have a
config file (this is an error if it secretly **does** have one)
2020-01-20 19:27:34 +01:00
Adriaan de Groot
1a8926181e
[locale] Warnings-- (initialization-order)
2020-01-07 10:46:26 +01:00
Adriaan de Groot
1625bb1dae
[locale] Support Qt 5.9
...
FIXES #1296
2020-01-07 00:09:04 +01:00
Adriaan de Groot
d21ed0cc7f
[packagechooser] Coding style
2020-01-06 17:55:13 +01:00
Adriaan de Groot
cefb66ab5b
Merge pull request #1276 from bill-auger/patch-packagechooser-default-selection
...
[packagechooser] pre-select default item in packagechooser
2020-01-06 17:49:10 +01:00
Adriaan de Groot
dd5adc153f
Merge pull request #1291 from calamares/initcpiocfg-usr
...
[initcpiocfg] add usr hook if partition is separate
2020-01-06 14:41:24 +01:00
Adriaan de Groot
fe64903d2f
[initcpiocfg] Polish PR #1290
...
- List discrete years in copyright
- Add docstrings
- Massage detect_plymouth() to return bool (easier in if() context)
2020-01-06 14:34:47 +01:00
Philip Müller
85d3f9e9b9
[initcpiocfg] add usr hook if partition is separate
2019-12-16 09:40:54 +01:00
Philip Müller
a3da47cd9c
[initcpiocfg] update plymouth check
2019-12-16 09:34:21 +01:00
Adriaan de Groot
58786388d6
Merge branch 'zone-data'
2019-12-11 15:34:35 +01:00
Adriaan de Groot
7bea19a62c
[locale] Fix build with debugging enabled (API changes)
2019-12-11 08:45:35 -05:00
Adriaan de Groot
242b79e2e1
[locale] Remove old Location information
...
- all the TZ location information now lives in the Calamares
locale service and the TZ list
- replace the Location class that was local to the timezone
widget by the TZZone class
- chase a bunch of small API changes that this needs
2019-12-11 08:45:35 -05:00
Adriaan de Groot
e164f8d63a
[locale] Fix build with DEBUG_TIMEZONE
...
- all the API changes were not reflected in the debugging code
2019-12-10 16:19:06 -01:00
Adriaan de Groot
fb9d53909e
[locale] Drop ZONES #define
...
- this was a "cheap" way to write a list, but going through
QStringList::split() is just a long-way-around for static
initialization
2019-12-10 16:09:48 -01:00
Adriaan de Groot
2dfbed40c5
[locale] Move defines
...
- Used in only one place, move to .cpp
- Drop useless scaling all the images *are* that size already
- Add debugging check that the images match expected size
2019-12-10 10:00:16 -07:00
Adriaan de Groot
9d9d9c361d
[locale] Clean up constants
...
- move LOCALESDIR to the one place it's used
- remove file with only unused #defines
2019-12-10 17:46:09 +01:00
Adriaan de Groot
7354d35faf
[locale] Apply coding style to timezonewidget/
2019-12-10 17:42:58 +01:00
Adriaan de Groot
1e04924224
[locale] Drop the TZ-widget's timezone database
...
- use the global TZ service instead
- contains hacks to keep some of the API unchanged, which will be
removed shortly
2019-12-10 17:29:35 +01:00
Adriaan de Groot
4089a01cb1
[locale] Create TZ model earlier
2019-12-11 01:31:56 +10:00
Adriaan de Groot
226530cf6f
[locale] Use model functions from locale service
...
- drop the home-grown combo-box filling, use model
2019-12-11 01:04:09 +10:00
Adriaan de Groot
c75e870073
[libcalamares] CStringList::find() convenience function
...
- search for a key and return a type-cast pointer to the result
- while here, simplify some other code
- the find() function could be done with std::find_if but doesn't
get any shorter or more elegant
2019-12-10 15:54:43 +01:00
Adriaan de Groot
6092172f8d
[libcalamares] Regions and zones change to QList<Base*>
...
- By using QList< CStringPair* > consistently, we can save
a bunch of model code at the cost of an occasional dynamic_cast;
it's fairly rare for there to be a need for the derived pointer.
2019-12-10 15:32:15 +01:00
Adriaan de Groot
f4509f3380
[libcalamares] Move loading to TZRegion
...
- don't make the model load files, provide convenience functions
for loading in the value classes
- create model from lists of value pointers
2019-12-10 10:48:39 -01:00
Adriaan de Groot
9f06903115
[local] Chase API change in TZRegionModel
2019-12-09 23:36:32 -11:00
Adriaan de Groot
afb5430c42
[locale] Use TZRegionModel
...
- instead of populating combo box with texts, use the model
read in from zone.tab
- this **partly** deprecates the LocaleGlobal stuff
2019-12-10 11:30:48 +02:00
Adriaan de Groot
7d88b6d0cd
[license] Show filenames as filenames
...
- Use File: to display filenames, rather than URL: plus a file:-scheme
- Document the change in CHANGES
2019-12-09 20:47:32 +01:00
Adriaan de Groot
ddc2f60768
Merge branch 'master' into zone-data
2019-12-09 17:44:32 +01:00
Adriaan de Groot
ac1c0d97d2
[license] Prevent single item from expanding
...
- the last item would expand vertically to fill the scroll area;
add a spacer that pushes against it
2019-12-09 17:34:46 +01:00
Adriaan de Groot
59ea0417fc
[license] Move a less-useful message to tooltip
...
- the message about setup continuing can be a tooltip
2019-12-09 17:25:07 +01:00
Adriaan de Groot
c220220563
[license] Give stylesheets meaningful names
2019-12-09 17:14:35 +01:00
Adriaan de Groot
8a912e6ca1
[license] Fix the height of each item
...
- needs a qwidget to put the top-items (license name, button) in
- fixes issue where the gap between the button and the hrule would
change depending on what is expanded
2019-12-09 17:08:35 +01:00
Adriaan de Groot
7330afd96a
[license] Massage display of buttons
...
- try to keep them the same height
- show the URL that will be opened
2019-12-09 16:57:18 +01:00
Adriaan de Groot
6e1504fafc
[license] Use just one button
...
- replace the text plus toolbutton (which has an ambiguous arrow in it)
by a single button with text saying what it will do.
2019-12-09 14:52:54 +01:00