// Author : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com)
// Project : SALOME
// Module : Installation Wizard
-// Copyright : 2002-2007 CEA
+// Copyright : 2002-2012 CEA
#include "globals.h"
// ================================================================
void StructureParser::getConfigInfo(const QDomElement &theElem)
{
- QString myVersion, myCaption, myCopyright, myLicense, myPlatforms;
+ QString myVersion, myCaption, myCopyright, myLicense, myPlatforms, myOptLibs;
if ( theElem.attribute( "version" ) ) {
myVersion = theElem.attribute( "version" ).stripWhiteSpace();
if ( myWizard && !myVersion.isEmpty() )
if ( myTempDir )
myTempDir->setText( substituteVars( theElem.attribute( "tempdir" ) ) );
}
+ if ( theElem.attribute( "optionallibs" ) ) {
+ myOptLibs = theElem.attribute( "optionallibs" ).stripWhiteSpace();
+ if ( myWizard && !myOptLibs.isEmpty() )
+ myWizard->setOptionalLibs( myOptLibs );
+ }
}
// ================================================================
/*!
if ( instElem.attribute( "os" ) != myWizard->getPlatform() && instElem.attribute( "os" ) != "all" )
continue;
if ( isBoolAttributeSet( instElem.attribute( "disable" ) ) )
- break; // current product is skip
+ break; // current product is skipped
QDomElement prodElem = prodNode.toElement();
QStringList diskspace = QStringList::split( ",", instElem.attribute( "installdiskspace" ) );
QString name = prodElem.attribute( "name" ).stripWhiteSpace();
QString type = prodElem.attribute( "type" ).stripWhiteSpace().lower();
+ BoolTristate woGuiMode = NotDefined;
bool pickUp = isBoolAttributeSet( instElem.attribute( "pickupenv" ) );
QString script = instElem.attribute( "script" );
- InstallationType instType = myWizard->getInstType();
QStringList typesList = QStringList::split( ",", type );
- long prodSize = ( instType == Binaries ? (binreq + srcreq) :
- instType == Sources ? srcreq :
- cmplreq );
if ( typesList.find( "component" ) != typesList.end() ) {
+ QString woGuiAttr = instElem.attribute( "woguimode" );
+ if ( !woGuiAttr.isNull() )
+ woGuiMode = BoolTristate( isBoolAttributeSet( woGuiAttr ) );
element = myModules->addItem( name,
- QString::number( prodSize ) + " KB",
+ "unknown",
script );
- }
+ }
else
element = myPrereqs->addItem( name,
- QString::number( prodSize ) + " KB",
+ "unknown",
script );
QString descr = QString::null;
if ( prodElem.attribute( "description" ) != "" )
instElem.attribute( "version" ),
descr,
type,
- pickUp ) );
+ pickUp,
+ woGuiMode ) );
}
}
}