X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROGUI%2FHYDROGUI_ProfileDlg.cxx;h=8e1ed22c9380adf6fbbc411f9694a0c8f6b5a576;hb=282328072477a3e3cde6d02204129828c4c7ac23;hp=ea9bfd8a00c8f91149fe38c99c5edeee0949f317;hpb=575363a8b27efeb72d97631bcf9644486b14f2dd;p=modules%2Fhydro.git diff --git a/src/HYDROGUI/HYDROGUI_ProfileDlg.cxx b/src/HYDROGUI/HYDROGUI_ProfileDlg.cxx index ea9bfd8a..8e1ed22c 100644 --- a/src/HYDROGUI/HYDROGUI_ProfileDlg.cxx +++ b/src/HYDROGUI/HYDROGUI_ProfileDlg.cxx @@ -1,8 +1,4 @@ -// Copyright (C) 2007-2015 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 -// +// Copyright (C) 2014-2015 EDF-R&D // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundation; either @@ -89,6 +85,7 @@ void HYDROGUI_ProfileDlg::reset() { myEditorWidget->reset(); myEditorWidget->setActionMode( CurveCreator_Widget::AdditionMode ); + viewer()->setTrihedronShown( false ); // Issue #548 } void HYDROGUI_ProfileDlg::setProfileName( const QString& theName ) @@ -154,3 +151,11 @@ void HYDROGUI_ProfileDlg::processFinishedSubOperation( QWidget* theWidget ) theWidget->hide(); myAddElementBox->hide(); } + +Handle(AIS_Trihedron) HYDROGUI_ProfileDlg::trihedron() +{ + SUIT_ResourceMgr* aResMgr = SUIT_Session::session()->resourceMgr(); + Handle(AIS_Trihedron) aTrihedron = + HYDROGUI_AISTrihedron::createTrihedron( aResMgr->doubleValue( "3DViewer", "trihedron_size", viewer()->trihedronSize() ) ); + return aTrihedron; +}