示例#1
0
_ = glocale.translation.gettext

MODULE_VERSION="5.0"

#------------------------------------------------------------------------
#
# libcairo
#
#------------------------------------------------------------------------
register(GENERAL,
id    = 'libcairodoc',
name  = "Cairodoc lib",
description =  _("Provides a library for using Cairo to "
                        "generate documents."),
version = '1.0',
gramps_target_version = MODULE_VERSION,
status = STABLE,
fname = 'libcairodoc.py',
authors = ["The Gramps project"],
authors_email = ["http://gramps-project.org"],
#load_on_reg = True
  )

#------------------------------------------------------------------------
#
# libgedcom
#
#------------------------------------------------------------------------
register(GENERAL,
id    = 'libgedcom',
name  = "GEDCOM library",
_ = glocale.translation.gettext

MODULE_VERSION = "5.0"

#------------------------------------------------------------------------
#
# libcairo
#
#------------------------------------------------------------------------
register(
    GENERAL,
    id='libcairodoc',
    name="Cairodoc lib",
    description=_("Provides a library for using Cairo to "
                  "generate documents."),
    version='1.0',
    gramps_target_version=MODULE_VERSION,
    status=STABLE,
    fname='libcairodoc.py',
    authors=["The Gramps project"],
    authors_email=["http://gramps-project.org"],
    #load_on_reg = True
)

#------------------------------------------------------------------------
#
# libgedcom
#
#------------------------------------------------------------------------
register(
    GENERAL,
    id='libgedcom',
示例#3
0
# 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
from gramps.gen.plug._pluginreg import register, STABLE, DATABASE
from gramps.gen.const import GRAMPS_LOCALE as glocale
_ = glocale.translation.gettext

register(DATABASE,
         id    = 'dbapi',
         name  = _("DB-API"),
         name_accell  = _("DB-_API Database"),
         description =  _("DB-API Database"),
         version = '1.0.32',
         gramps_target_version = "5.1",
         status = STABLE,
         fname = 'dbapi.py',
         databaseclass = 'DBAPI',
         authors=['Doug Blank'],
         authors_email=["*****@*****.**"],
)
示例#4
0
                MessageHideDialog(TITLE, MESSAGE,
                                  'interface.ignore-osmgpsmap',
                                  parent=uistate.window)
            else:
                MessageHideDialog(TITLE, MESSAGE,
                                  'interface.ignore-osmgpsmap')
else:
    # Load the view only if osmgpsmap library is present.
    register(VIEW,
             id = 'geo1',
             name = _("All known places for one Person"),
             description = _("A view showing the places visited by "
                             "one person during his life."),
             version = '1.0',
             gramps_target_version = MODULE_VERSION,
             status = STABLE,
             fname = 'geoperson.py',
             authors = ["Serge Noiraud"],
             authors_email = [""],
             category = ("Geography", _("Geography")),
             viewclass = 'GeoPerson',
             #order = START,
             stock_icon = 'geo-show-person',
      )

    register(VIEW,
             id = 'geo2',
             name = _("All known places for one Family"),
             description = _("A view showing the places visited by "
                             "one family during all their life."),
             version = '1.0',
             gramps_target_version = MODULE_VERSION,
# Gramps modules
#
#------------------------------------------------------------------------

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

#------------------------------------------------------------------------
#
# Register Gramplet
#
#------------------------------------------------------------------------
#------------------------------------------------------------------------
# Bottombar
#------------------------------------------------------------------------
register(
    GRAMPLET,
    id="Place Date Backlinks",
    name=_("Place Date References"),
    description=_(
        "Gramplet showing the backlink references for a place uncluding Date"),
    version="1.0.0",
    gramps_target_version=MODULE_VERSION,
    status=STABLE,
    fname="placeeventdatebacklinks.py",
    height=200,
    gramplet='PlaceEventDateBacklinks',
    gramplet_title=_("Related Events"),
    navtypes=["Place"],
)
示例#6
0
# 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
from gramps.gen.plug._pluginreg import register, STABLE, DATABASE
from gramps.gen.const import GRAMPS_LOCALE as glocale
_ = glocale.translation.gettext

register(DATABASE,
         id    = 'inmemorydb',
         name  = _("In-Memory"),
         name_accell  = _("In-_Memory Database"),
         description =  _("In-Memory Database"),
         version = '1.0.0',
         gramps_target_version = "5.1",
         status = STABLE,
         fname = 'inmemorydb.py',
         databaseclass = 'InMemoryDB',
         authors=['Doug Blank'],
         authors_email=["*****@*****.**"],
)
#
# Gramps modules
#
#------------------------------------------------------------------------

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

#------------------------------------------------------------------------
#
# Register Gramplet
#
#------------------------------------------------------------------------
#------------------------------------------------------------------------
# Bottombar
#------------------------------------------------------------------------
register(
    GRAMPLET,
    id="EventRole Backlinks",
    name=_("Event Role References"),
    description=_("Gramplet showing the backlink references for an event"),
    version="1.0.0",
    gramps_target_version=MODULE_VERSION,
    status=STABLE,
    fname="EventRolebacklinks.py",
    height=200,
    gramplet='EventRoleBacklinks',
    gramplet_title=_("RoleReferences"),
    navtypes=["Event"],
)
示例#8
0
# 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
from gramps.gen.plug._pluginreg import register, STABLE, DATABASE
from gramps.gen.const import GRAMPS_LOCALE as glocale
_ = glocale.translation.gettext

try:
    import psycopg2
    available = True
except (ImportError, ValueError):
    available = False

if available:
    register(DATABASE,
             id='postgresql',
             name=_('PostgreSQL'),
             name_accell=_('_PostgreSQL Database'),
             description=_('PostgreSQL Database'),
             version='1.0.0',
             gramps_target_version='5.1',
             status=STABLE,
             fname='postgresql.py',
             databaseclass='PostgreSQL',
             authors=['Doug Blank'],
             authors_email=['*****@*****.**'])
示例#9
0
# 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
from gramps.gen.plug._pluginreg import register, STABLE, DATABASE
from gramps.gen.const import GRAMPS_LOCALE as glocale
_ = glocale.translation.gettext

register(DATABASE,
         id='sqlite',
         name=_('SQLite'),
         name_accell=_('_SQLite Database'),
         description=_('SQLite Database'),
         version='1.0.0',
         gramps_target_version='5.2',
         status=STABLE,
         fname='sqlite.py',
         databaseclass='SQLite',
         authors=['Doug Blank'],
         authors_email=['*****@*****.**'])
示例#10
0
# 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
from gramps.gen.plug._pluginreg import register, STABLE, DATABASE
from gramps.gen.const import GRAMPS_LOCALE as glocale
_ = glocale.translation.gettext

register(
    DATABASE,
    id='inmemorydb',
    name=_("In-Memory"),
    name_accell=_("In-_Memory Database"),
    description=_("In-Memory Database"),
    version='1.0.0',
    gramps_target_version="5.1",
    status=STABLE,
    fname='inmemorydb.py',
    databaseclass='InMemoryDB',
    authors=['Doug Blank'],
    authors_email=["*****@*****.**"],
)
示例#11
0
#------------------------------------------------------------------------

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=MODULE_VERSION,
         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',
示例#12
0
# 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
from gramps.gen.plug._pluginreg import register, STABLE, DATABASE
from gramps.gen.const import GRAMPS_LOCALE as glocale
_ = glocale.translation.gettext

register(DATABASE,
         id    = 'dummydb',
         name  = _("Dummy database"),
         name_accell  = _("Dummy Database"),
         description =  _("Dummy Database"),
         version = '1.0.0',
         gramps_target_version = "5.0",
         status = STABLE,
         fname = 'dummydb.py',
         databaseclass = 'DummyDb',
         authors=['Tim Lyons'],
         authors_email=[""],
)
示例#13
0
# 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
from gramps.gen.plug._pluginreg import register, STABLE, DATABASE
from gramps.gen.const import GRAMPS_LOCALE as glocale
_ = glocale.translation.gettext

try:
    import psycopg2
    available = True
except (ImportError, ValueError):
    available = False

if available:
    register(DATABASE,
             id='postgresql',
             name=_('PostgreSQL'),
             name_accell=_('_PostgreSQL Database'),
             description=_('PostgreSQL Database'),
             version='1.0.0',
             gramps_target_version='5.1',
             status=STABLE,
             fname='postgresql.py',
             databaseclass='PostgreSQL',
             authors=['Doug Blank'],
             authors_email=['*****@*****.**']
    )
示例#14
0
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=MODULE_VERSION,
    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,
示例#15
0
# 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
from gramps.gen.plug._pluginreg import register, STABLE, DATABASE
from gramps.gen.const import GRAMPS_LOCALE as glocale
_ = glocale.translation.gettext

register(
    DATABASE,
    id='dbapi',
    name=_("DB-API"),
    name_accell=_("DB-_API Database"),
    description=_("DB-API Database"),
    version='1.0.32',
    gramps_target_version="5.0",
    status=STABLE,
    fname='dbapi.py',
    databaseclass='DBAPI',
    authors=['Doug Blank'],
    authors_email=["*****@*****.**"],
)
示例#16
0
                MessageHideDialog(TITLE, MESSAGE,
                                  'interface.ignore-osmgpsmap',
                                  parent=uistate.window)
            else:
                MessageHideDialog(TITLE, MESSAGE,
                                  'interface.ignore-osmgpsmap')
else:
    # Load the view only if osmgpsmap library is present.
    register(VIEW,
             id = 'geo1',
             name = _("All known places for one Person"),
             description = _("A view showing the places visited by "
                             "one person during his life."),
             version = '1.0',
             gramps_target_version = MODULE_VERSION,
             status = STABLE,
             fname = 'geoperson.py',
             authors = ["Serge Noiraud"],
             authors_email = [""],
             category = ("Geography", _("Geography")),
             viewclass = 'GeoPerson',
             #order = START,
             stock_icon = 'geo-show-person',
      )

    register(VIEW,
             id = 'geo2',
             name = _("All known places for one Family"),
             description = _("A view showing the places visited by "
                             "one family during all their life."),
             version = '1.0',
             gramps_target_version = MODULE_VERSION,
示例#17
0
        from gramps.gen.constfunc import has_display
        if has_display():
            from gramps.gui.dialog import MessageHideDialog
            from gramps.gen.const import URL_WIKISTRING
            TITLE = _("goocanvas module not loaded.")
            MESSAGE = _("Graphview functionality will not be available.\n"
                        "You must install goocanvas."
                       )
            if uistate:
                MessageHideDialog(TITLE, MESSAGE,
                                  'interface.ignore-goocanvas',
                                  parent=uistate.window)
            else:
                MessageHideDialog(TITLE, MESSAGE,
                                  'interface.ignore-goocanvas')
else:
    # Load the view only if goocanvas library is present.
    register(VIEW,
         id    = 'graphview',
         name  = _("Graph View"),
         category = ("Ancestry", _("Charts")),
         description =  _("Dynamic graph of relations"),
         version = '1.0.70',
         gramps_target_version = "5.0",
         status = STABLE,
         fname = 'graphview.py',
         authors = ["Gary Burton"],
         authors_email = ["*****@*****.**"],
         viewclass = 'GraphView',
      )