* src/gramps.glade: Add Help buttons to dialogs.

* src/AddSpouse.py (on_spouse_help_clicked): Add function.
* src/SelectChild.py (on_child_help_clicked): Add function.
* src/Marriage.py (on_help_clicked): Add function.
* src/EditPerson.py (on_help_clicked): Add function.
* src/marriage.glade: Add Help button to a dialog.
* src/edit_person.glade: Add Help button to a dialog.
* src/dialog.glade: Add Help buttons to dialogs.
* src/AddrEdit.py (on_help_clicked): Add function.
* src/AttrEdit.py (on_help_clicked): Add function.
* src/EventEdit.py (on_help_clicked): Add function.


svn: r2347
This commit is contained in:
Alex Roitman 2003-11-18 04:26:06 +00:00
parent 4ec6046627
commit 69270a29f8
12 changed files with 264 additions and 7 deletions

View File

@ -1,3 +1,16 @@
2003-11-17 Alex Roitman <shura@alex.neuro.umn.edu>
* src/gramps.glade: Add Help buttons to dialogs.
* src/AddSpouse.py (on_spouse_help_clicked): Add function.
* src/SelectChild.py (on_child_help_clicked): Add function.
* src/Marriage.py (on_help_clicked): Add function.
* src/EditPerson.py (on_help_clicked): Add function.
* src/marriage.glade: Add Help button to a dialog.
* src/edit_person.glade: Add Help button to a dialog.
* src/dialog.glade: Add Help buttons to dialogs.
* src/AddrEdit.py (on_help_clicked): Add function.
* src/AttrEdit.py (on_help_clicked): Add function.
* src/EventEdit.py (on_help_clicked): Add function.
2003-11-16 Don Allingham <dallingham@users.sourceforge.net>
* src/EditPerson.py: handle LDS status setting properly
* src/RelLib.py: use LDS status for equality comparison

View File

@ -17,6 +17,9 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# $Id$
"""
The AddSpouse module provides the AddSpouse class that allows the user to
add a new spouse to the active person.
@ -38,6 +41,7 @@ from gettext import gettext as _
#
#-------------------------------------------------------------------------
import gtk.glade
import gnome
#-------------------------------------------------------------------------
#
@ -102,6 +106,7 @@ class AddSpouse:
self.glade.signal_autoconnect({
"on_select_spouse_clicked" : self.select_spouse_clicked,
"on_spouse_help_clicked" : self.on_spouse_help_clicked,
"on_show_toggled" : self.on_show_toggled,
"on_new_spouse_clicked" : self.new_spouse_clicked,
"on_rel_type_changed" : self.relation_type_changed,
@ -111,6 +116,10 @@ class AddSpouse:
self.relation_type.set_text(_("Married"))
self.relation_type_changed(None)
def on_spouse_help_clicked(self,obj):
"""Display the relevant portion of GRAMPS manual"""
gnome.help_display('gramps-manual','gramps-spec-rel')
def select_row(self,obj):
"""
Called with a row has be unselected. Used to enable the OK button

View File

@ -31,6 +31,7 @@ mechanism for the user to edit address information.
#
#-------------------------------------------------------------------------
import gtk.glade
import gnome
#-------------------------------------------------------------------------
#
@ -117,16 +118,22 @@ class AddressEditor:
self.date_check = DateEdit(self.addr_start,date_stat)
self.top.signal_autoconnect({
"on_switch_page" : self.on_switch_page
"on_switch_page" : self.on_switch_page,
"on_help_addr_clicked" : self.on_help_clicked
})
if parent_window:
self.window.set_transient_for(parent_window)
val = self.window.run()
if val == gtk.RESPONSE_OK:
self.val = self.window.run()
if self.val == gtk.RESPONSE_OK:
self.ok_clicked()
self.window.destroy()
def on_help_clicked(self,obj):
"""Display the relevant portion of GRAMPS manual"""
gnome.help_display('gramps-manual','adv-ad')
self.val = self.window.run()
def ok_clicked(self):
"""
Called when the OK button is pressed. Gets data from the

View File

@ -34,6 +34,7 @@ __version__ = "$Revision$"
#
#-------------------------------------------------------------------------
import gtk.glade
import gnome
#-------------------------------------------------------------------------
#
@ -116,16 +117,22 @@ class AttributeEditor:
self.top.signal_autoconnect({
"on_add_src_clicked" : self.add_source,
"on_del_src_clicked" : self.del_source,
"on_help_attr_clicked" : self.on_help_clicked,
"on_switch_page" : self.on_switch_page
})
if parent_window:
self.window.set_transient_for(parent_window)
val = self.window.run()
if val == gtk.RESPONSE_OK:
self.val = self.window.run()
if self.val == gtk.RESPONSE_OK:
self.on_ok_clicked()
self.window.destroy()
def on_help_clicked(self,obj):
"""Display the relevant portion of GRAMPS manual"""
gnome.help_display('gramps-manual','adv-at')
self.val = self.window.run()
def add_source(self,obj):
pass

View File

@ -371,6 +371,7 @@ class EditPerson:
"on_web_go_clicked" : self.on_web_go_clicked,
"on_gender_activate" : self.on_gender_activate,
"on_givenName_focus_out_event": self.on_givenName_focus_out_event,
"on_help_person_clicked" : self.on_help_clicked,
})
self.update_birth_death()
@ -390,6 +391,10 @@ class EditPerson:
self.given.grab_focus()
self.window.show()
def on_help_clicked(self,obj):
"""Display the relevant portion of GRAMPS manual"""
gnome.help_display('gramps-manual','adv-pers')
def build_columns(self,tree,list):
cnum = 0
for name in list:

View File

@ -29,6 +29,7 @@ from string import strip
#-------------------------------------------------------------------------
import gtk
import gtk.glade
import gnome
#-------------------------------------------------------------------------
#
@ -162,6 +163,7 @@ class EventEditor:
"on_add_src_clicked" : self.add_source,
"on_del_src_clicked" : self.del_source,
"on_switch_page" : self.on_switch_page,
"on_help_event_clicked" : self.on_help_clicked
})
menu = gtk.Menu()
@ -179,11 +181,16 @@ class EventEditor:
self.calendar.set_menu(menu)
self.window.set_transient_for(self.parent.window)
val = self.window.run()
if val == gtk.RESPONSE_OK:
self.val = self.window.run()
if self.val == gtk.RESPONSE_OK:
self.on_event_edit_ok_clicked()
self.window.destroy()
def on_help_clicked(self,obj):
"""Display the relevant portion of GRAMPS manual"""
gnome.help_display('gramps-manual','adv-ev')
self.val = self.window.run()
def add_source(self,obj):
pass

View File

@ -30,6 +30,7 @@ import string
#-------------------------------------------------------------------------
import gtk
import gtk.glade
import gnome
#-------------------------------------------------------------------------
#
@ -98,6 +99,7 @@ class Marriage:
self.top.signal_autoconnect({
"destroy_passed_object" : self.on_cancel_edit,
"on_help_marriage_editor" : self.on_help_clicked,
"on_up_clicked" : self.on_up_clicked,
"on_down_clicked" : self.on_down_clicked,
"on_attr_up_clicked" : self.on_attr_up_clicked,
@ -233,6 +235,10 @@ class Marriage:
self.redraw_attr_list()
self.window.show()
def on_help_clicked(self,obj):
"""Display the relevant portion of GRAMPS manual"""
gnome.help_display('gramps-manual','adv-rel')
def ev_drag_begin(self, context, a):
return

View File

@ -19,6 +19,8 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# $Id$
#-------------------------------------------------------------------------
#
# internationalization
@ -32,6 +34,7 @@ from gettext import gettext as _
#
#-------------------------------------------------------------------------
import gtk.glade
import gnome
#-------------------------------------------------------------------------
#
@ -67,6 +70,7 @@ class SelectChild:
self.xml.signal_autoconnect({
"on_save_child_clicked" : self.on_save_child_clicked,
"on_child_help_clicked" : self.on_child_help_clicked,
"on_show_toggled" : self.on_show_toggled,
"destroy_passed_object" : self.close
})
@ -119,6 +123,10 @@ class SelectChild:
self.refmodel = ListModel.ListModel(self.add_child,titles)
self.redraw_child_list(2)
def on_child_help_clicked(self,obj):
"""Display the relevant portion of GRAMPS manual"""
gnome.help_display('gramps-manual','gramps-spec-ch')
def close(self,obj):
self.top.destroy()

View File

@ -54,6 +54,19 @@
<property name="response_id">-5</property>
</widget>
</child>
<child>
<widget class="GtkButton" id="button126">
<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="response_id">-11</property>
<signal name="clicked" handler="on_help_event_clicked" last_modification_time="Tue, 18 Nov 2003 04:02:48 GMT"/>
</widget>
</child>
</widget>
<packing>
<property name="padding">0</property>
@ -932,6 +945,19 @@
<signal name="clicked" handler="on_attr_edit_ok_clicked" object="attr_edit"/>
</widget>
</child>
<child>
<widget class="GtkButton" id="button127">
<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="response_id">-11</property>
<signal name="clicked" handler="on_help_attr_clicked" last_modification_time="Tue, 18 Nov 2003 04:03:19 GMT"/>
</widget>
</child>
</widget>
<packing>
<property name="padding">0</property>
@ -1440,6 +1466,19 @@
<signal name="clicked" handler="on_loc_edit_ok_clicked" object="loc_edit"/>
</widget>
</child>
<child>
<widget class="GtkButton" id="button128">
<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="response_id">-11</property>
<signal name="clicked" handler="on_help_loc_clicked" last_modification_time="Tue, 18 Nov 2003 04:04:09 GMT"/>
</widget>
</child>
</widget>
<packing>
<property name="padding">0</property>
@ -1801,6 +1840,19 @@
<signal name="clicked" handler="on_addr_edit_ok_clicked" object="addr_edit"/>
</widget>
</child>
<child>
<widget class="GtkButton" id="button129">
<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="response_id">-11</property>
<signal name="clicked" handler="on_help_addr_clicked" last_modification_time="Tue, 18 Nov 2003 04:04:45 GMT"/>
</widget>
</child>
</widget>
<packing>
<property name="padding">0</property>
@ -2537,6 +2589,19 @@
<signal name="clicked" handler="on_url_edit_ok_clicked" object="url_edit"/>
</widget>
</child>
<child>
<widget class="GtkButton" id="button130">
<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="response_id">-11</property>
<signal name="clicked" handler="on_help_url_clicked" last_modification_time="Tue, 18 Nov 2003 04:05:22 GMT"/>
</widget>
</child>
</widget>
<packing>
<property name="padding">0</property>
@ -2785,6 +2850,19 @@
<signal name="clicked" handler="on_name_edit_ok_clicked" object="name_edit"/>
</widget>
</child>
<child>
<widget class="GtkButton" id="button131">
<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="response_id">-11</property>
<signal name="clicked" handler="on_help_name_clicked" last_modification_time="Tue, 18 Nov 2003 04:05:50 GMT"/>
</widget>
</child>
</widget>
<packing>
<property name="padding">0</property>
@ -3572,6 +3650,19 @@
<property name="response_id">-5</property>
</widget>
</child>
<child>
<widget class="GtkButton" id="button132">
<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="response_id">-11</property>
<signal name="clicked" handler="on_help_witness_clicked" last_modification_time="Tue, 18 Nov 2003 04:06:19 GMT"/>
</widget>
</child>
</widget>
<packing>
<property name="padding">0</property>

View File

@ -56,6 +56,19 @@
<signal name="clicked" handler="on_apply_person_clicked" object="editPerson"/>
</widget>
</child>
<child>
<widget class="GtkButton" id="button134">
<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="response_id">-11</property>
<signal name="clicked" handler="on_help_person_clicked" last_modification_time="Tue, 18 Nov 2003 03:55:10 GMT"/>
</widget>
</child>
</widget>
<packing>
<property name="padding">2</property>

View File

@ -3663,6 +3663,19 @@
<signal name="clicked" handler="on_select_spouse_clicked" object="spouseDialog"/>
</widget>
</child>
<child>
<widget class="GtkButton" id="spouse_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="response_id">-11</property>
<signal name="clicked" handler="on_spouse_help_clicked" last_modification_time="Tue, 18 Nov 2003 03:27:03 GMT"/>
</widget>
</child>
</widget>
<packing>
<property name="padding">0</property>
@ -4001,6 +4014,19 @@
<signal name="clicked" handler="on_save_parents_clicked" object="familyDialog"/>
</widget>
</child>
<child>
<widget class="GtkButton" id="button167">
<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="response_id">-11</property>
<signal name="clicked" handler="on_help_familyDialog_clicked" last_modification_time="Tue, 18 Nov 2003 03:52:23 GMT"/>
</widget>
</child>
</widget>
<packing>
<property name="padding">0</property>
@ -4891,6 +4917,19 @@
<signal name="clicked" handler="on_save_child_clicked" object="selectChild"/>
</widget>
</child>
<child>
<widget class="GtkButton" id="button163">
<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="response_id">-11</property>
<signal name="clicked" handler="on_child_help_clicked" last_modification_time="Tue, 18 Nov 2003 03:40:31 GMT"/>
</widget>
</child>
</widget>
<packing>
<property name="padding">0</property>
@ -5513,6 +5552,19 @@
<property name="response_id">-5</property>
</widget>
</child>
<child>
<widget class="GtkButton" id="button166">
<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="response_id">-11</property>
<signal name="clicked" handler="on_sourceEditor_help_clicked" last_modification_time="Tue, 18 Nov 2003 03:51:32 GMT"/>
</widget>
</child>
</widget>
<packing>
<property name="padding">0</property>
@ -6536,6 +6588,19 @@
<signal name="clicked" handler="on_save_parents_clicked" object="familyDialog"/>
</widget>
</child>
<child>
<widget class="GtkButton" id="button165">
<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="response_id">-11</property>
<signal name="clicked" handler="on_parents_help_clicked" last_modification_time="Tue, 18 Nov 2003 03:50:21 GMT"/>
</widget>
</child>
</widget>
<packing>
<property name="padding">0</property>
@ -7464,6 +7529,19 @@
<signal name="clicked" handler="on_ok_clicked" last_modification_time="Tue, 17 Jun 2003 03:10:31 GMT"/>
</widget>
</child>
<child>
<widget class="GtkButton" id="button164">
<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="response_id">-11</property>
<signal name="clicked" handler="on_help_clicked" last_modification_time="Tue, 18 Nov 2003 03:45:00 GMT"/>
</widget>
</child>
</widget>
<packing>
<property name="padding">0</property>

View File

@ -57,6 +57,19 @@
<signal name="clicked" handler="on_close_marriage_editor" object="marriageEditor"/>
</widget>
</child>
<child>
<widget class="GtkButton" id="button119">
<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="response_id">-11</property>
<signal name="clicked" handler="on_help_marriage_editor" last_modification_time="Tue, 18 Nov 2003 03:53:36 GMT"/>
</widget>
</child>
</widget>
<packing>
<property name="padding">0</property>