26 #define YUILogComponent "ui"
30 #include "YPushButton.h"
38 : wizardMode( wizardMode )
39 , nextButtonIsProtected(
false )
43 bool nextButtonIsProtected;
50 const string & backButtonLabel,
51 const string & abortButtonLabel,
52 const string & nextButtonLabel,
57 YUI_CHECK_NEW( priv );
78 return priv->wizardMode;
84 return priv->nextButtonIsProtected;
91 priv->nextButtonIsProtected = protect;
103 yuiError() <<
"NULL button" << endl;
110 yuiDebug() <<
"YWizard is active" << endl;
124 propSet.
add(
YProperty( YUIProperty_CurrentItem, YStringProperty,
true ) );
137 if ( propertyName == YUIProperty_CurrentItem )
return YPropertyValue( YOtherProperty );
Author: Stefan Hundhammer sh@suse.de
YWizardMode
Kind of the wizard layout.
Abstract base template class for children management, such as child widgets.
A set of properties to check names and types against.
void check(const std::string &propertyName) const
Check if a property 'propertyName' exists in this property set.
bool isEmpty() const
Returns 'true' if this property set does not contain anything.
void add(const YProperty &prop)
Add a property to this property set.
Transport class for the value of simple properties.
Class for widget properties.
YWizard(YWidget *parent, const std::string &backButtonLabel, const std::string &abortButtonLabel, const std::string &nextButtonLabel, YWizardMode wizardMode=YWizardMode_Standard)
Constructor.
void ping()
NOP command to check if a YWizard is running.
virtual YPropertyValue getProperty(const std::string &propertyName)
Get a property.
virtual void setButtonLabel(YPushButton *button, const std::string &newLabel)
Set the label of one of the wizard buttons (backButton(), abortButton(), nextButton() ) if that butto...
virtual ~YWizard()
Destructor.
YWizardMode wizardMode() const
Return the wizard mode (what kind of wizard this is): YWizardMode_Standard, YWizardMode_Steps,...
bool nextButtonIsProtected() const
Check if the wizard's "Next" button is currently protected against disabling.
virtual const YPropertySet & propertySet()
Return this class's property set.
void protectNextButton(bool protect)
Protect the wizard's "Next" button against disabling.