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
1cb7ce6d
Commit
1cb7ce6d
authored
Mar 04, 2008
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Last patch to close #1479 (add a column with the track id)
parent
7187a7e9
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
1 deletion
+20
-1
include/vlc_meta.h
include/vlc_meta.h
+2
-1
modules/gui/qt4/components/playlist/playlist_item.cpp
modules/gui/qt4/components/playlist/playlist_item.cpp
+7
-0
modules/gui/qt4/components/playlist/playlist_model.cpp
modules/gui/qt4/components/playlist/playlist_model.cpp
+6
-0
modules/gui/qt4/components/playlist/standardpanel.cpp
modules/gui/qt4/components/playlist/standardpanel.cpp
+1
-0
src/playlist/sort.c
src/playlist/sort.c
+4
-0
No files found.
include/vlc_meta.h
View file @
1cb7ce6d
...
...
@@ -206,8 +206,9 @@ struct meta_export_t
#define VLC_META_ENGINE_DATE 0x00000200
#define VLC_META_ENGINE_URL 0x00000400
#define VLC_META_ENGINE_LANGUAGE 0x00000800
#define VLC_META_ENGINE_TRACKID 0x00001000
#define VLC_META_ENGINE_ART_URL 0x0000
1
000
#define VLC_META_ENGINE_ART_URL 0x0000
2
000
#if 0 /* unused (yet?) */
#define VLC_META_ENGINE_MB_ARTIST_ID 0x00002000
...
...
modules/gui/qt4/components/playlist/playlist_item.cpp
View file @
1cb7ce6d
...
...
@@ -139,6 +139,9 @@ void PLItem::updateColumnHeaders()
case
VLC_META_ENGINE_RATING
:
item_col_strings
.
append
(
qtr
(
VLC_META_RATING
)
);
break
;
case
VLC_META_ENGINE_TRACKID
:
item_col_strings
.
append
(
qtr
(
VLC_META_TRACKID
)
);
break
;
default:
break
;
}
...
...
@@ -257,6 +260,10 @@ void PLItem::update( playlist_item_t *p_item, bool iscurrent )
break
;
case
VLC_META_ENGINE_RATING
:
ADD_META
(
p_item
,
Rating
);
break
;
case
VLC_META_ENGINE_TRACKID
:
item_col_strings
.
append
(
QString
::
number
(
p_item
->
i_id
)
);
break
;
default:
break
;
}
...
...
modules/gui/qt4/components/playlist/playlist_model.cpp
View file @
1cb7ce6d
...
...
@@ -736,6 +736,7 @@ void PLModel::sort( int column, Qt::SortOrder order )
CHECK_COLUMN
(
SEQ_NUM
);
CHECK_COLUMN
(
DESCRIPTION
);
CHECK_COLUMN
(
RATING
);
CHECK_COLUMN
(
TRACKID
);
#undef CHECK_COLUMN;
...
...
@@ -756,6 +757,7 @@ next:
case
VLC_META_ENGINE_SEQ_NUM
:
i_mode
=
SORT_TRACK_NUMBER
;
break
;
case
VLC_META_ENGINE_DESCRIPTION
:
i_mode
=
SORT_DESCRIPTION
;
break
;
case
VLC_META_ENGINE_RATING
:
i_mode
=
SORT_RATING
;
break
;
case
VLC_META_ENGINE_TRACKID
:
i_mode
=
SORT_ID
;
break
;
default:
i_mode
=
SORT_TITLE_NODES_FIRST
;
break
;
}
if
(
p_root
)
...
...
@@ -847,6 +849,10 @@ void PLModel::viewchanged( int meta )
index
=
6
;
break
;
case
VLC_META_ENGINE_DESCRIPTION
:
index
=
7
;
break
;
case
VLC_META_ENGINE_RATING
:
index
=
8
;
break
;
case
VLC_META_ENGINE_TRACKID
:
index
=
9
;
break
;
default:
break
;
}
...
...
modules/gui/qt4/components/playlist/standardpanel.cpp
View file @
1cb7ce6d
...
...
@@ -282,6 +282,7 @@ void StandardPLPanel::popupSelectColumn( QPoint pos )
ADD_META_ACTION
(
SEQ_NUM
);
ADD_META_ACTION
(
DESCRIPTION
);
ADD_META_ACTION
(
RATING
);
ADD_META_ACTION
(
TRACKID
);
#undef ADD_META_ACTION
...
...
src/playlist/sort.c
View file @
1cb7ce6d
...
...
@@ -199,6 +199,10 @@ static int playlist_ItemArraySort( playlist_t *p_playlist, int i_items,
{
DO_META_SORT
(
Rating
);
}
else
if
(
i_mode
==
SORT_ID
)
{
i_test
=
pp_items
[
i
]
->
i_id
-
pp_items
[
i_small
]
->
i_id
;
}
else
if
(
i_mode
==
SORT_TITLE_NODES_FIRST
)
{
/* Alphabetic sort, all nodes first */
...
...
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