Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
d2382e54
Commit
d2382e54
authored
Jun 03, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - Meta Information, again. Add URI/URL support. Fix a bug.
parent
460774aa
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
12 deletions
+26
-12
modules/gui/qt4/components/infopanels.cpp
modules/gui/qt4/components/infopanels.cpp
+10
-6
modules/gui/qt4/components/infopanels.hpp
modules/gui/qt4/components/infopanels.hpp
+2
-0
modules/gui/qt4/dialogs/mediainfo.cpp
modules/gui/qt4/dialogs/mediainfo.cpp
+11
-5
modules/gui/qt4/dialogs/mediainfo.hpp
modules/gui/qt4/dialogs/mediainfo.hpp
+2
-0
modules/gui/qt4/dialogs_provider.cpp
modules/gui/qt4/dialogs_provider.cpp
+1
-1
No files found.
modules/gui/qt4/components/infopanels.cpp
View file @
d2382e54
...
...
@@ -100,10 +100,10 @@ MetaPanel::MetaPanel( QWidget *parent, intf_thread_t *_p_intf ) :
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
()
...
...
@@ -123,7 +123,7 @@ void MetaPanel::update( input_item_t *p_item )
#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
;
...
...
@@ -133,10 +133,14 @@ void MetaPanel::update( input_item_t *p_item )
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
);
...
...
modules/gui/qt4/components/infopanels.hpp
View file @
d2382e54
...
...
@@ -72,6 +72,8 @@ private:
public
slots
:
void
update
(
input_item_t
*
);
void
clear
();
signals:
void
uriSet
(
QString
);
};
class
ExtraMetaPanel
:
public
QWidget
...
...
modules/gui/qt4/dialogs/mediainfo.cpp
View file @
d2382e54
...
...
@@ -22,9 +22,6 @@
* 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"
...
...
@@ -32,6 +29,10 @@
#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
);
...
...
@@ -66,10 +67,16 @@ MediaInfoDialog::MediaInfoDialog( intf_thread_t *_p_intf, bool _mainInput,
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
()
);
...
...
@@ -109,7 +116,6 @@ void MediaInfoDialog::setInput(input_item_t *p_input)
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
++
;
...
...
modules/gui/qt4/dialogs/mediainfo.hpp
View file @
d2382e54
...
...
@@ -30,6 +30,7 @@
class
QTabWidget
;
class
InfoTab
;
class
QLineEdit
;
class
MediaInfoDialog
:
public
QVLCFrame
{
...
...
@@ -53,6 +54,7 @@ public:
void
showTab
(
int
);
bool
need_update
;
void
setInput
(
input_item_t
*
);
QLineEdit
*
uriLine
;
private:
input_thread_t
*
p_input
;
QTabWidget
*
IT
;
...
...
modules/gui/qt4/dialogs_provider.cpp
View file @
d2382e54
...
...
@@ -176,7 +176,7 @@ void DialogsProvider::mediaInfoDialog()
void
DialogsProvider
::
mediaCodecDialog
()
{
MediaInfoDialog
::
getInstance
(
p_intf
)
->
showTab
(
1
);
MediaInfoDialog
::
getInstance
(
p_intf
)
->
showTab
(
2
);
}
void
DialogsProvider
::
bookmarksDialog
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment