]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ModuleBase/ModuleBase_IWidgetCreator.h
Salome HOME
Copyright update 2022
[modules/shaper.git] / src / ModuleBase / ModuleBase_IWidgetCreator.h
index 85219c27cb044e9132d2a9a6b1d75f9ac20796e0..cea0d05c41f1544a10c4cf79372e81171b0c7b32 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2019  CEA/DEN, EDF R&D
+// Copyright (C) 2014-2022  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 #include <string>
 #include <memory>
 
+#ifdef _MSC_VER
+#pragma warning(disable: 4100)
+#endif
+
 class ModuleBase_ModelWidget;
 class ModuleBase_PageBase;
 class ModuleBase_IWorkshop;
@@ -52,7 +56,7 @@ public:
   /// Returns a container of possible page types, which this creator can process
   /// The default implementation is empty
   /// \param theTypes a list of type names
-  virtual void panelTypes(std::set<std::string>& theTypes) {}
+  virtual void panelTypes(std::set<std::string>& /*theTypes*/) {}
 
   /// Returns a container of possible page types, which this creator can process
   /// The default implementation is empty
@@ -68,10 +72,12 @@ public:
   /// \param theType a panel type
   /// \param theParent a parent widget
   /// \param theFeature a feature modified in the panel
+  /// \param theWidgetApi a low-level API for reading xml definitions of widget
   /// \return created widget or null
   virtual QWidget* createPanelByType(const std::string& theType,
                                      QWidget* theParent,
-                                     const FeaturePtr& theFeature);
+                                     const FeaturePtr& theFeature,
+                                     Config_WidgetAPI* theWidgetApi = 0);
 
   /// Create page by its type
   /// The default implementation is empty