src/pyams_content/component/illustration/zmi/interfaces.py
changeset 418 81e4e9b9cde2
parent 417 f09842eb4ada
child 419 824fef808845
equal deleted inserted replaced
417:f09842eb4ada 418:81e4e9b9cde2
     1 #
       
     2 # Copyright (c) 2008-2015 Thierry Florac <tflorac AT ulthar.net>
       
     3 # All Rights Reserved.
       
     4 #
       
     5 # This software is subject to the provisions of the Zope Public License,
       
     6 # Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
       
     7 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
       
     8 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
       
     9 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
       
    10 # FOR A PARTICULAR PURPOSE.
       
    11 #
       
    12 
       
    13 __docformat__ = 'restructuredtext'
       
    14 
       
    15 # import standard library
       
    16 
       
    17 # import interfaces
       
    18 
       
    19 # import packages
       
    20 from zope.interface import Interface
       
    21 from zope.schema import Bool
       
    22 
       
    23 from pyams_content import _
       
    24 
       
    25 
       
    26 class IIllustrationWithZoomSettings(Interface):
       
    27     """Illustration with zoom interface"""
       
    28 
       
    29     zoom_on_click = Bool(title=_("Zoom on click?"),
       
    30                          description=_("If 'yes', a click on illustration thumbnail is required to zoom"),
       
    31                          required=True,
       
    32                          default=True)