]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/dialogs/mediainfo.cpp
Qt4 - start to change things to match OSX interface.
[vlc] / modules / gui / qt4 / dialogs / mediainfo.cpp
index 56f9e74e2cc422ea03de80f3c5c005a9bf5cb63b..a80b687c7f25d0f536edfe7dfed217b48410a42d 100644 (file)
  ******************************************************************************/
 
 #include "dialogs/mediainfo.hpp"
+#include "components/infopanels.hpp"
 #include "input_manager.hpp"
 #include "dialogs_provider.hpp"
-#include "util/qvlcframe.hpp"
-#include "components/infopanels.hpp"
-#include "qt4.hpp"
 
 #include <QTabWidget>
 #include <QGridLayout>
@@ -48,7 +46,7 @@ MediaInfoDialog::MediaInfoDialog( intf_thread_t *_p_intf, bool _mainInput,
     b_need_update = true;
 
     setWindowTitle( qtr( "Media information" ) );
-    resize( 600 , 300 );
+    resize( 600 , 480 );
 
     /* TabWidgets and Tabs creation */
     IT = new QTabWidget;
@@ -61,7 +59,7 @@ MediaInfoDialog::MediaInfoDialog( intf_thread_t *_p_intf, bool _mainInput,
     if( stats )
     {
         ISP = new InputStatsPanel( IT, p_intf );
-        IT->addTab( ISP, qtr( "&Stats" ) );
+        IT->addTab( ISP, qtr( "&Statistics" ) );
     }
 
     QGridLayout *layout = new QGridLayout( this );
@@ -136,14 +134,14 @@ void MediaInfoDialog::setInput( input_item_t *p_input )
 {
     clear();
     update( p_input, true, true );
-    /* if info is from current input, don't set default to edit, if user opens 
+    /* if info is from current input, don't set default to edit, if user opens
      * some other item, se default to edit, so it won't be updated to current item metas
      *
      * This really doesn't seem as clean solution as it could be
      */
     input_thread_t *p_current =
                      MainInputManager::getInstance( p_intf )->getInput();
-    MP->setEditMode( ( !p_current || p_current->b_dead ) ? 
+    MP->setEditMode( ( !p_current || p_current->b_dead || input_GetItem( p_current ) != p_input ) ?
                             true: false );
 }
 
@@ -170,7 +168,7 @@ void MediaInfoDialog::update()
     vlc_object_release( p_input );
 }
 
-void MediaInfoDialog::update( input_item_t *p_item, 
+void MediaInfoDialog::update( input_item_t *p_item,
                                                  bool update_info,
                                                  bool update_meta )
 {