merge changes from gramps20
svn: r5482
This commit is contained in:
ChangeLogINSTALLNEWSconfigure.ingramps.1.ingramps.dtdgrampsxml.dtdgrampsxml.rnggramps.sh.in
doc
gramps-manual
C
Makefile.amauthors.xmlbugs.xmlcmdline.xmlcmdplug.xmlcustom.xmlfaq.xmlgetstart.xmlgramps-manual-C.omfgramps-manual.xmlmainwin.xmlpreface.xmlusage.xml
Makefile.amfr
example
gedcom
gramps
src
AddMedia.pyAddSpouse.pyAddrEdit.pyArgHandler.pyAttrEdit.pyBaseDoc.pyBookmarks.pyCalSdn.pyChooseParents.pyColumnOrder.pyDate.pyDateDisplay.pyDateEdit.pyDateParser.pyDdTargets.pyDisplayModels.pyDisplayTrace.pyErrors.pyExporter.pyGenericFilter.pyGrampsBSDDB.pyGrampsCfg.pyGrampsDBCallback.pyGrampsDbBase.pyGrampsDisplay.pyGrampsGconfKeys.pyGrampsIniKeys.pyGraphLayout.pyImageSelect.pyImgManip.pyLocEdit.pyMakefile.amMergeData.pyMergePeople.pyNameDisplay.pyNameEdit.pyNoteEdit.pyOptions.pyPeopleView.pyPluginMgr.pyPlugins.pyQuestionDialog.pyReadGedcom.pyReadXML.pyRelLib.pyRelationship.pyReport.pyReportOptions.pyReportUtils.pySelectChild.pySelectObject.pySelectPerson.pySources.pySpell.pyStyleEditor.pySubstKeywords.pyTipOfDay.pyTool.pyTransUtils.pyTreeTips.pyUrlEdit.pyUtils.pyWindowUtils.pyWitness.pyWriteGedcom.pyWriteXML.pybuild_cmdplugconst.py.in
data
dates
docgen
AbiWord2Doc.pyAsciiDoc.pyHtmlDoc.pyKwordDoc.pyLPRDoc.pyLaTeXDoc.pyOpenOfficeDoc.pyOpenSpreadSheet.pyPSDrawDoc.pyPdfDoc.py
gedcomimport.gladegramps_main.pyplugins.gladeplugins
AncestorChart.pyAncestorChart2.pyAncestorReport.pyAncestors.pyBookReport.pyChangeNames.pyChangeTypes.pyCheck.pyCheckpoint.pyCmdRef.pyCountAncestors.pyCustomBookText.pyDesGraph.pyDesbrowser.pyDescendChart.pyDescendReport.pyDetAncestralReport.pyDetDescendantReport.pyDumpGenderStats.pyEval.pyEventCmp.pyExportVCalendar.pyExportVCard.pyFamilyGroup.pyFanChart.pyFilterEditor.pyFtmStyleAncestors.pyFtmStyleDescendants.pyGraphViz.pyImportGeneWeb.pyImportvCard.pyIndivComplete.pyIndivSummary.pyLeak.pyMakefile.amMerge.pyNavWebPage.pyPatchNames.pyRebuild.pyReorderIds.pySimpleBookTitle.pySoundGen.pyStatisticsChart.pySummary.pyTestcaseGenerator.pyTimeLine.pyVerify.pyWebPage.pyWriteCD.pyWriteGeneWeb.pycheckpoint.gladerel_es.pyrel_sv.pyrelcalc.gladeverify.glade
po
test
@ -37,6 +37,7 @@ from gettext import gettext as _
|
||||
#------------------------------------------------------------------------
|
||||
import Utils
|
||||
import NameDisplay
|
||||
import Tool
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
#
|
||||
@ -53,17 +54,12 @@ from gnome import help_display
|
||||
#
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
def runTool(database,person,callback,parent=None):
|
||||
try:
|
||||
DesBrowse(database,person,callback,parent)
|
||||
except:
|
||||
import DisplayTrace
|
||||
DisplayTrace.DisplayTrace()
|
||||
class DesBrowse(Tool.Tool):
|
||||
|
||||
def __init__(self,db,person,options_class,name,callback=None,parent=None):
|
||||
Tool.Tool.__init__(self,db,person,options_class,name)
|
||||
|
||||
class DesBrowse:
|
||||
def __init__(self,database,person,callback,parent):
|
||||
self.active = person
|
||||
self.db = database
|
||||
self.callback = callback
|
||||
self.parent = parent
|
||||
self.win_key = self
|
||||
@ -153,6 +149,19 @@ class DesBrowse:
|
||||
self.callback(epo,val)
|
||||
self.make_new_model()
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
#
|
||||
#
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
class DesBrowseOptions(Tool.ToolOptions):
|
||||
"""
|
||||
Defines options and provides handling interface.
|
||||
"""
|
||||
|
||||
def __init__(self,name,person_id=None):
|
||||
Tool.ToolOptions.__init__(self,name,person_id)
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
#
|
||||
#
|
||||
@ -161,10 +170,14 @@ class DesBrowse:
|
||||
from PluginMgr import register_tool
|
||||
|
||||
register_tool(
|
||||
runTool,
|
||||
_("Interactive descendant browser"),
|
||||
category=_("Analysis and Exploration"),
|
||||
name = 'dbrowse',
|
||||
category = Tool.TOOL_ANAL,
|
||||
tool_class = DesBrowse,
|
||||
options_class = DesBrowseOptions,
|
||||
modes = Tool.MODE_GUI,
|
||||
translated_name = _("Interactive descendant browser"),
|
||||
status = _("Stable"),
|
||||
author_name = "Donald N. Allingham",
|
||||
author_email = "don@gramps-project.org",
|
||||
description=_("Provides a browsable hierarchy based on the active person"),
|
||||
author_name="Donald N. Allingham",
|
||||
author_email="dallingham@users.sourceforge.net"
|
||||
)
|
||||
|
Reference in New Issue
Block a user