]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/mBarRange.h
DFCH: imageUndoRedo + Manual Paint: It doesn't works :s :s
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / pPlotter / mBarRange.h
index f1d95b79eed7ad4b41c6a2d47b8ef08a585c38c9..96d728c4bd0c2edc6137922bd29ee1d7049d967f 100644 (file)
@@ -30,9 +30,9 @@
 
 BEGIN_DECLARE_EVENT_TYPES()
  DECLARE_EVENT_TYPE(wxEVT_TSBAR,-1) 
-//DECLARE_EVENT_TYPE(wxEVT_TSBAR_ACTUAL,-1)
+DECLARE_EVENT_TYPE(wxEVT_TSBAR_ACTUAL,-1)
 //DECLARE_EXPORTED_EVENT_TYPE(MARACASVISULIB_EXPORTS,wxEVT_TSBAR_ACTUAL,-1)
-extern MARACASVISULIB_EXPORTS const wxEventType wxEVT_TSBAR_ACTUAL;
+//extern creaMaracasVisu_EXPORT const wxEventType wxEVT_TSBAR_ACTUAL;
  DECLARE_EVENT_TYPE(wxEVT_TSBAR_START,-1)
  DECLARE_EVENT_TYPE(wxEVT_TSBAR_END,-1)
  DECLARE_EVENT_TYPE(wxEVT_TSBAR_MOVED,-1)
@@ -54,12 +54,12 @@ enum
 };
 
 
-class MARACASVISULIB_EXPORTS mBarRange :public  wxScrolledWindow{
+class creaMaracasVisu_EXPORT mBarRange :public  wxScrolledWindow{
 public:
        //------------------------------------
        //Constructors & Destructors
        //------------------------------------
-       mBarRange(wxWindow *parent, int w, int h/*, bool theOrientation, bool useWithActualDrawed*/);
+       mBarRange(wxWindow *parent, int w, int h);
        ~mBarRange();
        //------------------------------------
        // Bar Methods
@@ -71,6 +71,8 @@ public:
        void RefreshVerticalView();
        void RefreshForce();
        void OnMouseMove(wxMouseEvent& event );
+       void onKey(wxKeyEvent& event);
+
        void DrawBar();
        //------------------------------------
        // Getters & Setters
@@ -103,17 +105,19 @@ public:
        int GetWidth();
        void SetWidth(int w);
 
+       int filtreValue(int value);
+       
        //Logical Start
        int GetStart();
-       void SetStart(int start);
+       void SetStart(int newstart);
 
        //Logical End
        int GetEnd();
-       void SetEnd(int end);
+       void SetEnd(int newend);
 
        //logical actual
        int GetActual();
-       void SetActual(int actual);
+       void SetActual(int newactual);
 
 
        //The triangles half width managment
@@ -314,9 +318,9 @@ private:
        //End of the rectangule
        int                        _end;
        //Logical Max
-       double                        _max;
+       double                    _max;
        //Logical Min
-       double                                             _min;
+       double                     _min;
        //Initial point when moving the rectangule bar according to bar reference 
        int                                                _initialPoint;
        /*