Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
9794062c
Commit
9794062c
authored
Aug 20, 2007
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disables some useless metadata in infopanel dialog
Redesign the label & edits placement to resize the dialog
parent
8eccf5ca
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
44 deletions
+47
-44
modules/gui/qt4/components/infopanels.cpp
modules/gui/qt4/components/infopanels.cpp
+40
-38
modules/gui/qt4/components/infopanels.hpp
modules/gui/qt4/components/infopanels.hpp
+6
-5
modules/gui/qt4/dialogs/mediainfo.cpp
modules/gui/qt4/dialogs/mediainfo.cpp
+1
-1
No files found.
modules/gui/qt4/components/infopanels.cpp
View file @
9794062c
...
...
@@ -56,9 +56,19 @@ MetaPanel::MetaPanel( QWidget *parent,
#define ADD_META( string, widget ) { \
l->addWidget( new QLabel( qtr( string ) + " :" ), line, 0 ); \
widget = new QLineEdit; \
l->addWidget( widget, line, 1, 1,
9
); \
l->addWidget( widget, line, 1, 1,
5
); \
line++; }
/* ART_URL */
art_cover
=
new
QLabel
(
""
);
art_cover
->
setMinimumHeight
(
128
);
art_cover
->
setMinimumWidth
(
128
);
art_cover
->
setMaximumHeight
(
128
);
art_cover
->
setMaximumWidth
(
128
);
art_cover
->
setScaledContents
(
true
);
art_cover
->
setPixmap
(
QPixmap
(
":/noart.png"
)
);
l
->
addWidget
(
art_cover
,
line
,
6
,
4
,
2
);
/* Title, artist and album*/
ADD_META
(
VLC_META_TITLE
,
title_text
);
/* OK */
ADD_META
(
VLC_META_ARTIST
,
artist_text
);
/* OK */
...
...
@@ -68,47 +78,39 @@ MetaPanel::MetaPanel( QWidget *parent,
/* FIXME List id3genres.h is not includable yet ? */
genre_text
=
new
QLineEdit
;
l
->
addWidget
(
new
QLabel
(
qtr
(
VLC_META_GENRE
)
+
" :"
),
line
,
0
);
l
->
addWidget
(
genre_text
,
line
,
1
,
1
,
6
);
l
->
addWidget
(
genre_text
,
line
,
1
,
1
,
2
);
/* Number */
l
->
addWidget
(
new
QLabel
(
qtr
(
"Track Number"
)
+
" :"
),
line
,
3
);
seqnum_text
=
new
QSpinBox
;
setSpinBounds
(
seqnum_text
);
l
->
addWidget
(
seqnum_text
,
line
,
4
,
1
,
2
);
line
++
;
/* Date (Should be in years) */
date_text
=
new
QSpinBox
;
setSpinBounds
(
date_text
);
l
->
addWidget
(
new
QLabel
(
qtr
(
VLC_META_DATE
)
+
" :"
),
line
,
7
);
l
->
addWidget
(
date_text
,
line
,
8
,
1
,
2
);
line
++
;
l
->
addWidget
(
new
QLabel
(
qtr
(
VLC_META_DATE
)
+
" :"
),
line
,
0
);
l
->
addWidget
(
date_text
,
line
,
1
,
1
,
1
);
/* Number and Rating */
l
->
addWidget
(
new
QLabel
(
qtr
(
"Track number/Position"
)
+
" :"
),
line
,
0
);
seqnum_text
=
new
QSpinBox
;
setSpinBounds
(
seqnum_text
);
l
->
addWidget
(
seqnum_text
,
line
,
1
,
1
,
4
);
/* Rating */
l
->
addWidget
(
new
QLabel
(
qtr
(
VLC_META_RATING
)
+
" :"
),
line
,
5
);
l
->
addWidget
(
new
QLabel
(
qtr
(
VLC_META_RATING
)
+
" :"
),
line
,
2
);
rating_text
=
new
QSpinBox
;
setSpinBounds
(
rating_text
)
;
l
->
addWidget
(
rating_text
,
line
,
6
,
1
,
4
);
line
++
;
l
->
addWidget
(
rating_text
,
line
,
3
,
1
,
1
);
/* Now Playing ? */
ADD_META
(
VLC_META_NOW_PLAYING
,
nowplaying_text
);
//
ADD_META( VLC_META_NOW_PLAYING, nowplaying_text );
/* Language and settings */
l
->
addWidget
(
new
QLabel
(
qfu
(
VLC_META_LANGUAGE
)
+
" :"
),
line
,
0
);
l
->
addWidget
(
new
QLabel
(
qfu
(
VLC_META_LANGUAGE
)
+
" :"
),
line
,
4
);
language_text
=
new
QLineEdit
;
l
->
addWidget
(
language_text
,
line
,
1
,
1
,
4
);
l
->
addWidget
(
new
QLabel
(
qtr
(
VLC_META_SETTING
)
+
" :"
),
line
,
5
);
l
->
addWidget
(
language_text
,
line
,
5
,
1
,
1
);
/*
l->addWidget( new QLabel( qtr( VLC_META_SETTING ) + " :" ), line, 5 );
setting_text = new QLineEdit;
l->addWidget( setting_text, line, 6, 1, 4 );
line
++
;
/* ART_URL */
art_cover
=
new
QLabel
(
""
);
art_cover
->
setMinimumHeight
(
128
);
art_cover
->
setMinimumWidth
(
128
);
art_cover
->
setMaximumHeight
(
128
);
art_cover
->
setMaximumWidth
(
128
);
art_cover
->
setScaledContents
(
true
);
art_cover
->
setPixmap
(
QPixmap
(
":/noart.png"
)
);
l
->
addWidget
(
art_cover
,
line
,
8
,
4
,
2
);
line++;*/
/* useless metadata
#define ADD_META_2( string, widget ) { \
l->addWidget( new QLabel( qtr( string ) + " :" ), line, 0 ); \
widget = new QLineEdit; \
...
...
@@ -118,22 +120,21 @@ MetaPanel::MetaPanel( QWidget *parent,
ADD_META_2( VLC_META_COPYRIGHT, copyright_text );
ADD_META_2( VLC_META_PUBLISHER, publisher_text );
ADD_META_2
(
VLC_META_ENCODED_BY
,
publisher
_text
);
ADD_META_2( VLC_META_ENCODED_BY,
encodedby
_text );
ADD_META_2( VLC_META_DESCRIPTION, description_text );
*/
/* ADD_META( TRACKID ) Useless ? */
/* ADD_URI - DO not show it, done outside */
#undef ADD_META
#undef ADD_META_2
//
#undef ADD_META_2
CONNECT
(
title_text
,
textEdited
(
QString
),
this
,
editMeta
(
QString
)
);
CONNECT
(
description_text
,
textEdited
(
QString
),
this
,
editMeta
(
QString
)
);
//
CONNECT( description_text, textEdited( QString ), this, editMeta( QString ) );
CONNECT
(
artist_text
,
textEdited
(
QString
),
this
,
editMeta
(
QString
)
);
CONNECT
(
collection_text
,
textEdited
(
QString
),
this
,
editMeta
(
QString
)
);
CONNECT
(
genre_text
,
textEdited
(
QString
),
this
,
editMeta
(
QString
)
);
CONNECT
(
description_text
,
textEdited
(
QString
),
this
,
editMeta
(
QString
)
);
CONNECT
(
date_text
,
valueChanged
(
QString
),
this
,
editMeta
(
QString
)
);
CONNECT
(
seqnum_text
,
valueChanged
(
QString
),
this
,
editMeta
(
QString
)
);
CONNECT
(
rating_text
,
valueChanged
(
QString
),
this
,
editMeta
(
QString
)
);
...
...
@@ -256,13 +257,14 @@ void MetaPanel::update( input_item_t *p_item )
/* Other classic though */
UPDATE_META
(
Artist
,
artist_text
);
UPDATE_META
(
Genre
,
genre_text
);
UPDATE_META
(
Copyright
,
copyright_text
);
//
UPDATE_META( Copyright, copyright_text );
UPDATE_META
(
Album
,
collection_text
);
UPDATE_META
(
Description
,
description_text
);
//
UPDATE_META( Description, description_text );
UPDATE_META
(
Language
,
language_text
);
UPDATE_META
(
NowPlaying
,
nowplaying_text
);
UPDATE_META
(
Publisher
,
publisher_text
);
UPDATE_META
(
Setting
,
setting_text
);
// UPDATE_META( NowPlaying, nowplaying_text );
// UPDATE_META( Publisher, publisher_text );
// UPDATE_META( Setting, setting_text );
// UPDATE_META( EncodedBy, encodedby_text );
UPDATE_META_INT
(
Date
,
date_text
);
UPDATE_META_INT
(
TrackNum
,
seqnum_text
);
...
...
modules/gui/qt4/components/infopanels.hpp
View file @
9794062c
...
...
@@ -63,16 +63,17 @@ private:
QLineEdit
*
title_text
;
QLineEdit
*
artist_text
;
QLineEdit
*
genre_text
;
QLineEdit
*
copyright_text
;
//
QLineEdit *copyright_text;
QLineEdit
*
collection_text
;
QSpinBox
*
seqnum_text
;
QLineEdit
*
description_text
;
//
QLineEdit *description_text;
QSpinBox
*
rating_text
;
QSpinBox
*
date_text
;
QLineEdit
*
setting_text
;
//
QLineEdit *setting_text;
QLineEdit
*
language_text
;
QLineEdit
*
nowplaying_text
;
QLineEdit
*
publisher_text
;
// QLineEdit *nowplaying_text;
// QLineEdit *publisher_text;
// QLineEdit *encodedby_text;
QLabel
*
art_cover
;
bool
in_edit
;
...
...
modules/gui/qt4/dialogs/mediainfo.cpp
View file @
9794062c
...
...
@@ -48,7 +48,7 @@ MediaInfoDialog::MediaInfoDialog( intf_thread_t *_p_intf, bool _mainInput,
need_update
=
true
;
setWindowTitle
(
qtr
(
"Media information"
)
);
resize
(
700
,
45
0
);
resize
(
600
,
30
0
);
/* TabWidgets and Tabs creation */
IT
=
new
QTabWidget
;
...
...
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