-// Copyright (C) 2007-2019 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2023 CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
#include <QApplication>
OCCViewer_ViewFrame::OCCViewer_ViewFrame(SUIT_Desktop* theDesktop, OCCViewer_Viewer* theModel)
- : OCCViewer_ViewWindow( theDesktop, theModel ), myPopupRequestedView(0), mySplitMode(-1)
+ : OCCViewer_ViewWindow( theDesktop, theModel ), mySplitMode(-1), myPopupRequestedView(0)
{
QFrame* centralFrame = new QFrame( this );
setCentralWidget( centralFrame );
if( mySplitMode == -1 )
return;
- int aNbViews;
+ int aNbViews = 1;
if ( mySplitMode >= 0 && mySplitMode < 2)
aNbViews = 2;
else if( mySplitMode >= 2 && mySplitMode < 8 )
aNbViews = 4;
if( aNbViews != myViewsMode.count() )
- return;
+ return;
int SubViews3Map[6][3][4] = {
{ {0,0,1,1}, {0,1,1,1}, {0,2,1,1} },
}
}
+//**************************************************************************************
+OCCViewer_ViewWindow::SelectionStyle OCCViewer_ViewFrame::selectionStyle() const
+{
+ return getView(MAIN_VIEW)->selectionStyle();
+}
+
+//**************************************************************************************
+void OCCViewer_ViewFrame::setSelectionStyle(OCCViewer_ViewWindow::SelectionStyle t)
+{
+ foreach(OCCViewer_ViewWindow* aView, myViews) {
+ aView->setSelectionStyle(t);
+ }
+}
+
//**************************************************************************************
int OCCViewer_ViewFrame::stereoType() const
{