26 #define YUILogComponent "ui"
30 #include "YPushButton.h"
36 : wizardMode( wizardMode )
37 , nextButtonIsProtected(
false )
40 YWizardMode wizardMode;
41 bool nextButtonIsProtected;
48 const std::string & backButtonLabel,
49 const std::string & abortButtonLabel,
50 const std::string & nextButtonLabel,
51 YWizardMode wizardMode )
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 );
void check(const std::string &propertyName) const
bool nextButtonIsProtected() const
void add(const YProperty &prop)
YWizard(YWidget *parent, const std::string &backButtonLabel, const std::string &abortButtonLabel, const std::string &nextButtonLabel, YWizardMode wizardMode=YWizardMode_Standard)
virtual void setButtonLabel(YPushButton *button, const std::string &newLabel)
virtual const YPropertySet & propertySet()
YWizardMode wizardMode() const
void protectNextButton(bool protect)
virtual YPropertyValue getProperty(const std::string &propertyName)