Mixxx

/home/maxime/Projets/Mixxx/1.10/mixxx/src/widget/wnumberpos.h

Go to the documentation of this file.
00001 // Tue Haste Andersen <haste@diku.dk>, (C) 2003
00002 
00003 #ifndef WNUMBERPOS_H
00004 #define WNUMBERPOS_H
00005 
00006 #include "wnumber.h"
00007 
00008 class ControlObjectThreadWidget;
00009 class ControlObjectThreadMain;
00010 
00015 class WNumberPos : public WNumber {
00016     Q_OBJECT
00017   public:
00018     WNumberPos(const char *group, QWidget *parent=0);
00019     virtual ~WNumberPos();
00020 
00021     void setValue(double dValue);
00023     void setRemain(bool bRemain);
00024 
00025   protected:
00026     void mousePressEvent(QMouseEvent* pEvent);
00027 
00028   private slots:
00029     void slotSetRemain(double dRemain);
00030     void slotSetTrackSampleRate(double dSampleRate);
00031     void slotSetTrackSamples(double dSamples);
00032 
00033   private:
00035     double m_dOldValue;
00036     double m_dTrackSamples;
00037     double m_dTrackSampleRate;
00039     bool m_bRemain;
00040     ControlObjectThreadMain* m_pShowDurationRemaining;
00041     // Pointer to control object for rate and track info
00042     ControlObjectThreadWidget *m_pRateControl, *m_pRateDirControl, *m_pTrackSamples, *m_pTrackSampleRate;
00043 };
00044 
00045 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines