Adriaan de Groot
685c2c9de0
Changes: mention Camilo for his QML work
2020-03-18 10:25:01 +01:00
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.
2020-03-12 17:37:39 +01:00
Adriaan de Groot
4576cb4fa0
[notesqml] Fix up documentation pointers
2020-03-12 17:30:08 +01:00
Adriaan de Groot
21c7063239
Changes: document QML sidebar
2020-03-12 17:28:44 +01:00
Adriaan de Groot
6ff0ac72de
Merge branch 'qml-sidebar'
2020-03-12 15:39:25 +01:00
Adriaan de Groot
aeffda945f
[calamares] Use the ViewManager model to show steps
2020-03-12 15:38:49 +01:00
Adriaan de Groot
b5a09d2f83
[branding] Don't hide the sidebar by default
2020-03-12 05:00:03 +01:00
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.
2020-03-12 04:59:01 +01:00
Adriaan de Groot
cc3b0b2859
[calamares] Remove cruft from CMakeLists.txt
2020-03-12 04:48:07 +01:00
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.
2020-03-12 04:21:03 +01:00
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.
2020-03-12 04:17:48 +01:00
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.
2020-03-12 03:45:14 +01:00
Adriaan de Groot
1c9a2e8c5f
Changes: document some of the new QML things
2020-03-11 19:49:41 +01:00
Adriaan de Groot
c628192163
Merge branch 'progress-model'
2020-03-11 19:39:58 +01:00
Adriaan de Groot
a0b4d58000
[calamares] The very simplest of QML sidebars
2020-03-11 19:39:28 +01:00
Adriaan de Groot
a834d67283
[notesqml] Adjust to new name for Branding
2020-03-11 17:42:19 +01:00
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
2020-03-11 17:40:03 +01:00
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.
2020-03-11 17:12:02 +01:00
Adriaan de Groot
7d99ad3177
[welcomeq] Adjust to Config-API that QmlViewStep expects
2020-03-11 16:49:07 +01:00
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.
2020-03-11 15:57:08 +01:00
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.
2020-03-11 15:53:01 +01:00
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
2020-03-11 15:36:42 +01:00
Adriaan de Groot
fa9006c677
Merge branch 'milohr-master'
...
FIXES #1336
2020-03-11 15:23:42 +01:00
Adriaan de Groot
0f50dc8d33
[welcomeq] Include the QML search mode
2020-03-11 15:23:37 +01:00
Adriaan de Groot
8302f2182b
[welcomeq] The QML file name still has a q
2020-03-11 15:21:46 +01:00
Camilo Higuita
d26fa63ccd
[welcomeq] initial work for welcomeview in qml
2020-03-11 14:48:14 +01:00
Camilo Higuita
d7f7c16958
[welcome] using config for both qcc2 or qwidgets
2020-03-11 14:48:06 +01:00
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.
2020-03-11 05:02:06 +01:00
Adriaan de Groot
99c03f7fbb
[libcalamaresui] Behave better as a model
2020-03-11 05:01:39 +01:00
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.
2020-03-11 04:49:38 +01:00
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.
2020-03-11 04:37:10 +01:00
Adriaan de Groot
290a708e56
[calamares] No need for progresstreeview to be singleton
2020-03-10 21:26:05 -05:00
Adriaan de Groot
e9965d37e3
[calamares] Don't create sidebar if we don't want it
2020-03-10 18:05:24 -05:00
Adriaan de Groot
80f49bed1d
[libcalamaresui] Add a sidebar flavor setting
2020-03-10 17:59:06 -05:00
Adriaan de Groot
9a63d63d5b
[calamares] Factor out the creation of the sidebar
2020-03-10 17:13:19 -05:00
Adriaan de Groot
04cb5f14f7
[calamares] Role names for progress model
2020-03-10 16:56:22 -05:00
Adriaan de Groot
ba4b42b4ee
[calamares] Introduce a "completed" role
...
- This is for future support of a QML progress view
2020-03-10 16:52:34 -05:00
Adriaan de Groot
d3f55af51e
[calamares] Clean up progress tree model
...
- It's still not a real tree
- Remove unused classes / files
- Apply coding style
2020-03-10 14:13:18 -05:00
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.
2020-03-10 14:06:35 -05:00
Adriaan de Groot
5a59eb1963
[calamares] Remove unused method from progresstreemodel
2020-03-10 13:43:04 -05:00
Adriaan de Groot
7ec6dff352
[calamares] Apply coding style to progresstree
2020-03-10 13:30:43 -05:00
Adriaan de Groot
257f718ab6
Changes: document netinstall improvement
2020-03-10 13:14:53 -05:00
Adriaan de Groot
185367648f
Merge branch 'issue-1269'
...
Add `expanded: true` to a group to pre-expand it.
FIXES #1269
2020-03-10 13:00:39 -05:00
Adriaan de Groot
e2d9ce737c
[netinstall] Implement pre-expanded groups
...
- Return relevant data
- Document code
- Add to README.md documentation about new key
2020-03-10 12:59:41 -05:00
Adriaan de Groot
b9b48cfbb1
[netinstall] Apply coding style
...
- Some missing {} were not noticed by astyle
2020-03-10 12:49:12 -05:00
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.
2020-03-10 12:46:49 -05:00
Adriaan de Groot
0f7f5216ee
[netinstall] isHidden is const after construction
2020-03-10 12:39:35 -05:00
Adriaan de Groot
b074696ac1
[netinstall] isCritical is const after construction
2020-03-10 12:38:11 -05:00
Adriaan de Groot
09006a936d
[netinstall] Expand groups if requested
2020-03-10 12:37:57 -05:00
Adriaan de Groot
4f22a70b08
[netinstall] Restructure model-method data()
2020-03-10 12:30:33 -05:00