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

Last change on this file since 170 was 170, checked in by Silvan Scherrer, 11 years ago

SMPlayer: updated trunk to 14.9.0

  • Property svn:eol-style set to LF
File size: 1.7 KB
Line 
1/* smplayer, GUI front-end for mplayer.
2 Copyright (C) 2006-2014 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 void wheelUp();
49 void wheelDown();
50
51protected slots:
52 void stopUpdate();
53 void resumeUpdate();
54 void mouseReleased();
55 void valueChanged_slot(int);
56#if ENABLE_DELAYED_DRAGGING
57 void checkDragging(int);
58 void sendDelayedPos();
59#endif
60
61 virtual void wheelEvent(QWheelEvent * e);
62
63private:
64 bool dont_update;
65 int position;
66
67#if ENABLE_DELAYED_DRAGGING
68 int last_pos_to_send;
69 QTimer * timer;
70#endif
71};
72
73#endif
74
Note: See TracBrowser for help on using the repository browser.