using namespace std;
-#include "SALOMEDSClient.hxx"
-#include "SALOMEDS_StudyManager.hxx"
+//ASL: Temporary commented in order to avoir dependency on SALOMEDS
+
+//#include "SALOMEDSClient.hxx"
+//#include "SALOMEDS_StudyManager.hxx"
// in order NOT TO link with SalomeApp, here the code returns SALOMEDS_Study.
// SalomeApp_Study::studyDS() does it as well, but -- here it is retrieved from
// SALOMEDS::StudyManager - no linkage with SalomeApp.
-static _PTR(Study) getStudyDS()
+/*static _PTR(Study) getStudyDS()
{
SALOMEDSClient_Study* aStudy = NULL;
_PTR(StudyManager) aMgr( new SALOMEDS_StudyManager() );
const int id = stud->id(); // virtual method, must return SALOMEDS_Study id
// get SALOMEDS_Study with this id from StudyMgr
return aMgr->GetStudyByID( id );
-}
+} */
//=================================================================================
// SPlot2d_Viewer implementation
aViewFrame->eraseCurve( curve, update );
// it can be table or container object selected
- _PTR(Study) aStudy = getStudyDS();
+ //ASL: Temporary commented in order to avoid dependency on SALOMEDS
+/* _PTR(Study) aStudy = getStudyDS();
_PTR(SObject) aSO = aStudy->FindObjectID(IObject->getEntry());
if ( aSO ) {
_PTR(ChildIterator) aIter = aStudy->NewChildIterator( aSO );
aViewFrame->eraseCurve( curve, update );
}
}
-
+*/
}
#include "SUPERVGraph_ViewFrame.h"
-#include "utilities.h"
-
//QT Include
#include <qlayout.h>
#include <qcolordialog.h>
*/
void SUPERVGraph_ViewFrame::onViewTrihedron()
{
- MESSAGE ( "SUPERVGraph_ViewFrame::onViewTrihedron" )
+// MESSAGE ( "SUPERVGraph_ViewFrame::onViewTrihedron" )
}
/*!
*/
void SUPERVGraph_ViewFrame::onViewTop()
{
- MESSAGE ( "SUPERVGraph_ViewFrame::onViewTop" )
+// MESSAGE ( "SUPERVGraph_ViewFrame::onViewTop" )
}
/*!
*/
void SUPERVGraph_ViewFrame::onViewBottom()
{
- MESSAGE ( "SUPERVGraph_ViewFrame::onViewBottom" )
+// MESSAGE ( "SUPERVGraph_ViewFrame::onViewBottom" )
}
/*!
*/
void SUPERVGraph_ViewFrame::onViewLeft()
{
- MESSAGE ( "SUPERVGraph_ViewFrame::onViewLeft" )
+// MESSAGE ( "SUPERVGraph_ViewFrame::onViewLeft" )
}
/*!
*/
void SUPERVGraph_ViewFrame::onViewRight()
{
- MESSAGE ( "SUPERVGraph_ViewFrame::onViewRight" )
+// MESSAGE ( "SUPERVGraph_ViewFrame::onViewRight" )
}
/*!
*/
void SUPERVGraph_ViewFrame::onViewBack()
{
- MESSAGE ( "SUPERVGraph_ViewFrame::onViewBack" )
+// MESSAGE ( "SUPERVGraph_ViewFrame::onViewBack" )
}
/*!
*/
void SUPERVGraph_ViewFrame::onViewFront()
{
- MESSAGE ( "SUPERVGraph_ViewFrame::onViewFront" )
+// MESSAGE ( "SUPERVGraph_ViewFrame::onViewFront" )
}
/*!
*/
void SUPERVGraph_ViewFrame::onViewReset()
{
- MESSAGE ( "SUPERVGraph_ViewFrame::onViewReset" )
+// MESSAGE ( "SUPERVGraph_ViewFrame::onViewReset" )
if (myView)
myView->ResetView();
}
*/
void SUPERVGraph_ViewFrame::onViewRotate()
{
- MESSAGE ( "SUPERVGraph_ViewFrame::onViewRotate" )
+// MESSAGE ( "SUPERVGraph_ViewFrame::onViewRotate" )
}
/*!
*/
void SUPERVGraph_ViewFrame::onViewGlobalPan()
{
- MESSAGE ( "SUPERVGraph_ViewFrame::onViewGlobalPan" )
+// MESSAGE ( "SUPERVGraph_ViewFrame::onViewGlobalPan" )
}
/*!
*/
void SUPERVGraph_ViewFrame::onViewZoom()
{
- MESSAGE ( "SUPERVGraph_ViewFrame::onViewZoom" )
+// MESSAGE ( "SUPERVGraph_ViewFrame::onViewZoom" )
}
/*!
*/
void SUPERVGraph_ViewFrame::onViewPan()
{
- MESSAGE ( "SUPERVGraph_ViewFrame::onViewPan" )
+// MESSAGE ( "SUPERVGraph_ViewFrame::onViewPan" )
if (myView != NULL)
myView->ActivatePanning();
}
*/
void SUPERVGraph_ViewFrame::onViewFitArea()
{
- MESSAGE ( "SUPERVGraph_ViewFrame::onViewFitArea" )
+// MESSAGE ( "SUPERVGraph_ViewFrame::onViewFitArea" )
}
/*!
*/
void SUPERVGraph_ViewFrame::onViewFitAll()
{
- MESSAGE ( "SUPERVGraph_ViewFrame::onViewFitAll" )
+// MESSAGE ( "SUPERVGraph_ViewFrame::onViewFitAll" )
}
/*!
void SUPERVGraph_ViewFrame::onAdjustTrihedron()
{
- MESSAGE ( "SUPERVGraph_ViewFrame::onAdjustTrihedron" )
+// MESSAGE ( "SUPERVGraph_ViewFrame::onAdjustTrihedron" )
}
void SUPERVGraph_ViewFrame::rename( const Handle(SALOME_InteractiveObject)& IObject,
QString newName )
{
- MESSAGE ( "SUPERVGraph_ViewFrame::rename" )
+// MESSAGE ( "SUPERVGraph_ViewFrame::rename" )
}
void SUPERVGraph_ViewFrame::unHighlightAll()
{
- MESSAGE ( "SUPERVGraph_ViewFrame::unHighlightAll" )
+// MESSAGE ( "SUPERVGraph_ViewFrame::unHighlightAll" )
}
void SUPERVGraph_ViewFrame::highlight( const Handle(SALOME_InteractiveObject)& IObject,
bool highlight, bool immediatly )
{
- MESSAGE ( "SUPERVGraph_ViewFrame::highlight" )
+// MESSAGE ( "SUPERVGraph_ViewFrame::highlight" )
}
bool SUPERVGraph_ViewFrame::isInViewer( const Handle(SALOME_InteractiveObject)& IObject )
{
- MESSAGE ( "SUPERVGraph_ViewFrame::isInViewer" )
+// MESSAGE ( "SUPERVGraph_ViewFrame::isInViewer" )
return false;
}
bool SUPERVGraph_ViewFrame::isVisible( const Handle(SALOME_InteractiveObject)& IObject )
{
- MESSAGE ( "SUPERVGraph_ViewFrame::isVisible" )
+// MESSAGE ( "SUPERVGraph_ViewFrame::isVisible" )
return false;
}
-void SUPERVGraph_ViewFrame::undo( const _PTR(Study)& aStudy,
- const char* StudyFrameEntry )
-{
- MESSAGE ( "SUPERVGraph_ViewFrame::undo" )
-}
-
-void SUPERVGraph_ViewFrame::redo( const _PTR(Study)& aStudy,
- const char* StudyFrameEntry )
-{
- MESSAGE ( "SUPERVGraph_ViewFrame::redo" )
-}
-
void SUPERVGraph_ViewFrame::resizeEvent( QResizeEvent* theEvent )
{
QMainWindow::resizeEvent( theEvent );
#define SUPERVGraph_ViewFrame_H
#include "SALOME_InteractiveObject.hxx"
-
-#include "SALOMEDSClient.hxx"
-
-#include "SalomeApp_Application.h"
#include "SUIT_PopupClient.h"
#include "SUIT_ViewWindow.h"
QString newName );
bool isInViewer( const Handle(SALOME_InteractiveObject)& IObject );
bool isVisible( const Handle(SALOME_InteractiveObject)& IObject );
-
- /* undo/redo management */
- void undo(const _PTR(Study)& aStudy, const char* StudyFrameEntry);
- void redo(const _PTR(Study)& aStudy, const char* StudyFrameEntry);
-
/* selection */
Handle(SALOME_InteractiveObject) FindIObject(const char* Entry) { Handle(SALOME_InteractiveObject) o; return o; };
private:
SUPERVGraph_View* myView;
- SalomeApp_Application* myApp;
};
#endif