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
b83845d9
Commit
b83845d9
authored
Oct 09, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - pixmaps: fix compilation with new pixmaps.
parent
e5d83117
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
75 additions
and
84 deletions
+75
-84
modules/gui/qt4/Modules.am
modules/gui/qt4/Modules.am
+43
-44
modules/gui/qt4/menus.cpp
modules/gui/qt4/menus.cpp
+22
-22
modules/gui/qt4/playlist_model.cpp
modules/gui/qt4/playlist_model.cpp
+10
-18
No files found.
modules/gui/qt4/Modules.am
View file @
b83845d9
...
...
@@ -181,15 +181,14 @@ EXTRA_DIST += \
ui/streampanel.ui \
ui/sout.ui \
ui/vlm.ui \
pixmaps/type_net.
xpm
\
pixmaps/type_playlist.
xpm
\
pixmaps/type_net.
png
\
pixmaps/type_playlist.
png
\
pixmaps/type_unknown.xpm \
pixmaps/type_file.xpm \
pixmaps/type_card.xpm \
pixmaps/type_disc.xpm \
pixmaps/type_cdda.xpm \
pixmaps/type_directory.xpm \
pixmaps/type_node.xpm \
pixmaps/type_file.png \
pixmaps/type_card.png \
pixmaps/cdda_16px.png \
pixmaps/type_directory.png \
pixmaps/type_node.png \
pixmaps/go-next.png \
pixmaps/next.png \
pixmaps/noart.png \
...
...
@@ -207,39 +206,39 @@ EXTRA_DIST += \
pixmaps/volume-high.png \
pixmaps/volume-low.png \
pixmaps/volume-muted.png \
pixmaps/
vlc
_help_16px.png \
pixmaps/
vlc_
stop_16px.png \
pixmaps/
vlc_
play_16px.png \
pixmaps/
vlc_
pause_16px.png \
pixmaps/
vlc
_messages_16px.png \
pixmaps/
vlc_
network_16px.png \
pixmaps/
vlc
_stream_16px.png \
pixmaps/
vlc
_quit_16px.png \
pixmaps/
vlc_
disc_16px.png \
pixmaps/
vlc_
network_16px.png \
pixmaps/
vlc_
capture-card_16px.png \
pixmaps/
vlc
_preferences_16px.png \
pixmaps/
vlc
_settings_16px.png \
pixmaps/
vlc_
playlist_16px.png \
pixmaps/
vlc_
folder-grey_16px.png \
pixmaps/
vlc_
folder-blue_16px.png \
pixmaps/
vlc_
tape_16px.png \
pixmaps/
vlc_
file-asym_16px.png \
pixmaps/
vlc_
file-wide_16px.png \
pixmaps/
vlc_
info_16px.png \
pixmaps/
vlc_
previous_16px.png \
pixmaps/
vlc_
next_16px.png \
pixmaps/
vlc_
record_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_
playlist_shuffle_on.png \
pixmaps/
vlc_
playlist_shuffle_off.png \
pixmaps/
vlc_
advprefs_audio.png \
pixmaps/
vlc_
advprefs_video.png \
pixmaps/
vlc_
advprefs_intf.png \
pixmaps/
vlc_
advprefs_sout.png \
pixmaps/
vlc_
advprefs_codec.png \
pixmaps/
vlc_
advprefs_extended.png \
pixmaps/
vlc_
advprefs_playlist.png
pixmaps/
menus
_help_16px.png \
pixmaps/stop_16px.png \
pixmaps/play_16px.png \
pixmaps/pause_16px.png \
pixmaps/
menus
_messages_16px.png \
pixmaps/network_16px.png \
pixmaps/
menus
_stream_16px.png \
pixmaps/
menus
_quit_16px.png \
pixmaps/disc_16px.png \
pixmaps/network_16px.png \
pixmaps/capture-card_16px.png \
pixmaps/
menus
_preferences_16px.png \
pixmaps/
menus
_settings_16px.png \
pixmaps/playlist_16px.png \
pixmaps/folder-grey_16px.png \
pixmaps/folder-blue_16px.png \
pixmaps/tape_16px.png \
pixmaps/file-asym_16px.png \
pixmaps/file-wide_16px.png \
pixmaps/info_16px.png \
pixmaps/previous_16px.png \
pixmaps/next_16px.png \
pixmaps/record_16px.png \
pixmaps/playlist_add.png \
pixmaps/playlist_repeat_off.png \
pixmaps/playlist_repeat_all.png \
pixmaps/playlist_repeat_one.png \
pixmaps/playlist_shuffle_on.png \
pixmaps/playlist_shuffle_off.png \
pixmaps/advprefs_audio.png \
pixmaps/advprefs_video.png \
pixmaps/advprefs_intf.png \
pixmaps/advprefs_sout.png \
pixmaps/advprefs_codec.png \
pixmaps/advprefs_extended.png \
pixmaps/advprefs_playlist.png
modules/gui/qt4/menus.cpp
View file @
b83845d9
...
...
@@ -190,25 +190,25 @@ QMenu *QVLCMenu::FileMenu()
QMenu
*
menu
=
new
QMenu
();
DP_SADD
(
menu
,
qtr
(
"Open &File..."
),
""
,
":/pixmaps/
vlc_
file-asym_16px.png"
,
openFileDialog
(),
"Ctrl+O"
);
":/pixmaps/file-asym_16px.png"
,
openFileDialog
(),
"Ctrl+O"
);
DP_SADD
(
menu
,
qtr
(
I_OPEN_FOLDER
),
""
,
":/pixmaps/
vlc_
folder-grey_16px.png"
,
PLAppendDir
(),
"Ctrl+F"
);
DP_SADD
(
menu
,
qtr
(
"Open &Disc..."
),
""
,
":/pixmaps/
vlc_
disc_16px.png"
,
":/pixmaps/folder-grey_16px.png"
,
PLAppendDir
(),
"Ctrl+F"
);
DP_SADD
(
menu
,
qtr
(
"Open &Disc..."
),
""
,
":/pixmaps/disc_16px.png"
,
openDiscDialog
(),
"Ctrl+D"
);
DP_SADD
(
menu
,
qtr
(
"Open &Network..."
),
""
,
":/pixmaps/
vlc_
network_16px.png"
,
openNetDialog
(),
"Ctrl+N"
);
":/pixmaps/network_16px.png"
,
openNetDialog
(),
"Ctrl+N"
);
DP_SADD
(
menu
,
qtr
(
"Open &Capture Device..."
),
""
,
":/pixmaps/
vlc_
capture-card_16px.png"
,
openCaptureDialog
(),
":/pixmaps/capture-card_16px.png"
,
openCaptureDialog
(),
"Ctrl+C"
);
menu
->
addSeparator
();
DP_SADD
(
menu
,
qtr
(
"&Streaming..."
),
""
,
":/pixmaps/
vlc
_stream_16px.png"
,
DP_SADD
(
menu
,
qtr
(
"&Streaming..."
),
""
,
":/pixmaps/
menus
_stream_16px.png"
,
openThenStreamingDialogs
(),
"Ctrl+S"
);
DP_SADD
(
menu
,
qtr
(
"Conve&rt / Save..."
),
""
,
""
,
openThenTranscodingDialogs
(),
"Ctrl+R"
);
menu
->
addSeparator
();
DP_SADD
(
menu
,
qtr
(
"&Quit"
)
,
""
,
":/pixmaps/
vlc
_quit_16px.png"
,
quit
(),
DP_SADD
(
menu
,
qtr
(
"&Quit"
)
,
""
,
":/pixmaps/
menus
_quit_16px.png"
,
quit
(),
"Ctrl+Q"
);
return
menu
;
}
...
...
@@ -218,7 +218,7 @@ QMenu *QVLCMenu::PlaylistMenu( MainInterface *mi, intf_thread_t *p_intf )
{
QMenu
*
menu
=
new
QMenu
();
menu
->
addMenu
(
SDMenu
(
p_intf
)
);
menu
->
addAction
(
QIcon
(
":/pixmaps/
vlc_
playlist_16px.png"
),
menu
->
addAction
(
QIcon
(
":/pixmaps/playlist_16px.png"
),
qtr
(
"Show Playlist"
),
mi
,
SLOT
(
togglePlaylist
()
)
);
menu
->
addSeparator
();
...
...
@@ -242,11 +242,11 @@ QMenu *QVLCMenu::ToolsMenu( intf_thread_t *p_intf, MainInterface *mi,
QMenu
*
menu
=
new
QMenu
;
if
(
mi
)
{
menu
->
addAction
(
QIcon
(
":/pixmaps/
vlc_
playlist_16px.png"
),
menu
->
addAction
(
QIcon
(
":/pixmaps/playlist_16px.png"
),
qtr
(
"Playlist..."
),
mi
,
SLOT
(
togglePlaylist
()
),
qtr
(
"Ctrl+L"
)
);
}
DP_SADD
(
menu
,
qtr
(
I_MENU_EXT
),
""
,
":/pixmaps/
vlc
_settings_16px.png"
,
DP_SADD
(
menu
,
qtr
(
I_MENU_EXT
),
""
,
":/pixmaps/
menus
_settings_16px.png"
,
extendedDialog
()
,
"Ctrl+E"
);
menu
->
addSeparator
();
...
...
@@ -282,10 +282,10 @@ QMenu *QVLCMenu::ToolsMenu( intf_thread_t *p_intf, MainInterface *mi,
menu
->
addSeparator
();
DP_SADD
(
menu
,
qtr
(
I_MENU_MSG
),
""
,
":/pixmaps/
vlc
_messages_16px.png"
,
DP_SADD
(
menu
,
qtr
(
I_MENU_MSG
),
""
,
":/pixmaps/
menus
_messages_16px.png"
,
messagesDialog
(),
"Ctrl+M"
);
DP_SADD
(
menu
,
qtr
(
I_MENU_INFO
)
,
""
,
""
,
mediaInfoDialog
(),
"Ctrl+I"
);
DP_SADD
(
menu
,
qtr
(
I_MENU_CODECINFO
)
,
""
,
":/pixmaps/
vlc
_info_16px.png"
,
DP_SADD
(
menu
,
qtr
(
I_MENU_CODECINFO
)
,
""
,
":/pixmaps/
menus
_info_16px.png"
,
mediaCodecDialog
(),
"Ctrl+J"
);
#if 0 /* Not Implemented yet */
...
...
@@ -295,7 +295,7 @@ QMenu *QVLCMenu::ToolsMenu( intf_thread_t *p_intf, MainInterface *mi,
menu
->
addSeparator
();
DP_SADD
(
menu
,
qtr
(
"Preferences..."
),
""
,
":/pixmaps/
vlc
_preferences_16px.png"
,
DP_SADD
(
menu
,
qtr
(
"Preferences..."
),
""
,
":/pixmaps/
menus
_preferences_16px.png"
,
prefsDialog
(),
"Ctrl+P"
);
return
menu
;
}
...
...
@@ -461,7 +461,7 @@ QMenu *QVLCMenu::SDMenu( intf_thread_t *p_intf )
QMenu
*
QVLCMenu
::
HelpMenu
()
{
QMenu
*
menu
=
new
QMenu
();
DP_SADD
(
menu
,
qtr
(
"Help..."
)
,
""
,
":/pixmaps/
vlc
_help_16px.png"
,
DP_SADD
(
menu
,
qtr
(
"Help..."
)
,
""
,
":/pixmaps/
menus
_help_16px.png"
,
helpDialog
(),
"F1"
);
menu
->
addSeparator
();
DP_SADD
(
menu
,
qtr
(
I_MENU_ABOUT
),
""
,
""
,
aboutDialog
(),
"Ctrl+F1"
);
...
...
@@ -491,20 +491,20 @@ QMenu *QVLCMenu::HelpMenu()
vlc_value_t val; \
var_Get( p_input, "state", &val ); \
if( val.i_int == PLAYING_S ) \
MIM_SADD( menu, qtr( "Pause" ), "", ":/pixmaps/
vlc_
pause_16px.png", \
MIM_SADD( menu, qtr( "Pause" ), "", ":/pixmaps/pause_16px.png", \
togglePlayPause() ) \
else \
MIM_SADD( menu, qtr( "Play" ), "", ":/pixmaps/
vlc_
play_16px.png", \
MIM_SADD( menu, qtr( "Play" ), "", ":/pixmaps/play_16px.png", \
togglePlayPause() ) \
} \
else if( THEPL->items.i_size && THEPL->i_enabled ) \
MIM_SADD( menu, qtr( "Play" ), "", ":/pixmaps/
vlc_
play_16px.png", \
MIM_SADD( menu, qtr( "Play" ), "", ":/pixmaps/play_16px.png", \
togglePlayPause() ); \
\
MIM_SADD( menu, qtr( "Stop" ), "", ":/pixmaps/
vlc_
stop_16px.png", stop() ); \
MIM_SADD( menu, qtr( "Previous" ), "", ":/pixmaps/
vlc_
previous_16px.png", \
MIM_SADD( menu, qtr( "Stop" ), "", ":/pixmaps/stop_16px.png", stop() ); \
MIM_SADD( menu, qtr( "Previous" ), "", ":/pixmaps/previous_16px.png", \
prev() ); \
MIM_SADD( menu, qtr( "Next" ), "", ":/pixmaps/
vlc_
next_16px.png", next() );
MIM_SADD( menu, qtr( "Next" ), "", ":/pixmaps/next_16px.png", next() );
#define POPUP_STATIC_ENTRIES( menu ) \
QMenu *toolsmenu = ToolsMenu( p_intf, NULL, false, true ); \
...
...
@@ -693,8 +693,8 @@ void QVLCMenu::updateSystrayMenu( MainInterface *mi,
sysMenu
->
addSeparator
();
DP_SADD
(
sysMenu
,
qtr
(
"&Open Media"
),
""
,
":/pixmaps/
vlc_
file-wide_16px.png"
,
openFileDialog
(),
""
);
DP_SADD
(
sysMenu
,
qtr
(
"&Quit"
)
,
""
,
":/pixmaps/
vlc_
quit_16px.png"
,
":/pixmaps/file-wide_16px.png"
,
openFileDialog
(),
""
);
DP_SADD
(
sysMenu
,
qtr
(
"&Quit"
)
,
""
,
":/pixmaps/quit_16px.png"
,
quit
(),
""
);
/* Set the menu */
...
...
modules/gui/qt4/playlist_model.cpp
View file @
b83845d9
...
...
@@ -33,14 +33,6 @@
#include <vlc_intf_strings.h>
#include "pixmaps/type_unknown.xpm"
#include "pixmaps/type_file.xpm"
#include "pixmaps/type_net.xpm"
#include "pixmaps/type_card.xpm"
#include "pixmaps/type_disc.xpm"
#include "pixmaps/type_cdda.xpm"
#include "pixmaps/type_directory.xpm"
#include "pixmaps/type_playlist.xpm"
#include "pixmaps/type_node.xpm"
QIcon
PLModel
::
icons
[
ITEM_TYPE_NUMBER
];
...
...
@@ -271,16 +263,16 @@ PLModel::PLModel( playlist_t *_p_playlist, intf_thread_t *_p_intf,
i_cached_input_id
=
-
1
;
i_popup_item
=
i_popup_parent
=
-
1
;
#define ADD_ICON(type, x) icons[ITEM_TYPE_##type] = QIcon( QPixmap(
type_##x##_xpm
) );
ADD_ICON
(
UNKNOWN
,
unknown
);
ADD_ICON
(
FILE
,
file
);
ADD_ICON
(
DIRECTORY
,
directory
);
ADD_ICON
(
DISC
,
disc
);
ADD_ICON
(
CDDA
,
cdda
);
ADD_ICON
(
CARD
,
card
);
ADD_ICON
(
NET
,
net
);
ADD_ICON
(
PLAYLIST
,
playlist
);
ADD_ICON
(
NODE
,
node
);
#define ADD_ICON(type, x) icons[ITEM_TYPE_##type] = QIcon( QPixmap(
x
) );
ADD_ICON
(
UNKNOWN
,
type_unknown_xpm
);
ADD_ICON
(
FILE
,
":/pixmaps/type_file.png"
);
ADD_ICON
(
DIRECTORY
,
":/pixmaps/type_directory.png"
);
ADD_ICON
(
DISC
,
":/pixmaps/disc_16px.png"
);
ADD_ICON
(
CDDA
,
":/pixmaps/cdda_16px.png"
);
ADD_ICON
(
CARD
,
":/pixmaps/capture-card_16px.png"
);
ADD_ICON
(
NET
,
":/pixmaps/type_net.png"
);
ADD_ICON
(
PLAYLIST
,
":/pixmaps/type_playlist.png"
);
ADD_ICON
(
NODE
,
":/pixmaps/type_node.png"
);
rootItem
=
NULL
;
addCallbacks
();
...
...
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