]> Creatis software - creaMaracasVisu.git/commitdiff
#3144 creaMaracasVisu Bug New Normal - changeWx28to30
authorEduardo DAVILA <davila@localhost.localdomain>
Thu, 5 Oct 2017 14:10:51 +0000 (16:10 +0200)
committerEduardo DAVILA <davila@localhost.localdomain>
Thu, 5 Oct 2017 14:10:51 +0000 (16:10 +0200)
12 files changed:
bbtk/src/bbmaracasvisuHistogramView.cxx
bbtk/src/bbmaracasvisuPlotterView.cxx
lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/mBarRange.cxx
lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/pGraphicalFunction.cxx
lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/pGraphicalFunction.h
lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/pHistogram.cxx
lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/pLogicalFunction.h
lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/pPlotterLayer.cxx
lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/pPlotterLayer.h
lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/pPlotterScaleX.cxx
lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/pPlotterWindow.cxx
lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/pPlotterWindow.h

index a3101688aea46ff005d287fcd95816e711111bb7..f9c399481a5045b8635e65d305bd48db13e8c95d 100644 (file)
@@ -36,14 +36,12 @@ BBTK_BLACK_BOX_IMPLEMENTATION(HistogramView,bbtk::WxBlackBox);
 //------------------------------------------------
 void HistogramView::Process()
 {
-printf("EED HistogramView::Process Start \n");
        if (firsttime==true)
        {
                firsttime=false;
        //      histogram_wxwidget = new Histogram( wxpanel , -1, wxPoint(0,0), wxSize(400,400),wxNO_BORDER );
                _histogramMinMaxLevel->Configure( bbGetInputIn() );
        }
-printf("EED HistogramView::Process End \n");
 }
 
 //------------------------------------------------
@@ -88,4 +86,3 @@ void HistogramView::CreateWidget(wxWindow* parent)
 }
 // EO namespace bbcreaMaracasVisu
 
-
index 5023801c481565e15186f608aecbce50656dacb4..af7cecc2c73a004e467ead2ee84393bb63bcfb83 100644 (file)
@@ -42,10 +42,7 @@ void PlotterView::Process()
 //     if (firsttime==true)
 //     {
 //             firsttime=false;
-               
-       
-       printf("EED PlotterView::Process %d %d \n ", bbGetInputInY().size(),bbGetInputInY2().size());
-       
+                       
        pGraphicalFunction *pGF = mwxwidget->getFunction(0);
        pGraphicalFunction *pGF2 = mwxwidget->getFunction(1);
 
@@ -110,6 +107,7 @@ void PlotterView::Process()
                } // if bbGetInputInY
                
 //     } // if firsttime
+
        
        if (pGF!=NULL)  
        {
@@ -134,14 +132,18 @@ void PlotterView::Process()
                }               
        }// if pGF
 
-
        if (pGF2!=NULL) 
        {
                // -Erasing  points-
                int i,sizePoints                = pGF2->getSizePoints();
                for (i=0; i<sizePoints;i++)
                {
+//EED 2017-09-16 Migration wxWidgets 2.8 to 3.0
+#if wxMAJOR_VERSION <= 2
                        pGF2->deletePointAt(1);   //  EED here NOT 0 is 1
+#else
+                       pGF2->deletePointAt(0);   //  EED here NOT 0 is 1
+#endif
                } // for i
                // -Add Points-
                double px;
@@ -155,30 +157,23 @@ void PlotterView::Process()
                                px = i;
                        }       
                        pGF2->AddNewPoint( px, bbGetInputInY2()[i] );
-               }               
+               }  // for       
        }// if pGF
-               
        mwxwidget->UpdateAll();
-       
-       
 }
 
        
 //---------------------------------------------------
 void PlotterView::CreateWidget(wxWindow* parent)
 {
-   bbtkDebugMessageInc("Core",9,"PlotterView::CreateWxWindow()"<<std::endl);
-    
-   mwxwidget = new pPlotterWindow( parent , -1,wxDefaultPosition,  wxDefaultSize,  0 );
-   mwxwidget->AddLayer(new pPlotterScaleX());
-   mwxwidget->AddLayer(new pPlotterScaleY());
-
+       bbtkDebugMessageInc("Core",9,"PlotterView::CreateWxWindow()"<<std::endl);
+       mwxwidget = new pPlotterWindow( parent , -1,wxDefaultPosition,  wxDefaultSize,  0 );
+       mwxwidget->AddLayer(new pPlotterScaleX());
+       mwxwidget->AddLayer(new pPlotterScaleY());
        mwxwidget->setMinScrY(0);
        mwxwidget->setMaxScrY(5000);
-
-       
-          bbtkDebugDecTab("Core",9);
-   bbSetOutputWidget( mwxwidget );
+       bbtkDebugDecTab("Core",9);
+       bbSetOutputWidget( mwxwidget );
 }
 
 //---------------------------------------------------
index b92232faecc1a806ae48ab8e4fba8551abbfc1f9..fc10c87e1f46234dae366cb8fb8549c6b803659a 100644 (file)
@@ -24,6 +24,9 @@
 # ------------------------------------------------------------------------ */
 
 //----------------------------------------------------------------------------
+#include <wx/brush.h>
+#include <wx/gdicmn.h>
+
 #include "mBarRange.h"
 
 
@@ -77,10 +80,9 @@ mBarRange::mBarRange(wxWindow *parent, int w, int h)
        _initialPoint           = 0;
        trianglesHalfWidth      = 5;
        
-       wxColour start_Colour;
 
        // Setting the default parts colors
-       start_Colour            =       wxColour(0,0,255);
+       start_Colour            =       wxColour(1,0,255,254);
        actual_Colour           =       wxColour(255,255,202);
        end_Colour                      =       wxColour(0,0,255);
        bar_Colour                      =       wxColour(255,0,255);
@@ -444,11 +446,9 @@ void mBarRange::RefreshHorizontalView()
        int pxEnd               = GetPixelEnd();
        int pxActual    = GetPixelActual();
 
-       
        int letterHeight= 9;
        int barHeight   = 2*letterHeight;
-       int tempHeight  = _h-(6*letterHeight);
-       
+       int tempHeight  = _h-(6*letterHeight);  
        
        if (_visibleLables)
        {
@@ -460,36 +460,26 @@ void mBarRange::RefreshHorizontalView()
        wxMemoryDC temp_dc;
        temp_dc.SelectObject( *_bitmap_bar );
 
-       
        // Background of this widget
-       
-       
        temp_dc.SetPen(wxPen( backgroundColor ));
        temp_dc.SetBrush(wxBrush( backgroundColor ,wxSOLID  ));
-       
        temp_dc.DrawRectangle(0,0,_w+2*trianglesHalfWidth,_h);
-       
-
        temp_dc.SetPen(wxPen( wxColour(167,165,191) ,1,wxSOLID  ));
        temp_dc.DrawLine(trianglesHalfWidth+2, 0, _w-deviceEndMargin, 0);
        temp_dc.DrawLine(trianglesHalfWidth+2, barHeight, (_w-deviceEndMargin-trianglesHalfWidth-2), barHeight);
        temp_dc.SetDeviceOrigin(trianglesHalfWidth+2,0);
 
-
        // Filling the bar
        temp_dc.SetBrush(wxBrush( wxColour(104,104,104),wxSOLID  ));
        temp_dc.SetPen(wxPen( wxColour(104,104,104),1,wxSOLID  ));
        temp_dc.DrawRectangle( pxStart , 0, pxEnd-pxStart, barHeight);
 
-
        //  The Bar
        if( _selectionMoveId==4 )
        {
                temp_dc.SetBrush(wxBrush( wxColour(128,255,0),wxSOLID  ));
                temp_dc.SetPen(wxPen(  wxColour(0,128,0),1,wxSOLID  ));
-       }
-       else
-       {
+       } else {
                temp_dc.SetBrush(wxBrush( bar_Colour,wxSOLID  ));
                temp_dc.SetPen(wxPen( wxColour(164,0,164),1,wxSOLID  ));
        }
@@ -516,9 +506,7 @@ void mBarRange::RefreshHorizontalView()
        {
                temp_dc.SetBrush(wxBrush( wxColour(128,255,0),wxSOLID  ));
                temp_dc.SetPen(wxPen(  wxColour(0,128,0),1,wxSOLID  ));
-       }
-       else
-       {
+       } else {
                temp_dc.SetBrush(wxBrush( start_Colour,wxSOLID  ));
                temp_dc.SetPen(wxPen( wxColour(0,51,204),1,wxSOLID  ));
        }
@@ -528,9 +516,7 @@ void mBarRange::RefreshHorizontalView()
        {
                temp_dc.SetBrush(wxBrush( wxColour(128,255,0),wxSOLID  ));
                temp_dc.SetPen(wxPen(  wxColour(0,128,0),1,wxSOLID  ));
-       }
-       else
-       {
+       } else {
                temp_dc.SetBrush(wxBrush( end_Colour,wxSOLID  ));
                temp_dc.SetPen(wxPen( wxColour(0,0,255),1,wxSOLID  ));
        }
@@ -551,9 +537,7 @@ void mBarRange::RefreshHorizontalView()
                {
                        temp_dc.SetBrush(wxBrush( wxColour(128,255,0),wxSOLID  ));
                        temp_dc.SetPen(wxPen(  wxColour(0,128,0),1,wxSOLID  ));
-               }
-               else
-               {
+               } else {
                        temp_dc.SetBrush(wxBrush( actual_Colour,wxSOLID  ));
                        temp_dc.SetPen(wxPen( wxColour(205,160,5),1,wxSOLID  ));
                }
@@ -583,7 +567,6 @@ void mBarRange::RefreshHorizontalView()
                temp_dc.SetFont(font);
                temp_dc.SetTextForeground(*wxBLACK);
 
-
                //the **MIN** value, always at the same y level that corresponds to barHeight+1
                wxString text_min;
 //             text_min<< GetMin();
@@ -634,7 +617,6 @@ void mBarRange::RefreshHorizontalView()
                        temp_dc.DrawText(text_actual, pxActual-(stringSize.GetWidth()/2),barHeight+letterHeight);                       
                }                       
        }
-
 }
 
 //----------------------------------------------------------------------------
index 7de96c458c2fe9bcb3224ccbb9bfa372c264a2f0..1a8cd58d65d4b66a55b8ec4d7037a49ae5263cec 100644 (file)
@@ -52,27 +52,27 @@ IMPLEMENT_CLASS(pGraphicalFunction, pPlotterLayer)
 pGraphicalFunction:: pGraphicalFunction(wxString name, int flags)
 {
        SetName(name);
-       showPointsF = false;
-       validPointRange = 5;
-       logicFunction = new pLogicalFunction ();
-       fromWindow=false;
-       factorZoom=1;
-       drawing=false;
-       editable=true;
-       ifActual=false;
-       zoomIn=false;
-       setOffsetX(0);
+       showPointsF             = false;
+       validPointRange         = 5;
+       logicFunction           = new pLogicalFunction ();
+       fromWindow                      = false;
+       factorZoom                      = 1;
+       drawing                         = false;
+       editable                        = true;
+       ifActual                        = false;
+       zoomIn                          = false;
+       setOffsetX(0) ;
        setOffsetY(0);
-       initialDrawingPoint=NULL;
-       finalDrawingPoint=NULL;
+       initialDrawingPoint     = NULL;
+       finalDrawingPoint       = NULL;
        //type=1 means that is going to be a piecewise function
-       _type=1;
-       xKSpline=NULL;
-       yKSpline=NULL;
-       offsetPixelX=0;
-       offsetPixelY=0;
-       xTraslation=0;
-       mType=DEFAULT;
+       _type                           = 1;
+       xKSpline                        = NULL;
+       yKSpline                        = NULL;
+       offsetPixelX            = 0;
+       offsetPixelY            = 0;
+       xTraslation                     = 0;
+       mType                           = DEFAULT;
        
 }
 
@@ -224,9 +224,9 @@ bool pGraphicalFunction::deletePointAt(int index)
 {
        bool added=logicFunction -> deletePointAt( index );
        if(!fromWindow)
-        setUp();
-       else
        {
+               setUp();
+       } else {
                logicFunction->setEndPoints();
                logicFunction->setStartPoints();
        }
index 4e8564c3fac753782aaaae3c7353a36aed1cd0c9..227df55d84157c3888ed06e13d2e0c7d7fe64f1f 100644 (file)
@@ -270,6 +270,11 @@ public:
                }
                return false;
        }
+
+
+
+//EED 2017-09-16 Migration wxWidgets 2.8 to 3.0
+#if wxMAJOR_VERSION <= 2
        /**
        Get Point list of the funcion
        @param return points
@@ -279,16 +284,27 @@ public:
                logicFunction->GetPoints(points);
                //points = realPoints;
        }  
+#else
+       /**
+       Get Point list of the funcion
+       @param return pointsPtr
+       */
+       virtual wxList* GetPointsPtr()
+       {
+               return logicFunction->GetPointsPtr();
+       }  
+#endif
+
+
 
        /**
        Get the point where the user
        made a click
        */
-
        virtual void getMousePoint(int &x,int &y)
        {
-               x=mousePoint.x;
-               y=mousePoint.y;
+               x = mousePoint.x;
+               y = mousePoint.y;
        }
 
        /**
index 95dc7a6f121e2068e3852cfbe2a63147e9e4cffe..4bac5fba7d5e09ce09047fd6f213698d32a6ced3 100644 (file)
@@ -153,7 +153,6 @@ void pHistogram::initializePoints(int xDimension)
 void pHistogram::setPoints(vtkImageData* imageData)
 {
 
-printf("EED pHistogram::setPoints Trinng new histogram ..\n");
 /*
 printf("EED pHistogram::setPoints Test: vtkPComputeHistogram2DOutliers\n");
 vtkComputeHistogram2DOutliers *vtkhist = vtkComputeHistogram2DOutliers::New();
index 4958a398c9e7463f0ea0f388e6619c988ca2c58b..6c5bac405aa7d17427755129a2d235b6463bc8d4 100644 (file)
@@ -101,6 +101,9 @@ public:
        }
        */
 
+
+//EED 2017-09-16 Migration wxWidgets 2.8 to 3.0
+#if wxMAJOR_VERSION <= 2
        /**
        Get Point list of the funcion
        @param return points
@@ -110,6 +113,19 @@ public:
        {
                points = realPoints;
        }  
+#else
+       /**
+       Get Point list of the funcion
+       @param return pointsPtr
+       */
+       /*virtual*/
+       wxList* GetPointsPtr()
+       {
+               return &realPoints;
+       }  
+#endif
+
+
        /*
        * validate if the function has that point in a sensible area returning the index where the point was found or -1 if is in not part of the function: define the sensible area is  
        * x1-validPointRange<x<x1+validPointRange y1-validPointRange<y<y1+validPointRange
index b1053424d1c4197d241c423fc4e5421ee8750bfe..6951ccef5c2d9c081a3a392f0aac41ab34f0a510 100644 (file)
@@ -57,9 +57,14 @@ pPlotterLayer:: pPlotterLayer(wxString name , int flags )
 {
        SetName(name);
        m_flags = flags;
+//EED 2017-09-16 Migration wxWidgets 2.8 to 3.0
+#if wxMAJOR_VERSION <= 2
        points.DeleteContents(TRUE);
-       offsetX=0;
-       offsetY=0;
+#else
+       // ...
+#endif
+       offsetX = 0;
+       offsetY = 0;
 }
 
 /*
@@ -314,28 +319,25 @@ bool pPlotterLayer::initializePolygon(wxPoint* points,double x1, double y1,doubl
 */
 void pPlotterLayer::drawFunction(wxDC & dc,mpWindow & w, int orgy)
 {
-
-       
        int scrwX,scrwY,offsetpx,offsetpy,maxX,minX,maxY,minY;
-       wxPoint* ppoints=NULL;
+       wxPoint* ppoints = NULL;
 
        /*
        This is the offset of every point scale to the window
        pixel
        */
-       offsetpx=getOffsetPixelsXv();
-       offsetpy=getOffsetPixelsYv();   
-
+       offsetpx = getOffsetPixelsXv();
+       offsetpy = getOffsetPixelsYv(); 
        Rewind();
-       
        dc.GetSize(&scrwX, &scrwY);
-       
        //Lines between the points
-
        int sizedc = dc.GetSize().GetHeight()-orgy;
-       
+//EED 2017-09-16 Migration wxWidgets 2.8 to 3.0
+#if wxMAJOR_VERSION <= 2
        GetPoints(points);
-
+#else
+  //...
+#endif
        // type of plotter
        int type=getmType();
        /***********/
@@ -345,7 +347,12 @@ void pPlotterLayer::drawFunction(wxDC & dc,mpWindow & w, int orgy)
 
        //traslation
        //int xTraslation=getXTraslation(); //JPRx
+//EED 2017-09-16 Migration wxWidgets 2.8 to 3.0
+#if wxMAJOR_VERSION <= 2
        wxNode* node= points.GetFirst();
+#else
+       wxNode* node= GetPointsPtr()->GetFirst();
+#endif
        // int i=1;//points.GetCount()+1; //JPRx
        int j=2;
        /*
@@ -358,16 +365,19 @@ void pPlotterLayer::drawFunction(wxDC & dc,mpWindow & w, int orgy)
                /*
                Fill the function if it represented an histogram
          */
-               ppoints=(wxPoint*)malloc(sizeof(int)*2*(points.GetCount()+2));
+//EED 2017-09-16 Migration wxWidgets 2.8 to 3.0
+#if wxMAJOR_VERSION <= 2
+               ppoints         = (wxPoint*)malloc(sizeof(int)*2*(points.GetCount()+2));
+#else
+               ppoints         = (wxPoint*)malloc(sizeof(int)*2*(GetPointsPtr()->GetCount()+2));
+#endif
                //initialize points
-               point.x=-5000;
-               point.y=GetYTranslated(sizedc,-5000);
-               ppoints[0]=point;
-               ppoints[1]=point;
-
+               point.x         = -5000;
+               point.y         = GetYTranslated(sizedc,-5000);
+               ppoints[0]      = point;
+               ppoints[1]      = point;
        }
        
-       
        while (node!=NULL && node->GetNext()!=NULL)
        { 
                pFunctionPoint* pointi=(pFunctionPoint*)node->GetData();
@@ -379,18 +389,16 @@ void pPlotterLayer::drawFunction(wxDC & dc,mpWindow & w, int orgy)
                int pyi=(pointi->getRealY()-minY)-offsetY;
                int pxj=(pointj->getRealX()-minX)-offsetX;
                int pyj=(pointj->getRealY()-minY)-offsetY;
-
-
                int cxi=pxi* scaleX + offsetpx; //+ xTraslation;
                int cxj=pxj* scaleX + offsetpx; //+ xTraslation;
                int cyi=pyi* scaleY+ offsetpy ;
                int cyj=pyj* scaleY+ offsetpy ;
                //dc.DrawLine(pxi* scaleX + offsetpx,pyi* scaleY+ offsetpy, pxj* scaleX + offsetpx,pyj* scaleY+ offsetpy );
                if(type!=2)
+               {
                        draw(dc,w,pxi* scaleX + offsetpx,pyi* scaleY+ offsetpy, pxj* scaleX + offsetpx,pyj* scaleY+ offsetpy,orgy );
                        //dc.DrawLine(pxi* scaleX + offsetpx,pyi* scaleY+ offsetpy, pxj* scaleX + offsetpx,pyj* scaleY+ offsetpy );
-               else if(type==2)
-               {
+               } else if(type==2) {
                        if(!initializePolygon(ppoints,cxi,cyi,cxj,cyj) && ((cxi<=0 && cxj>=0)||(cxi>=0 && cxj>=0)))
                        {
                                        point.x=cxj;
@@ -398,11 +406,9 @@ void pPlotterLayer::drawFunction(wxDC & dc,mpWindow & w, int orgy)
                                        ppoints[j]=point;
                                        j++;
                
-                       }
-               }
-               
+                       } // if
+               } // if type
                node=node->GetNext();
-
        } 
        if(type==2)
        {
@@ -426,9 +432,7 @@ void pPlotterLayer::drawFunction(wxDC & dc,mpWindow & w, int orgy)
                dc.SetPen(wxPen( wxColour(0,0,0) ,1,wxSOLID  ));
                //dc.DrawPolygon(vx.size()+2,ppoints,0,0);
                dc.DrawPolygon(j+2,ppoints,0,0);
-
-       }
-       
+       } // if type
 }
 
 /**
@@ -494,10 +498,16 @@ void pPlotterLayer::drawLineToMousePoint(wxDC & dc,mpWindow & w, int orgy)
        getDirection(direction);
        getSize(sizeP);
        //Lines betwen the points
-       GetPoints(points);
 
-       wxNode *node=points.GetLast();
-       wxNode *node1=points.GetFirst();
+//EED 2017-09-16 Migration wxWidgets 2.8 to 3.0
+#if wxMAJOR_VERSION <= 2
+       GetPoints(points);
+       wxNode *node    = points.GetLast();
+       wxNode *node1   = points.GetFirst();
+#else
+       wxNode *node    = GetPointsPtr()->GetLast();
+       wxNode *node1   = GetPointsPtr()->GetFirst();
+#endif
        
        
        /*
@@ -670,8 +680,7 @@ void pPlotterLayer::Plot(wxDC & dc, mpWindow & w)
                                GetYTranslated(sizedc,(realY_guide/*-w.getMinScrY()*/-offsetX)*scaleX + offsetpx), 
                                scrwX, 
                                GetYTranslated(sizedc,(realY_guide/*-w.getMinScrY()*/-offsetX)*scaleX + offsetpx));
-               }
-       }
-   
+               } // if realY_guide
+       } // if actual
 }
 
index 1c9022e1e4f370ea6224da3af41cb11cce80958c..1e6ef4d645011bbd6467fc1915f34e3970d6f697 100644 (file)
@@ -213,11 +213,21 @@ void draw(wxDC & dc,mpWindow & w,double x1,double y1,double x2,double y2, int or
        */
        virtual bool GetNextXY(double & x, double & y){return false;}
 
+//EED 2017-09-16 Migration wxWidgets 2.8 to 3.0
+#if wxMAJOR_VERSION <= 2
        /**
        Get Point list of the funcion
        @param return points
        */
        virtual void GetPoints(wxList &points){}
+#else
+       /**
+       Get Point list of the funcion
+       @param return points
+       */
+       virtual wxList* GetPointsPtr(){  }
+#endif
+
 
        /** Layer plot handler.
        This implementation will plot the locus in the visible area and
@@ -250,10 +260,17 @@ void draw(wxDC & dc,mpWindow & w,double x1,double y1,double x2,double y2, int or
 
 protected:
        int m_flags; //!< Holds label alignment
+
+//EED 2017-09-16 Migration wxWidgets 2.8 to 3.0
+#if wxMAJOR_VERSION <= 2
        /*
        * Points of the function thats is drawing
        */
        wxList points;
+#else
+       //  use GetPointsPtr()
+#endif
+
        /*
        * the scale in x, with wich it must draw
        */
index e9dc15c4ae152cc18aa78f18dfa49bc5f295eee9..6db34e632d2d34a10f6c95e020cf3ed398268594 100644 (file)
@@ -46,8 +46,8 @@ IMPLEMENT_CLASS(pPlotterScaleX, pPlotterLayer)
 //----------------------------------------------------------------------------
 // Methods
 //----------------------------------------------------------------------------
-pPlotterScaleX::pPlotterScaleX(wxString aName,int flags) {
-
+pPlotterScaleX::pPlotterScaleX(wxString aName,int flags) 
+{
        SetName(aName);/*
        SetFont(*wxSMALL_FONT);
        SetPen(*wxGREY_PEN);*/
index 5115e2d33b47c2dbf48f7e470f94913558877108..ea0be8fe85c003f009ff38ad7860058f22605576 100644 (file)
@@ -1740,12 +1740,20 @@ void pPlotterWindow :: OnGuideLines (wxCommandEvent   &event)
 */
 pGraphicalFunction* pPlotterWindow::getFunction(int index)
 {
-       wxNode* node=functions.Item(index);
-       if(node==NULL){
+       wxNode* node=NULL;
+       if (functions.size()>index)
+       {
+               node=functions.Item(index);
+       } // if
+
+       if(node==NULL)
+       {
                return NULL;
-       }
+       } // if node
        return (pGraphicalFunction*)node->GetData();
 }
+
+
 /*
          move the functions that the user wants to move
          and that were set in functionsToMove
@@ -1755,9 +1763,7 @@ pGraphicalFunction* pPlotterWindow::getFunction(int index)
          @param porcentageMaxX:the percentage that the maxShowed
          of the functions have to be move
                0<=porcentageMaxX<=1
-
        */
-
 void pPlotterWindow::moveFunctions( float porcentageMinX,float porcentageMaxX)
        {
                //Adding the actual function
index 64c29bf7fd649d9398f012088f9270ae7abc41a3..264cc730394de2099eba464b6e79320b933b1170 100644 (file)
@@ -395,7 +395,7 @@ private:
        */
 
        wxTextCtrl  *m_log;
-       wxString                text;
+       wxString        text;
 
        /*
          Functions to be move at the same time