* Copyright (C) 2000-2005 the VideoLAN team
* $Id$
*
- * Authors: Olivier Teulière <ipkiss@via.ecp.fr>
- * Clément Stenac <zorglub@videolan.org>
+ * Authors: Olivier Teulière <ipkiss@via.ecp.fr>
+ * Clément Stenac <zorglub@videolan.org>
*
* This program is free software; you can redistribute it and/OR MODIFy
* it under the terms of the GNU General Public License as published by
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
/*****************************************************************************
#include <wx/dynarray.h>
#include <wx/imaglist.h>
+#include <vlc_meta.h>
+
#define HELP_SHUFFLE N_( "Shuffle" )
#define HELP_LOOP N_( "Repeat All" )
#define HELP_REPEAT N_( "Repeat One" )
static int ItemChanged( vlc_object_t *, const char *,
vlc_value_t, vlc_value_t, void * );
static int ItemAppended( vlc_object_t *p_this, const char *psz_variable,
- vlc_value_t oval, vlc_value_t nval, void *param );
+ vlc_value_t oval, vlc_value_t nval, void *param );
static int ItemDeleted( vlc_object_t *p_this, const char *psz_variable,
- vlc_value_t oval, vlc_value_t nval, void *param );
+ vlc_value_t oval, vlc_value_t nval, void *param );
/*****************************************************************************
* Event Table.
wxString msg;
wxString duration = wxU( "" );
char *psz_author = vlc_input_item_GetInfo( &p_item->input,
- _("Meta-information"),
- _("Artist"));
+ _(VLC_META_INFO_CAT), _(VLC_META_ARTIST) );
if( !psz_author )
{
UnlockPlaylist( p_intf->p_sys, p_playlist );
else
{
msg = wxString(wxU( psz_author )) + wxT(" - ") +
- wxString(wxU(p_item->input.psz_name)) + duration;
+ wxString(wxU(p_item->input.psz_name)) + duration;
}
free( psz_author );
treectrl->SetItemText( item , msg );
void Playlist::DeleteItem( int item_id )
{
- playlist_LockDelete( p_playlist, item_id );
+ playlist_Delete( p_playlist, item_id );
}
void Playlist::DeleteNode( playlist_item_t *p_item )
{
search_current = found;
treectrl->EnsureVisible( found );
+ treectrl->UnselectAll();
treectrl->SelectItem( found, true );
}
}
else
{
p_node = p_item2;
- if( p_node && p_node->i_children > 0 &&
+ p_item = NULL;
+/* if( p_node && p_node->i_children > 0 &&
p_node->pp_children[0]->i_children == -1)
{
p_item = p_node->pp_children[0];
else
{
p_item = NULL;
- }
+ }*/
}
playlist_Control( p_playlist, PLAYLIST_VIEWPLAY, i_current_view,