Commit 58190b76 authored by Yoann Peronneau's avatar Yoann Peronneau

* changed the playlist icon in the wxwin interface (thanks to bigben)

* added an open button
parent 3741a74b
...@@ -30,4 +30,5 @@ EXTRA_DIST += \ ...@@ -30,4 +30,5 @@ EXTRA_DIST += \
bitmaps/next.xpm \ bitmaps/next.xpm \
bitmaps/slow.xpm \ bitmaps/slow.xpm \
bitmaps/fast.xpm \ bitmaps/fast.xpm \
bitmaps/playlist.xpm \
bitmaps/speaker.xpm bitmaps/speaker.xpm
/* 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",
"****************",
"****************",
"****************",
"**..**........**",
"**..**........**",
"****************",
"****************",
"**..**........**",
"**..**........**",
"****************",
"****************",
"**..**........**",
"**..**........**",
"****************",
"****************",
"****************"};
...@@ -41,6 +41,7 @@ ...@@ -41,6 +41,7 @@
#include "bitmaps/eject.xpm" #include "bitmaps/eject.xpm"
#include "bitmaps/slow.xpm" #include "bitmaps/slow.xpm"
#include "bitmaps/fast.xpm" #include "bitmaps/fast.xpm"
#include "bitmaps/playlist.xpm"
#include "bitmaps/speaker.xpm" #include "bitmaps/speaker.xpm"
#define TOOLBAR_BMP_WIDTH 16 #define TOOLBAR_BMP_WIDTH 16
...@@ -435,6 +436,7 @@ void VLCVolCtrl::OnPaint( wxPaintEvent &evt ) ...@@ -435,6 +436,7 @@ void VLCVolCtrl::OnPaint( wxPaintEvent &evt )
void Interface::CreateOurToolBar() void Interface::CreateOurToolBar()
{ {
#define HELP_OPEN N_("Open")
#define HELP_STOP N_("Stop") #define HELP_STOP N_("Stop")
#define HELP_PLAY N_("Play") #define HELP_PLAY N_("Play")
#define HELP_PAUSE N_("Pause") #define HELP_PAUSE N_("Pause")
...@@ -452,6 +454,9 @@ void Interface::CreateOurToolBar() ...@@ -452,6 +454,9 @@ void Interface::CreateOurToolBar()
toolbar->SetToolBitmapSize( wxSize(TOOLBAR_BMP_WIDTH,TOOLBAR_BMP_HEIGHT) ); 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 ), toolbar->AddTool( PlayStream_Event, wxT(""), wxBitmap( play_xpm ),
wxU(_(HELP_PLAY)) ); wxU(_(HELP_PLAY)) );
#if 0 #if 0
...@@ -470,12 +475,12 @@ void Interface::CreateOurToolBar() ...@@ -470,12 +475,12 @@ void Interface::CreateOurToolBar()
toolbar->AddTool( NextStream_Event, wxT(""), wxBitmap( next_xpm ), toolbar->AddTool( NextStream_Event, wxT(""), wxBitmap( next_xpm ),
wxU(_(HELP_PLN)) ); wxU(_(HELP_PLN)) );
toolbar->AddSeparator(); toolbar->AddSeparator();
toolbar->AddTool( Playlist_Event, wxT(""), wxBitmap( eject_xpm ), toolbar->AddTool( Playlist_Event, wxT(""), wxBitmap( playlist_xpm ),
wxU(_(HELP_PLO)) ); wxU(_(HELP_PLO)) );
wxControl *p_dummy_ctrl = wxControl *p_dummy_ctrl =
new wxControl( toolbar, -1, wxDefaultPosition, new wxControl( toolbar, -1, wxDefaultPosition,
wxSize(64, 16 ), wxBORDER_NONE ); wxSize(35, 16 ), wxBORDER_NONE );
toolbar->AddControl( p_dummy_ctrl ); toolbar->AddControl( p_dummy_ctrl );
...@@ -1344,13 +1349,13 @@ void Interface::TogglePlayButton( int i_playing_status ) ...@@ -1344,13 +1349,13 @@ void Interface::TogglePlayButton( int i_playing_status )
if( i_playing_status == PLAYING_S ) if( i_playing_status == PLAYING_S )
{ {
GetToolBar()->InsertTool( 0, PlayStream_Event, wxU(_("Pause")), GetToolBar()->InsertTool( 2, PlayStream_Event, wxU(_("Pause")),
wxBitmap( pause_xpm ), wxNullBitmap, wxBitmap( pause_xpm ), wxNullBitmap,
wxITEM_NORMAL, wxU(_(HELP_PAUSE)) ); wxITEM_NORMAL, wxU(_(HELP_PAUSE)) );
} }
else else
{ {
GetToolBar()->InsertTool( 0, PlayStream_Event, wxU(_("Play")), GetToolBar()->InsertTool( 2, PlayStream_Event, wxU(_("Play")),
wxBitmap( play_xpm ), wxNullBitmap, wxBitmap( play_xpm ), wxNullBitmap,
wxITEM_NORMAL, wxU(_(HELP_PLAY)) ); wxITEM_NORMAL, wxU(_(HELP_PLAY)) );
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment