00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef __SLIDER_H__
00012 #define __SLIDER_H__
00013
00014 #include "Interface/InterfaceDll.h"
00015 #include "Interface/Win.h"
00016 #include "Interface/Button.h"
00017
00018
00019 class INTERFACE_API KSlider : public KWin
00020 {
00021 protected:
00022 bool m_bHorizontal ;
00023 float m_fPosSlider ;
00024 float m_fAbsolutePosSlider ;
00025 KFPt m_SizeSliderBar ;
00026 bool m_bClicked;
00027 float m_fRangeMin;
00028 float m_fRangeMax;
00029 float m_fStep;
00030
00031 public:
00032 KSlider( KWin* pFather, KFPt& Pos, KFPt& Size, KInterface* pInterface,bool bHorizontal,KFPt& SizeSliderBar);
00033 virtual ~KSlider();
00034
00035 void SetPosSliderBar(float fPos) {m_fPosSlider = fPos ;}
00036 float GetPosSliderBar() {return m_fPosSlider ;}
00037 float GetAbsolutePosSliderBar() {return m_fAbsolutePosSlider ;}
00038
00039 void SetRange(float fRangeMin,float fRangeMax,float fStep) ;
00040
00041 virtual bool OnMouseEvent( KWMOUSEEVENT Event, u32 Param ) ;
00042 virtual void Display();
00043 virtual void Manage();
00044
00045
00046 virtual void Load();
00047 virtual void Unload();
00048 };
00049
00050 #endif __SLIDER_H__