Commit d57af90a authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: some people seem to have difficulties to access to the synchronisation tab... Ease it for them.

parent 7bbb46c1
...@@ -45,7 +45,7 @@ ExtendedDialog::ExtendedDialog( intf_thread_t *_p_intf ): QVLCFrame( _p_intf ) ...@@ -45,7 +45,7 @@ ExtendedDialog::ExtendedDialog( intf_thread_t *_p_intf ): QVLCFrame( _p_intf )
layout->setLayoutMargins( 0, 2, 0, 1, 1 ); layout->setLayoutMargins( 0, 2, 0, 1, 1 );
layout->setSpacing( 3 ); layout->setSpacing( 3 );
QTabWidget *mainTabW = new QTabWidget( this ); mainTabW = new QTabWidget( this );
/* AUDIO effects */ /* AUDIO effects */
QWidget *audioWidget = new QWidget; QWidget *audioWidget = new QWidget;
...@@ -107,6 +107,12 @@ ExtendedDialog::~ExtendedDialog() ...@@ -107,6 +107,12 @@ ExtendedDialog::~ExtendedDialog()
writeSettings( "EPanel" ); writeSettings( "EPanel" );
} }
void ExtendedDialog::showTab( int i )
{
mainTabW->setCurrentIndex( i );
show();
}
void ExtendedDialog::changedItem( int i_status ) void ExtendedDialog::changedItem( int i_status )
{ {
if( i_status != END_S ) return; if( i_status != END_S ) return;
......
...@@ -28,6 +28,8 @@ ...@@ -28,6 +28,8 @@
#include "components/extended_panels.hpp" #include "components/extended_panels.hpp"
class QTabWidget;
class ExtendedDialog : public QVLCFrame class ExtendedDialog : public QVLCFrame
{ {
Q_OBJECT; Q_OBJECT;
...@@ -44,12 +46,15 @@ public: ...@@ -44,12 +46,15 @@ public:
instance = NULL; instance = NULL;
} }
virtual ~ExtendedDialog(); virtual ~ExtendedDialog();
void showTab( int i );
private: private:
ExtendedDialog( intf_thread_t * ); ExtendedDialog( intf_thread_t * );
static ExtendedDialog *instance; static ExtendedDialog *instance;
SyncControls *syncW; SyncControls *syncW;
ExtVideo *videoEffect; ExtVideo *videoEffect;
Equalizer *equal; Equalizer *equal;
QTabWidget *mainTabW;
private slots: private slots:
void changedItem( int ); void changedItem( int );
}; };
......
...@@ -183,6 +183,11 @@ void DialogsProvider::extendedDialog() ...@@ -183,6 +183,11 @@ void DialogsProvider::extendedDialog()
ExtendedDialog::getInstance( p_intf )->toggleVisible(); ExtendedDialog::getInstance( p_intf )->toggleVisible();
} }
void DialogsProvider::synchroDialog()
{
ExtendedDialog::getInstance( p_intf )->showTab( 2 );
}
void DialogsProvider::messagesDialog() void DialogsProvider::messagesDialog()
{ {
MessagesDialog::getInstance( p_intf )->toggleVisible(); MessagesDialog::getInstance( p_intf )->toggleVisible();
......
...@@ -142,6 +142,7 @@ public slots: ...@@ -142,6 +142,7 @@ public slots:
void mediaCodecDialog(); void mediaCodecDialog();
void prefsDialog(); void prefsDialog();
void extendedDialog(); void extendedDialog();
void synchroDialog();
void messagesDialog(); void messagesDialog();
#ifdef ENABLE_VLM #ifdef ENABLE_VLM
void vlmDialog(); void vlmDialog();
......
...@@ -342,9 +342,12 @@ QMenu *QVLCMenu::FileMenu( intf_thread_t *p_intf, QWidget *parent ) ...@@ -342,9 +342,12 @@ QMenu *QVLCMenu::FileMenu( intf_thread_t *p_intf, QWidget *parent )
**/ **/
QMenu *QVLCMenu::ToolsMenu( QMenu *menu ) QMenu *QVLCMenu::ToolsMenu( QMenu *menu )
{ {
addDPStaticEntry( menu, qtr( I_MENU_EXT ), ":/settings", addDPStaticEntry( menu, qtr( "&Effects and Filters"), ":/settings",
SLOT( extendedDialog() ), "Ctrl+E" ); SLOT( extendedDialog() ), "Ctrl+E" );
addDPStaticEntry( menu, qtr( "&Tracks Synchronisation"), ":/settings",
SLOT( synchroDialog() ), "" );
addDPStaticEntry( menu, qtr( I_MENU_INFO ) , ":/info", addDPStaticEntry( menu, qtr( I_MENU_INFO ) , ":/info",
SLOT( mediaInfoDialog() ), "Ctrl+I" ); SLOT( mediaInfoDialog() ), "Ctrl+I" );
addDPStaticEntry( menu, qtr( I_MENU_CODECINFO ) , addDPStaticEntry( menu, qtr( I_MENU_CODECINFO ) ,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment