Beispiel #1
0
# the maximum number of thumbnails to enqueue at a given time. setting this to
# a larger value will increase latency after large operations, such as zooming
GlobalSettings.addConfigOption("thumbnailMaxRequests",
    section="thumbnailing",
    key="max-requests",
    default=10)

GlobalSettings.addConfigOption('showThumbnails',
    section='user-interface',
    key='show-thumbnails',
    default=True,
    notify=True)

PreferencesDialog.addTogglePreference('showThumbnails',
    section=_("Performance"),
    label=_("Enable video thumbnails"),
    description=_("Show thumbnails on video clips"))

GlobalSettings.addConfigOption('showWaveforms',
    section='user-interface',
    key='show-waveforms',
    default=True,
    notify=True)

PreferencesDialog.addTogglePreference('showWaveforms',
    section=_("Performance"),
    label=_("Enable audio waveforms"),
    description=_("Show waveforms on audio clips"))

# Previewer                      -- abstract base class with public interface for UI
# |_DefaultPreviewer             -- draws a default thumbnail for UI
Beispiel #2
0
# 4:3 aspect ratio
# 4 bytes per pixel
# 50 pixel height
GlobalSettings.addConfigOption("thumbnailCacheSize", section="thumbnailing", key="cache-size", default=250)

# the maximum number of thumbnails to enqueue at a given time. setting this to
# a larger value will increase latency after large operations, such as zooming
GlobalSettings.addConfigOption("thumbnailMaxRequests", section="thumbnailing", key="max-requests", default=10)

GlobalSettings.addConfigOption(
    "showThumbnails", section="user-interface", key="show-thumbnails", default=True, notify=True
)

PreferencesDialog.addTogglePreference(
    "showThumbnails",
    section=_("Appearance"),
    label=_("Show Thumbnails (Video)"),
    description=_("Show Thumbnails on Video Clips"),
)

GlobalSettings.addConfigOption(
    "showWaveforms", section="user-interface", key="show-waveforms", default=True, notify=True
)

PreferencesDialog.addTogglePreference(
    "showWaveforms",
    section=_("Appearance"),
    label=_("Show Waveforms (Audio)"),
    description=_("Show Waveforms on Audio Clips"),
)

# Previewer                      -- abstract base class with public interface for UI
Beispiel #3
0
# the maximum number of thumbnails to enqueue at a given time. setting this to
# a larger value will increase latency after large operations, such as zooming
GlobalSettings.addConfigOption("thumbnailMaxRequests",
                               section="thumbnailing",
                               key="max-requests",
                               default=10)

GlobalSettings.addConfigOption('showThumbnails',
                               section='user-interface',
                               key='show-thumbnails',
                               default=True,
                               notify=True)

PreferencesDialog.addTogglePreference(
    'showThumbnails',
    section=_("Appearance"),
    label=_("Show Thumbnails (Video)"),
    description=_("Show Thumbnails on Video Clips"))

GlobalSettings.addConfigOption('showWaveforms',
                               section='user-interface',
                               key='show-waveforms',
                               default=True,
                               notify=True)

PreferencesDialog.addTogglePreference(
    'showWaveforms',
    section=_("Appearance"),
    label=_("Show Waveforms (Audio)"),
    description=_("Show Waveforms on Audio Clips"))