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

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

smplayer: update trunk to version 16.8.0

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