]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Remove dependency on XGUI
authorvsv <vitaly.smetannikov@opencascade.com>
Wed, 14 Dec 2016 07:54:47 +0000 (10:54 +0300)
committernds <nds@opencascade.com>
Thu, 15 Dec 2016 11:36:23 +0000 (14:36 +0300)
src/CollectionPlugin/CMakeLists.txt
src/CollectionPlugin/CollectionPlugin_WidgetField.cpp

index 653aeb8e6623f0e7de8f95b0756957cc13806d42..00c353de77190e61a73ddb09afeb3989b471e4bf 100644 (file)
@@ -53,7 +53,6 @@ INCLUDE_DIRECTORIES(
   ../Events
   ../ModuleBase
   ../Config
-  ../XGUI
   ${CAS_INCLUDE_DIRS}
 )
 
@@ -64,8 +63,6 @@ SET(PROJECT_LIBRARIES
     GeomAlgoAPI
     GeomValidators
     ModuleBase
-    XGUI
-    ${QT_LIBRARIES}
 )
 
 ADD_DEFINITIONS(-DCOLLECTIONPLUGIN_EXPORTS ${CAS_DEFINITIONS})
index 80f3e3d683e9f15afc10c6255e5f21b050c4689a..5c0040a916fcb79fc61d45b9c8d088f41ccff9c4 100644 (file)
 #include <ModuleBase_Tools.h>
 #include <ModuleBase_IWorkshop.h>
 #include <ModuleBase_ISelection.h>
-
-#include <XGUI_Tools.h>
-#include <XGUI_Workshop.h>
-#include <XGUI_PropertyPanel.h>
+#include <ModuleBase_IPropertyPanel.h>
 
 #include <ModelAPI_AttributeSelectionList.h>
 #include <ModelAPI_AttributeStringArray.h>
@@ -356,8 +353,7 @@ bool CollectionPlugin_WidgetField::eventFilter(QObject* theObject, QEvent* theEv
   } else if (theEvent->type() == QEvent::FocusIn) {
     QTableWidget* aTable = dynamic_cast<QTableWidget*>(theObject);
     if (aTable) {
-      XGUI_Workshop* aWorkshop = XGUI_Tools::workshop(myWorkshop);
-      XGUI_PropertyPanel* aPanel = aWorkshop->propertyPanel();
+      ModuleBase_IPropertyPanel* aPanel = myWorkshop->propertyPanel();
       if (aPanel->activeWidget() != this) {
         myActivation = true;
         aPanel->activateWidget(this, false);