from gi.repository import Pango import re from xl import common, settings from xl.nls import gettext as _ from xlgui.widgets import dialogs, menu, notebook import gt_common # # GroupTaggerView signal 'changed' enum # group_change = common.enum(added=object(), deleted=object(), edited=object()) # edited/toggled group category_change = common.enum( added=object(), deleted=object(), expanded=object(), # user expanded category display collapsed=object(), # user collapsed category display updated=object(), ) # added group, changed name # default group category uncategorized = _('Uncategorized') class GTShowTracksMenuItem(menu.MenuItem): def __init__(self, name, after):
import re from xl import common, settings from xl.nls import gettext as _ from xlgui import main from xlgui.widgets import dialogs, menu, notebook import gt_common # # GroupTaggerView signal 'changed' enum # group_change = common.enum( added=object(), deleted=object(), edited=object() ) # edited/toggled group category_change = common.enum( added=object(), deleted=object(), expanded=object(), # user expanded category display collapsed=object(), # user collapsed category display updated=object() ) # added group, changed name # default group category uncategorized = _('Uncategorized') class GTShowTracksMenuItem(menu.MenuItem): def __init__(self, name, after): menu.MenuItem.__init__(self, name, None, after)
# distributed together with GStreamer and Exaile. This permission is # above and beyond the permissions granted by the GPL license by which # Exaile is covered. If you modify this code, you may extend this # exception to your version of the code, but you are not obligated to # do so. If you do not wish to do so, delete this exception statement # from your version. from typing import Tuple from gi.repository import GLib from xl import common import logging FadeState = common.enum(NoFade=1, FadingIn=2, Normal=3, FadingOut=4) class TrackFader: """ This object manages the volume of a track, and fading it in/out via volume. As a bonus, this object can manage the start/stop offset of a track also. * Fade in only happens once per track play * Fade out can happen multiple times This fader can be used on any engine, as long as it implements the following functions: * get_position: return current track position in nanoseconds
# The developers of the Exaile media player hereby grant permission # for non-GPL compatible GStreamer and Exaile plugins to be used and # distributed together with GStreamer and Exaile. This permission is # above and beyond the permissions granted by the GPL license by which # Exaile is covered. If you modify this code, you may extend this # exception to your version of the code, but you are not obligated to # do so. If you do not wish to do so, delete this exception statement # from your version. from gi.repository import GLib from xl import common import logging FadeState = common.enum(NoFade=1, FadingIn=2, Normal=3, FadingOut=4) class TrackFader(object): ''' This object manages the volume of a track, and fading it in/out via volume. As a bonus, this object can manage the start/stop offset of a track also. * Fade in only happens once per track play * Fade out can happen multiple times This fader can be used on any engine, as long as it implements the following functions: * get_position: return current track position in nanoseconds