|
1 # |
|
2 # Copyright (c) 2008-2014 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 packages |
|
16 |
|
17 # import Zope3 interfaces |
|
18 |
|
19 # import local interfaces |
|
20 |
|
21 # import Zope3 packages |
|
22 from zope.interface import Interface |
|
23 from zope.schema import Text |
|
24 |
|
25 # import local packages |
|
26 |
|
27 from ztfy.baseskin import _ |
|
28 |
|
29 |
|
30 # |
|
31 # Main container interfaces |
|
32 # |
|
33 |
|
34 class IContainerBaseView(Interface): |
|
35 """Marker interface for container base view""" |
|
36 |
|
37 |
|
38 class IOrderedContainerBaseView(Interface): |
|
39 """Marker interface for ordered container based view""" |
|
40 |
|
41 |
|
42 class IOrderedContainerSorterColumn(Interface): |
|
43 """Marker interface for container sorter column""" |
|
44 |
|
45 |
|
46 # |
|
47 # Container columns interfaces |
|
48 # |
|
49 |
|
50 class IIdColumn(Interface): |
|
51 """Marker interface for ID column""" |
|
52 |
|
53 |
|
54 class INameColumn(Interface): |
|
55 """Marker interface for name column""" |
|
56 |
|
57 |
|
58 class ITitleColumn(Interface): |
|
59 """Marker interface for title column""" |
|
60 |
|
61 |
|
62 class IStatusColumn(Interface): |
|
63 """Marker interface for status column""" |
|
64 |
|
65 |
|
66 class IActionsColumn(Interface): |
|
67 """Marker interface for actions column""" |
|
68 |
|
69 |
|
70 class IContainerTableViewTitleCell(Interface): |
|
71 """Container table view title cell adapter""" |
|
72 |
|
73 prefix = Text(title=_("Text displayed before title link")) |
|
74 |
|
75 before = Text(title=_("Text displayed before cell main text")) |
|
76 |
|
77 after = Text(title=_("Text displayed after cell main text")) |
|
78 |
|
79 suffix = Text(title=_("Text displayed after title link")) |
|
80 |
|
81 |
|
82 class IContainerTableViewStatusCell(Interface): |
|
83 """Container table view status cell interface""" |
|
84 |
|
85 content = Text(title=_("Content of status cell")) |
|
86 |
|
87 |
|
88 class IContainerTableViewActionsCell(Interface): |
|
89 """Container table view actions cell interface""" |
|
90 |
|
91 content = Text(title=_("Content of actions cell")) |