124 Commits (4299ea1d4f3785031e83ca2e7f5e570442fb9de5)

Author SHA1 Message Date
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)
5 years ago
Adriaan de Groot 9341a84820 [libcalamares] Make the RETRANSLATE macros more statement-line
Require a ; after RETRANSLATE macros. They are statement-like;
this makes it easier for some of them to be recognized by
clang-format and resolves some existing weird formatting.
5 years ago
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
5 years ago
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.
5 years ago
Adriaan de Groot 1ff854f05d [libcalamaresui] Push upload to a more abstract API
- have a namespace Paste with just one entry point, which will handle
  untangling type &c.

This doesn't compile, but indicates the direction to take the API
5 years ago
Adriaan de Groot 92e36558fa [libcalamaresui] Remove unnecessary shadowing in lambda 5 years ago
Adriaan de Groot 6a1e46d7f6 [libcalamaresui] Add properties to ViewManager to expose Settings 5 years ago
Adriaan de Groot c3860849c1 [libcalamaresui] Notify step number when modules are all loaded
- using the QML sidebar would not highlight the first step on startup,
  only after next / prev would the highlight show up. Now, notify
  when all the modules are loaded (and number 0 is active).
5 years ago
Adriaan de Groot cc3017be53
Merge pull request #1619 from deprov447/Upload_Install_Log
[libcalamaresui] Implementing LogUpload functionality from branding
6 years ago
Anubhav Choudhary 9738851261 YAML list for uploadServer key 6 years ago
Anubhav Choudhary 7057081bdf QUrl for serverURL + renames 6 years ago
Adriaan de Groot f3752e200a [libcalamaresui] Display first 6, last 2 lines of long error messages, preserve newlines 6 years ago
Adriaan de Groot b85e5b52c2 [libcalamaresui] Apply coding style
- Some minor bits snuck in with the string-truncation code
- While here, make UPDATE_BUTTON_PROPERTY more statement-like
  so it doesn't confuse code-formatters.
6 years ago
Adriaan de Groot 8cc114bf2c [libcalamares] Move smart-string-truncation to library
Expand the API a little to support first-lines, last-lines,
and something of both. Use strong types to make the names
clear for each.
6 years ago
Adriaan de Groot 4f78afe67e [libcalamaresui] Display a reduced amount of details
Cut the error message from down to a maximum of 8 lines
so that the messagebox does not hopelessly overflow.
6 years ago
Adriaan de Groot f0fd47eeb3 [libcalamares] Simplify logging-manipulators
Writing `Logger::NoQuote{}`` has annoyed me for a while, so
switch it to a constant, like SubEntry, so it looks more
like a regular manipulator object.
6 years ago
Anubhav Choudhary b4078f3634 Changed branding keynames + minor fixes 6 years ago
Anubhav Choudhary a2c930a714 Code-formatted and Copyright-text added 6 years ago
Anubhav Choudhary ff66e4b3d5 Redirecting logUpload vars to pasteUtility 6 years ago
Anubhav Choudhary a9539018e9 [fixed] backAndNextVisbility logic 6 years ago
Anubhav Choudhary e3a41571f0 Spacing added 6 years ago
Anubhav Choudhary 03d1fe434c Navigation button hideability added 6 years ago
Adriaan de Groot a2180936ef CI: apply coding style across the entire codebase again 6 years ago
Adriaan de Groot 1cd9b93a22 REUSE: Giant boilerplate cleanup
- point to main Calamares site in the 'part of' headers instead
  of to github (this is the "this file is part of Calamares"
  opening line for most files).
- remove boilerplate from all source files, CMake modules and completions,
  this is the 3-paragraph summary of the GPL-3.0-or-later, which has
  a meaning entirely covered by the SPDX tag.
6 years ago
Adriaan de Groot 3480988f53 REUSE: SPDX tagging of application library and main
- CC0-1.0 for the uninteresting version-headers
- GPL-3.0-or-later for the services

- add SPDX identifiers to Calamares C++ libraries and application sources
- add SPDX identifiers to Calamares QML (panels and slideshow)
- the `qmldir` is a list of names of things in the directory,
  so CC0-1.0 it as "uninteresting"
- QRC files are lists of names of things in the directory,
  so CC0-1.0 them as well
6 years ago
Adriaan de Groot d952faf909 [libcalamaresui] Set margins based on viewstep suggestion 6 years ago
Adriaan de Groot d7ed450dbf [libcalamaresui] Give ViewManager data about side-panels 6 years ago
Adriaan de Groot 347a25d13d [libcalamaresui] Avoid nullptr deref
- there's a check already there, and probably this means things are hopelessly
  broken anyway, but let's not crash here.
6 years ago
Adriaan de Groot 4a6ee39f8b [libcalamaresui] Blanket unmargin the content area 6 years ago
Adriaan de Groot dc1a4fab8e [libcalamaresui] Chase Branding API change 6 years ago
Adriaan de Groot ddde817abf [libcalamaresui] Apply coding style 6 years ago
Adriaan de Groot fabb351b77 [libcalamaresui] Give ViewManager widgets names for styling 6 years ago
Adriaan de Groot e804ad2488 [libcalamaresui] Rename enlarge()
- rename enlarge to ensureSize() and change the meaning from
  "make this much bigger" to "make sure this is displayed",
  which is easier on the caller to calculate.
6 years ago
Adriaan de Groot af4220331e [libcalamaresui] Move lambda to a "real" slot. 6 years ago
Adriaan de Groot 7393198f7b [libcalamaresui] Tell the manager explicitly when loading is done
- Add some extra checks for validity of m_currentStep (an index)
- Start off with explicitly invalid index, and keep it so until
  loading is complete; this prevents the situation where quit-at-end
  gets triggered after loading the very first module.
6 years ago
Adriaan de Groot 733801980c [libcalamaresui] Fix up icon name for back-button 6 years ago
Adriaan de Groot 10dd32edd2 [libcalamaresui] Fix isAtVeryEnd()
- With an empty list, the question is meaningless
- .. and we called this with an empty list while constructing the
  ViewManager; if quit-at-end is true, then this would terminate
  Calamares immediately because the list was at the end.
6 years ago
Adriaan de Groot 081f5ec4d9 [libcalamaresui] Remove unused static methods
- The UI bits that needed these button-setup functions have
  moved to CalamaresWindow (with copies of those functions)
6 years ago
Adriaan de Groot e2fee79957 [libcalamaresui] Set icon on back-button 6 years ago
Adriaan de Groot 476a576dda [libcalamaresui] Ensure all button labels are accurate
- since lots of state is updated when the labels change, call that
  in the constructor so that any QML bindings get current values.
6 years ago
Adriaan de Groot c755c7ed98 [libcalamaresui] restore quit-at-very-end functionality
- This doesn't need to go indirectly through a button
6 years ago
Adriaan de Groot 91d0ba1007 [libcalamaresui] Remove *quit* button from ViewManager
- Mostly like the other buttons
- Also show/hide the button and set tooltip
6 years ago
Adriaan de Groot 38deb66e42 [libcalamaresui] Remove *back* button from ViewManager
- Now the back button should be done by clients as well
- Refactor in CalamaresWindow to avoid leaking local button pointers
  to surrounding code.
- Add macro UPDATE_BUTTON_PROPERTY for convenience in ViewManager
  (ugh, macro) to change a value and emit corresponding update signal.
6 years ago
Adriaan de Groot 8920be6bca [libcalamaresui] Remove *next* button from ViewManager
- add properties for the next button (enabled, label, icon...)
- update those properties as normal
- connect to the properties in the UI implementation
6 years ago
Adriaan de Groot c638343c18 [libcalamares] Give ViewManager a real quit() slot
- instead of creating a lambda, give ViewManager a real slot
- hook up the new navigation buttons to the next, back, quit slots
6 years ago
Adriaan de Groot 6c8aa5da63 [libcalamaresui] Remove commented-out code 6 years ago
Adriaan de Groot fff4caf0de [libcalamaresui] Apply coding style
- while here, update copyright
6 years ago
Adriaan de Groot 3d7e5bc90d [libcalamaresui] Expose just currentIndex
- drop the current and completed roles, and expose only
  the currentIndex. QML can use the QObject property on
  the model, while QWidgets can call internally through
  the model's data() function.
- we don't need to provide role names for this, so drop that bit.
- simplify the delegate code while here.
6 years ago
Adriaan de Groot aad79f664e [libcalamaresui] Expose currentIndex also as model data 6 years ago
Adriaan de Groot 1de2a4ff14 [libcalamares] Introduce quit-at-end
- In some cases, it makes sense to close Calamares automatically
  when it is done. Set *quit-at-end* to do so -- although this
  probably also means you should remove the *finished* page.
6 years ago