Adriaan de Groot
1efb12e332
libcalamares: rename CalamaresUtilsSystem and Gui
2023-09-11 20:40:10 +02:00
Adriaan de Groot
eb840d4117
libcalamares: ditch namespace CalamaresUtils
...
- Most CalamaresUtils things go to Calamares
- YAML support to Calamares::YAML and then remove redundant "yaml"
from the function names.
2023-09-11 20:34:01 +02:00
Adriaan de Groot
a9ef587705
libcalamares: use namespace Calamares::Network consistently
2023-09-10 22:32:49 +02:00
Adriaan de Groot
66682b3e84
Merge branch 'calamares' into work-3.3
2022-05-18 15:13:21 +02:00
Adriaan de Groot
874a0c1f38
CI: apply coding style globally again
2022-05-18 12:44:55 +02:00
Adriaan de Groot
7096ee760e
[libcalamaresui] Remove unused image-transformation function
2022-05-10 00:07:41 +02:00
Adriaan de Groot
880c367d64
[libcalamaresui] Remove under-used function
2022-05-10 00:07:41 +02:00
Adriaan de Groot
704e250664
[libcalamaresui] Remove under-used function
...
- there was one consumer of this function, and it was over-engineered
for what was needed (removing a list of widgets). Just drop it.
2022-05-10 00:07:41 +02:00
Adriaan de Groot
24a881ad75
Merge branch 'calamares' into work-3.3
2021-12-24 17:01:08 +01:00
Adriaan de Groot
0b6239a996
[libcalamaresui] Warnings-- : we know TCP ports are 16 bit
2021-12-07 14:28:55 +01:00
Adriaan de Groot
dc11dd2203
[libcalamaresui] Move ErrorDialog to the widgets/ part
2021-12-07 12:24:41 +01:00
Artem Grinev
d9f7726f7d
[libcalamaresui] Add SPDX-header for Error Dialog files
2021-12-06 02:41:17 +04:00
Artem Grinev
2f2a418cc4
[libcalamaresui] Run clang-format
2021-12-06 02:37:11 +04:00
Artem Grinev
2dd77ee828
[libcalamaresui] Initialize Error Dialog field
2021-12-06 02:31:05 +04:00
Artem Grinev
bfa7b9a792
[libcalamaresui] Use translation fix for Error Dialog
2021-12-06 02:27:18 +04:00
Artem Grinev
6bf0da7230
[libcalamaresui] Initial rework of error dialog
2021-12-05 04:50:13 +04:00
Adriaan de Groot
dde55471ba
Merge branch 'calamares' into work-3.3
2021-10-30 15:00:54 +02:00
Adriaan de Groot
329f21093b
[libcalamaresui] More careful in unmarginLayout
2021-10-04 00:27:03 +02:00
Adriaan de Groot
ca4dbabf70
Remove PythonQt support
...
Nothing beyond the example module was ever built with the
PythonQt bindings, as far as I can tell. They have been
deprecated, defaulting OFF for over two years now.
QML modules fill the gap with customizable, run-time
interpreted UI and stronger support from the C++ side
of Calamares.
2021-09-28 23:49:08 +02:00
Adriaan de Groot
1bd5628256
[libcalamaresui] Redundant call, not available in Qt 5.15 anyway
2021-09-16 12:04:50 +02:00
Adriaan de Groot
714605ebaa
[libcalamaresui] Missing header, needed in Qt 5.15
2021-09-16 12:04:29 +02:00
Adriaan de Groot
f49627f417
[libcalamaresui] Improve sizeLimit handling in log upload
...
The log sizeLimit can be 0 (disable log upload) but that's
not so clear in the code. While here, tidy up and add
some comments to surprising bits.
2021-09-15 13:30:06 +02:00
Adriaan de Groot
6e0a8d8ca1
[libcalamaresui] Translate button texts for paste-message
2021-09-08 11:15:12 +02:00
Anubhav Choudhary
5691f95833
[logUpload] Added one more test
2021-04-02 23:50:41 -06:00
Anubhav Choudhary
b897619558
[logUpload] Added some basic tests
2021-04-02 07:40:03 -06:00
Anubhav Choudhary
c73e9ec89f
[logUpload] Ran styleScript
2021-04-01 01:05:55 -06:00
Anubhav Choudhary
c1aa0b581e
[logUpload] suggestionsAndFixes-part3
...
- Resolved the problem of incomplete log upload
- sizeLimit = 0 fixed (turns off paste functionality)
- Documentation update
- sizeLimit < 0 now needs no hardcoded upper limit
- Calamares::Branding::uploadServerFromMap() serves sizeLimit in bytes
2021-04-01 00:25:37 -06:00
Anubhav Choudhary
b42f86f20f
[logUpload] suggestionsAndFixes-part2
2021-03-30 08:28:30 -06:00
Anubhav Choudhary
d109fc5856
[logUpload] suggestionsAndFixes
2021-03-30 08:13:29 -06:00
Anubhav Choudhary
6a6557e320
[logUpload] fixes
2021-03-29 13:22:56 -06:00
Anubhav Choudhary
6726a926a4
[logUpload] Configurable upload size limit
...
A key 'sizeLimit' added to uploadServer field in branding.desc to limit the size of logFile to upload.
2021-03-29 12:44:34 -06:00
Adriaan de Groot
779e5ecf8f
[libcalamaresui] Factor out the pastebin UI
...
- offer a convenience method for showing a popup and
URL information and copying the URL to the clipboard
- use that from ViewManager (on failure) and DebugWindow (on demand)
2021-03-19 14:17:34 +01:00
Adriaan de Groot
668921543a
[libcalamaresui] Convenience method to check if paste would do anything
2021-03-19 13:36:40 +01:00
Adriaan de Groot
1998405dbb
[libcalamaresui] Fix up test for logfile
...
- this test would fail if the logfile already exists for
any reason (including "I just ran the test")
- remove the file before expecting an empty logfile
- improve messages; a missing logfile is not a "things cannot
work" situation, it's a warning
2021-03-14 21:37:31 +01:00
Adriaan de Groot
9f17d3fd12
[libcalamaresui] Paste the last 16KiB of the log file
...
- If Calamares is run more than once, reading the log file
can get you older / not relevant log messages. Get the tail
end instead.
2021-03-09 18:25:10 +01:00
Adriaan de Groot
a1ed303820
[libcalamaresui] Add test for Paste
...
This tests only the termbin ("fiche") paste by sending it
a derpy fixed string. Prints the resulting URL, doesn't
verify in particular.
It'd be rude to run this test too often.
2021-03-09 17:55:10 +01:00
Adriaan de Groot
44ec8a7c0b
[libcalamaresui] Improve testability
...
- mark functions with STATICTEST so they can be compiled into a test
- move logfile-reading so we can call the pastebin-upload functions
with an arbitrary payload.
2021-03-09 17:22:48 +01:00
Adriaan de Groot
846d6abaa8
[libcalamaresui] Move message- and clipboard handling
...
- The Paste API promises just a (string) URL back, not
a whole message, so return just the URL from the
abstract API and the concrete (fiche) implementation.
- Set clipboard contents from the UI
- Build (translated) message in the UI code
2021-03-09 15:51:24 +01:00
Adriaan de Groot
81badc36f4
[libcalamaresui] Implement abstract doLogUpload() API
...
This is a "do the right thing" function, which then calls
the implementation-specific code for each type.
2021-03-09 15:42:21 +01:00
Adriaan de Groot
bce6f3f1b7
[libcalamaresui] Adjust paste code to desired API
...
Still doesn't compile because consumers are not ready.
2021-03-09 14:56:37 +01:00
Adriaan de Groot
3c6683bd98
[libcalamaresui] Rip out untyped data about upload server
...
This doesn't compile, but indicates the **type** information
desired about the (a) upload server.
2021-03-09 14:51:59 +01:00
Adriaan de Groot
f72436aa0a
[libcalamaresui] Drop RE-wrangling, compare hosts instead to detect valid paste URL
2021-03-09 14:41:58 +01:00
Adriaan de Groot
8af5fb5da5
[libcalamaresui] Simplify getting URL response
...
- get a QByteArray rather than going through a char[] buffer
- bytes-read is not important since the RE can only match if
there **are** that many characters.
2021-03-09 14:38:43 +01:00
Adriaan de Groot
1bf95eacb0
[libcalamaresui] Tidy the logging some more
2021-03-09 14:33:47 +01:00
Adriaan de Groot
260862fabc
[libcalamaresui] Move the format-string closer to where it is used
2021-03-09 14:31:46 +01:00
Adriaan de Groot
844831751d
[libcalamaresui] Factor out the reading of the log file
...
- this will be needed for other pastebins, too
2021-03-09 14:30:20 +01:00
Adriaan de Groot
bc2435eb7d
[libcalamaresui] Apply coding style
2021-03-09 14:23:52 +01:00
Adriaan de Groot
fc8830ae4a
[libcalamaresui] Tidy logging
2021-03-09 14:23:27 +01:00
Adriaan de Groot
849da3f322
[libcalamaresui] The ViewManager is a UI component for QML, not core
2021-03-03 15:54:11 +01:00
Anubhav Choudhary
9738851261
YAML list for uploadServer key
2021-02-15 20:51:41 +05:30