]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #653 - Double and triple click edges -- Fix Debian dynamic_pointer_cast problem...
authorspo <sergey.pokhodenko@opencascade.com>
Mon, 13 Jul 2015 08:54:09 +0000 (11:54 +0300)
committerspo <sergey.pokhodenko@opencascade.com>
Mon, 13 Jul 2015 08:57:43 +0000 (11:57 +0300)
59 files changed:
src/ExchangePlugin/ExchangePlugin_Tools.cpp
src/ExchangePlugin/ExchangePlugin_Validators.cpp
src/FeaturesPlugin/CMakeLists.txt
src/FeaturesPlugin/FeaturesPlugin_ExtrusionBoolean.cpp
src/FeaturesPlugin/FeaturesPlugin_ExtrusionCut.cpp [new file with mode: 0644]
src/FeaturesPlugin/FeaturesPlugin_ExtrusionCut.h
src/FeaturesPlugin/FeaturesPlugin_ExtrusionFuse.cpp [new file with mode: 0644]
src/FeaturesPlugin/FeaturesPlugin_ExtrusionFuse.h
src/FeaturesPlugin/FeaturesPlugin_RevolutionBoolean.cpp
src/FeaturesPlugin/FeaturesPlugin_RevolutionCut.cpp [new file with mode: 0644]
src/FeaturesPlugin/FeaturesPlugin_RevolutionCut.h
src/FeaturesPlugin/FeaturesPlugin_RevolutionFuse.cpp [new file with mode: 0644]
src/FeaturesPlugin/FeaturesPlugin_RevolutionFuse.h
src/GeomAlgoAPI/GeomAlgoAPI_MakeShapeList.cpp
src/GeomValidators/GeomValidators_BooleanArguments.cpp
src/GeomValidators/GeomValidators_ZeroOffset.cpp
src/Model/Model_AttributeSelection.cpp
src/Model/Model_AttributeSelectionList.cpp
src/ModelAPI/CMakeLists.txt
src/ModelAPI/ModelAPI_CompositeFeature.cpp
src/ModelAPI/ModelAPI_FeatureValidator.cpp [new file with mode: 0644]
src/ModelAPI/ModelAPI_FeatureValidator.h
src/ModuleBase/CMakeLists.txt
src/ModuleBase/ModuleBase_FilterFactory.cpp
src/ModuleBase/ModuleBase_FilterValidated.cpp
src/ModuleBase/ModuleBase_IDocumentDataModel.cpp [new file with mode: 0644]
src/ModuleBase/ModuleBase_IDocumentDataModel.h
src/ModuleBase/ModuleBase_IPrefMgr.cpp [new file with mode: 0644]
src/ModuleBase/ModuleBase_IPrefMgr.h
src/ModuleBase/ModuleBase_IPropertyPanel.cpp [new file with mode: 0644]
src/ModuleBase/ModuleBase_IPropertyPanel.h
src/ModuleBase/ModuleBase_IViewWindow.cpp [new file with mode: 0644]
src/ModuleBase/ModuleBase_IViewWindow.h
src/ModuleBase/ModuleBase_IViewer.cpp [new file with mode: 0644]
src/ModuleBase/ModuleBase_IViewer.h
src/ModuleBase/ModuleBase_IWorkshop.cpp
src/ModuleBase/ModuleBase_ModelWidget.cpp
src/ModuleBase/ModuleBase_ParamSpinBox.cpp
src/ModuleBase/ModuleBase_ParamSpinBox.h
src/ModuleBase/ModuleBase_ViewerPrs.cpp [new file with mode: 0644]
src/ModuleBase/ModuleBase_ViewerPrs.h
src/ModuleBase/ModuleBase_WidgetBoolValue.cpp
src/ModuleBase/ModuleBase_WidgetDoubleValue.cpp
src/ModuleBase/ModuleBase_WidgetIntValue.cpp
src/ModuleBase/ModuleBase_WidgetSelector.cpp
src/ModuleBase/ModuleBase_WidgetShapeSelector.cpp
src/PartSet/CMakeLists.txt
src/PartSet/PartSet_DataTreeModel.cpp [new file with mode: 0644]
src/PartSet/PartSet_DataTreeModel.h
src/PartSet/PartSet_Tools.cpp
src/PartSet/PartSet_WidgetPoint2dAngle.cpp
src/PartSet/PartSet_WidgetPoint2dDistance.cpp
src/SketchPlugin/CMakeLists.txt
src/SketchPlugin/SketchPlugin_Constraint.cpp [new file with mode: 0644]
src/SketchPlugin/SketchPlugin_Constraint.h
src/XGUI/CMakeLists.txt
src/XGUI/XGUI_OperationMgr.cpp
src/XGUI/XGUI_SalomeConnector.cpp [new file with mode: 0644]
src/XGUI/XGUI_SalomeConnector.h

index 43b9de649f339cadc786f297e6a7a7ae77a52965..26391487d7886ed4d7d074f78a4d9d2946b26f8a 100644 (file)
@@ -1,6 +1,6 @@
 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
 
-// File:    ExchangePlugin_Tools.h
+// File:    ExchangePlugin_Tools.cpp
 // Created: May 15, 2015
 // Author:  Sergey POKHODENKO
 
index 4d1a8ce0161a464f5107fc9be3464a45b8f9bb71..052140b8136f963bfb02118b346d0a8a06e4de56 100644 (file)
@@ -1,6 +1,6 @@
 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
 
-// File:    ExchangePlugin_Validators.h
+// File:    ExchangePlugin_Validators.cpp
 // Created: Aug 01, 2014
 // Author:  Sergey BELASH
 
index 952e741fccd31dd1ed22c042eb8d15a0d6d19c52..77f89e52c6e2c17682c78aba1ec3017b81cfac0d 100644 (file)
@@ -33,7 +33,11 @@ SET(PROJECT_SOURCES
     FeaturesPlugin_Placement.cpp
     FeaturesPlugin_CompositeBoolean.cpp
     FeaturesPlugin_ExtrusionBoolean.cpp
+    FeaturesPlugin_ExtrusionCut.cpp
+    FeaturesPlugin_ExtrusionFuse.cpp
     FeaturesPlugin_RevolutionBoolean.cpp
+    FeaturesPlugin_RevolutionCut.cpp
+    FeaturesPlugin_RevolutionFuse.cpp
 )
 
 SET(XML_RESOURCES
index a89523b886c2c91b7652bf1ad78aa50371fbea71..4df58cd62193071476862fe95f3e14e27c5ed656 100755 (executable)
@@ -1,6 +1,6 @@
 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
 
-// File:        FeaturesPlugin_ExtrusionBoolean.h
+// File:        FeaturesPlugin_ExtrusionBoolean.cpp
 // Created:     11 June 2015
 // Author:      Dmitry Bobylev
 
diff --git a/src/FeaturesPlugin/FeaturesPlugin_ExtrusionCut.cpp b/src/FeaturesPlugin/FeaturesPlugin_ExtrusionCut.cpp
new file mode 100644 (file)
index 0000000..9089860
--- /dev/null
@@ -0,0 +1,12 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
+// File:        FeaturesPlugin_ExtrusionCut.cpp
+// Created:     11 June 2015
+// Author:      Dmitry Bobylev
+
+#include "FeaturesPlugin_ExtrusionCut.h"
+
+FeaturesPlugin_ExtrusionCut::FeaturesPlugin_ExtrusionCut()
+{
+  myBooleanOperationType = GeomAlgoAPI_Boolean::BOOL_CUT;
+}
index fbff14c5ecbcb19fc10ad0d04bf13e8296ed12b5..54937b1503016a423d6548f9460f79175ab2aaf1 100755 (executable)
@@ -30,10 +30,7 @@ class FeaturesPlugin_ExtrusionCut : public FeaturesPlugin_ExtrusionBoolean
   }
 
   /// Use plugin manager for features creation.
-  FeaturesPlugin_ExtrusionCut()
-  {
-    myBooleanOperationType = GeomAlgoAPI_Boolean::BOOL_CUT;
-  }
+  FeaturesPlugin_ExtrusionCut();
 };
 
 #endif
diff --git a/src/FeaturesPlugin/FeaturesPlugin_ExtrusionFuse.cpp b/src/FeaturesPlugin/FeaturesPlugin_ExtrusionFuse.cpp
new file mode 100644 (file)
index 0000000..a30db92
--- /dev/null
@@ -0,0 +1,12 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
+// File:        FeaturesPlugin_ExtrusionFuse.cpp
+// Created:     11 June 2015
+// Author:      Dmitry Bobylev
+
+#include "FeaturesPlugin_ExtrusionFuse.h"
+
+FeaturesPlugin_ExtrusionFuse::FeaturesPlugin_ExtrusionFuse()
+{
+  myBooleanOperationType = GeomAlgoAPI_Boolean::BOOL_FUSE;
+}
index 558a02893cb9f4a62bd61b8f25b087edd7163740..e3c2ed9e2469dd70cfcec7ae5f57a603520481dd 100644 (file)
@@ -30,10 +30,7 @@ class FeaturesPlugin_ExtrusionFuse : public FeaturesPlugin_ExtrusionBoolean
   }
 
   /// Use plugin manager for features creation.
-  FeaturesPlugin_ExtrusionFuse()
-  {
-    myBooleanOperationType = GeomAlgoAPI_Boolean::BOOL_FUSE;
-  }
+  FeaturesPlugin_ExtrusionFuse();
 };
 
 #endif
index d2ec7bd664ad679eb88279426951997be4081d59..e99a26428784e8fd074f3e013dd1c819a771df93 100644 (file)
@@ -1,6 +1,6 @@
 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
 
-// File:        FeaturesPlugin_RevolutionBoolean.h
+// File:        FeaturesPlugin_RevolutionBoolean.cpp
 // Created:     11 June 2015
 // Author:      Dmitry Bobylev
 
diff --git a/src/FeaturesPlugin/FeaturesPlugin_RevolutionCut.cpp b/src/FeaturesPlugin/FeaturesPlugin_RevolutionCut.cpp
new file mode 100644 (file)
index 0000000..521e733
--- /dev/null
@@ -0,0 +1,12 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
+// File:        FeaturesPlugin_RevolutionCut.cpp
+// Created:     11 June 2015
+// Author:      Dmitry Bobylev
+
+#include "FeaturesPlugin_RevolutionCut.h"
+
+FeaturesPlugin_RevolutionCut::FeaturesPlugin_RevolutionCut()
+{
+  myBooleanOperationType = GeomAlgoAPI_Boolean::BOOL_CUT;
+}
index 9116a46cd981397ed342cc6e5bd65798ab2c4678..f5a79a11a6fc32556aa2bd970071d7862f871aae 100644 (file)
@@ -30,10 +30,7 @@ class FeaturesPlugin_RevolutionCut : public FeaturesPlugin_RevolutionBoolean
   }
 
   /// Use plugin manager for features creation.
-  FeaturesPlugin_RevolutionCut()
-  {
-    myBooleanOperationType = GeomAlgoAPI_Boolean::BOOL_CUT;
-  }
+  FeaturesPlugin_RevolutionCut();
 };
 
 #endif
diff --git a/src/FeaturesPlugin/FeaturesPlugin_RevolutionFuse.cpp b/src/FeaturesPlugin/FeaturesPlugin_RevolutionFuse.cpp
new file mode 100644 (file)
index 0000000..a4efacb
--- /dev/null
@@ -0,0 +1,12 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
+// File:        FeaturesPlugin_RevolutionFuse.cpp
+// Created:     11 June 2015
+// Author:      Dmitry Bobylev
+
+#include "FeaturesPlugin_RevolutionFuse.h"
+
+FeaturesPlugin_RevolutionFuse::FeaturesPlugin_RevolutionFuse()
+{
+  myBooleanOperationType = GeomAlgoAPI_Boolean::BOOL_FUSE;
+}
index f7e93977348bff3830f2b0e62d4d3b683666b6ed..cf957781b7fb40e11913503c55b7d6027cfc5317 100644 (file)
@@ -30,10 +30,7 @@ class FeaturesPlugin_RevolutionFuse : public FeaturesPlugin_RevolutionBoolean
   }
 
   /// Use plugin manager for features creation.
-  FeaturesPlugin_RevolutionFuse()
-  {
-    myBooleanOperationType = GeomAlgoAPI_Boolean::BOOL_FUSE;
-  }
+  FeaturesPlugin_RevolutionFuse();
 };
 
 #endif
index 50e621abe4e9eb494f53972e7becc6839bf91bba..58518ea491c7dedb0607098130171d6eb8d0c0e2 100644 (file)
@@ -1,6 +1,6 @@
 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
 
-// File:        GeomAlgoAPI_MakeShapeListList.h
+// File:        GeomAlgoAPI_MakeShapeListList.cpp
 // Created:     27 May 2015
 // Author:      Dmitry Bobylev
 
index 738b1ecc056384f0c6336cb38097cb06a95cb651..cfd5620ead293b3ac532d81687169e3e10dad4d4 100644 (file)
@@ -1,6 +1,6 @@
 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
 
-// File:        GeomValidators_BooleanArguments.h
+// File:        GeomValidators_BooleanArguments.cpp
 // Created:     30 June 2015
 // Author:      Dmitry Bobylev
 
index 6eb651f57a71d49668eb547619845932317954d0..4bfe414a19f16627ee8e428ef33b5a6362ecc764 100644 (file)
@@ -1,6 +1,6 @@
 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
 
-// File:        GeomValidators_ZeroOffset.h
+// File:        GeomValidators_ZeroOffset.cpp
 // Created:     13 May 2015
 // Author:      Dmitry Bobylev
 
index 864975b2e420376c6e57cdaf72d97e2de995c274..69a1185d2d91eaaa4ea7d56b8229e36f2f4fa777 100644 (file)
@@ -1,6 +1,6 @@
 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
 
-// File:        Model_AttributeSelection.h
+// File:        Model_AttributeSelection.cpp
 // Created:     2 Oct 2014
 // Author:      Mikhail PONIKAROV
 
index ae079d7a1673e8158816beeb0416511202124aae..f547a797fdcdbbc80bc10a844ed082a652a68d15 100644 (file)
@@ -1,6 +1,6 @@
 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
 
-// File:        Model_AttributeSelectionList.h
+// File:        Model_AttributeSelectionList.cpp
 // Created:     22 Oct 2014
 // Author:      Mikhail PONIKAROV
 
index 2fb0d5ba437ce8c6d078ad9b279830cc499b3474..96a42d7a875d23eb9d6c4776445459f9bd604223 100644 (file)
@@ -58,6 +58,7 @@ SET(PROJECT_SOURCES
     ModelAPI_Document.cpp
     ModelAPI_Events.cpp
     ModelAPI_Feature.cpp
+    ModelAPI_FeatureValidator.cpp
     ModelAPI_Object.cpp
     ModelAPI_Plugin.cpp
     ModelAPI_Result.cpp
index 5cad229fab9d0ca6f8603f9a1bb6aac653917185..71b6fc28041bcf767487080742d706ee38867f49 100644 (file)
@@ -1,6 +1,6 @@
 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
 
-// File:        ModelAPI_CompositeFeature.h
+// File:        ModelAPI_CompositeFeature.cpp
 // Created:     20 Oct 2014
 // Author:      Mikhail PONIKAROV
 
diff --git a/src/ModelAPI/ModelAPI_FeatureValidator.cpp b/src/ModelAPI/ModelAPI_FeatureValidator.cpp
new file mode 100644 (file)
index 0000000..da63768
--- /dev/null
@@ -0,0 +1,17 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
+// File:        ModelAPI_Validator.hxx
+// Created:     2 Jul 2014
+// Author:      Mikhail PONIKAROV
+
+#include "ModelAPI_FeatureValidator.h"
+
+ModelAPI_FeatureValidator::ModelAPI_FeatureValidator()
+{
+
+}
+
+ModelAPI_FeatureValidator::~ModelAPI_FeatureValidator()
+{
+
+}
index 59161acbef6b9fdd8b7a208a6f831b25f875979f..5d6eb3b1c49d35733171e12671e2053047943460 100644 (file)
  * used: it checks each argument of the feature and if one of it is not valid (and obligatory),
  * the hole feature is invalid.
  */
-class ModelAPI_FeatureValidator : public ModelAPI_Validator
+class MODELAPI_EXPORT ModelAPI_FeatureValidator : public ModelAPI_Validator
 {
  public:
+  /// Default constructor
+  ModelAPI_FeatureValidator();
+  /// Virtual destructor
+  virtual ~ModelAPI_FeatureValidator();
+
   /// Returns true if feature and/or attributes are valid
   /// \param theFeature the validated feature
   /// \param theArguments list of string, feature attribute names: dependent attributes
index 9f0497c54f0273ae0cb68f09838dfb6fdce72785..a15c841c52523368acb91153c0ac45bf25dfb921 100644 (file)
@@ -48,7 +48,7 @@ SET(PROJECT_HEADERS
        ModuleBase_WidgetExprEditor.h
        ModuleBase_ParamSpinBox.h
        ModuleBase_WidgetIntValue.h
-    ModuleBase_IDocumentDataModel.h
+  ModuleBase_IDocumentDataModel.h
 )
 
 SET(PROJECT_SOURCES
@@ -58,6 +58,7 @@ SET(PROJECT_SOURCES
        ModuleBase_Tools.cpp
        ModuleBase_IModule.cpp
        ModuleBase_ISelection.cpp
+       ModuleBase_IViewer.cpp
        ModuleBase_IWorkshop.cpp
        ModuleBase_Operation.cpp
        ModuleBase_OperationDescription.cpp
@@ -69,11 +70,14 @@ SET(PROJECT_SOURCES
        ModuleBase_WidgetChoice.cpp
        ModuleBase_WidgetFileSelector.cpp
        ModuleBase_DoubleSpinBox.cpp
+       ModuleBase_IPropertyPanel.cpp
        ModuleBase_WidgetLineEdit.cpp
        ModuleBase_WidgetMultiSelector.cpp
        ModuleBase_ViewerFilters.cpp
        ModuleBase_ResultPrs.cpp
+       ModuleBase_IViewWindow.cpp
        ModuleBase_WidgetLabel.cpp
+       ModuleBase_IPrefMgr.cpp
        ModuleBase_Preferences.cpp
        ModuleBase_ActionInfo.cpp
        ModuleBase_PageBase.cpp
@@ -88,7 +92,9 @@ SET(PROJECT_SOURCES
        ModuleBase_WidgetExprEditor.cpp
        ModuleBase_ParamSpinBox.cpp
        ModuleBase_SelectionValidator.cpp
+       ModuleBase_ViewerPrs.cpp
        ModuleBase_WidgetIntValue.cpp
+  ModuleBase_IDocumentDataModel.cpp
 )
 
 SET(PROJECT_LIBRARIES
index f89d6e71b8d931287684c92440f03c13ebb07138..e511e5223c6809d3ff82bcc5b4ceeba896078923 100644 (file)
@@ -1,6 +1,6 @@
 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
 
-// File:        ModuleBase_FilterFactory.h
+// File:        ModuleBase_FilterFactory.cpp
 // Created:     10 Dec 2014
 // Author:      Natalia ERMOLAEVA
 
index 3fdb61e15506e7cc77360290ccfadba68b760c17..a1b9bdb94e5c5ea7b180584410a95a904f43a5c0 100644 (file)
@@ -1,6 +1,6 @@
 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
 
-// File:        ModuleBase_FilterValidated.h
+// File:        ModuleBase_FilterValidated.cpp
 // Created:     17 Mar 2015
 // Author:      Natalia ERMOLAEVA
 
diff --git a/src/ModuleBase/ModuleBase_IDocumentDataModel.cpp b/src/ModuleBase/ModuleBase_IDocumentDataModel.cpp
new file mode 100644 (file)
index 0000000..f59990f
--- /dev/null
@@ -0,0 +1,22 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
+
+// File:        ModuleBase_IDocumentDataModel.cpp
+// Created:     28 Apr 2015
+// Author:      Vitaly SMETANNIKOV
+
+#include "ModuleBase_IDocumentDataModel.h"
+
+ModuleBase_IDocumentDataModel::ModuleBase_IDocumentDataModel(QObject* theParent) : QAbstractItemModel(theParent)
+{
+
+}
+
+void ModuleBase_IDocumentDataModel::clear()
+{
+
+}
+
+void ModuleBase_IDocumentDataModel::rebuildDataTree()
+{
+
+}
index b18866eeae01c1bdd238d0cc1449ffb053360b77..a5e3d95c854b3733f5a8555102734aecbf640859 100644 (file)
@@ -16,7 +16,7 @@ class MODULEBASE_EXPORT ModuleBase_IDocumentDataModel : public QAbstractItemMode
 {
 Q_OBJECT
 public:
-  ModuleBase_IDocumentDataModel(QObject* theParent): QAbstractItemModel(theParent) {}
+  ModuleBase_IDocumentDataModel(QObject* theParent);
 
   //! Returns an object by the given Model index.
   //! Returns 0 if the given index is not index of an object
@@ -27,10 +27,10 @@ public:
   virtual QModelIndex objectIndex(const ObjectPtr theObject) const = 0;
 
   //! Clear internal data
-  virtual void clear() {}
+  virtual void clear();
 
   //! Rebuild data tree
-  virtual void rebuildDataTree() {}
+  virtual void rebuildDataTree();
 };
 
 #endif
\ No newline at end of file
diff --git a/src/ModuleBase/ModuleBase_IPrefMgr.cpp b/src/ModuleBase/ModuleBase_IPrefMgr.cpp
new file mode 100644 (file)
index 0000000..21e2768
--- /dev/null
@@ -0,0 +1,17 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
+// File:        ModuleBase_IPrefMgr.cpp
+// Created:     10 Sept 2014
+// Author:      Vitaly SMETANNIKOV
+
+#include "ModuleBase_IPrefMgr.h"
+
+ModuleBase_IPrefMgr::ModuleBase_IPrefMgr()
+{
+
+}
+
+ModuleBase_IPrefMgr::~ModuleBase_IPrefMgr()
+{
+
+}
index 147defa4b5e13841d4cd19f1c421234284a463b3..3d4e7cefddded08acd1b920dc654137d5c43f956 100644 (file)
@@ -8,6 +8,8 @@
 #ifndef ModuleBase_IPrefMgr_H
 #define ModuleBase_IPrefMgr_H
 
+#include "ModuleBase.h"
+
 #include <QString>
 #include <SUIT_PreferenceMgr.h>
 
 * It is used in order to make common interface to Preference manager in Salome 
 * and this application
 */
-class ModuleBase_IPrefMgr
+class MODULEBASE_EXPORT ModuleBase_IPrefMgr
 {
 public:
+  /// Default constructor
+  ModuleBase_IPrefMgr();
+  /// Virtual destructor
+  virtual ~ModuleBase_IPrefMgr();
 
   /** 
   * Add preference item into preference dialog box
diff --git a/src/ModuleBase/ModuleBase_IPropertyPanel.cpp b/src/ModuleBase/ModuleBase_IPropertyPanel.cpp
new file mode 100644 (file)
index 0000000..ee4490a
--- /dev/null
@@ -0,0 +1,15 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
+/*
+ * ModuleBase_IPropertyPanel.cpp
+ *
+ *  Created on: Oct 01, 2014
+ *      Author: vsv
+ */
+
+#include "ModuleBase_IPropertyPanel.h"
+
+ModuleBase_IPropertyPanel::ModuleBase_IPropertyPanel(QWidget* theParent) : QDockWidget(theParent), myIsEditing(false)
+{
+
+}
index 59c2f8435a90b9500e244080227644b642348edb..12c96548e6a11cd27ed5b1be4152303d9a3b63dd 100644 (file)
@@ -27,7 +27,7 @@ Q_OBJECT
 public:
   /// Constructor
   /// \param theParent is a parent of the property panel
-  ModuleBase_IPropertyPanel(QWidget* theParent) : QDockWidget(theParent), myIsEditing(false) {}
+  ModuleBase_IPropertyPanel(QWidget* theParent);
 
   /// Returns currently active widget
   virtual ModuleBase_ModelWidget* activeWidget() const = 0;
diff --git a/src/ModuleBase/ModuleBase_IViewWindow.cpp b/src/ModuleBase/ModuleBase_IViewWindow.cpp
new file mode 100644 (file)
index 0000000..2a03901
--- /dev/null
@@ -0,0 +1,13 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
+#include "ModuleBase_IViewWindow.h"
+
+ModuleBase_IViewWindow::ModuleBase_IViewWindow()
+{
+
+}
+
+ModuleBase_IViewWindow::~ModuleBase_IViewWindow()
+{
+
+}
index 756baa64a9682d1907325233b5906087659e35c2..597d884a35c9596accb00dc3337b37efbec19374 100644 (file)
@@ -1,20 +1,26 @@
 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
 
-
-
 #ifndef ModuleBase_IViewWindow_H
 #define ModuleBase_IViewWindow_H
 
+#include "ModuleBase.h"
+
 #include <V3d_View.hxx>
 
+class QWidget;
 
 /** 
 * \ingroup GUI
 * Interface to ViewWindow object which contains 3d scene
 */
-class ModuleBase_IViewWindow
+class MODULEBASE_EXPORT ModuleBase_IViewWindow
 {
 public:
+  /// Default constructor
+  ModuleBase_IViewWindow();
+  /// Virtual destructor
+  virtual ~ModuleBase_IViewWindow();
+  
   /// Returns OCCT object which contains 3d view object
   virtual Handle(V3d_View) v3dView() const = 0;
 
diff --git a/src/ModuleBase/ModuleBase_IViewer.cpp b/src/ModuleBase/ModuleBase_IViewer.cpp
new file mode 100644 (file)
index 0000000..ca7e461
--- /dev/null
@@ -0,0 +1,8 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
+#include "ModuleBase_IViewer.h"
+
+ModuleBase_IViewer::ModuleBase_IViewer(QObject* theParent) : QObject(theParent)
+{
+
+}
index 3e557504aeb061377a6168f5aed1f3eda32bbc06..b4c37edd5c1366888fc0118d5138b2d96c67c966 100644 (file)
@@ -25,10 +25,7 @@ Q_OBJECT
  public:
    /// Constructor
    /// \param theParent a parent object
-  ModuleBase_IViewer(QObject* theParent)
-      : QObject(theParent)
-  {
-  }
+  ModuleBase_IViewer(QObject* theParent);
 
   //! Returns AIS_InteractiveContext from current OCCViewer
   virtual Handle(AIS_InteractiveContext) AISContext() const = 0;
index 6105bf263ae0f27247bb1409b92bd05d3d5bacc8..60d1d5fd15e1299790d19ce78bdf9c3a9c61b470 100644 (file)
@@ -1,6 +1,6 @@
 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
 
-// File:        ModuleBase_ModelWidget.h
+// File:        ModuleBase_IWorkshop.cpp
 // Created:     25 Apr 2014
 // Author:      Natalia ERMOLAEVA
 
index f3818ed5267809e9605090b13ddca7b90e24c68c..057b2936c687b3fc584ea1dd20e2918d8a0a1b5a 100644 (file)
@@ -1,6 +1,6 @@
 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
 
-// File:        ModuleBase_ModelWidget.h
+// File:        ModuleBase_ModelWidget.cpp
 // Created:     25 Apr 2014
 // Author:      Natalia ERMOLAEVA
 
index 82e5757e5c73962857c80d8f3e537b91a0f52431..8b09ac9fece6ec394cf21314cd0a580084d3e274 100644 (file)
@@ -73,6 +73,7 @@ void ModuleBase_ParamSpinBox::connectSignalsAndSlots()
  */
 void ModuleBase_ParamSpinBox::onTextChanged(const QString& text)
 {
+  ModuleBase_DoubleSpinBox::onTextChanged(text);
   myTextValue = text;
 }
 
index 46af290922d448a1216739cdb1db4184c2171407..3feafb780b90571a5aba4034847d30599445e213 100644 (file)
@@ -49,7 +49,7 @@ public:
   virtual void showEvent(QShowEvent*);
 
  protected slots:
-  void onTextChanged(const QString&);
+  virtual void onTextChanged(const QString&);
 
  private:
   void connectSignalsAndSlots();
diff --git a/src/ModuleBase/ModuleBase_ViewerPrs.cpp b/src/ModuleBase/ModuleBase_ViewerPrs.cpp
new file mode 100644 (file)
index 0000000..c515e2b
--- /dev/null
@@ -0,0 +1,27 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
+// File:        ModuleBase_ViewerPrs.cpp
+// Created:     20 Apr 2014
+// Author:      Natalia ERMOLAEVA
+
+#include "ModuleBase_ViewerPrs.h"
+
+ModuleBase_ViewerPrs::ModuleBase_ViewerPrs()
+{
+
+}
+
+ModuleBase_ViewerPrs::ModuleBase_ViewerPrs(ObjectPtr theResult, 
+                                           const TopoDS_Shape& theShape, 
+                                           Handle_SelectMgr_EntityOwner theOwner) 
+: myResult(theResult),
+  myShape(theShape),
+  myOwner(theOwner)
+{
+
+}
+
+ModuleBase_ViewerPrs::~ModuleBase_ViewerPrs()
+{
+
+}
index ebc274981b54077b325eb8bf2da61d533b97140d..419447edb1096006ce2c438123e49df921dd9a14 100644 (file)
  * \ingroup GUI
  * \brief Presentation. Provides container to have feature, shape and/or selection owner.
  */
-class ModuleBase_ViewerPrs
+class MODULEBASE_EXPORT ModuleBase_ViewerPrs
 {
  public:
   /// Constructor
-  ModuleBase_ViewerPrs()
-  {
-  }
+  ModuleBase_ViewerPrs();
 
   /// Constructor
   /// \param theResult an object
   /// \param theShape a viewer shape
   /// \param theOwner a selection owner
   ModuleBase_ViewerPrs(ObjectPtr theResult, const TopoDS_Shape& theShape,
-                       Handle_SelectMgr_EntityOwner theOwner)
-      : myResult(theResult),
-        myShape(theShape),
-        myOwner(theOwner)
-  {
-  }
+                       Handle_SelectMgr_EntityOwner theOwner);
 
   /// Destructor
-  virtual ~ModuleBase_ViewerPrs()
-  {
-  }
+  virtual ~ModuleBase_ViewerPrs();
 
   /// Sets the object.
   /// \param theResult an object instance
index a019404f5dbf0d5346392a3cc716f229540cf342..854a93a4801bf4c1ce7c5b0add5bacbf8b01f078 100644 (file)
@@ -1,6 +1,6 @@
 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
 
-// File:        ModuleBase_Widgets.h
+// File:        ModuleBase_WidgetBoolValue.cpp
 // Created:     04 June 2014
 // Author:      Vitaly Smetannikov
 
index 230f49220cbbd82e49947eb811b51776e80cd77f..ba196af65410db97b0972d301bc4e6e69a919e99 100644 (file)
@@ -1,6 +1,6 @@
 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
 
-// File:        ModuleBase_Widgets.h
+// File:        ModuleBase_WidgetDoubleValue.cpp
 // Created:     04 June 2014
 // Author:      Vitaly Smetannikov
 
index a0daa71242513af0ac539389b139ae940af8a584..45f3e7d94c17fe7344a4f21b95f7bdac43eddabf 100644 (file)
@@ -1,6 +1,6 @@
 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
 
-// File:        ModuleBase_Widgets.h
+// File:        ModuleBase_WidgetIntValue.cpp
 // Created:     04 June 2014
 // Author:      Vitaly Smetannikov
 
index f720767dfc87ea8c128781933ebc0c38cce69355..e2233ab7c96229ed3866d3d88f9117bd93a94184 100755 (executable)
@@ -1,6 +1,6 @@
 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
 
-// File:        ModuleBase_WidgetSelector.h
+// File:        ModuleBase_WidgetSelector.cpp
 // Created:     19 June 2015
 // Author:      Natalia ERMOLAEVA
 
index 0064bcec127397240e7d4d26cd97ebabb5d0ef60..a697080947295db2a8d61800cd8504386322719f 100644 (file)
@@ -1,6 +1,6 @@
 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
 
-// File:        ModuleBase_WidgetShapeSelector.h
+// File:        ModuleBase_WidgetShapeSelector.cpp
 // Created:     2 June 2014
 // Author:      Vitaly Smetannikov
 
index 47ba5390abd97a27e37a0fd6b3bfa8697d6abc31..eabe491f0f3c372c554bac781c6920f27175ea65 100644 (file)
@@ -55,6 +55,7 @@ SET(PROJECT_SOURCES
        PartSet_MenuMgr.cpp
        PartSet_DocumentDataModel.cpp
        PartSet_PartDataModel.cpp
+       PartSet_DataTreeModel.cpp
        PartSet_WidgetSketchCreator.cpp
        PartSet_TopDataModel.cpp
 )
diff --git a/src/PartSet/PartSet_DataTreeModel.cpp b/src/PartSet/PartSet_DataTreeModel.cpp
new file mode 100644 (file)
index 0000000..2c433f7
--- /dev/null
@@ -0,0 +1,21 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
+
+#include "PartSet_DataTreeModel.h"
+
+PartSet_FeaturesModel::PartSet_FeaturesModel(QObject* theParent) 
+: QAbstractItemModel(theParent),
+  myItemsColor(Qt::black)
+{
+
+}
+
+PartSet_PartModel::PartSet_PartModel(QObject* theParent)
+: PartSet_FeaturesModel(theParent)
+{
+
+}
+
+PartSet_PartModel::~PartSet_PartModel()
+{
+  myPart = FeaturePtr();
+}
index 0e45f455595c3ed370444894f4c53913b84a1279..0fa8f6380b5c145f3add8221916d1326f03cdda0 100644 (file)
@@ -22,11 +22,7 @@ class PARTSET_EXPORT PartSet_FeaturesModel : public QAbstractItemModel
  public:
    /// Constructor
    /// \param theParent a parent object
-  PartSet_FeaturesModel(QObject* theParent)
-      : QAbstractItemModel(theParent),
-        myItemsColor(Qt::black)
-  {
-  }
+  PartSet_FeaturesModel(QObject* theParent);
 
   //! Returns Feature object by the given Model index.
   //! Returns 0 if the given index is not index of a feature
@@ -70,14 +66,9 @@ class PartSet_PartModel : public PartSet_FeaturesModel
  public:
    /// Constructor
    /// \param theParent a parent object
-  PartSet_PartModel(QObject* theParent)
-      : PartSet_FeaturesModel(theParent)
-  {
-  }
-  ~PartSet_PartModel()
-  {
-    myPart = FeaturePtr();
-  }
+  PartSet_PartModel(QObject* theParent);
+   /// Destructor 
+  ~PartSet_PartModel();
 
   /// Set part id
   /// \param theId a new id
index 33e7601a82e748e4c809ed9646708d3fc296547b..b883dda35312e6aff0a4f5651bcb82c940b595d1 100644 (file)
@@ -1,6 +1,6 @@
 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
 
-// File:        PartSet_Tools.h
+// File:        PartSet_Tools.cpp
 // Created:     28 Apr 2014
 // Author:      Natalia ERMOLAEVA
 
index 06e9b43863095109be50f598475d035374b5baf4..86c4def1861185108a43fe3c3cac5f86357ead02 100644 (file)
@@ -1,6 +1,6 @@
 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
 
-// File:        PartSet_WidgetPoint2dAngle.h
+// File:        PartSet_WidgetPoint2dAngle.cpp
 // Created:     23 June 2014
 // Author:      Vitaly Smetannikov
 
index c573499fbd496cdc06fe1241bd236829777dea60..ee59d8aeef8744ec7f610029c6f6488f914c03f8 100644 (file)
@@ -1,6 +1,6 @@
 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
 
-// File:        PartSet_WidgetPoint2dDistance.h
+// File:        PartSet_WidgetPoint2dDistance.cpp
 // Created:     23 June 2014
 // Author:      Vitaly Smetannikov
 
index 16c4488bcf9c209f2eda639850febd82e35b4a04..0c49b56a9ed1ed6ea3a7145f05583a76fba5a58b 100644 (file)
@@ -44,6 +44,7 @@ SET(PROJECT_SOURCES
     SketchPlugin_Point.cpp
     SketchPlugin_Circle.cpp
     SketchPlugin_Arc.cpp
+    SketchPlugin_Constraint.cpp
     SketchPlugin_ConstraintBase.cpp
     SketchPlugin_ConstraintCoincidence.cpp
     SketchPlugin_ConstraintDistance.cpp
diff --git a/src/SketchPlugin/SketchPlugin_Constraint.cpp b/src/SketchPlugin/SketchPlugin_Constraint.cpp
new file mode 100644 (file)
index 0000000..c3d2d00
--- /dev/null
@@ -0,0 +1,12 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
+
+// File:    SketchPlugin_Constraint.cpp
+// Created: 08 May 2014
+// Author:  Artem ZHIDKOV
+
+#include "SketchPlugin_Constraint.h"
+
+SketchPlugin_Constraint::SketchPlugin_Constraint()
+{
+
+}
index 49f98b0cfb4983daacf7095704474f8d9acd49f6..dc4a228cbc80aa1dbe7f5917ced4dd3c9a0fee4d 100644 (file)
@@ -79,9 +79,7 @@ class SketchPlugin_Constraint : public SketchPlugin_Feature
 
  protected:
   /// \brief Use plugin manager for features creation
-  SketchPlugin_Constraint()
-  {
-  }
+  SketchPlugin_Constraint();
 };
 
 typedef std::shared_ptr<SketchPlugin_Constraint> ConstraintPtr;
index 4da2ebedaa9e5575030f1453611d4aaf259ed7b6..494759b7645d3fced0ddece8d0d85af7d60a84d7 100644 (file)
@@ -42,6 +42,7 @@ SET(PROJECT_SOURCES
        XGUI_OperationMgr.cpp
        XGUI_PropertyPanel.cpp
        XGUI_QtEvents.cpp
+       XGUI_SalomeConnector.cpp
        XGUI_Selection.cpp
        XGUI_SelectionMgr.cpp
        XGUI_Tools.cpp
index a18777890d9494d7678b1454e1d1dfe29c3a2299..4cf7f3b851ec29a9ef405a7f7b137fa040c5aa1d 100644 (file)
@@ -1,6 +1,6 @@
 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
 
-// File:        XGUI_OperationMgr.h
+// File:        XGUI_OperationMgr.cpp
 // Created:     20 Apr 2014
 // Author:      Natalia ERMOLAEVA
 
diff --git a/src/XGUI/XGUI_SalomeConnector.cpp b/src/XGUI/XGUI_SalomeConnector.cpp
new file mode 100644 (file)
index 0000000..8ae4e3e
--- /dev/null
@@ -0,0 +1,13 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
+
+#include "XGUI_SalomeConnector.h"
+
+XGUI_SalomeConnector::XGUI_SalomeConnector()
+{
+
+}
+
+XGUI_SalomeConnector::~XGUI_SalomeConnector()
+{
+
+}
index 312342e14e149a74d59eb5db486851325061f79b..a7dd901c3ce600c594ae995deeda115f4588f899 100644 (file)
@@ -21,6 +21,11 @@ class ModuleBase_IViewer;
 class XGUI_EXPORT XGUI_SalomeConnector
 {
  public:
+  /// Default constructor
+  XGUI_SalomeConnector();
+  /// Virtual destructor
+  virtual ~XGUI_SalomeConnector();
+
   //! Creates a feature (command) in SALOME desktop
   //! \param theWBName - a workbench name
   //! \param theId - an id of the feature