Merge branch 'remove-signal-done'
This commit is contained in:
commit
633e2a87aa
@ -52,6 +52,14 @@ void
|
||||
ViewStep::onLeave()
|
||||
{}
|
||||
|
||||
void
|
||||
ViewStep::next()
|
||||
{}
|
||||
|
||||
void
|
||||
ViewStep::back()
|
||||
{}
|
||||
|
||||
|
||||
void
|
||||
ViewStep::setModuleInstanceKey( const QString& instanceKey )
|
||||
|
@ -68,13 +68,39 @@ public:
|
||||
//TODO: we might want to make this a QSharedPointer
|
||||
virtual QWidget* widget() = 0;
|
||||
|
||||
virtual void next() = 0;
|
||||
virtual void back() = 0;
|
||||
/**
|
||||
* @brief Multi-page support, go next
|
||||
*
|
||||
* Multi-page view steps need to manage the content visible in the widget
|
||||
* themselves. This method is called when the user clicks the *next*
|
||||
* button, and should switch to the next of the multiple-pages. It needs
|
||||
* to be consistent with both isNextEnabled() and isAtEnd().
|
||||
*
|
||||
* In particular: when isAtEnd() returns false, next() is called when
|
||||
* the user clicks the button and a new page should be shown by this
|
||||
* view step. When isAtEnd() returns true, clicking the button will
|
||||
* switch to the next view step in sequence, rather than a next page
|
||||
* in the current view step.
|
||||
*/
|
||||
virtual void next();
|
||||
/// @brief Multi-page support, go back
|
||||
virtual void back();
|
||||
|
||||
/// @brief Can the user click *next* with currently-filled-in data?
|
||||
virtual bool isNextEnabled() const = 0;
|
||||
/// @brief Can the user click *previous* with currently-filled-in data?
|
||||
virtual bool isBackEnabled() const = 0;
|
||||
|
||||
/**
|
||||
* @brief Multi-page support, switch to previous view step?
|
||||
*
|
||||
* For a multi-page view step, this indicates that the first (beginning)
|
||||
* page is showing. Clicking *previous* when at the beginning of a view
|
||||
* step, switches to the previous step, not the previous page of the
|
||||
* current view step.
|
||||
*/
|
||||
virtual bool isAtBeginning() const = 0;
|
||||
/// @brief Multi-page support, switch to next view step?
|
||||
virtual bool isAtEnd() const = 0;
|
||||
|
||||
/**
|
||||
@ -103,7 +129,6 @@ public:
|
||||
|
||||
signals:
|
||||
void nextStatusChanged( bool status );
|
||||
void done();
|
||||
|
||||
/* Emitted when the viewstep thinks it needs more space than is currently
|
||||
* available for display. @p enlarge is the requested additional space,
|
||||
|
@ -67,18 +67,6 @@ FinishedViewStep::widget()
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
FinishedViewStep::next()
|
||||
{
|
||||
emit done();
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
FinishedViewStep::back()
|
||||
{}
|
||||
|
||||
|
||||
bool
|
||||
FinishedViewStep::isNextEnabled() const
|
||||
{
|
||||
|
@ -40,9 +40,6 @@ public:
|
||||
|
||||
QWidget* widget() override;
|
||||
|
||||
void next() override;
|
||||
void back() override;
|
||||
|
||||
bool isNextEnabled() const override;
|
||||
bool isBackEnabled() const override;
|
||||
|
||||
|
@ -53,18 +53,6 @@ InteractiveTerminalViewStep::widget()
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
InteractiveTerminalViewStep::next()
|
||||
{
|
||||
emit done();
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
InteractiveTerminalViewStep::back()
|
||||
{}
|
||||
|
||||
|
||||
bool
|
||||
InteractiveTerminalViewStep::isNextEnabled() const
|
||||
{
|
||||
|
@ -41,9 +41,6 @@ public:
|
||||
|
||||
QWidget* widget() override;
|
||||
|
||||
void next() override;
|
||||
void back() override;
|
||||
|
||||
bool isNextEnabled() const override;
|
||||
bool isBackEnabled() const override;
|
||||
|
||||
|
@ -65,19 +65,6 @@ KeyboardViewStep::widget()
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
KeyboardViewStep::next()
|
||||
{
|
||||
//TODO: actually save those settings somewhere
|
||||
emit done();
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
KeyboardViewStep::back()
|
||||
{}
|
||||
|
||||
|
||||
bool
|
||||
KeyboardViewStep::isNextEnabled() const
|
||||
{
|
||||
|
@ -42,9 +42,6 @@ public:
|
||||
|
||||
QWidget* widget() override;
|
||||
|
||||
void next() override;
|
||||
void back() override;
|
||||
|
||||
bool isNextEnabled() const override;
|
||||
bool isBackEnabled() const override;
|
||||
|
||||
|
@ -59,18 +59,6 @@ LicenseViewStep::widget()
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
LicenseViewStep::next()
|
||||
{
|
||||
emit done();
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
LicenseViewStep::back()
|
||||
{}
|
||||
|
||||
|
||||
bool
|
||||
LicenseViewStep::isNextEnabled() const
|
||||
{
|
||||
|
@ -42,9 +42,6 @@ public:
|
||||
|
||||
QWidget* widget() override;
|
||||
|
||||
void next() override;
|
||||
void back() override;
|
||||
|
||||
bool isNextEnabled() const override;
|
||||
bool isBackEnabled() const override;
|
||||
|
||||
|
@ -190,18 +190,6 @@ LocaleViewStep::widget()
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
LocaleViewStep::next()
|
||||
{
|
||||
emit done();
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
LocaleViewStep::back()
|
||||
{}
|
||||
|
||||
|
||||
bool
|
||||
LocaleViewStep::isNextEnabled() const
|
||||
{
|
||||
|
@ -45,9 +45,6 @@ public:
|
||||
|
||||
QWidget* widget() override;
|
||||
|
||||
void next() override;
|
||||
void back() override;
|
||||
|
||||
bool isNextEnabled() const override;
|
||||
bool isBackEnabled() const override;
|
||||
|
||||
|
@ -69,18 +69,6 @@ NetInstallViewStep::widget()
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
NetInstallViewStep::next()
|
||||
{
|
||||
emit done();
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
NetInstallViewStep::back()
|
||||
{}
|
||||
|
||||
|
||||
bool
|
||||
NetInstallViewStep::isNextEnabled() const
|
||||
{
|
||||
|
@ -42,9 +42,6 @@ public:
|
||||
|
||||
QWidget* widget() override;
|
||||
|
||||
void next() override;
|
||||
void back() override;
|
||||
|
||||
bool isNextEnabled() const override;
|
||||
bool isBackEnabled() const override;
|
||||
|
||||
|
@ -292,25 +292,8 @@ PartitionViewStep::next()
|
||||
if ( m_core->isDirty() )
|
||||
m_manualPartitionPage->onRevertClicked();
|
||||
}
|
||||
else if ( m_choicePage->currentChoice() == ChoicePage::Erase )
|
||||
{
|
||||
emit done();
|
||||
return;
|
||||
}
|
||||
else if ( m_choicePage->currentChoice() == ChoicePage::Alongside )
|
||||
{
|
||||
emit done();
|
||||
return;
|
||||
}
|
||||
else if ( m_choicePage->currentChoice() == ChoicePage::Replace )
|
||||
{
|
||||
emit done();
|
||||
return;
|
||||
}
|
||||
cDebug() << "Choice applied: " << m_choicePage->currentChoice();
|
||||
return;
|
||||
}
|
||||
emit done();
|
||||
}
|
||||
|
||||
|
||||
|
@ -76,18 +76,6 @@ PlasmaLnfViewStep::widget()
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
PlasmaLnfViewStep::next()
|
||||
{
|
||||
emit done();
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
PlasmaLnfViewStep::back()
|
||||
{}
|
||||
|
||||
|
||||
bool
|
||||
PlasmaLnfViewStep::isNextEnabled() const
|
||||
{
|
||||
|
@ -41,9 +41,6 @@ public:
|
||||
|
||||
QWidget* widget() override;
|
||||
|
||||
void next() override;
|
||||
void back() override;
|
||||
|
||||
bool isNextEnabled() const override;
|
||||
bool isBackEnabled() const override;
|
||||
|
||||
|
@ -51,18 +51,6 @@ SummaryViewStep::widget()
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
SummaryViewStep::next()
|
||||
{
|
||||
emit done();
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
SummaryViewStep::back()
|
||||
{}
|
||||
|
||||
|
||||
bool
|
||||
SummaryViewStep::isNextEnabled() const
|
||||
{
|
||||
|
@ -40,9 +40,6 @@ public:
|
||||
|
||||
QWidget* widget() override;
|
||||
|
||||
void next() override;
|
||||
void back() override;
|
||||
|
||||
bool isNextEnabled() const override;
|
||||
bool isBackEnabled() const override;
|
||||
|
||||
|
@ -67,18 +67,6 @@ TrackingViewStep::widget()
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
TrackingViewStep::next()
|
||||
{
|
||||
emit done();
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
TrackingViewStep::back()
|
||||
{}
|
||||
|
||||
|
||||
bool
|
||||
TrackingViewStep::isNextEnabled() const
|
||||
{
|
||||
|
@ -43,9 +43,6 @@ public:
|
||||
|
||||
QWidget* widget() override;
|
||||
|
||||
void next() override;
|
||||
void back() override;
|
||||
|
||||
bool isNextEnabled() const override;
|
||||
bool isBackEnabled() const override;
|
||||
|
||||
|
@ -61,18 +61,6 @@ UsersViewStep::widget()
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
UsersViewStep::next()
|
||||
{
|
||||
emit done();
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
UsersViewStep::back()
|
||||
{}
|
||||
|
||||
|
||||
bool
|
||||
UsersViewStep::isNextEnabled() const
|
||||
{
|
||||
|
@ -43,9 +43,6 @@ public:
|
||||
|
||||
QWidget* widget() override;
|
||||
|
||||
void next() override;
|
||||
void back() override;
|
||||
|
||||
bool isNextEnabled() const override;
|
||||
bool isBackEnabled() const override;
|
||||
|
||||
|
@ -72,18 +72,6 @@ WebViewStep::widget()
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
WebViewStep::next()
|
||||
{
|
||||
emit done();
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
WebViewStep::back()
|
||||
{}
|
||||
|
||||
|
||||
bool
|
||||
WebViewStep::isNextEnabled() const
|
||||
{
|
||||
|
@ -50,8 +50,6 @@ public:
|
||||
|
||||
QWidget* widget() override;
|
||||
|
||||
void next() override;
|
||||
void back() override;
|
||||
void onActivate() override;
|
||||
|
||||
bool isNextEnabled() const override;
|
||||
|
@ -60,18 +60,6 @@ WelcomeViewStep::widget()
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
WelcomeViewStep::next()
|
||||
{
|
||||
emit done();
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
WelcomeViewStep::back()
|
||||
{}
|
||||
|
||||
|
||||
bool
|
||||
WelcomeViewStep::isNextEnabled() const
|
||||
{
|
||||
|
@ -43,9 +43,6 @@ public:
|
||||
|
||||
QWidget* widget() override;
|
||||
|
||||
void next() override;
|
||||
void back() override;
|
||||
|
||||
bool isNextEnabled() const override;
|
||||
bool isBackEnabled() const override;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user