106 Commits (ff66e4b3d5c38933dee8043c0259622ba8f98e05)

Author SHA1 Message Date
Anubhav Choudhary ff66e4b3d5 Redirecting logUpload vars to pasteUtility 4 years ago
Anubhav Choudhary a9539018e9 [fixed] backAndNextVisbility logic 4 years ago
Anubhav Choudhary e3a41571f0 Spacing added 4 years ago
Anubhav Choudhary 03d1fe434c Navigation button hideability added 4 years ago
Adriaan de Groot a2180936ef CI: apply coding style across the entire codebase again 5 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.
5 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
5 years ago
Adriaan de Groot d952faf909 [libcalamaresui] Set margins based on viewstep suggestion 5 years ago
Adriaan de Groot d7ed450dbf [libcalamaresui] Give ViewManager data about side-panels 5 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.
5 years ago
Adriaan de Groot 4a6ee39f8b [libcalamaresui] Blanket unmargin the content area 5 years ago
Adriaan de Groot dc1a4fab8e [libcalamaresui] Chase Branding API change 5 years ago
Adriaan de Groot ddde817abf [libcalamaresui] Apply coding style 5 years ago
Adriaan de Groot fabb351b77 [libcalamaresui] Give ViewManager widgets names for styling 5 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.
5 years ago
Adriaan de Groot af4220331e [libcalamaresui] Move lambda to a "real" slot. 5 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.
5 years ago
Adriaan de Groot 733801980c [libcalamaresui] Fix up icon name for back-button 5 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.
5 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)
5 years ago
Adriaan de Groot e2fee79957 [libcalamaresui] Set icon on back-button 5 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.
5 years ago
Adriaan de Groot c755c7ed98 [libcalamaresui] restore quit-at-very-end functionality
- This doesn't need to go indirectly through a button
5 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
5 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.
5 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
5 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
5 years ago
Adriaan de Groot 6c8aa5da63 [libcalamaresui] Remove commented-out code 5 years ago
Adriaan de Groot fff4caf0de [libcalamaresui] Apply coding style
- while here, update copyright
5 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.
5 years ago
Adriaan de Groot aad79f664e [libcalamaresui] Expose currentIndex also as model data 5 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.
5 years ago
Adriaan de Groot 1ec7251275 [libcalamares] Make isAtVeryEnd() internal 5 years ago
Adriaan de Groot 99c03f7fbb [libcalamaresui] Behave better as a model 5 years ago
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.
5 years ago
Adriaan de Groot 60c1d40b20 [libcalamaresui] Log which ViewStep is broken
- a ViewStep with no widget will crash the application;
   print out its name before doing so.
5 years ago
Adriaan de Groot 16a460adff [libcalamaresui] Move ExecutionViewStep where it belongs
- viewpages/ collects the ViewStep implementations
 - chase header moving and tidy some #includes
5 years ago
Adriaan de Groot c030cc41cd [libcalamaresui] Refactor button-creation
- The "convenience" method was no longer convenient, since
   we now place strings on the buttons by default.
 - While here, **name** the buttons so they can be themed.
6 years ago
Adriaan de Groot b78eacd7a8 [libcalamaresui] Set button texts always
- if the welcome module wasn't loaded (or loading otherwise failed)
   then no text was set, leading to confusing screens with
   buttons with icons but no label.
6 years ago
Andrius Štikonas 490c14d93d QLatin1Literal->QLatin1String. 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 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 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