]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
PTV fixes for COSAC GUI
authorptv <ptv@opencascade.com>
Wed, 4 Oct 2006 08:21:17 +0000 (08:21 +0000)
committerptv <ptv@opencascade.com>
Wed, 4 Oct 2006 08:21:17 +0000 (08:21 +0000)
src/LightApp/LightApp_Application.cxx
src/LightApp/LightApp_OBSelector.h
src/LightApp/LightApp_OCCSelector.cxx
src/LightApp/LightApp_OCCSelector.h
src/LightApp/resources/LightApp.xml
src/SUIT/SUIT_Operation.h

index 7dffb1f0ef7abe2f10b46cd79b73dc466b5cd8ea..b00782443393d6aae602291e3ba97ab6bc1de030 100644 (file)
@@ -71,6 +71,8 @@
 #ifndef DISABLE_PLOT2DVIEWER
   #include <Plot2d_ViewManager.h>
   #include <Plot2d_ViewModel.h>
+  #include <Plot2d_ViewWindow.h>
+  #include <Plot2d_ViewFrame.h>
 #ifndef DISABLE_SALOMEOBJECT
   #include <SPlot2d_ViewModel.h>
 #else
index f6811946c67092dc170e9b2e6bc2c98ddcbd76cc..c6f8388ecc8bce5e4fccc6c9c4c39b8258b7d7d3 100644 (file)
 #ifndef LIGHTAPP_OBSELECTOR_H
 #define LIGHTAPP_OBSELECTOR_H
 
-#include "LightApp.h"
-
 #include <SUIT_Selector.h>
 #include <SUIT_DataOwner.h>
 
+#include "LightApp.h"
+
 class OB_Browser;
 class LightApp_DataObject;
 
index 446ae593bf46bdbea8381408e4d4823d1f35c556..616091a1ebf9aa5c5708d7c4ac14664cea175036 100644 (file)
@@ -29,6 +29,7 @@
 /*!
   Constructor
 */
+#ifndef DISABLE_OCCVIEWER
 LightApp_OCCSelector::LightApp_OCCSelector( OCCViewer_Viewer* viewer, SUIT_SelectionMgr* mgr )
 : SUIT_Selector( mgr, viewer ),
   myViewer( viewer )
@@ -36,6 +37,11 @@ LightApp_OCCSelector::LightApp_OCCSelector( OCCViewer_Viewer* viewer, SUIT_Selec
   if ( myViewer )
     connect( myViewer, SIGNAL( selectionChanged() ), this, SLOT( onSelectionChanged() ) );
 }
+#else
+LightApp_OCCSelector::LightApp_OCCSelector(  SUIT_SelectionMgr* mgr )
+: SUIT_Selector( mgr )
+{}
+#endif
 
 /*!
   Destructor.
@@ -47,10 +53,12 @@ LightApp_OCCSelector::~LightApp_OCCSelector()
 /*!
   Gets viewer.
 */
+#ifndef DISABLE_OCCVIEWER
 OCCViewer_Viewer* LightApp_OCCSelector::viewer() const
 {
   return myViewer;
 }
+#endif
 
 /*!On selection changed.*/
 void LightApp_OCCSelector::onSelectionChanged()
@@ -61,6 +69,7 @@ void LightApp_OCCSelector::onSelectionChanged()
 /*!Gets selection list.*/
 void LightApp_OCCSelector::getSelection( SUIT_DataOwnerPtrList& aList ) const
 {
+#ifndef DISABLE_OCCVIEWER
   if ( !myViewer )
     return;
 
@@ -77,11 +86,13 @@ void LightApp_OCCSelector::getSelection( SUIT_DataOwnerPtrList& aList ) const
       aList.append( SUIT_DataOwnerPtr( new LightApp_DataOwner( entry( anIt.Value() ) ) ) );
 #endif
     }
+#endif
 }
 
 /*!Sets selection list.*/
 void LightApp_OCCSelector::setSelection( const SUIT_DataOwnerPtrList& aList )
 {
+#ifndef DISABLE_OCCVIEWER
   if ( !myViewer )
     return;
 
@@ -109,8 +120,10 @@ void LightApp_OCCSelector::setSelection( const SUIT_DataOwnerPtrList& aList )
 
   myViewer->unHighlightAll( false );
   myViewer->setObjectsSelected( aSelList );
+#endif
 }
 
+#ifndef DISABLE_OCCVIEWER
 /*!Gets entry ob object.*/
 QString LightApp_OCCSelector::entry( const Handle(AIS_InteractiveObject)& anAIS ) const
 {
@@ -127,3 +140,5 @@ QString LightApp_OCCSelector::entry( const Handle(AIS_InteractiveObject)& anAIS
 
   return res;
 }
+#endif
+
index c358efe8aa48fd387c1442201afb0a880a17783d..d8cc273b82554c79ce8420e006ba3075d3e6a658 100644 (file)
 
 #include <SUIT_Selector.h>
 
+#ifndef DISABLE_OCCVIEWER
 #include <OCCViewer_ViewModel.h>
 
 class Handle_AIS_InteractiveObject;
+#endif
 
 /*!
   \class LightApp_OCCSelector
@@ -36,13 +38,18 @@ class LIGHTAPP_EXPORT LightApp_OCCSelector : public SUIT_Selector
   Q_OBJECT
 
 public:
+#ifndef DISABLE_OCCVIEWER
   LightApp_OCCSelector( OCCViewer_Viewer*, SUIT_SelectionMgr* );
+#else
+  LightApp_OCCSelector( SUIT_SelectionMgr* );
+#endif
   virtual ~LightApp_OCCSelector();
 
+#ifndef DISABLE_OCCVIEWER
   OCCViewer_Viewer* viewer() const;
 
   virtual QString   type() const { return OCCViewer_Viewer::Type(); }
-
+#endif
 private slots:
   virtual void      onSelectionChanged();
 
@@ -50,10 +57,12 @@ protected:
   virtual void      getSelection( SUIT_DataOwnerPtrList& ) const;
   virtual void      setSelection( const SUIT_DataOwnerPtrList& );
 
+#ifndef DISABLE_OCCVIEWER
   QString           entry( const Handle_AIS_InteractiveObject& ) const;
 
 private:
   OCCViewer_Viewer* myViewer;
+#endif
 };
 
 #endif
index 7cb56db7bc919dde06e7b37cd192d5c3b363a82f..31db6bf1b64bf371dbcb9cf219f9d04b5d17d3e2 100644 (file)
   </section>
   <section name="splash" >
     <!-- Splash screen settings -->
-    <parameter name="image"       value="${SUITRoot}/resources/icon_about.png" />
+    <parameter name="image"       value="${SUITRoot}/share/salome/resources/icon_about.png" />
     <parameter name="info"        value="%A : %V" />
     <parameter name="text_colors" value="#543AA9|#FFFFFF" />
   </section>
   <section name="resources">
     <!-- Resource directories (resource manager)-->
-    <parameter name="SUIT"         value="${SUITRoot}/resources"/>
-    <parameter name="STD"          value="${SUITRoot}/resources"/>
-    <parameter name="Plot2d"       value="${SUITRoot}/resources"/>
-    <parameter name="SPlot2d"      value="${SUITRoot}/resources"/>
-    <parameter name="GLViewer"     value="${SUITRoot}/resources"/>
-    <parameter name="OCCViewer"    value="${SUITRoot}/resources"/>
-    <parameter name="VTKViewer"    value="${SUITRoot}/resources"/>
-    <parameter name="SalomeApp"    value="${SUITRoot}/resources"/>
-    <parameter name="OB"           value="${SUITRoot}/resources"/>
-    <parameter name="CAM"          value="${SUITRoot}/resources"/>
-    <parameter name="LightApp"     value="${SUITRoot}/resources"/>
-    <parameter name="SVTK"         value="${SUITRoot}/resources"/>
-    <parameter name="ToolsGUI"     value="${SUITRoot}/resources"/>
+    <parameter name="SUIT"         value="${SUITRoot}/share/salome/resources"/>
+    <parameter name="STD"          value="${SUITRoot}/share/salome/resources"/>
+    <parameter name="Plot2d"       value="${SUITRoot}/share/salome/resources"/>
+    <parameter name="SPlot2d"      value="${SUITRoot}/share/salome/resources"/>
+    <parameter name="GLViewer"     value="${SUITRoot}/share/salome/resources"/>
+    <parameter name="OCCViewer"    value="${SUITRoot}/share/salome/resources"/>
+    <parameter name="VTKViewer"    value="${SUITRoot}/share/salome/resources"/>
+    <parameter name="SalomeApp"    value="${SUITRoot}/share/salome/resources"/>
+    <parameter name="OB"           value="${SUITRoot}/share/salome/resources"/>
+    <parameter name="CAM"          value="${SUITRoot}/share/salome/resources"/>
+    <parameter name="LightApp"     value="${SUITRoot}/share/salome/resources"/>
+    <parameter name="SVTK"         value="${SUITRoot}/share/salome/resources"/>
+    <parameter name="ToolsGUI"     value="${SUITRoot}/share/salome/resources"/>
     <parameter name="LIGHT"        value="${LIGHT_ROOT_DIR}/share/salome/resources"/>
   </section>
   <section name="desktop" >
index 3d15f058c5774367fd2f3bb050f13898519e4357..a156c846cd2ab71b5b99ea9f2f28d16eb60c9534 100755 (executable)
@@ -107,6 +107,8 @@ public:
 
   virtual QString   operationName() const;
 
+  int               execStatus() const;
+
 signals:
   void              started( SUIT_Operation* );
   void              aborted( SUIT_Operation* );
@@ -140,7 +142,6 @@ protected:
   virtual bool      hasTransaction() const;
   virtual bool      commitTransaction( const QString& = QString::null );
 
-  int               execStatus() const;
   void              setExecStatus( const int );
 
   void              setState( const OperationState );