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

Qt4 - Codec Information direct access from menu.

parent 80cf3732
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
/******************* Menus *****************/ /******************* Menus *****************/
#define I_MENU_INFO N_("Information...") #define I_MENU_INFO N_("Information...")
#define I_MENU_CODECINFO N_("Codec Information...")
#define I_MENU_MSG N_("Messages...") #define I_MENU_MSG N_("Messages...")
#define I_MENU_EXT N_("Extended settings...") #define I_MENU_EXT N_("Extended settings...")
......
...@@ -69,6 +69,12 @@ MediaInfoDialog::~MediaInfoDialog() ...@@ -69,6 +69,12 @@ MediaInfoDialog::~MediaInfoDialog()
writeSettings( "mediainfo" ); writeSettings( "mediainfo" );
} }
void MediaInfoDialog::showTab(int i_tab=0)
{
this->show();
IT->setCurrentIndex(i_tab);
}
static int ItemChanged( vlc_object_t *p_this, const char *psz_var, static int ItemChanged( vlc_object_t *p_this, const char *psz_var,
vlc_value_t oldval, vlc_value_t newval, void *param ) vlc_value_t oldval, vlc_value_t newval, void *param )
{ {
......
...@@ -48,6 +48,8 @@ public: ...@@ -48,6 +48,8 @@ public:
instance= NULL; instance= NULL;
} }
virtual ~MediaInfoDialog(); virtual ~MediaInfoDialog();
void showTab( int );
bool need_update; bool need_update;
void setInput( input_item_t * ); void setInput( input_item_t * );
private: private:
......
...@@ -94,7 +94,6 @@ OpenDialog::~OpenDialog() ...@@ -94,7 +94,6 @@ OpenDialog::~OpenDialog()
void OpenDialog::showTab(int i_tab=0) void OpenDialog::showTab(int i_tab=0)
{ {
printf ( "%i" , i_tab);
this->show(); this->show();
ui.Tab->setCurrentIndex(i_tab); ui.Tab->setCurrentIndex(i_tab);
} }
......
...@@ -149,6 +149,11 @@ void DialogsProvider::mediaInfoDialog() ...@@ -149,6 +149,11 @@ void DialogsProvider::mediaInfoDialog()
MediaInfoDialog::getInstance( p_intf )->toggleVisible(); MediaInfoDialog::getInstance( p_intf )->toggleVisible();
} }
void DialogsProvider::mediaCodecDialog()
{
MediaInfoDialog::getInstance( p_intf )->showTab( 1 );
}
void DialogsProvider::bookmarksDialog() void DialogsProvider::bookmarksDialog()
{ {
} }
...@@ -179,7 +184,7 @@ void DialogsProvider::openCaptureDialog() ...@@ -179,7 +184,7 @@ void DialogsProvider::openCaptureDialog()
} }
void DialogsProvider::openDialog( int i_tab ) void DialogsProvider::openDialog( int i_tab )
{ {
OpenDialog::getInstance( p_intf->p_sys->p_mi , p_intf )->showTab( i_tab ); OpenDialog::getInstance( p_intf->p_sys->p_mi , p_intf )->showTab( i_tab );
} }
void DialogsProvider::PLAppendDialog() void DialogsProvider::PLAppendDialog()
...@@ -189,7 +194,6 @@ void DialogsProvider::MLAppendDialog() ...@@ -189,7 +194,6 @@ void DialogsProvider::MLAppendDialog()
{ {
} }
/**** Simple open ****/ /**** Simple open ****/
QStringList DialogsProvider::showSimpleOpen(QString help, bool all, QStringList DialogsProvider::showSimpleOpen(QString help, bool all,
......
...@@ -104,6 +104,7 @@ public slots: ...@@ -104,6 +104,7 @@ public slots:
void playlistDialog(); void playlistDialog();
void bookmarksDialog(); void bookmarksDialog();
void mediaInfoDialog(); void mediaInfoDialog();
void mediaCodecDialog();
void prefsDialog(); void prefsDialog();
void extendedDialog(); void extendedDialog();
void messagesDialog(); void messagesDialog();
......
...@@ -181,6 +181,7 @@ QMenu *QVLCMenu::ToolsMenu( intf_thread_t *p_intf, MainInterface *mi, ...@@ -181,6 +181,7 @@ QMenu *QVLCMenu::ToolsMenu( intf_thread_t *p_intf, MainInterface *mi,
} }
DP_SADD( qtr(I_MENU_MSG), "", "", messagesDialog() ); DP_SADD( qtr(I_MENU_MSG), "", "", messagesDialog() );
DP_SADD( qtr(I_MENU_INFO) , "", "", mediaInfoDialog() ); DP_SADD( qtr(I_MENU_INFO) , "", "", mediaInfoDialog() );
DP_SADD( qtr(I_MENU_CODECINFO) , "", "", mediaCodecDialog() );
DP_SADD( qtr(I_MENU_EXT), "","",extendedDialog() ); DP_SADD( qtr(I_MENU_EXT), "","",extendedDialog() );
if( mi ) if( mi )
{ {
......
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