* src/preferences.glade: Add Help button.

* src/GrampsCfg.py (on_propertybox_help): Add function.
* src/imagesel.glade: Add Help buttons.
* src/ImageSelect.py (ImageSelect.on_help_imagesel_clicked,
GlobalMediaProperties.on_help_clicked): Add functions.
* src/AddMedia.py (on_help_imagesel_clicked): Add function.
* doc/gramps-manual/C/usage.xml: Update.
* doc/gramps-manual/C/keybind.xml: Update.
* src/AddSpouse.py: Call yelp with sect2 argument.
* src/AddrEdit.py: Likewise.
* src/AttrEdit.py: Likewise.
* src/ChooseParents.py: Likewise.
* src/EditPerson.py: Likewise.
* src/EditPlace.py: Likewise.
* src/EditSource.py: Likewise.
* src/EventEdit.py: Likewise.
* src/Marriage.py: Likewise.
* src/NameEdit.py: Likewise.
* src/SelectChild.py: Likewise.
* src/Sources.py: Likewise.


svn: r2420
This commit is contained in:
Alex Roitman
2003-12-02 04:27:23 +00:00
parent a2d49b7d6b
commit b1a31deb0f
20 changed files with 133 additions and 50 deletions

View File

@ -18,6 +18,8 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# $Id$
"""
Provides the interface to allow a person to add a media object to the database.
"""
@ -44,6 +46,7 @@ from gettext import gettext as _
#-------------------------------------------------------------------------
from QuestionDialog import ErrorDialog
import gtk.glade
import gnome
#-------------------------------------------------------------------------
#
@ -92,6 +95,10 @@ class AddMediaObject:
self.window.show()
def on_help_imagesel_clicked(self):
"""Display the relevant portion of GRAMPS manual"""
gnome.help_display('gramps-manual','gramps-edit-quick')
def on_savephoto_clicked(self):
"""
Callback function called with the save button is pressed.
@ -154,12 +161,15 @@ class AddMediaObject:
self.image.set_from_pixbuf(image)
def run(self):
val = self.window.run()
while 1:
val = self.window.run()
if val == gtk.RESPONSE_OK:
self.on_savephoto_clicked()
self.window.destroy()
return self.object
else:
self.window.destroy()
return None
if val == gtk.RESPONSE_OK:
self.on_savephoto_clicked()
self.window.destroy()
return self.object
elif val == gtk.RESPONSE_HELP:
self.on_help_imagesel_clicked()
else:
self.window.destroy()
return None