X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fgui%2Fqt4%2Fmain_interface.hpp;h=274d4a96f034a21edef96a32d37a60b2089340b5;hb=b15fc71ae49839e24fb90e92e86dc87fcc48b9a4;hp=515f79f367f2f576fbc9c3f9c3b4bbb952a7d999;hpb=fd7f8f854a13f7b65cb2b8622755aa47ee932919;p=vlc diff --git a/modules/gui/qt4/main_interface.hpp b/modules/gui/qt4/main_interface.hpp index 515f79f367..274d4a96f0 100644 --- a/modules/gui/qt4/main_interface.hpp +++ b/modules/gui/qt4/main_interface.hpp @@ -49,7 +49,6 @@ class FullscreenControllerWidget; class SpeedControlWidget; class QMenu; class QSize; -class DialogHandler; enum { CONTROLS_VISIBLE = 0x1, @@ -75,9 +74,8 @@ public: virtual ~MainInterface(); /* Video requests from core */ - WId requestVideo( vout_thread_t *p_nvout, int *pi_x, - int *pi_y, unsigned int *pi_width, - unsigned int *pi_height ); + WId getVideo( int *pi_x, int *pi_y, + unsigned int *pi_width, unsigned int *pi_height ); void releaseVideo( void ); int controlVideo( int i_query, va_list args ); @@ -106,11 +104,10 @@ private: QSystemTrayIcon *sysTray; QMenu *systrayMenu; QString input_name; - QVBoxLayout *mainLayout; + QGridLayout *mainLayout; ControlsWidget *controls; InputControlsWidget *inputC; FullscreenControllerWidget *fullscreenControls; - DialogHandler *dialogHandler; void createMainWidget( QSettings* ); void createStatusBar(); @@ -144,6 +141,7 @@ private: pl_dock_e i_pl_dock; bool isDocked() { return ( i_pl_dock != PL_UNDOCKED ); } int i_bg_height; ///< Save height of bgWidget + bool b_shouldHide; /* Status Bar */ QLabel *nameLabel; @@ -161,6 +159,8 @@ public slots: void popupMenu( const QPoint& ); /* Manage the Video Functions from the vout threads */ + void getVideoSlot( WId *p_id, int *pi_x, int *pi_y, + unsigned *pi_width, unsigned *pi_height ); void releaseVideoSlot( void ); private slots: @@ -168,21 +168,25 @@ private slots: void destroyPopupMenu(); void recreateToolbars(); void doComponentsUpdate(); - void setName( QString ); - void setVLCWindowsTitle( QString title = "" ); + void setName( const QString& ); + void setVLCWindowsTitle( const QString& title = "" ); #if 0 void visual(); #endif void handleSystrayClick( QSystemTrayIcon::ActivationReason ); - void updateSystrayTooltipName( QString ); + void updateSystrayTooltipName( const QString& ); void updateSystrayTooltipStatus( int ); void showCryptedLabel( bool ); + + void handleKeyPress( QKeyEvent * ); + signals: + void askGetVideo( WId *p_id, int *pi_x, int *pi_y, + unsigned int *pi_width, unsigned int *pi_height ); void askReleaseVideo( ); void askVideoToResize( unsigned int, unsigned int ); - void askVideoToShow( unsigned int, unsigned int ); - void askBgWidgetToToggle(); + void askVideoSetFullScreen( bool ); void askUpdate(); void minimalViewToggled( bool ); void fullscreenInterfaceToggled( bool );