# encoding:utf-8
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2009 Benny Malengier
# Copyright (C) 2011 Nick Hall
# Copyright (C) 2011 Tim G L Lyons
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#

# $Id$

#------------------------------------------------------------------------
#
# GRAMPS modules
#
#------------------------------------------------------------------------

from gramps.gen.const import GRAMPS_LOCALE as glocale
_ = glocale.translation.sgettext

#------------------------------------------------------------------------
#
# Register Gramplet
#
#------------------------------------------------------------------------
register(GRAMPLET, 
         id="Age on Date", 
         name=_("Age on Date"), 
         description = _("Gramplet showing ages of living people on a specific date"),
         version="2.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="ageondategramplet.py",
         height=200,
         gramplet = 'AgeOnDateGramplet',
         gramplet_title=_("Age on Date"),
         )

register(GRAMPLET, 
         id = "Age Stats",
         name = _("Age Stats"),
         description = _("Gramplet showing graphs of various ages"),
         status = STABLE,
         fname="agestats.py",
         height=100,
         expand=True,
         gramplet = 'AgeStatsGramplet',
         gramplet_title=_("Age Stats"),
         detached_width = 600,
         detached_height = 450,
         version="1.0.0",
         gramps_target_version="4.0",
         )

register(GRAMPLET, 
         id="Calendar", 
         name=_("Calendar"), 
         description = _("Gramplet showing calendar and events on specific dates in history"),
         status = STABLE,
         fname="calendargramplet.py",
         height=200,
         gramplet = 'CalendarGramplet',
         gramplet_title=_("Calendar"),
         version="1.0.0",
         gramps_target_version="4.0",
         )

register(GRAMPLET, 
         id = "Descendant", 
         name=_("Descendant"), 
         description = _("Gramplet showing active person's descendants"),
         status = STABLE,
         fname="descendgramplet.py",
         height=100,
         expand=True,
         gramplet = 'DescendantGramplet',
         gramplet_title=_("Descendants"),
         detached_width = 500,
         detached_height = 500,
         version="1.0.0",
         gramps_target_version="4.0",
         navtypes=["Person"],
         )

register(GRAMPLET, 
         id= "Fan Chart", 
         name=_("Fan Chart"), 
         description = _("Gramplet showing active person's direct ancestors as a fanchart"),
         status = STABLE,
         fname="fanchartgramplet.py",
         height=430,
         expand=True,
         gramplet = 'FanChartGramplet',
         detached_height = 550,
         detached_width = 475,
         gramplet_title=_("Fan Chart"),
         version="1.0.0",
         gramps_target_version="4.0",
         navtypes=["Person"],
         )

register(GRAMPLET, 
         id= "Descendant Fan Chart", 
         name=_("Descendant Fan Chart"), 
         description = _("Gramplet showing active person's direct descendants as a fanchart"),
         status = STABLE,
         fname="fanchartdescgramplet.py",
         height=430,
         expand=True,
         gramplet = 'FanChartDescGramplet',
         detached_height = 550,
         detached_width = 475,
         gramplet_title=_("Descendant Fan"),
         version="1.0.0",
         gramps_target_version="4.0",
         navtypes=["Person"],
         )

register(GRAMPLET, 
         id="FAQ", 
         name=_("FAQ"), 
         description = _("Gramplet showing frequently asked questions"),
         status = STABLE,
         fname="faqgramplet.py",
         height=300,
         gramplet = 'FAQGramplet',
         gramplet_title=_("FAQ"),
         version="1.0.0",
         gramps_target_version="4.0",
         )

register(GRAMPLET, 
         id= "Given Name Cloud", 
         name=_("Given Name Cloud"), 
         description = _("Gramplet showing all given names as a text cloud"),
         status = STABLE,
         fname="givennamegramplet.py",
         height=300,
         expand=True,
         gramplet = 'GivenNameCloudGramplet',
         gramplet_title=_("Given Name Cloud"),
         version="1.0.0",
         gramps_target_version="4.0",
         )

register(GRAMPLET, 
         id="Pedigree", 
         name=_("Pedigree"), 
         description = _("Gramplet showing active person's ancestors"),
         status = STABLE,
         fname="pedigreegramplet.py",
         height=300,
         gramplet = 'PedigreeGramplet',
         gramplet_title=_("Pedigree"),
         expand=True,
         detached_width = 600,
         detached_height = 400,
         version="1.0.0",
         gramps_target_version="4.0",
         navtypes=["Person"],
         )

register(GRAMPLET, 
         id="Quick View", 
         name=_("Quick View"), 
         description = _("Gramplet showing an active item Quick View"),
         status = STABLE,
         fname="quickviewgramplet.py",
         height=300,
         expand=True,
         gramplet = 'QuickViewGramplet',
         gramplet_title=_("Quick View"),
         detached_width = 600,
         detached_height = 400,
         version="1.0.0",
         gramps_target_version="4.0",
         )

register(GRAMPLET, 
         id="Relatives", 
         name=_("Relatives"), 
         description = _("Gramplet showing active person's relatives"),
         status = STABLE,
         fname="relativegramplet.py",
         height=200,
         gramplet = 'RelativesGramplet',
         gramplet_title=_("Relatives"),
         detached_width = 250,
         detached_height = 300,
         version="1.0.0",
         gramps_target_version="4.0",
         navtypes=["Person"],
         )

register(GRAMPLET, 
         id="Session Log", 
         name=_("Session Log"), 
         description = _("Gramplet showing all activity for this session"),
         status = STABLE,
         fname="sessionloggramplet.py",
         height=230,
         #data=['no'],
         gramplet = 'LogGramplet',
         gramplet_title=_("Session Log"),
         version="1.0.0",
         gramps_target_version="4.0",
         )

register(GRAMPLET, 
         id="Statistics", 
         name=_("Statistics"), 
         description = _("Gramplet showing summary data of the Family Tree"),
         status = STABLE,
         fname="statsgramplet.py",
         height=230,
         expand=True,
         gramplet = 'StatsGramplet',
         gramplet_title=_("Statistics"),
         version="1.0.0",
         gramps_target_version="4.0",
         )

register(GRAMPLET, 
         id= "Surname Cloud", 
         name=_("Surname Cloud"), 
         description = _("Gramplet showing all surnames as a text cloud"),
         status = STABLE,
         fname="surnamecloudgramplet.py",
         height=300,
         expand=True,
         gramplet = 'SurnameCloudGramplet',
         gramplet_title=_("Surname Cloud"),
         version="1.0.0",
         gramps_target_version="4.0",
         )

register(GRAMPLET, 
         id="To Do", 
         name=_("gramplet|To Do"), 
         description = _("Gramplet for displaying a To Do list"),
         status = STABLE,
         fname="todogramplet.py",
         height=300,
         expand=True,
         gramplet = 'ToDoGramplet',
         gramplet_title=_("gramplet|To Do"),
         version="1.0.0",
         gramps_target_version="4.0",
         )

register(GRAMPLET, 
         id= "Top Surnames", 
         name=_("Top Surnames"), 
         description = _("Gramplet showing most frequent surnames in this tree"),
         status = STABLE,
         fname="topsurnamesgramplet.py",
         height=230,
         gramplet = 'TopSurnamesGramplet',
         gramplet_title=_("Top Surnames"),
         version="1.0.0",
         gramps_target_version="4.0",
         )

register(GRAMPLET, 
         id="Welcome", 
         name=_("Welcome"), 
         description = _("Gramplet showing a welcome message"),
         status = STABLE,
         fname="welcomegramplet.py",
         height=300,
         expand=True,
         gramplet = 'WelcomeGramplet',
         gramplet_title=_("Welcome to Gramps!"),
         version="1.0.1",
         gramps_target_version="4.0",
         )

register(GRAMPLET, 
         id = "What's Next", 
         name =_("What's Next"), 
         description = _("Gramplet suggesting items to research"),
         status = STABLE,
         fname="whatsnext.py",
         height = 230,
         expand = True,
         gramplet = 'WhatNextGramplet',
         gramplet_title = _("What's Next?"),
         version="1.0.0",
         gramps_target_version="4.0",
         )

#------------------------------------------------------------------------
# Bottombar
#------------------------------------------------------------------------
register(GRAMPLET, 
         id="Person Details", 
         name=_("Person Details"), 
         description = _("Gramplet showing details of a person"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="persondetails.py",
         height=200,
         gramplet = 'PersonDetails',
         gramplet_title=_("Details"),
         navtypes=["Person"],
         )

register(GRAMPLET, 
         id="Repository Details", 
         name=_("Repository Details"), 
         description = _("Gramplet showing details of a repository"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="repositorydetails.py",
         height=200,
         gramplet = 'RepositoryDetails',
         gramplet_title=_("Details"),
         navtypes=["Repository"],
         )

register(GRAMPLET, 
         id="Place Details", 
         name=_("Place Details"), 
         description = _("Gramplet showing details of a place"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="placedetails.py",
         height=200,
         gramplet = 'PlaceDetails',
         gramplet_title=_("Details"),
         navtypes=["Place"],
         )

register(GRAMPLET, 
         id="Media Preview", 
         name=_("Media Preview"), 
         description = _("Gramplet showing a preview of a media object"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="mediapreview.py",
         height=200,
         gramplet = 'MediaPreview',
         gramplet_title=_("Preview"),
         navtypes=["Media"],
         )

try:
    from gi import Repository
    repository = Repository.get_default()
    if repository.enumerate_versions("GExiv2"):
        from gi.repository import GExiv2
        available = True
    else:
        available = False
except ImportError:
    available = False

if available:
    register(GRAMPLET, 
            id = "Metadata Viewer", 
            name = _("Metadata Viewer"), 
            description = _("Gramplet showing metadata for a media object"),
            version = "1.0.0",
            gramps_target_version = "4.0",
            status = STABLE,
            fname = "metadataviewer.py",
            height = 200,
            gramplet = 'MetadataViewer',
            gramplet_title = _("Image Metadata"),
            navtypes=["Media"],
            )
else:
    from gramps.gen.config import config
    from gramps.gui.dialog import MessageHideDialog
    if not config.get('interface.ignore-gexiv2'):
        title = _("GExiv2 module not loaded.")
        message = _("Image metadata functionality will not be available.\n"
                    "To build it for Gramps see "
                    "http://www.gramps-project.org/wiki/index.php?"
                    "title=GEPS_029:_GTK3-GObject_introspection"
                    "_Conversion#GExiv2_for_Image_metadata")
        MessageHideDialog(title, message, 'interface.ignore-gexiv2')

register(GRAMPLET, 
         id="Person Residence", 
         name=_("Person Residence"), 
         description = _("Gramplet showing residence events for a person"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="personresidence.py",
         height=200,
         gramplet = 'PersonResidence',
         gramplet_title=_("Residence"),
         navtypes=["Person"],
         )

register(GRAMPLET, 
         id="Person Events", 
         name=_("Person Events"), 
         description = _("Gramplet showing the events for a person"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="events.py",
         height=200,
         gramplet = 'PersonEvents',
         gramplet_title=_("Events"),
         navtypes=["Person"],
         )

register(GRAMPLET, 
         id="Family Events", 
         name=_("Family Events"), 
         description = _("Gramplet showing the events for a family"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="events.py",
         height=200,
         gramplet = 'FamilyEvents',
         gramplet_title=_("Events"),
         navtypes=["Family"],
         )

register(GRAMPLET, 
         id="Person Gallery", 
         name=_("Person Gallery"), 
         description = _("Gramplet showing media objects for a person"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="gallery.py",
         height=200,
         gramplet = 'PersonGallery',
         gramplet_title=_("Gallery"),
         navtypes=["Person"],
         )

register(GRAMPLET, 
         id="Family Gallery", 
         name=_("Family Gallery"), 
         description = _("Gramplet showing media objects for a family"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="gallery.py",
         height=200,
         gramplet = 'FamilyGallery',
         gramplet_title=_("Gallery"),
         navtypes=["Family"],
         )

register(GRAMPLET, 
         id="Event Gallery", 
         name=_("Event Gallery"), 
         description = _("Gramplet showing media objects for an event"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="gallery.py",
         height=200,
         gramplet = 'EventGallery',
         gramplet_title=_("Gallery"),
         navtypes=["Event"],
         )

register(GRAMPLET, 
         id="Place Gallery", 
         name=_("Place Gallery"), 
         description = _("Gramplet showing media objects for a place"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="gallery.py",
         height=200,
         gramplet = 'PlaceGallery',
         gramplet_title=_("Gallery"),
         navtypes=["Place"],
         )

register(GRAMPLET, 
         id="Source Gallery", 
         name=_("Source Gallery"), 
         description = _("Gramplet showing media objects for a source"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="gallery.py",
         height=200,
         gramplet = 'SourceGallery',
         gramplet_title=_("Gallery"),
         navtypes=["Source"],
         )

register(GRAMPLET, 
         id="Citation Gallery", 
         name=_("Citation Gallery"), 
         description = _("Gramplet showing media objects for a citation"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="gallery.py",
         height=200,
         gramplet = 'CitationGallery',
         gramplet_title=_("Gallery"),
         navtypes=["Citation"],
         )

register(GRAMPLET, 
         id="Person Attributes", 
         name=_("Person Attributes"), 
         description = _("Gramplet showing the attributes of a person"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="attributes.py",
         height=200,
         gramplet = 'PersonAttributes',
         gramplet_title=_("Attributes"),
         navtypes=["Person"],
         )

register(GRAMPLET, 
         id="Event Attributes", 
         name=_("Event Attributes"), 
         description = _("Gramplet showing the attributes of an event"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="attributes.py",
         height=200,
         gramplet = 'EventAttributes',
         gramplet_title=_("Attributes"),
         navtypes=["Event"],
         )

register(GRAMPLET, 
         id="Family Attributes", 
         name=_("Family Attributes"), 
         description = _("Gramplet showing the attributes of a family"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="attributes.py",
         height=200,
         gramplet = 'FamilyAttributes',
         gramplet_title=_("Attributes"),
         navtypes=["Family"],
         )

register(GRAMPLET, 
         id="Media Attributes", 
         name=_("Media Attributes"), 
         description = _("Gramplet showing the attributes of a media object"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="attributes.py",
         height=200,
         gramplet = 'MediaAttributes',
         gramplet_title=_("Attributes"),
         navtypes=["Media"],
         )

register(GRAMPLET, 
         id="Person Notes", 
         name=_("Person Notes"), 
         description = _("Gramplet showing the notes for a person"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="notes.py",
         height=200,
         gramplet = 'PersonNotes',
         gramplet_title=_("Notes"),
         navtypes=["Person"],
         )

register(GRAMPLET, 
         id="Event Notes", 
         name=_("Event Notes"), 
         description = _("Gramplet showing the notes for an event"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="notes.py",
         height=200,
         gramplet = 'EventNotes',
         gramplet_title=_("Notes"),
         navtypes=["Event"],
         )

register(GRAMPLET, 
         id="Family Notes", 
         name=_("Family Notes"), 
         description = _("Gramplet showing the notes for a family"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="notes.py",
         height=200,
         gramplet = 'FamilyNotes',
         gramplet_title=_("Notes"),
         navtypes=["Family"],
         )

register(GRAMPLET, 
         id="Place Notes", 
         name=_("Place Notes"), 
         description = _("Gramplet showing the notes for a place"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="notes.py",
         height=200,
         gramplet = 'PlaceNotes',
         gramplet_title=_("Notes"),
         navtypes=["Place"],
         )

register(GRAMPLET, 
         id="Source Notes", 
         name=_("Source Notes"), 
         description = _("Gramplet showing the notes for a source"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="notes.py",
         height=200,
         gramplet = 'SourceNotes',
         gramplet_title=_("Notes"),
         navtypes=["Source"],
         )

register(GRAMPLET, 
         id="Citation Notes", 
         name=_("Citation Notes"), 
         description = _("Gramplet showing the notes for a citation"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="notes.py",
         height=200,
         gramplet = 'CitationNotes',
         gramplet_title=_("Notes"),
         navtypes=["Citation"],
         )

register(GRAMPLET, 
         id="Repository Notes", 
         name=_("Repository Notes"), 
         description = _("Gramplet showing the notes for a repository"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="notes.py",
         height=200,
         gramplet = 'RepositoryNotes',
         gramplet_title=_("Notes"),
         navtypes=["Repository"],
         )

register(GRAMPLET, 
         id="Media Notes", 
         name=_("Media Notes"), 
         description = _("Gramplet showing the notes for a media object"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="notes.py",
         height=200,
         gramplet = 'MediaNotes',
         gramplet_title=_("Notes"),
         navtypes=["Media"],
         )

register(GRAMPLET, 
         id="Person Citations", 
         name=_("Person Citations"), 
         description = _("Gramplet showing the citations for a person"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="citations.py",
         height=200,
         gramplet = 'PersonCitations',
         gramplet_title=_("Citations"),
         navtypes=["Person"],
         )

register(GRAMPLET, 
         id="Event Citations", 
         name=_("Event Citations"), 
         description = _("Gramplet showing the citations for an event"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="citations.py",
         height=200,
         gramplet = 'EventCitations',
         gramplet_title=_("Citations"),
         navtypes=["Event"],
         )

register(GRAMPLET, 
         id="Family Citations", 
         name=_("Family Citations"), 
         description = _("Gramplet showing the citations for a family"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="citations.py",
         height=200,
         gramplet = 'FamilyCitations',
         gramplet_title=_("Citations"),
         navtypes=["Family"],
         )

register(GRAMPLET, 
         id="Place Citations", 
         name=_("Place Citations"), 
         description = _("Gramplet showing the citations for a place"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="citations.py",
         height=200,
         gramplet = 'PlaceCitations',
         gramplet_title=_("Citations"),
         navtypes=["Place"],
         )

register(GRAMPLET, 
         id="Media Citations", 
         name=_("Media Citations"), 
         description = _("Gramplet showing the citations for a media object"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="citations.py",
         height=200,
         gramplet = 'MediaCitations',
         gramplet_title=_("Citations"),
         navtypes=["Media"],
         )

register(GRAMPLET, 
         id="Person Children", 
         name=_("Person Children"), 
         description = _("Gramplet showing the children of a person"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="children.py",
         height=200,
         gramplet = 'PersonChildren',
         gramplet_title=_("Children"),
         navtypes=["Person"],
         )

register(GRAMPLET, 
         id="Family Children", 
         name=_("Family Children"), 
         description = _("Gramplet showing the children of a family"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="children.py",
         height=200,
         gramplet = 'FamilyChildren',
         gramplet_title=_("Children"),
         navtypes=["Family"],
         )

register(GRAMPLET, 
         id="Person Backlinks", 
         name=_("Person Backlinks"), 
         description = _("Gramplet showing the backlinks for a person"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="backlinks.py",
         height=200,
         gramplet = 'PersonBacklinks',
         gramplet_title=_("References"),
         navtypes=["Person"],
         )

register(GRAMPLET, 
         id="Event Backlinks", 
         name=_("Event Backlinks"), 
         description = _("Gramplet showing the backlinks for an event"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="backlinks.py",
         height=200,
         gramplet = 'EventBacklinks',
         gramplet_title=_("References"),
         navtypes=["Event"],
         )

register(GRAMPLET, 
         id="Family Backlinks", 
         name=_("Family Backlinks"), 
         description = _("Gramplet showing the backlinks for a family"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="backlinks.py",
         height=200,
         gramplet = 'FamilyBacklinks',
         gramplet_title=_("References"),
         navtypes=["Family"],
         )

register(GRAMPLET, 
         id="Place Backlinks", 
         name=_("Place Backlinks"), 
         description = _("Gramplet showing the backlinks for a place"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="backlinks.py",
         height=200,
         gramplet = 'PlaceBacklinks',
         gramplet_title=_("References"),
         navtypes=["Place"],
         )

register(GRAMPLET, 
         id="Source Backlinks", 
         name=_("Source Backlinks"), 
         description = _("Gramplet showing the backlinks for a source"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="backlinks.py",
         height=200,
         gramplet = 'SourceBacklinks',
         gramplet_title=_("References"),
         navtypes=["Source"],
         )

register(GRAMPLET, 
         id="Citation Backlinks", 
         name=_("Citation Backlinks"), 
         description = _("Gramplet showing the backlinks for a citation"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="backlinks.py",
         height=200,
         gramplet = 'CitationBacklinks',
         gramplet_title=_("References"),
         navtypes=["Citation"],
         )

register(GRAMPLET, 
         id="Repository Backlinks", 
         name=_("Repository Backlinks"), 
         description = _("Gramplet showing the backlinks for a repository"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="backlinks.py",
         height=200,
         gramplet = 'RepositoryBacklinks',
         gramplet_title=_("References"),
         navtypes=["Repository"],
         )

register(GRAMPLET, 
         id="Media Backlinks", 
         name=_("Media Backlinks"), 
         description = _("Gramplet showing the backlinks for a media object"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="backlinks.py",
         height=200,
         gramplet = 'MediaBacklinks',
         gramplet_title=_("References"),
         navtypes=["Media"],
         )

register(GRAMPLET, 
         id="Note Backlinks", 
         name=_("Note Backlinks"), 
         description = _("Gramplet showing the backlinks for a note"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="backlinks.py",
         height=200,
         gramplet = 'NoteBacklinks',
         gramplet_title=_("References"),
         navtypes=["Note"],
         )

register(GRAMPLET, 
         id="Person Filter", 
         name=_("Person Filter"), 
         description = _("Gramplet providing a person filter"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="filter.py",
         height=200,
         gramplet = 'PersonFilter',
         gramplet_title=_("Filter"),
         navtypes=["Person"],
         )

register(GRAMPLET, 
         id="Family Filter", 
         name=_("Family Filter"), 
         description = _("Gramplet providing a family filter"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="filter.py",
         height=200,
         gramplet = 'FamilyFilter',
         gramplet_title=_("Filter"),
         navtypes=["Family"],
         )

register(GRAMPLET, 
         id="Event Filter", 
         name=_("Event Filter"), 
         description = _("Gramplet providing an event filter"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="filter.py",
         height=200,
         gramplet = 'EventFilter',
         gramplet_title=_("Filter"),
         navtypes=["Event"],
         )

register(GRAMPLET, 
         id="Source Filter", 
         name=_("Source Filter"), 
         description = _("Gramplet providing a source filter"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="filter.py",
         height=200,
         gramplet = 'SourceFilter',
         gramplet_title=_("Filter"),
         navtypes=["Source"],
         )

register(GRAMPLET, 
         id="Citation Filter", 
         name=_("Citation Filter"), 
         description = _("Gramplet providing a citation filter"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="filter.py",
         height=200,
         gramplet = 'CitationFilter',
         gramplet_title=_("Filter"),
         navtypes=["Citation"],
         )

register(GRAMPLET, 
         id="Place Filter", 
         name=_("Place Filter"), 
         description = _("Gramplet providing a place filter"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="filter.py",
         height=200,
         gramplet = 'PlaceFilter',
         gramplet_title=_("Filter"),
         navtypes=["Place"],
         )

register(GRAMPLET, 
         id="Media Filter", 
         name=_("Media Filter"), 
         description = _("Gramplet providing a media filter"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="filter.py",
         height=200,
         gramplet = 'MediaFilter',
         gramplet_title=_("Filter"),
         navtypes=["Media"],
         )

register(GRAMPLET, 
         id="Repository Filter", 
         name=_("Repository Filter"), 
         description = _("Gramplet providing a repository filter"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="filter.py",
         height=200,
         gramplet = 'RepositoryFilter',
         gramplet_title=_("Filter"),
         navtypes=["Repository"],
         )

register(GRAMPLET, 
         id="Note Filter", 
         name=_("Note Filter"), 
         description = _("Gramplet providing a note filter"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="filter.py",
         height=200,
         gramplet = 'NoteFilter',
         gramplet_title=_("Filter"),
         navtypes=["Note"],
         )

register(GRAMPLET, 
         id='Records Gramplet',
         name=_("Records Gramplet"),
         description=_("Shows some interesting records about people and families"),
         version='1.0',
         gramps_target_version='4.0',
         status=STABLE,
         fname='recordsgramplet.py',
         authors=["Reinhard Müller"],
         authors_email=["reinhard.mueller@bytewise.at"],
         gramplet='RecordsGramplet',
         height=230,
         expand=True,
         gramplet_title=_("Records")
         )

register(GRAMPLET, 
         id="Person To Do", 
         name=_("Person To Do"), 
         description = _("Gramplet showing the To Do notes for a person"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="todo.py",
         height=200,
         gramplet = 'PersonToDo',
         gramplet_title=_("gramplet|To Do"),
         navtypes=["Person"],
         )

register(GRAMPLET, 
         id="Event To Do", 
         name=_("Event To Do"), 
         description = _("Gramplet showing the To Do notes for an event"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="todo.py",
         height=200,
         gramplet = 'EventToDo',
         gramplet_title=_("gramplet|To Do"),
         navtypes=["Event"],
         )

register(GRAMPLET, 
         id="Family To Do", 
         name=_("Family To Do"), 
         description = _("Gramplet showing the To Do notes for a family"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="todo.py",
         height=200,
         gramplet = 'FamilyToDo',
         gramplet_title=_("gramplet|To Do"),
         navtypes=["Family"],
         )

register(GRAMPLET, 
         id="Place To Do", 
         name=_("Place To Do"), 
         description = _("Gramplet showing the To Do notes for a place"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="todo.py",
         height=200,
         gramplet = 'PlaceToDo',
         gramplet_title=_("gramplet|To Do"),
         navtypes=["Place"],
         )

register(GRAMPLET, 
         id="Source To Do", 
         name=_("Source To Do"), 
         description = _("Gramplet showing the To Do notes for a source"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="todo.py",
         height=200,
         gramplet = 'SourceToDo',
         gramplet_title=_("gramplet|To Do"),
         navtypes=["Source"],
         )

register(GRAMPLET, 
         id="Citation To Do", 
         name=_("Citation To Do"), 
         description = _("Gramplet showing the To Do notes for a citation"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="todo.py",
         height=200,
         gramplet = 'CitationToDo',
         gramplet_title=_("gramplet|To Do"),
         navtypes=["Citation"],
         )

register(GRAMPLET, 
         id="Repository To Do", 
         name=_("Repository To Do"), 
         description = _("Gramplet showing the To Do notes for a repository"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="todo.py",
         height=200,
         gramplet = 'RepositoryToDo',
         gramplet_title=_("gramplet|To Do"),
         navtypes=["Repository"],
         )

register(GRAMPLET, 
         id="Media To Do", 
         name=_("Media To Do"), 
         description = _("Gramplet showing the To Do notes for a media object"),
         version="1.0.0",
         gramps_target_version="4.0",
         status = STABLE,
         fname="todo.py",
         height=200,
         gramplet = 'MediaToDo',
         gramplet_title=_("gramplet|To Do"),
         navtypes=["Media"],
         )
