#include <QLineEdit>
#include <QMouseEvent>
-HYDROGUI_ViewerDlg::HYDROGUI_ViewerDlg( HYDROGUI_Module* theModule, const QString& theTitle, bool isSplitter )
+HYDROGUI_ViewerDlg::HYDROGUI_ViewerDlg( HYDROGUI_Module* theModule, const QString& theTitle, bool isSplitter, bool dispTrihedron )
: HYDROGUI_InputPanel( theModule, theTitle, true, isSplitter )
{
SUIT_ResourceMgr* aResMgr = SUIT_Session::session()->resourceMgr();
+#ifndef TEST_MODE
SUIT_Study* aStudy = theModule ? theModule->application()->activeStudy() : 0;
-
+#else
+ SUIT_Study* aStudy = 0;
+#endif
myViewManager = new OCCViewer_ViewManager( aStudy, 0 );
- OCCViewer_Viewer* aViewer = new OCCViewer_Viewer( true );
+ bool IsChainedPan = aResMgr->booleanValue( "HYDRO", "chained_panning" );
+ myViewManager->setChainedOperations(IsChainedPan);
+ OCCViewer_Viewer* aViewer = new OCCViewer_Viewer( dispTrihedron );
aViewer->setBackground( OCCViewer_ViewFrame::TOP_LEFT,
aResMgr->backgroundValue( "OCCViewer", "xz_background", aViewer->background(OCCViewer_ViewFrame::TOP_LEFT) ) );
if ( !anAISContext.IsNull() && !aTrihedron.IsNull() )
{
viewer()->setTrihedronShown( false );
- anAISContext->Display( aTrihedron );
+ anAISContext->Display( aTrihedron, true );
anAISContext->Deactivate( aTrihedron );
}
}