GEPS_014:_Plugin_registration_and_management
finish views in category, todo: configuration svn: r13578
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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):
|
||||
"""
|
||||
|
||||
@@ -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'
|
||||
|
||||
|
||||
@@ -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):
|
||||
"""
|
||||
|
||||
@@ -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):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user