1# Copyright (C) 2008-2010 Adam Olsen
2#
3# This program is free software; you can redistribute it and/or modify
4# it under the terms of the GNU General Public License as published by
5# the Free Software Foundation; either version 2, or (at your option)
6# any later version.
7#
8# This program is distributed in the hope that it will be useful,
9# but WITHOUT ANY WARRANTY; without even the implied warranty of
10# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11# GNU General Public License for more details.
12#
13# You should have received a copy of the GNU General Public License
14# along with this program; if not, write to the Free Software
15# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
16#
17#
18# The developers of the Exaile media player hereby grant permission
19# for non-GPL compatible GStreamer and Exaile plugins to be used and
20# distributed together with GStreamer and Exaile. This permission is
21# above and beyond the permissions granted by the GPL license by which
22# Exaile is covered. If you modify this code, you may extend this
23# exception to your version of the code, but you are not obligated to
24# do so. If you do not wish to do so, delete this exception statement
25# from your version.
26
27from xl import xdg
28from xl.nls import gettext as _
29from xlgui.preferences import widgets
30
31name = _('Playlists')
32icon = 'music-library'
33ui = xdg.get_data_path('ui', 'preferences', 'playlists.ui')
34
35
36class OpenLastPreference(widgets.CheckPreference):
37    default = True
38    name = 'playlist/open_last'
39
40
41class AskSaveCustomPlaylistPreference(widgets.CheckPreference):
42    default = True
43    name = 'playlist/ask_save'
44
45
46class ReplaceContentPreference(widgets.CheckPreference):
47    default = False
48    name = 'playlist/replace_content'
49
50
51class AppendStartsPlaybackPreference(widgets.CheckPreference):
52    default = False
53    name = 'playlist/append_menu_starts_playback'
54
55
56class EnqueueTrackByDefaultPreference(widgets.CheckPreference):
57    default = False
58    name = 'playlist/enqueue_by_default'
59