+ QDomNode docNode = theNode.parentNode();
+ getDependenciesInfo( docNode, mapDeps );
+
+ for( QDomNode prodNode = theNode.firstChild(); !prodNode.isNull(); prodNode = prodNode.nextSibling() ) {
+ if ( !prodNode.isElement() )
+ continue;
+ for( QDomNode instNode = prodNode.firstChild(); !instNode.isNull(); instNode = instNode.nextSibling() ) {
+ if ( !instNode.isElement() )
+ continue;
+ QDomElement instElem = instNode.toElement();
+ if ( instElem.attribute( "os" ) != myWizard->getPlatform() && instElem.attribute( "os" ) != "all" )
+ continue;
+ if ( isBoolAttributeSet( instElem.attribute( "disable" ) ) )
+ break; // current product is skip
+ QDomElement prodElem = prodNode.toElement();
+
+ QStringList diskspace = QStringList::split( ",", instElem.attribute( "installdiskspace" ) );
+ long binreq = diskspace[ 0 ].toInt();
+ long srcreq = diskspace[ 1 ].toInt();
+ long cmplreq = diskspace[ 2 ].toInt();
+
+ QString name = prodElem.attribute( "name" ).stripWhiteSpace();
+ QString type = prodElem.attribute( "type" ).stripWhiteSpace().lower();
+ bool pickUp = isBoolAttributeSet( instElem.attribute( "pickupenv" ) );
+ QString script = instElem.attribute( "script" );
+ QStringList typesList = QStringList::split( ",", type );
+ if ( typesList.find( "component" ) != typesList.end() )
+ element = myModules->addItem( name,
+ "unknown",
+ script );
+ else
+ element = myPrereqs->addItem( name,
+ "unknown",
+ script );
+ QString descr = QString::null;
+ if ( prodElem.attribute( "description" ) != "" )
+ descr = prodElem.attribute( "description" ).stripWhiteSpace();
+ myWizard->setDependancies
+ ( element,
+ Dependancies( name,
+ mapDeps[ name ],
+ binreq,
+ srcreq,
+ cmplreq,
+ instElem.attribute( "temporarydiskspace" ).toInt(),
+ instElem.attribute( "version" ),
+ descr,
+ type,
+ pickUp ) );
+ }