source: smplayer/trunk/src/mpcgui/mpcgui.h@ 176

Last change on this file since 176 was 176, checked in by Silvan Scherrer, 9 years ago

smplayer: update trunk to version 16.4

  • Property svn:eol-style set to LF
File size: 2.4 KB
Line 
1/* Mpcgui for SMPlayer.
2 Copyright (C) 2008 matt_ <matt@endboss.org>
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 MPC_GUI_H
20#define MPC_GUI_H
21
22#include "baseguiplus.h"
23#include "guiconfig.h"
24
25#define USE_VOLUME_BAR 1
26
27class TimeSliderAction;
28class VolumeSliderAction;
29class TimeLabelAction;
30class AutohideWidget;
31class QSpacerItem;
32class QToolBar;
33
34class MpcGui : public BaseGuiPlus
35{
36 Q_OBJECT
37
38public:
39 MpcGui( QWidget* parent = 0, Qt::WindowFlags flags = 0 );
40 ~MpcGui();
41
42#if USE_MPCMUMSIZE
43 virtual QSize mpcmumSizeHint () const;
44#endif
45
46protected slots:
47 void muteIconChange(bool b);
48 void iconChange(Core::State state);
49 void updateAudioChannels();
50
51 void displayTime(QString text);
52 void displayFrame(int frame);
53 void showFullscreenControls();
54 void hideFullscreenControls();
55 void setJumpTexts();
56 void updateWidgets();
57
58 // Reimplemented:
59#if AUTODISABLE_ACTIONS
60 virtual void enableActionsOnPlaying();
61 virtual void disableActionsOnStop();
62#endif
63
64protected:
65 virtual void retranslateStrings();
66
67 void createActions();
68 void createControlWidget();
69 void createFloatingControl();
70 void createStatusBar();
71
72 void setupIcons();
73
74 void loadConfig();
75 void saveConfig();
76
77 // Reimplemented
78 virtual void aboutToEnterFullscreen();
79 virtual void aboutToExitFullscreen();
80 virtual void aboutToEnterCompactMode();
81 virtual void aboutToExitCompactMode();
82
83protected:
84 QToolBar* controlwidget;
85 QToolBar* timeslidewidget;
86
87 QLabel * audiochannel_display;
88 QLabel * time_display;
89 QLabel * frame_display;
90
91 QLabel * floating_control_time;
92
93 AutohideWidget * floating_control;
94 QSpacerItem * spacer;
95
96 TimeSliderAction * timeslider_action;
97#if USE_VOLUME_BAR
98 VolumeSliderAction * volumeslider_action;
99#endif
100 TimeLabelAction * time_label_action;
101};
102
103#endif
Note: See TracBrowser for help on using the repository browser.