ADD_META( VLC_META_DESCRIPTION, description_text ); // Comment Two lines?
/* ADD_META( TRACKID) DO NOT SHOW it */
+ /* ADD_URI - DO not show it, done outside */
- // ADD_META( _( "URI" ), uri_text ); // FIXME URI outside
- // ADD_META( VLC_META_URL, setting_text );
/* ART_URL */
+ // ADD_META( VLC_META_URL, setting_text );
}
MetaPanel::~MetaPanel()
#define UPDATE_META_INT( meta, widget ) { \
psz_meta = p_item->p_meta->psz_##meta; \
if( !EMPTY_STR( psz_meta ) ) \
- widget->setValue( atoi( psz_meta ) ); }/*FIXME Atoi ?*/
+ widget->setValue( atoi( psz_meta ) ); }
/* Name / Title */
psz_meta = p_item->p_meta->psz_title;
title_text->setText( qfu( p_item->psz_name ) );
else title_text->setText( "" );
- /* if( !EMPTY_STR( p_item->psz_uri ) )
- uri_text->setText( qfu( p_item->psz_uri ) );*/
-/// else uri_text->setText( "" );
+ /* URL / URI */
+ psz_meta = p_item->p_meta->psz_url;
+ if( !EMPTY_STR( psz_meta ) )
+ emit uriSet( QString( psz_meta ) );
+ else if( !EMPTY_STR( p_item->psz_uri ) )
+ emit uriSet( QString( p_item->psz_uri ) );
+ /* Other classic though */
UPDATE_META( artist, artist_text );
UPDATE_META( genre, genre_text );
UPDATE_META( copyright, copyright_text );
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
******************************************************************************/
-#include <QTabWidget>
-#include <QGridLayout>
-
#include "dialogs/mediainfo.hpp"
#include "input_manager.hpp"
#include "dialogs_provider.hpp"
#include "components/infopanels.hpp"
#include "qt4.hpp"
+#include <QTabWidget>
+#include <QGridLayout>
+#include <QLineEdit>
+#include <QLabel>
static int ItemChanged( vlc_object_t *p_this, const char *psz_var,
vlc_value_t oldval, vlc_value_t newval, void *param );
QPushButton *closeButton = new QPushButton( qtr( "&Close" ) );
closeButton->setDefault( true );
+ uriLine = new QLineEdit;
+ QLabel *uriLabel = new QLabel( qtr( "Location" ) );
+
layout->addWidget( IT, 0, 0, 1, 3 );
- layout->addWidget( closeButton, 1, 2 );
+ layout->addWidget( closeButton, 2, 2 );
+ layout->addWidget( uriLine, 1, 1, 1, 2 );
+ layout->addWidget( uriLabel, 1, 0, 1, 1 );
BUTTONACT( closeButton, close() );
+ CONNECT( MP, uriSet( QString ), uriLine, setText( QString ) );
if( mainInput ) {
ON_TIMEOUT( update() );
void MediaInfoDialog::update()
{
- msg_Dbg( p_intf, "updating MetaData Info" );
/* Timer runs at 150 ms, dont' update more than 2 times per second */
if( i_runs % 3 != 0 ) return;
i_runs++;