#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
#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;
/*!
Constructor
*/
+#ifndef DISABLE_OCCVIEWER
LightApp_OCCSelector::LightApp_OCCSelector( OCCViewer_Viewer* viewer, SUIT_SelectionMgr* mgr )
: SUIT_Selector( mgr, viewer ),
myViewer( viewer )
if ( myViewer )
connect( myViewer, SIGNAL( selectionChanged() ), this, SLOT( onSelectionChanged() ) );
}
+#else
+LightApp_OCCSelector::LightApp_OCCSelector( SUIT_SelectionMgr* mgr )
+: SUIT_Selector( mgr )
+{}
+#endif
/*!
Destructor.
/*!
Gets viewer.
*/
+#ifndef DISABLE_OCCVIEWER
OCCViewer_Viewer* LightApp_OCCSelector::viewer() const
{
return myViewer;
}
+#endif
/*!On selection changed.*/
void LightApp_OCCSelector::onSelectionChanged()
/*!Gets selection list.*/
void LightApp_OCCSelector::getSelection( SUIT_DataOwnerPtrList& aList ) const
{
+#ifndef DISABLE_OCCVIEWER
if ( !myViewer )
return;
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;
myViewer->unHighlightAll( false );
myViewer->setObjectsSelected( aSelList );
+#endif
}
+#ifndef DISABLE_OCCVIEWER
/*!Gets entry ob object.*/
QString LightApp_OCCSelector::entry( const Handle(AIS_InteractiveObject)& anAIS ) const
{
return res;
}
+#endif
+
#include <SUIT_Selector.h>
+#ifndef DISABLE_OCCVIEWER
#include <OCCViewer_ViewModel.h>
class Handle_AIS_InteractiveObject;
+#endif
/*!
\class LightApp_OCCSelector
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();
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
</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" >
virtual QString operationName() const;
+ int execStatus() const;
+
signals:
void started( SUIT_Operation* );
void aborted( SUIT_Operation* );
virtual bool hasTransaction() const;
virtual bool commitTransaction( const QString& = QString::null );
- int execStatus() const;
void setExecStatus( const int );
void setState( const OperationState );