| 1 | /* smplayer, GUI front-end for mplayer.
|
|---|
| 2 | Copyright (C) 2006-2013 Ricardo Villalba <[email protected]>
|
|---|
| 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 _DEFAULTGUI_H_
|
|---|
| 20 | #define _DEFAULTGUI_H_
|
|---|
| 21 |
|
|---|
| 22 | #include "guiconfig.h"
|
|---|
| 23 | #include "baseguiplus.h"
|
|---|
| 24 | #include <QPoint>
|
|---|
| 25 |
|
|---|
| 26 | class QToolBar;
|
|---|
| 27 | class EditableToolbar;
|
|---|
| 28 | class QPushButton;
|
|---|
| 29 | class QResizeEvent;
|
|---|
| 30 | class MyAction;
|
|---|
| 31 | class QMenu;
|
|---|
| 32 | class TimeSliderAction;
|
|---|
| 33 | class VolumeSliderAction;
|
|---|
| 34 | class FloatingWidget;
|
|---|
| 35 | class TimeLabelAction;
|
|---|
| 36 | class MyAction;
|
|---|
| 37 |
|
|---|
| 38 | #if MINI_ARROW_BUTTONS
|
|---|
| 39 | class SeekingButton;
|
|---|
| 40 | #endif
|
|---|
| 41 |
|
|---|
| 42 | class DefaultGui : public BaseGuiPlus
|
|---|
| 43 | {
|
|---|
| 44 | Q_OBJECT
|
|---|
| 45 |
|
|---|
| 46 | public:
|
|---|
| 47 | DefaultGui( QWidget* parent = 0, Qt::WindowFlags flags = 0 );
|
|---|
| 48 | ~DefaultGui();
|
|---|
| 49 |
|
|---|
| 50 | #if USE_MINIMUMSIZE
|
|---|
| 51 | virtual QSize minimumSizeHint () const;
|
|---|
| 52 | #endif
|
|---|
| 53 |
|
|---|
| 54 | public slots:
|
|---|
| 55 | //virtual void showPlaylist(bool b);
|
|---|
| 56 |
|
|---|
| 57 | protected:
|
|---|
| 58 | virtual void retranslateStrings();
|
|---|
| 59 | virtual QMenu * createPopupMenu();
|
|---|
| 60 |
|
|---|
| 61 | void createStatusBar();
|
|---|
| 62 | void createMainToolBars();
|
|---|
| 63 | void createControlWidget();
|
|---|
| 64 | void createControlWidgetMini();
|
|---|
| 65 | void createFloatingControl();
|
|---|
| 66 | void createActions();
|
|---|
| 67 | void createMenus();
|
|---|
| 68 |
|
|---|
| 69 | void loadConfig();
|
|---|
| 70 | void saveConfig();
|
|---|
| 71 |
|
|---|
| 72 | virtual void aboutToEnterFullscreen();
|
|---|
| 73 | virtual void aboutToExitFullscreen();
|
|---|
| 74 | virtual void aboutToEnterCompactMode();
|
|---|
| 75 | virtual void aboutToExitCompactMode();
|
|---|
| 76 |
|
|---|
| 77 | virtual void resizeEvent( QResizeEvent * );
|
|---|
| 78 | /* virtual void closeEvent( QCloseEvent * ); */
|
|---|
| 79 |
|
|---|
| 80 | protected slots:
|
|---|
| 81 | virtual void updateWidgets();
|
|---|
| 82 | virtual void displayTime(QString text);
|
|---|
| 83 | virtual void displayFrame(int frame);
|
|---|
| 84 | virtual void displayABSection(int secs_a, int secs_b);
|
|---|
| 85 | virtual void displayVideoInfo(int width, int height, double fps);
|
|---|
|
|---|