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
58190b76
Commit
58190b76
authored
May 20, 2004
by
Yoann Peronneau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* changed the playlist icon in the wxwin interface (thanks to bigben)
* added an open button
parent
3741a74b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
4 deletions
+46
-4
modules/gui/wxwindows/Modules.am
modules/gui/wxwindows/Modules.am
+1
-0
modules/gui/wxwindows/bitmaps/playlist.xpm
modules/gui/wxwindows/bitmaps/playlist.xpm
+36
-0
modules/gui/wxwindows/interface.cpp
modules/gui/wxwindows/interface.cpp
+9
-4
No files found.
modules/gui/wxwindows/Modules.am
View file @
58190b76
...
...
@@ -30,4 +30,5 @@ EXTRA_DIST += \
bitmaps/next.xpm \
bitmaps/slow.xpm \
bitmaps/fast.xpm \
bitmaps/playlist.xpm \
bitmaps/speaker.xpm
modules/gui/wxwindows/bitmaps/playlist.xpm
0 → 100644
View file @
58190b76
/* XPM */
static char * playlist_xpm[] = {
"16 16 17 1",
"* c None",
". c #000000",
"+ c #800000",
"@ c #008000",
"# c #808000",
"$ c #000080",
"% c #800080",
"& c #008080",
" c #C0C0C0",
"= c #808080",
"- c #FF0000",
"; c #00FF00",
"> c #FFFF00",
", c #0000FF",
"' c #FF00FF",
") c #00FFFF",
"! c #FFFFFF",
"****************",
"****************",
"****************",
"**..**........**",
"**..**........**",
"****************",
"****************",
"**..**........**",
"**..**........**",
"****************",
"****************",
"**..**........**",
"**..**........**",
"****************",
"****************",
"****************"};
modules/gui/wxwindows/interface.cpp
View file @
58190b76
...
...
@@ -41,6 +41,7 @@
#include "bitmaps/eject.xpm"
#include "bitmaps/slow.xpm"
#include "bitmaps/fast.xpm"
#include "bitmaps/playlist.xpm"
#include "bitmaps/speaker.xpm"
#define TOOLBAR_BMP_WIDTH 16
...
...
@@ -435,6 +436,7 @@ void VLCVolCtrl::OnPaint( wxPaintEvent &evt )
void
Interface
::
CreateOurToolBar
()
{
#define HELP_OPEN N_("Open")
#define HELP_STOP N_("Stop")
#define HELP_PLAY N_("Play")
#define HELP_PAUSE N_("Pause")
...
...
@@ -452,6 +454,9 @@ void Interface::CreateOurToolBar()
toolbar
->
SetToolBitmapSize
(
wxSize
(
TOOLBAR_BMP_WIDTH
,
TOOLBAR_BMP_HEIGHT
)
);
toolbar
->
AddTool
(
OpenFile_Event
,
wxT
(
""
),
wxBitmap
(
eject_xpm
),
wxU
(
_
(
HELP_OPEN
))
);
toolbar
->
AddSeparator
();
toolbar
->
AddTool
(
PlayStream_Event
,
wxT
(
""
),
wxBitmap
(
play_xpm
),
wxU
(
_
(
HELP_PLAY
))
);
#if 0
...
...
@@ -470,12 +475,12 @@ void Interface::CreateOurToolBar()
toolbar
->
AddTool
(
NextStream_Event
,
wxT
(
""
),
wxBitmap
(
next_xpm
),
wxU
(
_
(
HELP_PLN
))
);
toolbar
->
AddSeparator
();
toolbar
->
AddTool
(
Playlist_Event
,
wxT
(
""
),
wxBitmap
(
ejec
t_xpm
),
toolbar
->
AddTool
(
Playlist_Event
,
wxT
(
""
),
wxBitmap
(
playlis
t_xpm
),
wxU
(
_
(
HELP_PLO
))
);
wxControl
*
p_dummy_ctrl
=
new
wxControl
(
toolbar
,
-
1
,
wxDefaultPosition
,
wxSize
(
64
,
16
),
wxBORDER_NONE
);
wxSize
(
35
,
16
),
wxBORDER_NONE
);
toolbar
->
AddControl
(
p_dummy_ctrl
);
...
...
@@ -1344,13 +1349,13 @@ void Interface::TogglePlayButton( int i_playing_status )
if
(
i_playing_status
==
PLAYING_S
)
{
GetToolBar
()
->
InsertTool
(
0
,
PlayStream_Event
,
wxU
(
_
(
"Pause"
)),
GetToolBar
()
->
InsertTool
(
2
,
PlayStream_Event
,
wxU
(
_
(
"Pause"
)),
wxBitmap
(
pause_xpm
),
wxNullBitmap
,
wxITEM_NORMAL
,
wxU
(
_
(
HELP_PAUSE
))
);
}
else
{
GetToolBar
()
->
InsertTool
(
0
,
PlayStream_Event
,
wxU
(
_
(
"Play"
)),
GetToolBar
()
->
InsertTool
(
2
,
PlayStream_Event
,
wxU
(
_
(
"Play"
)),
wxBitmap
(
play_xpm
),
wxNullBitmap
,
wxITEM_NORMAL
,
wxU
(
_
(
HELP_PLAY
))
);
}
...
...
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