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
367c7701
Commit
367c7701
authored
Feb 14, 2010
by
Jakob Leben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: playlist menu strings and icons
parent
1497d96c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
24 deletions
+28
-24
include/vlc_intf_strings.h
include/vlc_intf_strings.h
+11
-11
modules/gui/qt4/components/playlist/playlist_model.cpp
modules/gui/qt4/components/playlist/playlist_model.cpp
+17
-13
No files found.
include/vlc_intf_strings.h
View file @
367c7701
...
...
@@ -54,26 +54,26 @@
#define I_POP_DEL N_("Delete")
#define I_POP_INFO N_("Information...")
#define I_POP_SORT N_("Sort")
#define I_POP_
ADD N_("Add Node
")
#define I_POP_
NEWFOLDER N_("Create Folder...
")
#define I_POP_STREAM N_("Stream...")
#define I_POP_SAVE N_("Save...")
#define I_POP_EXPLORE N_("
Open
Folder...")
#define I_POP_EXPLORE N_("
Show Containing
Folder...")
/*************** Playlist *************/
#define I_PL_LOOP N_("Repeat
a
ll")
#define I_PL_REPEAT N_("Repeat
o
ne")
#define I_PL_NOREPEAT N_("No
r
epeat")
#define I_PL_LOOP N_("Repeat
A
ll")
#define I_PL_REPEAT N_("Repeat
O
ne")
#define I_PL_NOREPEAT N_("No
R
epeat")
#define I_PL_RANDOM N_("Random")
#define I_PL_NORANDOM N_("Random
o
ff")
#define I_PL_NORANDOM N_("Random
O
ff")
#define I_PL_ADDPL N_("Add to
p
laylist")
#define I_PL_ADDML N_("Add to
media l
ibrary")
#define I_PL_ADDPL N_("Add to
P
laylist")
#define I_PL_ADDML N_("Add to
Media L
ibrary")
#define I_PL_ADDF N_("Add
f
ile...")
#define I_PL_ADVADD N_("Advanced
o
pen...")
#define I_PL_ADDDIR N_("Add
directory
...")
#define I_PL_ADDF N_("Add
F
ile...")
#define I_PL_ADVADD N_("Advanced
O
pen...")
#define I_PL_ADDDIR N_("Add
Folder
...")
#define I_PL_SAVE N_("Save Playlist to &File...")
#define I_PL_LOAD N_("Open Play&list...")
...
...
modules/gui/qt4/components/playlist/playlist_model.cpp
View file @
367c7701
...
...
@@ -896,31 +896,35 @@ bool PLModel::popup( const QModelIndex & index, const QPoint &point, const QMode
QMenu
menu
;
if
(
i_popup_item
>
-
1
)
{
menu
.
addAction
(
qtr
(
I_POP_PLAY
),
this
,
SLOT
(
popupPlay
()
)
);
menu
.
addAction
(
qtr
(
I_POP_DEL
),
this
,
SLOT
(
popupDel
()
)
);
menu
.
addAction
(
QIcon
(
":/menu/play"
),
qtr
(
I_POP_PLAY
),
this
,
SLOT
(
popupPlay
()
)
);
menu
.
addAction
(
QIcon
(
":/buttons/playlist/playlist_remove"
),
qtr
(
I_POP_DEL
),
this
,
SLOT
(
popupDel
()
)
);
menu
.
addSeparator
();
menu
.
addAction
(
qtr
(
I_POP_STREAM
),
this
,
SLOT
(
popupStream
()
)
);
menu
.
addAction
(
QIcon
(
":/menu/stream"
),
qtr
(
I_POP_STREAM
),
this
,
SLOT
(
popupStream
()
)
);
menu
.
addAction
(
qtr
(
I_POP_SAVE
),
this
,
SLOT
(
popupSave
()
)
);
menu
.
addSeparator
();
menu
.
addAction
(
qtr
(
I_POP_INFO
),
this
,
SLOT
(
popupInfo
()
)
);
menu
.
addAction
(
qtr
(
I_POP_EXPLORE
),
this
,
SLOT
(
popupExplore
()
)
);
menu
.
addAction
(
QIcon
(
":/menu/info"
),
qtr
(
I_POP_INFO
),
this
,
SLOT
(
popupInfo
()
)
);
menu
.
addAction
(
QIcon
(
":/type/folder-grey"
),
qtr
(
I_POP_EXPLORE
),
this
,
SLOT
(
popupExplore
()
)
);
}
if
(
canEdit
()
)
{
QIcon
addIcon
(
":/buttons/playlist/playlist_add"
);
menu
.
addSeparator
();
if
(
tree
)
menu
.
addAction
(
qtr
(
I_POP_ADD
)
+
QString
(
"..."
),
this
,
SLOT
(
popupAddNode
()
)
);
if
(
tree
)
menu
.
addAction
(
addIcon
,
qtr
(
I_POP_NEWFOLDER
),
this
,
SLOT
(
popupAddNode
()
)
);
if
(
rootItem
->
i_id
==
THEPL
->
p_playing
->
i_id
)
{
menu
.
addAction
(
qtr
(
I_PL_ADDF
),
THEDP
,
SLOT
(
simplePLAppendDialog
())
);
menu
.
addAction
(
qtr
(
I_PL_ADDDIR
),
THEDP
,
SLOT
(
PLAppendDir
())
);
menu
.
addAction
(
qtr
(
I_OP_ADVOP
),
THEDP
,
SLOT
(
PLAppendDialog
())
);
menu
.
addAction
(
addIcon
,
qtr
(
I_PL_ADDF
),
THEDP
,
SLOT
(
simplePLAppendDialog
())
);
menu
.
addAction
(
addIcon
,
qtr
(
I_PL_ADDDIR
),
THEDP
,
SLOT
(
PLAppendDir
())
);
menu
.
addAction
(
addIcon
,
qtr
(
I_OP_ADVOP
),
THEDP
,
SLOT
(
PLAppendDialog
())
);
}
else
if
(
THEPL
->
p_media_library
&&
rootItem
->
i_id
==
THEPL
->
p_media_library
->
i_id
)
{
menu
.
addAction
(
qtr
(
I_PL_ADDF
),
THEDP
,
SLOT
(
simpleMLAppendDialog
())
);
menu
.
addAction
(
qtr
(
I_PL_ADDDIR
),
THEDP
,
SLOT
(
MLAppendDir
()
)
);
menu
.
addAction
(
qtr
(
I_OP_ADVOP
),
THEDP
,
SLOT
(
MLAppendDialog
()
)
);
menu
.
addAction
(
addIcon
,
qtr
(
I_PL_ADDF
),
THEDP
,
SLOT
(
simpleMLAppendDialog
())
);
menu
.
addAction
(
addIcon
,
qtr
(
I_PL_ADDDIR
),
THEDP
,
SLOT
(
MLAppendDir
()
)
);
menu
.
addAction
(
addIcon
,
qtr
(
I_OP_ADVOP
),
THEDP
,
SLOT
(
MLAppendDialog
()
)
);
}
}
if
(
i_popup_item
>
-
1
)
...
...
@@ -1030,7 +1034,7 @@ void PLModel::popupAddNode()
{
bool
ok
;
QString
name
=
QInputDialog
::
getText
(
PlaylistDialog
::
getInstance
(
p_intf
),
qtr
(
I_POP_ADD
),
qtr
(
"Enter name for new folder:"
),
qtr
(
"Create Folder"
),
qtr
(
"Enter name for new folder:"
),
QLineEdit
::
Normal
,
QString
(),
&
ok
);
if
(
!
ok
||
name
.
isEmpty
()
)
return
;
PL_LOCK
;
...
...
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