Revert "add orBottomToTop, orRightToLeft, orLeftToRight(orHorizontal), orTopToBottom...
[enigma2.git] / lib / gui / eslider.cpp
index 00aaeb74057d6a26d9a825e60b3b6f6bb4511314..dd2aac9e73c329b9f3eb64ad73ae30c84263719b 100644 (file)
@@ -1,8 +1,7 @@
 #include <lib/gui/eslider.h>
 
 eSlider::eSlider(eWidget *parent)
-       :eWidget(parent), m_have_border_color(false), m_start(0)
-       ,m_orientation(orHorizontal), m_direction(dirNormal), m_border_width(0)
+       :eWidget(parent), m_have_border_color(false), m_start(0), m_orientation(orHorizontal), m_border_width(0)
 {
 }
 
@@ -71,16 +70,8 @@ int eSlider::event(int event, void *data, void *data2)
 
                if (m_min < m_max)
                {
-                       if (m_direction == dirSwapped)
-                       {
-                               start_pix = pixsize * (m_start + (m_max - m_min) - m_value) / (m_max - m_min);
-                               num_pix = pixsize * (m_start + (m_max - m_min)) / (m_max - m_min);
-                       }
-                       else // dirNormal
-                       {
-                               num_pix = pixsize * (m_value - m_start) / (m_max - m_min);
-                               start_pix = pixsize * m_start / (m_max - m_min);
-                       }
+                       num_pix = pixsize * (m_value - m_start) / (m_max - m_min);
+                       start_pix = pixsize * m_start / (m_max - m_min);
                }
                
                if  (start_pix < 0)
@@ -128,12 +119,6 @@ void eSlider::setOrientation(int orientation)
        event(evtChangedSlider);
 }
 
-void eSlider::setDirection(int direction)
-{
-       m_direction = direction;
-       event(evtChangedSlider);
-}
-
 void eSlider::setRange(int min, int max)
 {
        m_min = min;