[libcalamaresui] Move requirements information out of welcome module.

- Move type and rename it; put in Calamares namespace
 - Emit signals from the viewmanager as results come in
 - Remove state changing from welcome view step based on its internal
   requirements checking (for now this breaks progressing past the
   welcome page)
 - Log checking of the requirements
This commit is contained in:
Adriaan de Groot 2017-11-30 12:42:59 -05:00
parent 24e04645b6
commit 27b921bde1
12 changed files with 106 additions and 37 deletions

View file

@ -53,12 +53,12 @@ CheckerWidget::CheckerWidget( QWidget* parent )
void
CheckerWidget::init( const QList< PrepareEntry >& checkEntries )
CheckerWidget::init( const Calamares::RequirementsList& checkEntries )
{
bool allChecked = true;
bool requirementsSatisfied = true;
for ( const PrepareEntry& entry : checkEntries )
for ( const auto& entry : checkEntries )
{
if ( !entry.checked )
{
@ -162,7 +162,7 @@ CheckerWidget::init( const QList< PrepareEntry >& checkEntries )
void
CheckerWidget::showDetailsDialog( const QList< PrepareEntry >& checkEntries )
CheckerWidget::showDetailsDialog( const Calamares::RequirementsList& checkEntries )
{
QDialog* detailsDialog = new QDialog( this );
QBoxLayout* mainLayout = new QVBoxLayout;
@ -177,7 +177,7 @@ CheckerWidget::showDetailsDialog( const QList< PrepareEntry >& checkEntries )
CalamaresUtils::unmarginLayout( entriesLayout );
mainLayout->addLayout( entriesLayout );
for ( const PrepareEntry& entry : checkEntries )
for ( const auto& entry : checkEntries )
{
if ( entry.enumerationText().isEmpty() )
continue;