Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
afa5493c
Commit
afa5493c
authored
Sep 09, 2007
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Uses altglass' artwork for repeat/shuffle and add buttons.
parent
75ebd702
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
11 deletions
+29
-11
modules/gui/qt4/Modules.am
modules/gui/qt4/Modules.am
+7
-1
modules/gui/qt4/components/playlist/standardpanel.cpp
modules/gui/qt4/components/playlist/standardpanel.cpp
+16
-10
modules/gui/qt4/res.qrc
modules/gui/qt4/res.qrc
+6
-0
No files found.
modules/gui/qt4/Modules.am
View file @
afa5493c
...
...
@@ -232,4 +232,10 @@ EXTRA_DIST += \
pixmaps/vlc_file-wide_16px.png \
pixmaps/vlc_info_16px.png \
pixmaps/vlc_previous_16px.png \
pixmaps/vlc_next_16px.png
pixmaps/vlc_next_16px.png \
pixmaps/vlc_playlist_add.png \
pixmaps/vlc_playlist_repeat_off.png \
pixmaps/vlc_playlist_repeat_all.png \
pixmaps/vlc_playlist_repeat_one.png \
pixmaps/vlc_shuffle_on.png \
pixmaps/vlc_shuffle_off.png
modules/gui/qt4/components/playlist/standardpanel.cpp
View file @
afa5493c
...
...
@@ -88,21 +88,25 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
/* Buttons configuration */
QHBoxLayout
*
buttons
=
new
QHBoxLayout
();
addButton
=
new
QPushButton
(
"+
"
,
this
);
addButton
=
new
QPushButton
(
QIcon
(
":/pixmaps/vlc_playlist_add.png"
),
"
"
,
this
);
addButton
->
setMaximumWidth
(
25
);
BUTTONACT
(
addButton
,
popupAdd
()
);
buttons
->
addWidget
(
addButton
);
repeatButton
=
new
QPushButton
(
this
);
if
(
model
->
hasRepeat
()
)
repeatButton
->
setText
(
qtr
(
I_PL_REPEAT
)
);
else
if
(
model
->
hasLoop
()
)
repeatButton
->
setText
(
qtr
(
I_PL_LOOP
)
);
else
repeatButton
->
setText
(
qtr
(
I_PL_NOREPEAT
)
);
if
(
model
->
hasRepeat
()
)
repeatButton
->
setIcon
(
QIcon
(
":/pixmaps/vlc_playlist_repeat_one.png"
)
);
else
if
(
model
->
hasLoop
()
)
repeatButton
->
setIcon
(
QIcon
(
":/pixmaps/vlc_playlist_repeat_all.png"
)
);
else
repeatButton
->
setIcon
(
QIcon
(
":/pixmaps/vlc_playlist_repeat_off.png"
)
);
BUTTONACT
(
repeatButton
,
toggleRepeat
()
);
buttons
->
addWidget
(
repeatButton
);
randomButton
=
new
QPushButton
(
this
);
randomButton
->
setText
(
model
->
hasRandom
()
?
qtr
(
I_PL_RANDOM
)
:
qtr
(
I_PL_NORANDOM
)
);
randomButton
->
setIcon
(
model
->
hasRandom
()
?
QIcon
(
":/pixmaps/vlc_playlist_shuffle_on.png"
)
:
QIcon
(
":/pixmaps/vlc_playlist_shuffle_off.png"
)
);
BUTTONACT
(
randomButton
,
toggleRandom
()
);
buttons
->
addWidget
(
randomButton
);
...
...
@@ -131,17 +135,17 @@ void StandardPLPanel::toggleRepeat()
if
(
model
->
hasRepeat
()
)
{
model
->
setRepeat
(
false
);
model
->
setLoop
(
true
);
repeatButton
->
set
Text
(
qtr
(
I_PL_LOOP
)
);
repeatButton
->
set
Icon
(
QIcon
(
":/pixmaps/vlc_playlist_repeat_all.png"
)
);
}
else
if
(
model
->
hasLoop
()
)
{
model
->
setRepeat
(
false
)
;
model
->
setLoop
(
false
);
repeatButton
->
set
Text
(
qtr
(
I_PL_NOREPEAT
)
);
repeatButton
->
set
Icon
(
QIcon
(
":/pixmaps/vlc_playlist_repeat_off.png"
)
);
}
else
{
model
->
setRepeat
(
true
);
repeatButton
->
set
Text
(
qtr
(
I_PL_REPEAT
)
);
repeatButton
->
set
Icon
(
QIcon
(
":/pixmaps/vlc_playlist_repeat_one.png"
)
);
}
}
...
...
@@ -149,7 +153,9 @@ void StandardPLPanel::toggleRandom()
{
bool
prev
=
model
->
hasRandom
();
model
->
setRandom
(
!
prev
);
randomButton
->
setText
(
prev
?
qtr
(
I_PL_NORANDOM
)
:
qtr
(
I_PL_RANDOM
)
);
randomButton
->
setIcon
(
prev
?
QIcon
(
":/pixmaps/vlc_playlist_shuffle_off.png"
)
:
QIcon
(
":/pixmaps/vlc_playlist_shuffle_on.png"
)
);
}
void
StandardPLPanel
::
handleExpansion
(
const
QModelIndex
&
index
)
...
...
modules/gui/qt4/res.qrc
View file @
afa5493c
...
...
@@ -40,5 +40,11 @@
<file>
pixmaps/vlc_playlist_16px.png
</file>
<file>
pixmaps/vlc_settings_16px.png
</file>
<file>
pixmaps/vlc_stream_16px.png
</file>
<file>
pixmaps/vlc_playlist_add.png
</file>
<file>
pixmaps/vlc_playlist_repeat_all.png
</file>
<file>
pixmaps/vlc_playlist_repeat_one.png
</file>
<file>
pixmaps/vlc_playlist_repeat_off.png
</file>
<file>
pixmaps/vlc_playlist_shuffle_off.png
</file>
<file>
pixmaps/vlc_playlist_shuffle_on.png
</file>
</qresource>
</RCC>
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