mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
87344de7d4
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1850 b45a01b8-16f6-495d-af2f-9b41ad6348cc
128 lines
3.0 KiB
C++
128 lines
3.0 KiB
C++
/* smplayer, GUI front-end for mplayer.
|
|
Copyright (C) 2006-2008 Ricardo Villalba <rvm@escomposlinux.org>
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
*/
|
|
|
|
#ifndef _DEFAULTGUI_H_
|
|
#define _DEFAULTGUI_H_
|
|
|
|
#include "guiconfig.h"
|
|
#include "baseguiplus.h"
|
|
#include <QPoint>
|
|
|
|
class QToolBar;
|
|
class QPushButton;
|
|
class QResizeEvent;
|
|
class MyAction;
|
|
class QMenu;
|
|
class TimeSliderAction;
|
|
class VolumeSliderAction;
|
|
class FloatingWidget;
|
|
class TimeLabelAction;
|
|
|
|
#if MINI_ARROW_BUTTONS
|
|
class SeekingButton;
|
|
#endif
|
|
|
|
class DefaultGui : public BaseGuiPlus
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
DefaultGui( QWidget* parent = 0, Qt::WindowFlags flags = 0 );
|
|
~DefaultGui();
|
|
|
|
#if USE_MINIMUMSIZE
|
|
virtual QSize minimumSizeHint () const;
|
|
#endif
|
|
|
|
public slots:
|
|
//virtual void showPlaylist(bool b);
|
|
|
|
protected:
|
|
virtual void retranslateStrings();
|
|
virtual QMenu * createPopupMenu();
|
|
|
|
void createStatusBar();
|
|
void createMainToolBars();
|
|
void createControlWidget();
|
|
void createControlWidgetMini();
|
|
void createFloatingControl();
|
|
void createActions();
|
|
void createMenus();
|
|
|
|
void loadConfig();
|
|
void saveConfig();
|
|
|
|
virtual void aboutToEnterFullscreen();
|
|
virtual void aboutToExitFullscreen();
|
|
virtual void aboutToEnterCompactMode();
|
|
virtual void aboutToExitCompactMode();
|
|
|
|
virtual void resizeEvent( QResizeEvent * );
|
|
/* virtual void closeEvent( QCloseEvent * ); */
|
|
|
|
protected slots:
|
|
virtual void updateWidgets();
|
|
virtual void displayTime(QString text);
|
|
virtual void displayFrame(int frame);
|
|
|
|
virtual void showFloatingControl(QPoint p);
|
|
virtual void showFloatingMenu(QPoint p);
|
|
virtual void hideFloatingControls();
|
|
|
|
// Reimplemented:
|
|
#if AUTODISABLE_ACTIONS
|
|
virtual void enableActionsOnPlaying();
|
|
virtual void disableActionsOnStop();
|
|
#endif
|
|
|
|
protected:
|
|
QLabel * time_display;
|
|
QLabel * frame_display;
|
|
|
|
QToolBar * controlwidget;
|
|
QToolBar * controlwidget_mini;
|
|
|
|
QToolBar * toolbar1;
|
|
QToolBar * toolbar2;
|
|
|
|
QPushButton * select_audio;
|
|
QPushButton * select_subtitle;
|
|
|
|
TimeSliderAction * timeslider_action;
|
|
VolumeSliderAction * volumeslider_action;
|
|
|
|
#if MINI_ARROW_BUTTONS
|
|
SeekingButton * rewindbutton_action;
|
|
SeekingButton * forwardbutton_action;
|
|
#endif
|
|
|
|
FloatingWidget * floating_control;
|
|
TimeLabelAction * time_label_action;
|
|
|
|
QMenu * toolbar_menu;
|
|
|
|
int last_second;
|
|
|
|
bool fullscreen_toolbar1_was_visible;
|
|
bool fullscreen_toolbar2_was_visible;
|
|
bool compact_toolbar1_was_visible;
|
|
bool compact_toolbar2_was_visible;
|
|
};
|
|
|
|
#endif
|