X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSALOME_XmlHandler.hxx;h=a58b9aac0853bdef8fb73cdd6c7fb32f859ea3e8;hb=260bf6b42efe9e30501c4e6e99b013da3fe34f77;hp=e2208718020f90998bc640d858079fa0051f7188;hpb=b2f455f9c32667f9adee3ae066a51d85fb94ea04;p=tools%2Finstall.git diff --git a/src/SALOME_XmlHandler.hxx b/src/SALOME_XmlHandler.hxx index e220871..a58b9aa 100644 --- a/src/SALOME_XmlHandler.hxx +++ b/src/SALOME_XmlHandler.hxx @@ -1,14 +1,18 @@ // File : SALOME_XmlHandler.hxx // Created : Thu Dec 18 12:01:00 2002 -// Author : Vadim SANDLER +// Author : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com) // Project : SALOME // Module : Installation Wizard -// Copyright : 2004-2005 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 };