Andrius Štikonas
490c14d93d
QLatin1Literal->QLatin1String.
6 years ago
Adriaan de Groot
7a5ac63f92
[libcalamares] Chase change of API
...
- Replace QString( x ) by x.toString() where x is an InstanceKey
6 years ago
Adriaan de Groot
d6ed046495
[libcalamaresui] Replace a superfluous lambda
...
- The whole method body can be a lot on its own, and since
loadModules() does nothing but single-shot the lambda,
call it from outside instead.
6 years ago
Adriaan de Groot
2f99004041
[libcalamares] Move the module instance-key
...
- Split out of the UI library and into (header-only) libcalamares.
6 years ago
Adriaan de Groot
666462651b
[libcalamares] Namespace consistently
...
- Things in libcalamares/ subdirectories are namespaced
according to that subdirectory (sometimes in namespace
Calamares, sometimes CalamaresUtils). Do that in modulesystem/ too.
6 years ago
Adriaan de Groot
78de6776af
[libcalamaresui] Swap out use of QString for ModuleInstanceKey
...
- The strings `module@id` are used internally, make that type explicit.
6 years ago
Adriaan de Groot
b8dd6e9ae7
[libcalamaresui] Introduce a module-instance-key class
...
- This replaces rather ad-hoc use of a QString as key.
6 years ago
Adriaan de Groot
1cde8c20df
[libcalamaresui] Simplify retranslation
...
- Use any object method to connect() to
6 years ago
bill-auger
e459b82cfe
fix typo in src/libcalamaresui/ViewManager.cpp
6 years ago
Adriaan de Groot
559a65d169
Merge branch 'issue-1213'
...
FIXES #1213
Better slideshow loading, both V1 and V2. Keyboard shortcuts only while
the slideshow is visible.
6 years ago
Adriaan de Groot
8ab0fb4e5f
[libcalamaresui] Apply coding style (missed earlier)
6 years ago
Adriaan de Groot
be5388abcd
[libcalamaresui] activate -> change state
...
- since we also need to *disable* the shortcuts, and should tell a
V1 slideshow that it no longer is running,
- use existing function to set the property to true / false depending.
- instead of changeState( true ) or changeStage( false ), use
meaningful enum names so that the code at the call site
becomes readable; make the boolean part internal to the
state-changing method.
6 years ago
Adriaan de Groot
1e3e53d30a
[libcalamaresui] Set activatedInCalamares special property
...
- when the QML is activated, if the slideshow has this property,
set it to true. This enables the keyboard shortcuts.
6 years ago
Adriaan de Groot
7df6ed31e9
[libcalamaresui] Refactor QML slideshow activation
...
- one function for activation, since we activate from different
places and each loader-API may need multiple steps for activation.
6 years ago
Adriaan de Groot
ac8952f223
[libcalamaresui] Improve QML API v2 debugging
...
- log what is being loaded
- distinguish "component complete" from actuial loading
6 years ago
Adriaan de Groot
85f5410735
[libcalamaresui] Apply coding style
6 years ago
Adriaan de Groot
6b8c0129fd
[libcalamaresui] Add one more icon (donate) from Breeze
...
- LGPLv3 like the others
6 years ago
Adriaan de Groot
e7dedbbfe0
[libcalamaresui] Apply coding style to remainder
6 years ago
Adriaan de Groot
d44e8f6115
[libcalamaresui] Apply coding style to viewpages/
6 years ago
Adriaan de Groot
6f74463a80
[libcalamaresui] Apply coding style to utils/
6 years ago
Adriaan de Groot
1b6aed8c40
[libcalamaresui] Apply coding style to modulesystem/
6 years ago
Adriaan de Groot
6224d6605b
[libcalamaresui] Apply coding style to widgets/
6 years ago
Adriaan de Groot
0716a46eb2
[libcalamares] Switch to using KPluginFactory
...
- this is not entirely straightfoward, since we need
different constructor arguments for the objects
Calamares creates (no QVariantList& args, in particular).
Implement our own registerPlugin() and createInstance()
for that.
- work around a bug in K_PLUGIN_FACTORY_DECLARATION_WITH_BASEFACTORY
6 years ago
Adriaan de Groot
44991e700b
[libcalamaresui] Check KCoreAddons version directly
6 years ago
Adriaan de Groot
8a7f32d3aa
[libcalamaresui] Polish ImageRegistry
...
- do static initialization more carefully
- float -> qreal (double) because that's what the Qt API expects,
to reduce type-conversion warnings
- apply current coding style
6 years ago
Adriaan de Groot
ec08a293b2
[libcalamaresui] Reduce compile warnings
...
- "this" isn't used in the lambda; in future it might be if the
lambda needs to get the configuration from settings.
6 years ago
Adriaan de Groot
91d327b224
[libcalamaresui] Paste TCP port is quint16
...
- no sense in feeding in an int (and getting a compiler warning
for narrowing) into something that by spec is a 16-bit value.
6 years ago
Adriaan de Groot
739363cecd
[libcalamaresui] Fix initialization order (reduce warnings)
6 years ago
Adriaan de Groot
e31a498c9b
[calamares] Move DebugWindow
...
- This is a fairly specialized class, for use only in the
whole-application where it ties in with the module system.
Move it to the application directory and slim down the UI library.
- Include it from the new location.
- Add UIC to Calamares (the application) because there's now
a designer-based widget in it.
6 years ago
Adriaan de Groot
85d28af1e2
[libcalamaresui] Don't include QJsonModel
6 years ago
Adriaan de Groot
695e16bb87
[libcalamaresui] Drop QJsonModel from the library
6 years ago
Adriaan de Groot
c83e95e66a
[libcalamaresui] Chase 3rdparty move
...
- Widgets need to #include from different path
6 years ago
Adriaan de Groot
2166eb4511
[libcalamares] [libcalamaresui] Adjust for moved sources
6 years ago
Adriaan de Groot
937ff608eb
[libcalamaresui] Move spinner widget to 3rd party
6 years ago
Adriaan de Groot
47dbf9ab0c
[libcalamares] Move 3rd party code to separate dir
6 years ago
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
6 years ago
Adriaan de Groot
e2504627aa
[libcalamaresui] Chase timeout-type into the UI library
...
(TODO: move ProcessJobModule to libcalamares, it has no UI dependency)
6 years ago
Adriaan de Groot
20cf0c8f3d
[libcalamaresui] Remove unused code
...
- This operator is declared, yet never defined or used. The definition
was removed in fb44fb97b6
.
6 years ago
Adriaan de Groot
566be48f16
libcalamaresui: rename and document pastebin method
6 years ago
Adriaan de Groot
2aae30f517
libcalamaresui: don't rely on translations to interpret button
...
- Keep the debug-failure-call in the code, but commented out
- Check ButtonRole, rather than the button's text, to see
which one it is.
6 years ago
Adriaan de Groot
675a35bb2e
libcalamaresui: when displaying pasted URL, don't be fancy
...
- Just call the static method and then quit, rather
than being careful about allocations.
6 years ago
Adriaan de Groot
fac9ccde88
libcalamaresui: document magic constants in question()
6 years ago
Adriaan de Groot
630694b242
libcalamaresui: apply coding style to viewmanager
6 years ago
Adriaan de Groot
d49ddf6463
libcalamaresui: factor out the pastebin functionality
...
- While called from the ViewManager (to post the debug log)
this isn't really part of the ViewManager itself, so factor
out the pasting code into its own file.
6 years ago
Adriaan de Groot
8f7d183a0c
libcalamaresui: don't always fail
...
- The paste-branch was merged too soon. Now undoing the damage.
6 years ago
Adriaan de Groot
edd2cc7244
Merge pull request #1186 from bill-auger/master
...
implement post log to paste server (needs some cleanup)
6 years ago
Adriaan de Groot
e2028cf85b
[libcalamaresui] Warnings--, no copy constructor for CDebug
6 years ago
bill-auger
c90d3b2016
squashme WIP upload log to paste server - more error checks and validations
6 years ago
bill-auger
e096631c54
squashme WIP upload log to paste server - refactor error checking
6 years ago
bill-auger
e7960474d4
implement post log to paste server
6 years ago