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.
2020-02-17 16:55:17 +01:00
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.
2020-02-17 11:32:28 +01:00
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.
2020-02-13 13:41:53 +01:00
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.
2020-02-12 22:33:49 +01:00
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)
2020-02-12 17:58:21 +01:00
Adriaan de Groot
49ed97cb77
[libcalamares] Allow QML ViewSteps to expose a config object
2020-02-12 17:51:10 +01:00
Adriaan de Groot
152c3352c2
[welcomeq] Compile the QML into the module
...
- Default implementation is in the QRC
- Register Branding for QML modules (just once)
2020-02-12 15:08:18 +01:00
Adriaan de Groot
39a5453904
[libcalamaresui] Add QML onActivate() and onLeave() calls.
...
- This comes from the ExecutionViewStep, V2 loading, which
notifies the QML that the QML is now active.
2020-02-07 22:18:23 +01:00
Adriaan de Groot
1f34c2834e
[libcalamaresui] Move definitions inside namespace {}
...
- Remove the extra Calamares:: namespace specifier from half the
definitions.
2020-02-07 21:33:34 +01:00
Adriaan de Groot
12675be516
[libcalamaresui] Factor out "simple" QML method calls
2020-02-07 21:25:55 +01:00
Adriaan de Groot
eaea262449
Merge branch 'master' into qml
2020-02-05 18:03:31 +01:00
Adriaan de Groot
94083edf9c
Merge branch 'master' into kpmcore-manager
2020-01-29 12:55:46 +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
abdeb07bd3
[dummyqml] Minor polishing in Qml module
...
- document the default filename better
- mark TODO actually loading the instance-id file
2020-01-24 17:14:45 +01:00
Adriaan de Groot
750465153f
[dummyqml] Improve QML searching
...
- if the filename is an absolute path, use that
- support searching in branding directory
2020-01-13 22:28:21 +01:00
Adriaan de Groot
7f8a31007a
[dummyqml] Search for files
...
- start implementation of searching-for-qml
- add a *filename* configuration item, so that the filename
can be set per-instance (via the config file)
2020-01-13 22:04:27 +01:00
Adriaan de Groot
04615b251c
[dummyqml] Make prettyName() return a sentence with .
2020-01-10 17:47:02 +01:00
Adriaan de Groot
ce6d54ad95
[libcalamaresui] Improve failure message, unbreak loading
...
- example loading had an X inserted in filename (to test failure)
- add a space between name and failure
2020-01-10 17:45:09 +01:00
Adriaan de Groot
fed298b179
[libcalamaresui] Defer QML loading
...
- need a configuration before we can start loading (to support
the variable search paths)
- refactor showing a failure in the spinner widget. On failure,
the spinner will never go away, so a message for the user is good.
- stop clang-format from messing up the table of names.
2020-01-10 17:41:20 +01:00
Adriaan de Groot
e7e66497d2
[libcalamaresui] Introduce search method for QML UI modules
...
- add a sample config and documentation in dummyqml/
2020-01-10 17:19:15 +01:00
Adriaan de Groot
f6d89354a1
Merge branch 'master' into kpmcore-manager
2020-01-10 14:54:13 +01:00
Adriaan de Groot
e6713d456c
[libcalamaresui] Need explicit qrc: scheme
2020-01-10 13:44:26 +01:00
Adriaan de Groot
c03c6fc8ed
[libcalamaresui] Qml loading
...
- this is mostly copied from ExecutionViewStep (only the V2 QML
loading), which does the same kind of thing.
- loading from QRC does not work yet
2020-01-10 13:39:03 +01:00
Adriaan de Groot
44b250809f
[libcalamaresui] Add spinner to QmlViewStep
...
- view step now has a widget, doesn't load QML yet
2020-01-10 13:10:55 +01:00
Adriaan de Groot
4924839217
[libcalamaresui] Start QmlViewStep
2020-01-10 12:13:40 +01:00
Adriaan de Groot
16a460adff
[libcalamaresui] Move ExecutionViewStep where it belongs
...
- viewpages/ collects the ViewStep implementations
- chase header moving and tidy some #includes
2020-01-10 12:07:35 +01:00
Adriaan de Groot
970702daa0
[libcalamaresui] Tidy up includes
2020-01-09 21:39:34 +01:00
Adriaan de Groot
85f5410735
[libcalamaresui] Apply coding style
2019-08-22 10:25:16 +02:00
Adriaan de Groot
d44e8f6115
[libcalamaresui] Apply coding style to viewpages/
2019-08-13 21:02:30 +02:00
Adriaan de Groot
beeda24423
[libcalamaresui] Fix build of the PythonQt bindings
...
- Change to std::chrono::seconds wasn't tried against the (optional)
PythonQt bindings, leading to build failure. Reported by Phil (Manjaro).
FIXES #1210
2019-08-04 08:52:33 -04:00
Adriaan de Groot
6ba8ac8526
[libcalamaresui] Use mount from partition service
2019-06-20 12:13:45 +02:00
Adriaan de Groot
9331a25905
[libcalamares] Remove Typedefs.h
...
- This small header file contained a few unrelated typedefs.
Move those typedefs to the classes they relate to. This
**does** mean that some consumers need to #include something
else instead.
- Use type names more consistently.
Editorial: why are **pages** responsible for creating the jobs?
2019-05-07 09:51:23 -04:00
Adriaan de Groot
8d0f076591
[libcalamares] Rename CalamaresUtils -> String
...
- The only remaining functions in the file are string-related, so
rename to match their purpose.
- Drop this include file from most places, since they don't actually
use the string functionality at all.
2019-04-29 06:49:16 -04:00
Adriaan de Groot
7149b80146
[libcalamares] Distinguish kinds of errors
...
- errors can now carry an integer what-am-I code apart from
the message; all errors have a code != 0 (and ok has code 0).
2019-04-28 14:34:39 -04:00
Adriaan de Groot
cef2f50510
Reduce warnings about extra ;
...
- Trailing ; after Q_UNUSED
- Trailing ; after CALAMARES_RETRANSLATE
2019-04-18 12:06:09 +02:00
Adriaan de Groot
ef3b4c387c
[libcalamaresui] Remove unused AbstractPage
2019-04-15 09:20:08 -04:00
Adriaan de Groot
4fec6731ba
[calamares] [libcalamaresui] Improve includes
...
- avoid useless ../
- sort alphabetically and by kind
2019-04-15 09:20:08 -04:00
Adriaan de Groot
8cf3c217f7
Merge branch 'requirements-checking'
2019-02-25 10:00:43 -05:00
Adriaan de Groot
c3d13e3451
[libcalamaresui] Add documentation to ViewStep methods
2019-02-25 08:15:01 -05:00
Adriaan de Groot
64ca9d0d5a
[libcalamaresui] Document multi-page support.
2019-02-25 08:11:03 -05:00
Adriaan de Groot
6071489788
[libcalamaresui] Provide default implementations of next() and back()
...
- These methods are used for multi-page view-steps, which are rare.
For all the others, just drop the empty implementation and defer
to the base class.
2019-02-25 07:49:10 -05:00
Adriaan de Groot
08565b5f17
[libcalamaresui] Remove the signal done() from ViewStep
...
- The signal is emitted, generally from next(), but not actually used.
2019-02-25 07:34:40 -05:00
Adriaan de Groot
bf40f3bd23
Merge branch 'master' into requirements-checking
2018-08-10 12:02:57 -04:00
Raul Rodrigo Segura
f25d6b278d
add support onLeave and onActivate to pythonqt plugins
2018-06-21 13:21:48 +02:00
Adriaan de Groot
dd8e53dc22
Copyright: update copyright lines on files touched in 2018
...
Contributions from:
Adriaan de Groot <groot@kde.org>
Gabriel Craciunescu <crazy@frugalware.org>
AlmAck <gluca86@gmail.com>
Andrius Štikonas <andrius@stikonas.eu>
Caio Carvalho <caiojcarvalho@gmail.com>
Raul Rodrigo Segura <raurodse@gmail.com>
2018-06-15 05:59:11 -04:00
Adriaan de Groot
bb5ac0326d
[libcalamaresui] Improve layout of "blank" view step
2018-06-14 02:33:03 -04:00
Adriaan de Groot
9918dfb95f
[libcalamaresui] Reporting on failures
...
- Provide information on failed modules
- Disallow further progress when configuration is borked
2018-06-13 13:41:38 -04:00
Adriaan de Groot
2da09f7648
[libcalamaresui] Fix build
...
- Include all headers for types that need to be fully-defined
(e.g. return types). This guards against uses in contexts where
those headers have not been implicitly or previously included.
FIXES #948
2018-05-10 05:39:22 -04:00
Adriaan de Groot
c7629182e4
Merge branch 'master' into requirements-checking
2018-03-06 17:06:35 +01:00
Adriaan de Groot
a72bdfac52
Merge branch 'master' into requirements-checking
2018-03-06 14:57:17 +01:00
Adriaan de Groot
60f440f72b
[libcalamaresui] Use new convenience logging methods
...
- Remove a few confusing Q_FUNCINFO
2018-02-12 11:58:34 -05:00
Adriaan de Groot
762ad54344
Documentation: change http links to GitHub to https
2017-12-20 08:39:09 -05:00
Adriaan de Groot
b6fed964ce
[libcalamaresui] Defer requirements checking of ViewModules to their ViewSteps
2017-12-02 11:30:26 -05:00
Adriaan de Groot
2d31e987c0
[libcalamaresui] Unrelated typedef for JobList
2017-11-03 11:02:06 -04:00
Adriaan de Groot
13807ceabf
Licensing: add self
...
- to all the files I've touched recently
- to (very incomplete) AUTHORS list
Licensing: add license info to top-level CMakeLists.txt
2017-09-19 15:57:25 +02:00
Adriaan de Groot
c6297f1db5
Clang: warnings--
2017-09-14 06:34:31 -04:00
Adriaan de Groot
bd37572fd8
Clang: reduce warnings
2017-09-13 19:03:56 +02:00
Adriaan de Groot
73a75e837b
Auto-resize the main window.
...
If the summary widget is large, it gets a scrollbar. This looks really
weird, so prefer to grow the installer window instead. Discussed with
@sitter and settled on this solution.
ViewSteps can signal the ViewManager that they need more space (in pixels),
which may or may not be honored.
FIXES #778
2017-09-05 10:51:54 -04:00
Adriaan de Groot
a718eb76cb
Docs: code-documentation about summary page
2017-08-08 07:54:38 -04:00
Teo Mrnjavac
17962179bd
Documentation++
2017-03-03 12:32:44 +01:00
Teo Mrnjavac
6c7cdb5f50
Documentation++
2017-03-01 13:35:06 +01:00
Teo Mrnjavac
f4696f22a1
Pass locale name to PythonQt module.
2016-12-16 17:03:13 +01:00
Teo Mrnjavac
0c36de68ff
Attach retranslator to base widget of ViewStep.
2016-12-16 17:03:13 +01:00
Teo Mrnjavac
ca7728cd34
Implement PythonQtViewStep::jobs as a wrapper for Python-provided jobs.
2016-12-16 17:03:00 +01:00
Teo Mrnjavac
aad1c536d1
New PythonQtJob class.
2016-12-16 17:03:00 +01:00
Teo Mrnjavac
f3fa124f8d
Set configuration map in PythonQt module.
2016-12-16 17:03:00 +01:00
Teo Mrnjavac
4648f5e8e0
Utils wrapper class, to expose libcalamares.utils under PythonQt.
2016-12-16 17:03:00 +01:00
Teo Mrnjavac
7791307e1e
Wrapper for GlobalStorage, to make it available through PythonQt.
2016-12-16 17:03:00 +01:00
Teo Mrnjavac
25613d1bef
Fix _calamares_module_basewidget check and improve readability.
2016-12-16 17:03:00 +01:00
Teo Mrnjavac
0f0a6ab18d
PythonQtViewStep has no decorator.
2016-12-16 17:03:00 +01:00
Teo Mrnjavac
a54f217173
Use CalamaresUtils::lookupAndCall in PythonQtViewStep.
...
This is done to support both Pythonic and Qt style method names, i.e.
both "isNextEnabled" and "is_next_enabled" is ok in a Python module.
Also better documentation in PythonQtViewStep, and stub for
setConfigurationMap.
Finally, proper handling of PythonQtViewStep Python-facing basewidget:
with this change, a call to PQVS::widget() only triggers a widget
relayout if it's necessary, and leaves it alone otherwise.
2016-12-16 17:03:00 +01:00
Teo Mrnjavac
b4002a716a
New PythonQtViewStep.
2016-12-16 17:03:00 +01:00
Teo Mrnjavac
461ef79170
ViewStep should know their own instance keys.
2015-09-15 16:48:42 +02:00
Gormogon
e2d05cb9f2
Align Pointers
2015-02-25 19:57:19 -05:00
Teo Mrnjavac
171248ad4f
Add isBackEnabled checks to all ViewSteps.
2015-01-29 22:46:07 +01:00
Aurélien Gâteau
03c5a38b90
Show a summary of the partition changes on the summary page
2014-07-30 14:17:14 +02:00
Teo Mrnjavac
b20eaaf4f8
Add setConfigurationMap to ViewStep with empty implementation.
...
Actual module ViewSteps can reimplement it to read their own module-
specific configuration.
2014-07-15 11:28:25 +02:00
Teo Mrnjavac
c339ac8cfc
Add status info to Summary page. Still needs work to make it nice.
...
Also added onActivate/onLeave to ViewStep and ViewManager.
2014-07-08 18:28:27 +02:00
Teo Mrnjavac
b98c071f94
Prepare for late enqueuing of jobs to the JobQueue.
2014-07-08 14:03:06 +02:00
Teo Mrnjavac
4ec72f4afb
Refactored calamares_bin into calamares_bin and libcalamaresui.
...
Now linking with -Wl,--no-undefined!
Moved find_package KF5 from the root CMakeLists.txt to the partitioning
module where it belongs. KF5 deps should be limited to plugins.
Lots of random fixage to make stuff link.
Removed CalamaresApplication reference from Settings.
Removed the use of AbstractPage, we don't need it right now.
2014-07-03 18:00:40 +02:00