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 )
layout->setLayoutMargins( 0, 2, 0, 1, 1 );
layout->setSpacing( 3 );
QTabWidget *mainTabW = new QTabWidget( this );
mainTabW = new QTabWidget( this );
/* AUDIO effects */
QWidget *audioWidget = new QWidget;
......@@ -107,6 +107,12 @@ ExtendedDialog::~ExtendedDialog()
writeSettings( "EPanel" );
}
void ExtendedDialog::showTab( int i )
{
mainTabW->setCurrentIndex( i );
show();
}
void ExtendedDialog::changedItem( int i_status )
{
if( i_status != END_S ) return;
......
......@@ -28,6 +28,8 @@
#include "components/extended_panels.hpp"
class QTabWidget;
class ExtendedDialog : public QVLCFrame
{
Q_OBJECT;
......@@ -44,12 +46,15 @@ public:
instance = NULL;
}
virtual ~ExtendedDialog();
void showTab( int i );
private:
ExtendedDialog( intf_thread_t * );
static ExtendedDialog *instance;
SyncControls *syncW;
ExtVideo *videoEffect;
Equalizer *equal;
QTabWidget *mainTabW;
private slots:
void changedItem( int );
};
......
......@@ -183,6 +183,11 @@ void DialogsProvider::extendedDialog()
ExtendedDialog::getInstance( p_intf )->toggleVisible();
}
void DialogsProvider::synchroDialog()
{
ExtendedDialog::getInstance( p_intf )->showTab( 2 );
}
void DialogsProvider::messagesDialog()
{
MessagesDialog::getInstance( p_intf )->toggleVisible();
......
......@@ -142,6 +142,7 @@ public slots:
void mediaCodecDialog();
void prefsDialog();
void extendedDialog();
void synchroDialog();
void messagesDialog();
#ifdef ENABLE_VLM
void vlmDialog();
......
......@@ -342,9 +342,12 @@ QMenu *QVLCMenu::FileMenu( intf_thread_t *p_intf, QWidget *parent )
**/
QMenu *QVLCMenu::ToolsMenu( QMenu *menu )
{
addDPStaticEntry( menu, qtr( I_MENU_EXT ), ":/settings",
addDPStaticEntry( menu, qtr( "&Effects and Filters"), ":/settings",
SLOT( extendedDialog() ), "Ctrl+E" );
addDPStaticEntry( menu, qtr( "&Tracks Synchronisation"), ":/settings",
SLOT( synchroDialog() ), "" );
addDPStaticEntry( menu, qtr( I_MENU_INFO ) , ":/info",
SLOT( mediaInfoDialog() ), "Ctrl+I" );
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