]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix for Bug NPAL15530:
authorenk <enk@opencascade.com>
Tue, 10 Apr 2007 06:35:04 +0000 (06:35 +0000)
committerenk <enk@opencascade.com>
Tue, 10 Apr 2007 06:35:04 +0000 (06:35 +0000)
EDF PAL : TUI: EnableYGrid isn't take into account

src/VISU_I/VISU_View_i.cc
src/VISU_I/VISU_View_i.hh

index 95b12902fd178cf8dae0830a82489b107464465f..3f6e31868fd6835a01661f4372efcf39b652d508 100644 (file)
@@ -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:
index 6f1d96e11084adae47dd18db5aee6f4553649e6f..137cf224f3af53da06b733ae089c01cb23e94412 100644 (file)
@@ -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);