source: smplayer/trunk/src/timeslider.h@ 124

Last change on this file since 124 was 124, checked in by Silvan Scherrer, 13 years ago

SMPlayer: 0.7.1 trunk update

  • Property svn:eol-style set to LF
File size: 1.7 KB
Line 
1/* smplayer, GUI front-end for mplayer.
2 Copyright (C) 2006-2012 Ricardo Villalba <rvm@users.sourceforge.net>
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17*/
18
19#ifndef _TIMESLIDER_H_
20#define _TIMESLIDER_H_
21
22#include "myslider.h"
23#include "config.h"
24
25class TimeSlider : public MySlider
26{
27 Q_OBJECT
28
29public:
30 TimeSlider( QWidget * parent );
31 ~TimeSlider();
32
33public slots:
34 virtual void setPos(int); // Don't use setValue!
35 virtual int pos();
36#if ENABLE_DELAYED_DRAGGING
37 void setDragDelay(int);
38 int dragDelay();
39#endif
40
41signals:
42 void posChanged(int);
43 void draggingPos(int);
44#if ENABLE_DELAYED_DRAGGING
45 //! Emitted with a few ms of delay
46 void delayedDraggingPos(int);
47#endif
48
49protected slots:
50 void stopUpdate();
51 void resumeUpdate();
52 void mouseReleased();
53 void valueChanged_slot(int);
54#if ENABLE_DELAYED_DRAGGING
55 void checkDragging(int);
56 void sendDelayedPos();
57#endif
58
59 virtual void wheelEvent( QWheelEvent * e );
60
61private:
62 bool dont_update;
63 int position;
64
65#if ENABLE_DELAYED_DRAGGING
66 int last_pos_to_send;
67 QTimer * timer;
68#endif
69};
70
71#endif
72
Note: See TracBrowser for help on using the repository browser.