/src/plugins/NotRelated.py
svn: r10361
This commit is contained in:
parent
f3f60ac483
commit
9f3ba337e1
@ -46,6 +46,21 @@
|
|||||||
<signal name="clicked" handler="destroy_passed_object" object="top"/>
|
<signal name="clicked" handler="destroy_passed_object" object="top"/>
|
||||||
</widget>
|
</widget>
|
||||||
</child>
|
</child>
|
||||||
|
|
||||||
|
<child>
|
||||||
|
<widget class="GtkButton" id="help">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_default">True</property>
|
||||||
|
<property name="can_focus">True</property>
|
||||||
|
<property name="label">gtk-help</property>
|
||||||
|
<property name="use_stock">True</property>
|
||||||
|
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||||
|
<property name="focus_on_click">True</property>
|
||||||
|
<property name="response_id">-11</property>
|
||||||
|
<signal name="clicked" handler="on_help_clicked" last_modification_time="Fri, 25 Mar 2005 02:17:46 GMT"/>
|
||||||
|
</widget>
|
||||||
|
</child>
|
||||||
|
|
||||||
</widget>
|
</widget>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="padding">0</property>
|
<property name="padding">0</property>
|
||||||
|
@ -28,7 +28,6 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------
|
#------------------------------------------------------------------------
|
||||||
import os
|
import os
|
||||||
from gettext import gettext as _
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------
|
#------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
@ -49,7 +48,17 @@ from Editors import EditPerson, EditFamily
|
|||||||
from QuestionDialog import WarningDialog
|
from QuestionDialog import WarningDialog
|
||||||
import ManagedWindow
|
import ManagedWindow
|
||||||
import Utils
|
import Utils
|
||||||
|
import GrampsDisplay
|
||||||
|
from TransUtils import sgettext as _
|
||||||
|
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------
|
||||||
|
#
|
||||||
|
# Constants
|
||||||
|
#
|
||||||
|
#-------------------------------------------------------------------------
|
||||||
|
WIKI_HELP_PAGE = 'Gramps_3.0_Wiki_Manual_-_Reports'
|
||||||
|
WIKI_HELP_SEC = _('manual|Not_Related...')
|
||||||
#------------------------------------------------------------------------
|
#------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
@ -67,7 +76,10 @@ class NotRelated(ManagedWindow.ManagedWindow) :
|
|||||||
self.db = dbstate.db
|
self.db = dbstate.db
|
||||||
glade_file = "%s/NotRelated.glade" % os.path.dirname(__file__)
|
glade_file = "%s/NotRelated.glade" % os.path.dirname(__file__)
|
||||||
topDialog = gtk.glade.XML(glade_file, "top", "gramps")
|
topDialog = gtk.glade.XML(glade_file, "top", "gramps")
|
||||||
topDialog.signal_autoconnect({"destroy_passed_object" : self.close})
|
topDialog.signal_autoconnect({
|
||||||
|
"destroy_passed_object" : self.close,
|
||||||
|
"on_help_clicked" : self.on_help_clicked,
|
||||||
|
})
|
||||||
|
|
||||||
window = topDialog.get_widget("top")
|
window = topDialog.get_widget("top")
|
||||||
title = topDialog.get_widget("title")
|
title = topDialog.get_widget("title")
|
||||||
@ -79,6 +91,7 @@ class NotRelated(ManagedWindow.ManagedWindow) :
|
|||||||
self.markerapply.set_sensitive(False)
|
self.markerapply.set_sensitive(False)
|
||||||
self.markerapply.connect('clicked', self.applyMarkerClicked)
|
self.markerapply.connect('clicked', self.applyMarkerClicked)
|
||||||
|
|
||||||
|
|
||||||
# start the progress indicator
|
# start the progress indicator
|
||||||
self.progress = Utils.ProgressMeter(self.title,_('Starting'))
|
self.progress = Utils.ProgressMeter(self.title,_('Starting'))
|
||||||
|
|
||||||
@ -197,6 +210,10 @@ class NotRelated(ManagedWindow.ManagedWindow) :
|
|||||||
EditPerson(self.dbstate, self.uistate, [], person)
|
EditPerson(self.dbstate, self.uistate, [], person)
|
||||||
except Errors.WindowActiveError:
|
except Errors.WindowActiveError:
|
||||||
pass
|
pass
|
||||||
|
#
|
||||||
|
def on_help_clicked(self, obj):
|
||||||
|
"""Display the relevant portion of GRAMPS manual"""
|
||||||
|
GrampsDisplay.help('tools-util-other', WIKI_HELP_PAGE , WIKI_HELP_SEC)
|
||||||
|
|
||||||
|
|
||||||
def applyMarkerClicked(self, button) :
|
def applyMarkerClicked(self, button) :
|
||||||
|
Loading…
Reference in New Issue
Block a user