QtPass 2.0.0
Developer documentation
Loading...
Searching...
No Matches
ProgramsWizardPage Class Reference

Where gpg, pass and git are; gpg is required, the rest optional. A stored path that no longer runs is replaced by what PATH has. More...

#include <firstrunwizard.h>

Inheritance diagram for ProgramsWizardPage:
Collaboration diagram for ProgramsWizardPage:

Public Member Functions

 ProgramsWizardPage (FirstRunWizard *wizard)
 Build the page.
void initializePage () override
 Fill the fields from the settings (autodetection already ran).
auto isComplete () const -> bool override
 Whether the gpg path points at something that can run.
auto validatePage () -> bool override
 Store the paths and the pass/Git choices in the settings.

Private Member Functions

void updateStatus ()
 After an edit: say under the gpg field when it is missing or not executable, allow "use pass" only for a runnable pass (unticking it otherwise), and re-evaluate isComplete().

Private Attributes

FirstRunWizard * m_wizard
 Owner; its settings are what the page edits.
QLineEdit * m_gpg
 The gpg executable; required.
QLineEdit * m_git
 The git executable; optional.
QLineEdit * m_pass
 The pass executable; optional.
QCheckBox * m_usePass
 Run pass instead of gpg/git; needs m_pass.
QLabel * m_gpgStatus
 Under the gpg field: why it cannot be used.

Detailed Description

Where gpg, pass and git are; gpg is required, the rest optional. A stored path that no longer runs is replaced by what PATH has.

Definition at line 118 of file firstrunwizard.h.

Constructor & Destructor Documentation

◆ ProgramsWizardPage()

ProgramsWizardPage::ProgramsWizardPage ( FirstRunWizard * wizard)
explicit

Build the page.

Parameters
wizardOwner.

Definition at line 204 of file firstrunwizard.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ initializePage()

void ProgramsWizardPage::initializePage ( )
override

Fill the fields from the settings (autodetection already ran).

Definition at line 231 of file firstrunwizard.cpp.

Here is the call graph for this function:

◆ isComplete()

auto ProgramsWizardPage::isComplete ( ) const -> bool
override

Whether the gpg path points at something that can run.

Returns
true when gpg exists (or is a wsl command).

Definition at line 276 of file firstrunwizard.cpp.

◆ updateStatus()

void ProgramsWizardPage::updateStatus ( )
private

After an edit: say under the gpg field when it is missing or not executable, allow "use pass" only for a runnable pass (unticking it otherwise), and re-evaluate isComplete().

Definition at line 259 of file firstrunwizard.cpp.

Here is the caller graph for this function:

◆ validatePage()

auto ProgramsWizardPage::validatePage ( ) -> bool
override

Store the paths and the pass/Git choices in the settings.

Returns
Always true; isComplete() gates Next.

Definition at line 280 of file firstrunwizard.cpp.

Member Data Documentation

◆ m_git

QLineEdit* ProgramsWizardPage::m_git
private

The git executable; optional.

Definition at line 145 of file firstrunwizard.h.

◆ m_gpg

QLineEdit* ProgramsWizardPage::m_gpg
private

The gpg executable; required.

Definition at line 144 of file firstrunwizard.h.

◆ m_gpgStatus

QLabel* ProgramsWizardPage::m_gpgStatus
private

Under the gpg field: why it cannot be used.

Definition at line 148 of file firstrunwizard.h.

◆ m_pass

QLineEdit* ProgramsWizardPage::m_pass
private

The pass executable; optional.

Definition at line 146 of file firstrunwizard.h.

◆ m_usePass

QCheckBox* ProgramsWizardPage::m_usePass
private

Run pass instead of gpg/git; needs m_pass.

Definition at line 147 of file firstrunwizard.h.

◆ m_wizard

FirstRunWizard* ProgramsWizardPage::m_wizard
private

Owner; its settings are what the page edits.

Definition at line 143 of file firstrunwizard.h.


The documentation for this class was generated from the following files: