Author: coolo Date: Fri Apr 11 13:54:29 2008 New Revision: 46399 URL: http://svn.opensuse.org/viewcvs/yast?rev=46399&view=rev Log: it does not work, but Huha wanted to pick up Modified: trunk/qt/src/YQWizard.cc trunk/qt/src/YQWizard.h Modified: trunk/qt/src/YQWizard.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt/src/YQWizard.cc?rev=46399&... ============================================================================== --- trunk/qt/src/YQWizard.cc (original) +++ trunk/qt/src/YQWizard.cc Fri Apr 11 13:54:29 2008 @@ -604,7 +604,9 @@ QWidget *YQWizard::layoutWorkArea( QWidget * parent ) { - QFrame *workArea = new QFrame( parent ); + _workingDock = new QStackedWidget( parent ); + + QFrame *workArea = new QFrame( _workingDock ); workArea->setObjectName( "work_area" ); QY2Styler::self()->registerChildWidget( this, workArea ); @@ -1148,20 +1150,26 @@ YWidget::addChild( child ); YWizard * yWizard = dynamic_cast<YWizard *> (child); + yuiMilestone() << "addChild " << child << " " << yWizard << endl; if ( yWizard ) { yuiMilestone() << "Docking sub-wizard " << child << " to " << this << endl; YQWizard * yqWizard = (YQWizard *) yWizard->widgetRep(); + static_cast<QWidget*>( yqWizard )->setParent( static_cast<QWidget*>( _workingDock ) ); + int index = _workingDock->addWidget( yqWizard ); + yuiMilestone() << "Index " << index << endl; + _workingDock->setCurrentWidget( yqWizard ); + // FIXME // FIXME // FIXME - + // Dock sub-wizard - reparent yqWizard to widget stack // Important: Don't mess with the child's YWidget::parent(). // This will still remain this wizard. // Call only yqWizard->reparent(). - + // FIXME // FIXME // FIXME @@ -1172,7 +1180,7 @@ void YQWizard::deleteSubWizard() { YWizard * subWizard = 0; - + for ( YWidgetListConstReverseIterator it = childrenManager()->rbegin(); it != childrenManager()->rend() && ! subWizard; ++it ) Modified: trunk/qt/src/YQWizard.h URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt/src/YQWizard.h?rev=46399&r... ============================================================================== --- trunk/qt/src/YQWizard.h (original) +++ trunk/qt/src/YQWizard.h Fri Apr 11 13:54:29 2008 @@ -106,12 +106,12 @@ /** * Set the label of one of the wizard buttons (backButton(), abortButton(), - * nextButton() ) if that button is non-null. + * nextButton() ) if that button is non-null. * * Implemented from YWizard. **/ virtual void setButtonLabel( YPushButton * button, const string & newLabel ); - + /** * Set the help text. * @@ -522,7 +522,7 @@ string _backButtonLabel; string _abortButtonLabel; string _nextButtonLabel; - + bool _stepsEnabled; bool _stepsRegistered; bool _treeEnabled; @@ -545,6 +545,7 @@ QFrame * _treePanel; QY2ListView * _tree; + QStackedWidget * _workingDock; QWidget * _clientArea; QMenuBar * _menuBar; QLabel * _dialogIcon; @@ -600,7 +601,7 @@ void setStatusLabel( QLabel * label ) { _statusLabel = label; } void setNameLabel ( QLabel * label ) { _nameLabel = label; } void setEnabled( bool enabled ) { _enabled = enabled; } - + void deleteLabels(); /** @@ -662,7 +663,7 @@ , _id( id ) {} - virtual QString text(int index) const { return QTreeWidgetItem::text(index); } + virtual QString text(int index) const { return QTreeWidgetItem::text(index); } QString text() const { return QTreeWidgetItem::text(0); } QString id() const { return _id; } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org