Author: sh-sh-sh Date: Fri Apr 11 17:13:37 2008 New Revision: 46429 URL: http://svn.opensuse.org/viewcvs/yast?rev=46429&view=rev Log: don't make new methods mandatory Modified: trunk/libyui/src/YWizard.cc trunk/libyui/src/YWizard.h Modified: trunk/libyui/src/YWizard.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/libyui/src/YWizard.cc?rev=46429&a... ============================================================================== --- trunk/libyui/src/YWizard.cc (original) +++ trunk/libyui/src/YWizard.cc Fri Apr 11 17:13:37 2008 @@ -63,10 +63,7 @@ YWizard::~YWizard() { - YWizard * parentWizard = wizardParent(); - - if ( parentWizard ) - parentWizard->setInternalIdsEnabled( true ); + // NOP } Modified: trunk/libyui/src/YWizard.h URL: http://svn.opensuse.org/viewcvs/yast/trunk/libyui/src/YWizard.h?rev=46429&am... ============================================================================== --- trunk/libyui/src/YWizard.h (original) +++ trunk/libyui/src/YWizard.h Fri Apr 11 17:13:37 2008 @@ -179,17 +179,36 @@ **/ void setInternalIdsEnabled( bool enabled ); + // + // Sub-Wizard Docking + // + /** - * Return the next widget parent upwards in the hierarchy of this wizard - * or 0 if there is none. + * Dock a sub-wizard: Wizards in YWizardMode_Steps can "swallow" wizards + * in YWizardMode_Standard so they will obscure the content + buttons part + * of the "steps" wizard. The docked wizard must be created as the + * immediate child of the "steps" wizard. + * + * Return 'true' upon success, 'false' upon failure. + * + * This default implementation always returns 'false'. **/ - YWizard * wizardParent() const; + virtual bool dockSubWizard( YWizard * subWizard ) { return false; } /** - * Delete the last sub-wizard of this wizard, if there is one. - * Do nothing if there is none. + * Delete a sub-wizard. + * + * Return 'true' upon success, 'false' upon failure. + * + * This default implementation always returns 'false'. + **/ + virtual bool deleteSubWizard( YWizard * subWizard ) { return false; } + + /** + * Return the next widget parent upwards in the hierarchy of this wizard + * or 0 if there is none. **/ - virtual void deleteSubWizard() = 0; + YWizard * wizardParent() const; // -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org