GEPS_014:_Plugin_registration_and_management

finish views in category, todo: configuration


svn: r13578
This commit is contained in:
Benny Malengier
2009-11-14 17:17:34 +00:00
parent d1f9d44147
commit d3fd2f150d
40 changed files with 4943 additions and 1287 deletions
+11
View File
@@ -583,6 +583,17 @@ class FanChartView(NavigationView):
context_popup_callback=self.on_popup)
return self.fan
def get_stock(self):
"""
The category stock icon
"""
return 'gramps-relation'
def get_viewtype_stock(self):
"""Type of view in category
"""
return 'gramps-fanchart'
def ui_definition(self):
return '''<ui>
<toolbar name="ToolBar">
+13
View File
@@ -577,6 +577,19 @@ class GeoView(HtmlView):
HtmlView.set_inactive(self)
self.dbstate.disconnect(self.key_active_changed)
def get_stock(self):
"""
Returns the name of the stock icon to use for the display.
This assumes that this icon has already been registered
as a stock icon.
"""
return 'gramps-geo'
def get_viewtype_stock(self):
"""Type of view in category
"""
return 'gramps-geo'
def _savezoomandposition(self, timeloop=None):
"""
The only way we have to save the zoom and position is to change the
+5
View File
@@ -1171,6 +1171,11 @@ class GrampletView(PageView):
"""
return 'gramps-gramplet'
def get_viewtype_stock(self):
"""Type of view in category
"""
return 'gramps-gramplet'
def build_tree(self):
return
+8 -3
View File
@@ -546,10 +546,15 @@ class HtmlView(PageView):
def get_stock(self):
"""
Returns the name of the stock icon to use for the display.
This assumes that this icon has already been registered with
GNOME as a stock icon.
This assumes that this icon has already been registered
as a stock icon.
"""
return 'gramps-geo'
return 'gramps-view'
def get_viewtype_stock(self):
"""Type of view in category
"""
return 'gramps-view'
def ui_definition(self):
"""
+6 -3
View File
@@ -414,9 +414,12 @@ class PedigreeView(NavigationView):
def get_stock(self):
"""
Return the name of the stock icon to use for the display.
This assumes that this icon has already been registered with
GNOME as a stock icon.
The category stock icon
"""
return 'gramps-relation'
def get_viewtype_stock(self):
"""Type of view in category
"""
return 'gramps-pedigree'
+5
View File
@@ -163,6 +163,11 @@ class PersonView(ListView):
Use the gramps-person stock icon
"""
return 'gramps-person'
def get_viewtype_stock(self):
"""Type of view in category
"""
return 'gramps-tree-group'
def ui_definition(self):
"""
+5
View File
@@ -235,6 +235,11 @@ class RelationshipView(NavigationView):
GNOME as a stock icon.
"""
return 'gramps-relation'
def get_viewtype_stock(self):
"""Type of view in category
"""
return 'gramps-relation'
def build_widget(self):