X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSALOME_XmlHandler.hxx;h=a58b9aac0853bdef8fb73cdd6c7fb32f859ea3e8;hb=260bf6b42efe9e30501c4e6e99b013da3fe34f77;hp=bda9d92d793a529e527bf6102a7aab29e8ce9528;hpb=9fc2bfc009ddf32fb0f20cfcf7151b79aec3f62d;p=tools%2Finstall.git diff --git a/src/SALOME_XmlHandler.hxx b/src/SALOME_XmlHandler.hxx index bda9d92..a58b9aa 100644 --- a/src/SALOME_XmlHandler.hxx +++ b/src/SALOME_XmlHandler.hxx @@ -3,12 +3,16 @@ // Author : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com) // Project : SALOME // Module : Installation Wizard -// Copyright : 2002-2007 CEA +// Copyright : 2002-2010 CEA #ifndef __SALOME_XmlHandler #define __SALOME_XmlHandler -#include +#include +#include +#include + +typedef QMap MapDependencies; /*! Class StructureParser: parses xml-description file and populates the list of the products @@ -16,31 +20,34 @@ class ProductsView; class SALOME_InstallWizard; class QLineEdit; +class QDom; -class StructureParser: public QXmlDefaultHandler +class StructureParser { public: // constructor StructureParser( SALOME_InstallWizard* wizard = 0 ); // set control widgets - void setProductsList( ProductsView* view ); + void setProductsLists( ProductsView* mview, ProductsView* pview ); void setTargetDir( QLineEdit* dir ); void setTempDir( QLineEdit* dir ); - // begins parsing of the xml dom-element - bool startElement( const QString&, - const QString&, - const QString& , - const QXmlAttributes& ); - // finishes parsing of the xml dom-element of the xml dom-element - bool endElement( const QString&, - const QString&, - const QString& ); + // parse 'config' part of the XML file + void getConfigInfo( const QDomElement &elem ); + // parse 'buttons' part of the XML file + void getButtonsInfo( const QDomNode &node ); + // parse 'products' part of the XML file + void getProductsInfo( const QDomNode &node ); + // parse 'dependencies' part of the XML file + void getDependenciesInfo( QDomNode &node, MapDependencies &depends ); + // read XML configuration file + void readXmlFile(QString theFileName); private: SALOME_InstallWizard* myWizard; // Salome Pro installation wizard's main window - ProductsView* myTree; // products list view + ProductsView* myModules; // modules list view + ProductsView* myPrereqs; // prerequisites list view QLineEdit* myTargetDir; // target directory widget QLineEdit* myTempDir; // temp directory widget };