* controls.m: MacOS X interface plugin
*****************************************************************************
* Copyright (C) 2002-2003 VideoLAN
- * $Id: controls.m,v 1.54 2003/11/15 22:42:16 hartman Exp $
+ * $Id: controls.m,v 1.55 2003/11/19 19:00:16 bigben Exp $
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Christophe Massiot <massiot@via.ecp.fr>
vout_OSDMessage( (vlc_object_t *)p_intf, _( "Shuffle Off" ) );
}
+ p_intf->p_sys->b_playlist_update = VLC_TRUE;
+ p_intf->p_sys->b_intf_update = VLC_TRUE;
vlc_object_release( p_playlist );
}
else
{
vout_OSDMessage( (vlc_object_t *)p_intf, _( "Repeat Off" ) );
- }
+ }
+ p_intf->p_sys->b_playlist_update = VLC_TRUE;
+ p_intf->p_sys->b_intf_update = VLC_TRUE;
vlc_object_release( p_playlist );
}
vout_OSDMessage( (vlc_object_t *)p_intf, _( "Loop Off" ) );
}
+ p_intf->p_sys->b_playlist_update = VLC_TRUE;
+ p_intf->p_sys->b_intf_update = VLC_TRUE;
vlc_object_release( p_playlist );
}
* playlist.m: MacOS X interface plugin
*****************************************************************************
* Copyright (C) 2002-2003 VideoLAN
- * $Id: playlist.m,v 1.44 2003/11/19 14:58:54 bigben Exp $
+ * $Id: playlist.m,v 1.45 2003/11/19 19:00:16 bigben Exp $
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Derk-Jan Hartman <thedj@users.sourceforge.net>
[o_mi_selectall setTitle: _NS("Select All")];
[[o_tc_name headerCell] setStringValue:_NS("Name")];
[[o_tc_author headerCell] setStringValue:_NS("Author")];
- [o_random_ckb setTitle: _NS("Random")];
- [o_loop_ckb setTitle: _NS("Repeat All")];
- [o_repeat_ckb setTitle: _NS("Repeat One")];
+ [o_random_ckb setTitle: _NS("Shuffle")];
+ [o_loop_ckb setTitle: _NS("Repeat Playlist")];
+ [o_repeat_ckb setTitle: _NS("Repeat Item")];
[o_search_button setTitle: _NS("Search")];
- vlc_value_t val;
+ /*vlc_value_t val;
intf_thread_t * p_intf = [NSApp getIntf];
playlist_t * p_playlist = vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST,
FIND_ANYWHERE );
[o_repeat_ckb setState: val.b_bool];
vlc_object_release( p_playlist );
- }
+ }*/
}
- (BOOL)tableView:(NSTableView *)o_tv
- (IBAction)searchItem:(id)sender
{
- int i_current = 0, i_counter;
+ int i_current = 0;
NSString *o_current_name;
NSString *o_current_author;
- (void)playlistUpdated
{
+
+ vlc_value_t val;
+
[o_table_view reloadData];
+
+ intf_thread_t * p_intf = [NSApp getIntf];
+ playlist_t * p_playlist = vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST,
+ FIND_ANYWHERE );
+ if( p_playlist != NULL )
+ {
+ var_Get( p_playlist, "random", &val );
+ [o_random_ckb setState: val.b_bool];
+
+ var_Get( p_playlist, "loop", &val );
+ [o_loop_ckb setState: val.b_bool];
+
+ var_Get( p_playlist, "repeat", &val );
+ [o_repeat_ckb setState: val.b_bool];
+
+ vlc_object_release( p_playlist );
+ }
}
- (void)updateRowSelection