source: smplayer/trunk/src/skingui/skingui.h@ 142

Last change on this file since 142 was 142, checked in by Silvan Scherrer, 12 years ago

SMPlayer: update trunk to 0.8.5

File size: 3.1 KB
Line 
1/* smplayer, GUI front-end for mplayer.
2 Copyright (C) 2006-2013 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 _SKINGUI_H_
20#define _SKINGUI_H_
21
22#include "guiconfig.h"
23#include "baseguiplus.h"
24#include <QPoint>
25
26class QToolBar;
27class EditableToolbar;
28class QPushButton;
29class QResizeEvent;
30class MyAction;
31class QMenu;
32class TimeSliderAction;
33class VolumeSliderAction;
34class FloatingWidget;
35class TimeLabelAction;
36class MyAction;
37class MediaBarPanel;
38
39#if MINI_ARROW_BUTTONS
40class SeekingButton;
41#endif
42
43//#define SKIN_CONTROLWIDGET_OVER_VIDEO 1
44
45class SkinGui : public BaseGuiPlus
46{
47 Q_OBJECT
48
49public:
50 SkinGui( QWidget* parent = 0, Qt::WindowFlags flags = 0 );
51 ~SkinGui();
52
53public slots:
54 //virtual void showPlaylist(bool b);
55
56protected:
57 virtual void retranslateStrings();
58 virtual QMenu * createPopupMenu();
59
60 void createMainToolBars();
61 void createControlWidget();
62#if SKIN_CONTROLWIDGET_OVER_VIDEO
63 void createFloatingControl();
64#endif
65 void createActions();
66 void createMenus();
67
68 void loadConfig();
69 void saveConfig();
70
71 virtual void aboutToEnterFullscreen();
72 virtual void aboutToExitFullscreen();
73 virtual void aboutToEnterCompactMode();
74 virtual void aboutToExitCompactMode();
75
76protected slots:
77 virtual void updateWidgets();
78 virtual void displayTime(QString text);
79 virtual void displayState(Core::State state);
80 virtual void displayMessage(QString message);
81
82 virtual void showFloatingControl(QPoint p);
83 virtual void showFloatingMenu(QPoint p);
84 virtual void hideFloatingControls();
85
86 // Reimplemented:
87#if AUTODISABLE_ACTIONS
88 virtual void enableActionsOnPlaying();
89 virtual void disableActionsOnStop();
90 virtual void togglePlayAction(Core::State);
91#endif
92 virtual void changeStyleSheet(QString style);
93
94protected:
95 MediaBarPanel* mediaBarPanel;
96
97 EditableToolbar * toolbar1;
98 QToolBar * controlwidget;
99
100 TimeSliderAction * timeslider_action;
101 VolumeSliderAction * volumeslider_action;
102
103#if MINI_ARROW_BUTTONS
104 SeekingButton * rewindbutton_action;
105 SeekingButton * forwardbutton_action;
106#endif
107
108#if SKIN_CONTROLWIDGET_OVER_VIDEO
109 FloatingWidget * floating_control;
110#endif
111 TimeLabelAction * time_label_action;
112
113#if USE_CONFIGURABLE_TOOLBARS
114 MyAction * editToolbar1Act;
115 #if SKIN_CONTROLWIDGET_OVER_VIDEO
116 MyAction * editFloatingControlAct;
117 #endif
118#endif
119
120 QMenu * toolbar_menu;
121
122 int last_second;
123
124 bool fullscreen_toolbar1_was_visible;
125 bool compact_toolbar1_was_visible;
126};
127
128#endif
Note: See TracBrowser for help on using the repository browser.