|
coastline 0.0.4
|
Manage setup screens, their controls and focus, the file browser, and the import. More...
#include <setupwizard.h>
Public Member Functions | |
| SetupWizard (WizardServices services) | |
| Create the initial setup screen without importing assets. | |
| ~SetupWizard () | |
| Cancel active search or import work and wait for the worker thread. | |
| SetupWizard (const SetupWizard &)=delete | |
| Prevent copying active search and import threads. | |
| SetupWizard & | operator= (const SetupWizard &)=delete |
| Prevent assignment of active search and import threads. | |
| void | Handle (const WizardEvent &event) |
| Act on an event of the keyboard or the mouse. | |
| void | Update () |
| Take the progress of the import, and move to the next screen when it ends. | |
| void | Draw (TextGrid &grid, double seconds) const |
| Draw the wizard. | |
| WizardScreen | Screen () const |
| bool | Checking () const |
| WizardEnd | End () const |
| bool | Portable () const |
| std::vector< WizardControl > | Controls () const |
| std::optional< WizardControlId > | Focus () const |
| bool | BrowserOpen () const |
| const std::vector< BrowserEntry > & | BrowserEntries () const |
| int | BrowserSelection () const |
| std::vector< std::string > | MessageLines () const |
| std::string | Text (WizardControlId id) const |
| std::string | Reason (WizardControlId id) const |
| std::string | SelectedText () const |
| const WizardSearchResult & | SearchResult () const |
| const std::filesystem::path & | LastDirectory () const |
Manage setup screens, their controls and focus, the file browser, and the import.
|
explicit |
Create the initial setup screen without importing assets.
| services | The checks and the import of the files. |
| coastline::SetupWizard::~SetupWizard | ( | ) |
Cancel active search or import work and wait for the worker thread.
|
delete |
Prevent copying active search and import threads.
|
delete |
Prevent assignment of active search and import threads.
| void coastline::SetupWizard::Handle | ( | const WizardEvent & | event | ) |
Act on an event of the keyboard or the mouse.
| event | The event. |
| void coastline::SetupWizard::Update | ( | ) |
Take the progress of the import, and move to the next screen when it ends.
| void coastline::SetupWizard::Draw | ( | TextGrid & | grid, |
| double | seconds ) const |
Draw the wizard.
| grid | The grid, every cell of which is written. |
| seconds | The time, for the blink of the text cursor. |
| WizardScreen coastline::SetupWizard::Screen | ( | ) | const |
| bool coastline::SetupWizard::Checking | ( | ) | const |
| WizardEnd coastline::SetupWizard::End | ( | ) | const |
| bool coastline::SetupWizard::Portable | ( | ) | const |
| std::vector< WizardControl > coastline::SetupWizard::Controls | ( | ) | const |
| std::optional< WizardControlId > coastline::SetupWizard::Focus | ( | ) | const |
| bool coastline::SetupWizard::BrowserOpen | ( | ) | const |
| const std::vector< BrowserEntry > & coastline::SetupWizard::BrowserEntries | ( | ) | const |
| int coastline::SetupWizard::BrowserSelection | ( | ) | const |
| std::vector< std::string > coastline::SetupWizard::MessageLines | ( | ) | const |
| std::string coastline::SetupWizard::Text | ( | WizardControlId | id | ) | const |
| id | A text box. |
| std::string coastline::SetupWizard::Reason | ( | WizardControlId | id | ) | const |
| id | A text box. |
| std::string coastline::SetupWizard::SelectedText | ( | ) | const |
| const WizardSearchResult & coastline::SetupWizard::SearchResult | ( | ) | const |
| const std::filesystem::path & coastline::SetupWizard::LastDirectory | ( | ) | const |