From: enk Date: Tue, 10 Apr 2007 06:35:04 +0000 (+0000) Subject: Fix for Bug NPAL15530: X-Git-Tag: V3_2_6pre4~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=24d96d0d7d5b23d984a51bf01c28258db8216d23;p=modules%2Fvisu.git Fix for Bug NPAL15530: EDF PAL : TUI: EnableYGrid isn't take into account --- diff --git a/src/VISU_I/VISU_View_i.cc b/src/VISU_I/VISU_View_i.cc index 95b12902..3f6e3186 100644 --- a/src/VISU_I/VISU_View_i.cc +++ b/src/VISU_I/VISU_View_i.cc @@ -1143,18 +1143,25 @@ namespace VISU { CORBA::Boolean theMinor, CORBA::Long theNumMinor) { if (GetViewWindow()) - ProcessVoidEvent(new TEnableGridEvent(myView,&Plot2d_ViewFrame::setXGrid, - theMajor,theNumMajor,theMinor,theNumMinor)); + myView->setXGrid(theMajor,theNumMajor,theMinor,theNumMinor); } void XYPlot_i::EnableYGrid(CORBA::Boolean theMajor, CORBA::Long theNumMajor, CORBA::Boolean theMinor, CORBA::Long theNumMinor) { - //asl: Plot2d_ViewFrame::setYGrid has more parameters - //if (GetViewWindow()) - // ProcessVoidEvent(new TEnableGridEvent(myView,&Plot2d_ViewFrame::setYGrid, - // theMajor,theNumMajor,theMinor,theNumMinor)); + this->EnableYGrid(theMajor,theNumMajor,theMinor,theNumMinor, + false,0,false,0); } + void XYPlot_i::EnableYGrid(CORBA::Boolean theMajor, CORBA::Long theNumMajor, + CORBA::Boolean theMinor, CORBA::Long theNumMinor, + CORBA::Boolean the2Major, CORBA::Long the2NumMajor, + CORBA::Boolean the2Minor, CORBA::Long the2NumMinor) + { + if (GetViewWindow()) + myView->setYGrid(theMajor,theNumMajor,theMinor,theNumMinor, + the2Major,the2NumMajor,the2Minor,the2NumMinor); + } + class TSetScaleModeEvent: public SALOME_Event { public: diff --git a/src/VISU_I/VISU_View_i.hh b/src/VISU_I/VISU_View_i.hh index 6f1d96e1..137cf224 100644 --- a/src/VISU_I/VISU_View_i.hh +++ b/src/VISU_I/VISU_View_i.hh @@ -152,6 +152,11 @@ namespace VISU virtual void EnableYGrid (CORBA::Boolean theMajor, CORBA::Long theNumMajor, CORBA::Boolean theMinor, CORBA::Long theNumMinor); + virtual void EnableYGrid (CORBA::Boolean theMajor, CORBA::Long theNumMajor, + CORBA::Boolean theMinor, CORBA::Long theNumMinor, + CORBA::Boolean the2Major, CORBA::Long the2NumMajor, + CORBA::Boolean the2Minor, CORBA::Long the2NumMinor); + virtual void SetHorScaling (VISU::Scaling theScaling); virtual VISU::Scaling GetHorScaling(); virtual void SetVerScaling (VISU::Scaling theScaling);