source: products/quintagroup.dropdownmenu/trunk/quintagroup/dropdownmenu/interfaces.py @ 2786

Last change on this file since 2786 was 2786, checked in by olha, 14 years ago

doc files updated

  • Property svn:eol-style set to native
File size: 2.6 KB
RevLine 
[1181]1# -*- coding: utf-8 -*-
[1179]2from zope import schema
3from zope.interface import Interface
4
[1180]5from plone.theme.interfaces import IDefaultPloneLayer
6
[1179]7from quintagroup.dropdownmenu import _
8
9
[1180]10class IDropDownMenuLayer(IDefaultPloneLayer):
11    """Request marker installed via browserlayer.xml.
12    """
13
14
[1179]15class IDropDownMenuSettings(Interface):
16    """Global dropdown menu settings. This describes records stored in the
17    configuration registry and obtainable via plone.registry.
18    """
[1197]19
20    show_icons = schema.Bool(
21        title=_(u"Show tabs icons"),
[2783]22        description=_(u"Use this setting to switch on/off icons for menu "
[1197]23                      u"items."),
24        default=False)
25
[1179]26    show_content_tabs = schema.Bool(
[2783]27        title=_(u"Show navigation strategy based dropdown menu"),
28        description=_(u"Use this setting to switch on/off navigation "
29                      u"strategy built dropdown menu"),
[1179]30        default=True)
31
32    show_nonfolderish_tabs = schema.Bool(
[2783]33        title=_(u"Show non-folderish menu items"),
34        description=_(u"Use this setting to switch on/off non-folderish "
35                      u"objects in navigation strategy based dropdown menu"),
[1179]36        default=True)
37
38    content_before_actions_tabs = schema.Bool(
39        title=_(u"Show content tabs before portal_actions tabs"),
[2783]40        description=_(u""),
[1181]41        default=False)
[1179]42
43    content_tabs_level = schema.Int(
[2783]44        title=_(u"Navigation strategy dropdown menu depth"),
45        description=_(u"How many levels folders to list after the "
46                      u"top level."),
[1179]47        default=0)
48
49    show_actions_tabs = schema.Bool(
50        title=_(u"Show actions tabs"),
[2786]51        description=_(u"Use this setting to enable/disable portal_actions "
[2783]52                      u"based dropdown menu"),
[1179]53        default=True)
54
55    actions_tabs_level = schema.Int(
[2783]56        title=_(u"Actions dropdown menu depth"),
57        description=_(u"How many levels of portal_actions to list after the "
58                      u"top level."),
[1197]59        default=0)
[1179]60
61    actions_category = schema.TextLine(
[2783]62        title=_(u"Root portal actions category"),
63        description=_(u"Root category id of portal_actions based dropdown "
64                      u"menu tree"),
[1181]65        default=u"portal_tabs")
[1179]66
67    nested_category_prefix = schema.TextLine(
68        title=_(u"Nested category prefix"),
[2783]69        description=_(u"Prefix of category id, used to bind category with action"),
[1194]70        default=u"",
71        required=False)
[1179]72
73    nested_category_sufix = schema.TextLine(
74        title=_(u"Nested category sufix"),
[2783]75        description=_(u"Sufix of category id, used to bind category with action"),
[1199]76        default=u"_sub",
77        required=False)
Note: See TracBrowser for help on using the repository browser.