- }
- else if (( qName == "button" ) && ( attributes.length() > 0 ) && myTree && myWizard ) {
- if ( isBoolAttributeSet( attributes.value( "disable" ) ) )
- return true;
-
- QString myLabel, myTootip, myScript;
- if ( attributes.value( "label" ) )
- myLabel = attributes.value( "label" ).stripWhiteSpace();
- if ( attributes.value( "tooltip" ) )
- myTootip = attributes.value( "tooltip" ).stripWhiteSpace();
- if ( attributes.value( "script" ) )
- myScript = attributes.value( "script" ).stripWhiteSpace();
- if ( !myLabel.isEmpty() )
- myWizard->addFinishButton( myLabel, myTootip, myScript );
- }
- else if (( qName == "product" ) && ( attributes.length() > 0 ) && myTree && myWizard ) {
- if ( isBoolAttributeSet( attributes.value( "disable" ) ) )
- return true;
-
- QString install = attributes.value( "install" );
- QStringList supported = QStringList::split( ",", attributes.value( "supported" ) );
- QString script = attributes.value( "script" );
- QStringList deps = QStringList();
- if ( attributes.value( "dependancies" ) != "" )
- deps = QStringList::split( ",", attributes.value( "dependancies" ), false );
- element = myTree->addItem( attributes.value( "name" ), attributes.value( "version" ), install, supported, script );
- QStringList diskspace = QStringList::split(",",attributes.value( "installdiskspace" ) );
- QString descr = QString::null;
- if ( attributes.value( "description" ) != "" )
- descr = attributes.value( "description" ).stripWhiteSpace();
- QString ctx = QString::null;
- if ( attributes.value( "context" ) != "" )
- ctx = attributes.value( "context" ).stripWhiteSpace().lower();
- bool pickUp = isBoolAttributeSet( attributes.value( "pickupenv" ) );
- myWizard->setDependancies( element,
- Dependancies( attributes.value( "name" ),
- deps,
- ( diskspace.count() > 0 ? diskspace[ 0 ].toInt() : 0 ),
- ( diskspace.count() > 1 ? diskspace[1].toInt() : ( diskspace.count() > 0 ? diskspace[0].toInt() : 0 ) ),
- attributes.value( "temporarydiskspace" ).toInt(),
- install,
- descr,
- ctx,
- pickUp ) );