Author: gs
Date: Thu Jul 3 11:35:12 2008
New Revision: 48802
URL: http://svn.opensuse.org/viewcvs/yast?rev=48802&view=rev
Log:
first create VBox as parent for WizardEmulation
Modified:
branches/tmp/jdsn/registration/src/RegWizard.cc
branches/tmp/jdsn/registration/src/WizardEmulation.cc
Modified: branches/tmp/jdsn/registration/src/RegWizard.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/jdsn/registration/src/RegWizard.cc?rev=48802&r1=48801&r2=48802&view=diff
==============================================================================
--- branches/tmp/jdsn/registration/src/RegWizard.cc (original)
+++ branches/tmp/jdsn/registration/src/RegWizard.cc Thu Jul 3 11:35:12 2008
@@ -12,6 +12,7 @@
#include
#include
#include
+#include
#include "RegWizard.h"
#include "RegWizardPage.h"
@@ -72,8 +73,11 @@
}
else
{
+ YLayoutBox* vbox = YUI::widgetFactory()->createVBox( dialog );
+ //YUI::widgetFactory()->createLabel( vbox , "*** YaST Test Heading ***" );
+
// Use wizard emulation as fallback
- regWizard()->_wizard = new WizardEmulation( dialog,
+ regWizard()->_wizard = new WizardEmulation( vbox,
_( "&Back" ),
_( "&Abort" ),
_( "&Next" ) );
Modified: branches/tmp/jdsn/registration/src/WizardEmulation.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/jdsn/registration/src/WizardEmulation.cc?rev=48802&r1=48801&r2=48802&view=diff
==============================================================================
--- branches/tmp/jdsn/registration/src/WizardEmulation.cc (original)
+++ branches/tmp/jdsn/registration/src/WizardEmulation.cc Thu Jul 3 11:35:12 2008
@@ -59,8 +59,6 @@
{
yuiMilestone() << "Creating widgets" << endl;
- YLayoutBox* vbox = YUI::widgetFactory()->createVBox( this );
-
_contents = 0;
_backButton = 0;
_abortButton = 0;
@@ -68,6 +66,10 @@
_sendButtonEvents = true;
_contentsReplacePoint = 0;
+ YLayoutBox* vbox = YUI::widgetFactory()->createVBox( dialog );
+
+ _dialogHeading = YUI::widgetFactory()->createLabel( vbox , "YaST Initialising" );
+
_contentsReplacePoint = YUI::widgetFactory()->createReplacePoint( vbox );
layoutButtonBox( vbox );
@@ -81,7 +83,7 @@
_contentsReplacePoint->showChild();
YDialog::currentDialog()->dumpWidgetTree();
-
+
}
@@ -165,6 +167,7 @@
else
_dialogHeading->setText( "" );
}
+
}
string WizardEmulation::debugLabel() const
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org