Salome HOME
update config files
[tools/install.git] / src / SALOME_XmlHandler.cxx
index a2d0d05fb594af53212e00ae84a30aca98146092..0be7084a7e36bc7a5cf33ae895733bad0b81b242 100644 (file)
@@ -1,10 +1,11 @@
 //  File      : SALOME_XmlHandler.cxx
 //  Created   : Thu Dec 18 12:01:00 2002
 //  Author    : Vadim SANDLER
-//  Project   : PAL/SALOME
-//  Module    : InstallWizard
-//  Copyright : 2004 CEA
-//  $Header$ 
+//  Project   : SALOME
+//  Module    : Installation Wizard
+//  Copyright : 2004-2005 CEA
+
+#include "globals.h"
 
 #include "SALOME_XmlHandler.hxx"
 #include "SALOME_ProductsView.hxx"
@@ -71,10 +72,8 @@ bool StructureParser::startElement( const QString&        /*namespaceURI*/,
                                     const QString&        qName,
                                     const QXmlAttributes& attributes)
 {
-#ifdef DEBUG
-  cout << qName << endl;
-  cout << attributes.length() << endl;
-#endif
+  ___MESSAGE___( qName );
+  ___MESSAGE___( attributes.length() );
   QCheckListItem* element;
   if (( qName == "config" ) && ( attributes.length() > 0 ) ) {
     QString myVersion, myCaption, myCopyright, myLicense, myOS;
@@ -119,6 +118,9 @@ bool StructureParser::startElement( const QString&        /*namespaceURI*/,
     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" ), 
@@ -128,6 +130,7 @@ bool StructureParser::startElement( const QString&        /*namespaceURI*/,
                                             attributes.value( "temporarydiskspace" ).toInt(),
                                             install,
                                             descr,
+                                            ctx,
                                             pickUp ) );
   }
   else if (( qName == "path" ) && ( attributes.length() > 0 ) && myWizard ) {