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