root/gaphor/tags/gaphor-0.9.2/gaphor/interfaces.py

Revision 1121, 1.1 kB (checked in by arjanmol, 2 years ago)

Merged changed from new-canvas branch to trunk

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 from zope import interface
2 from zope import component
3 class IGaphorAction(interface.Interface):
4     """Action interface for use in Gaphor"""
5
6 class IMenuAction(interface.Interface):
7     """An interface to hook up items to."""
8    
9
10 class TestAdapter(object):
11     def __init__(self, context):
12         self.context = context
13
14 #component.provideAdapter(
15     #factory=TestAdapter,
16     #adapts=[IGaphorAction],
17     #provides=IZopeMenu,
18     #name="Test adapter name")
19
20 #class TestAdapter2(object):
21     #def __init__(self, context):
22         #self.context = context
23
24 #component.provideAdapter(
25     #factory=TestAdapter2,
26     #adapts=[IGaphorAction],
27     #provides=IZopeMenu,
28     #name="Test adapter 2 name")
29
30 #class TestAction(object):
31     #interface.implements(IGaphorAction)
32    
33 class IDiagramElementReceivedFocus(interface.Interface):
34     """A diagram item received focus"""
35     diagramItem = interface.Attribute("The diagram item that received focus")
36    
37    
38 class IWidget(interface.Interface):
39     """A GTK widget"""
40    
41 class IDetailsPage(IWidget):
42     """A property page which can display itself in a notebook"""
43    
Note: See TracBrowser for help on using the browser.