1
/* smplayer, GUI front-end for mplayer.
2
Copyright (C) 2006-2013 Ricardo Villalba <rvm@users.sourceforge.net>
3
umplayer, Copyright (C) 2010 Ori Rejwan
5
This program is free software; you can redistribute it and/or modify
6
it under the terms of the GNU General Public License as published by
7
the Free Software Foundation; either version 2 of the License, or
8
(at your option) any later version.
10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
15
You should have received a copy of the GNU General Public License
16
along with this program; if not, write to the Free Software
17
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20
#ifndef MEDIABARPANEL_H
21
#define MEDIABARPANEL_H
24
#include <QPushButton>
35
class VolumeControlPanel;
38
class MediaBarPanel : public QWidget {
42
MediaBarPanel(QWidget *parent = 0);
44
void setPlayControlActionCollection(QList<QAction*> actions);
45
void setMediaPanelActionCollection(QList<QAction*> actions);
46
void setVolumeControlActionCollection(QList<QAction*> actions);
47
void setToolbarActionCollection(QList<QAction *>actions);
48
void setCore(Core* c);
49
void setRecordAvailable(bool av);
52
void changeEvent(QEvent *e);
55
Ui::MediaBarPanel *ui;
56
PlayControl* playControlPanel;
57
MediaPanel* mediaPanel;
58
VolumeControlPanel* volumeControlPanel;
63
void setMplayerState(Core::State state);
65
void gotCurrentTime(double time);
66
void updateMediaInfo();
67
void displayMessage(QString status, int time);
68
void displayMessage(QString status);
69
void displayPermanentMessage(QString status);
71
void setVolume(int v);
72
void setSeeker(int v);
73
void setResolutionVisible(bool b);
76
void volumeChanged(int);
77
void volumeSliderMoved(int);
78
void seekerChanged(int);
81
#endif // MEDIABARPANEL_H