From: dmv Date: Thu, 16 Apr 2009 08:07:52 +0000 (+0000) Subject: IPAL21035 It's impossible to hide scalar bar for gauss points X-Git-Tag: V5_1_main_20090514~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1fdf22d176cea2b1473ef2688c2cbbc695a26e02;p=modules%2Fvisu.git IPAL21035 It's impossible to hide scalar bar for gauss points --- diff --git a/src/VISUGUI/VISU_msg_en.ts b/src/VISUGUI/VISU_msg_en.ts index 48789802..fb62750e 100644 --- a/src/VISUGUI/VISU_msg_en.ts +++ b/src/VISUGUI/VISU_msg_en.ts @@ -2048,6 +2048,10 @@ Please, provide non-empty resulting presentation. DIMENSIONS_GRP Dimensions + + HIDE_SCALAR_BAR + Hide Scalar Bar + DISPLAYED Displayed diff --git a/src/VISUGUI/VisuGUI_GaussPointsDlg.cxx b/src/VISUGUI/VisuGUI_GaussPointsDlg.cxx index fd3bf170..6492ca1f 100644 --- a/src/VISUGUI/VisuGUI_GaussPointsDlg.cxx +++ b/src/VISUGUI/VisuGUI_GaussPointsDlg.cxx @@ -327,6 +327,14 @@ VisuGUI_GaussScalarBarPane::VisuGUI_GaussScalarBarPane (QWidget * parent): myBarDlg = new VisuGUI_BarPrefDlg(this); aMainLayout->addWidget( myBarDlg ); + QGroupBox* CheckGroup = new QGroupBox("", this ); + aMainLayout->addWidget( CheckGroup ); + QGridLayout* CheckGroupLayout = new QGridLayout( CheckGroup ); + + myHideBar = new QCheckBox(tr("HIDE_SCALAR_BAR"), CheckGroup); + myHideBar->setChecked(false); + CheckGroupLayout->addWidget(myHideBar, 0, 0); + // signals and slots connections =========================================== connect( RBFieldRange, SIGNAL( clicked() ), this, SLOT( fieldRangeClicked() ) ); connect( RBImposedRange,SIGNAL( clicked() ), this, SLOT( imposedRangeClicked() ) ); @@ -568,6 +576,8 @@ void VisuGUI_GaussScalarBarPane::initFromPrsObject(VISU::GaussPoints_i* thePrs, thePrs->IsBoldLabel(), thePrs->IsItalicLabel(), thePrs->IsShadowLabel()); + + myHideBar->setChecked(!thePrs->IsBarVisible()); } /** @@ -603,6 +613,8 @@ int VisuGUI_GaussScalarBarPane::storeToPrsObject(VISU::GaussPoints_i* thePrs) { thePrs->SetLabelsFormat( f.c_str() ); thePrs->SetUnitsVisible(myBarDlg->isUnitsVisible()); + thePrs->SetBarVisible(!myHideBar->isChecked()); + if (myIsStoreTextProp) { // "Title" thePrs->SetTitle(myTextDlg->getTitleText().toLatin1().data()); @@ -996,7 +1008,7 @@ int VisuGUI_GaussPointsDlg::storeToPrsObject( VISU::ColoredPrs3d_i* thePrs ) //Issue 0019874(EDF 746 VISU: Picking alphanumeric Gauss) if(thePrs){ SALOME_ListIO aListIO; - LightApp_SelectionMgr* aSelectionMgr = VISU::GetSelectionMgr(myModule); + // LightApp_SelectionMgr* aSelectionMgr = VISU::GetSelectionMgr(myModule); Handle(SALOME_InteractiveObject) anIO = thePrs->GetIO(); if(anIO && anIO->hasEntry()) { aListIO.Append(anIO); diff --git a/src/VISUGUI/VisuGUI_GaussPointsDlg.h b/src/VISUGUI/VisuGUI_GaussPointsDlg.h index 6b0121d6..f7742c7e 100644 --- a/src/VISUGUI/VisuGUI_GaussPointsDlg.h +++ b/src/VISUGUI/VisuGUI_GaussPointsDlg.h @@ -96,6 +96,7 @@ class VisuGUI_GaussScalarBarPane : public QWidget//QVBox QRadioButton* myRBLocal; QRadioButton* myRBGlobal; QCheckBox* myCBDisplayed; + QCheckBox* myHideBar; double Imin, Imax; double myHorX, myHorY, myHorW, myHorH;