Main Page   Alphabetical List   Compound List   File List   Compound Members   File Members  

gslider.h

Go to the documentation of this file.
00001 #ifndef __GSLIDER__
00002 #define __GSLIDER__
00003 
00004 #include <qwidget.h>
00005 #include <qpixmap.h>
00006 #include <qtimer.h>
00007 
00008 class WASkin;
00009 
00010 class GSlider : public QWidget
00011 {
00012 Q_OBJECT
00013 friend class WASkin;
00014 public:
00015                                 GSlider(QWidget * parent = 0);
00016 
00017   void                          setValue(int);
00018   void                          setMax(int);
00019   int                           value(void);
00020 
00021 protected:
00022   virtual void                  paintEvent(QPaintEvent *);
00023   virtual void                  mouseMoveEvent(QMouseEvent *);
00024   virtual void                  mousePressEvent(QMouseEvent *);
00025   virtual void                  mouseReleaseEvent(QMouseEvent *);
00026   virtual void                  wheelEvent(QWheelEvent *);
00027 
00028 signals:
00029   void                          sliderPressed(void);
00030   void                          sliderMoved(int);
00031   void                          sliderReleased(void);
00032 
00033 private:
00034   QPixmap                     * pmStage; // Dynamic array of pixmaps
00035   unsigned                      stageCount;
00036   unsigned                      currentStage;
00037   int                           offset, hoffset;
00038   int                           maximum;
00039   bool                          pressed;
00040   QPixmap                       pmButtonDown, pmButtonUp;
00041 };
00042 
00043 #endif

Generated on Thu Mar 11 21:57:51 2004 for Music Playing Daemon client by doxygen1.2.15