2006-07-05 Don Allingham <don@gramps-project.org>

* src/Editors/_EditChildRef.py: fix title
	* src/Editors/_EditFamily.py: call sequence for EditChildRef 
	* src/glade/gramps.glade: childref label fix
	* src/ManagedWindow.py: spacking
	* help/C/gramps-manual.xml: text updates
	* help/C/figures/select-family.png: added
	* help/C/figures/select-person.png: added
	* help/C/figures/family-warn.png: added
	* help/C/figures/child-ref.png: added
	* help/C/figures/edit-family.png: added
	* help/C/figures/gedcom-export.png: updated
	* help/C/figures/export-druid.png: updated



svn: r6993
This commit is contained in:
Don Allingham 2006-07-05 19:00:32 +00:00
parent 051f992afb
commit 4e3de8da45
13 changed files with 201 additions and 138 deletions

View File

@ -1,3 +1,17 @@
2006-07-05 Don Allingham <don@gramps-project.org>
* src/Editors/_EditChildRef.py: fix title
* src/Editors/_EditFamily.py: call sequence for EditChildRef
* src/glade/gramps.glade: childref label fix
* src/ManagedWindow.py: spacking
* help/C/gramps-manual.xml: text updates
* help/C/figures/select-family.png: added
* help/C/figures/select-person.png: added
* help/C/figures/family-warn.png: added
* help/C/figures/child-ref.png: added
* help/C/figures/edit-family.png: added
* help/C/figures/gedcom-export.png: updated
* help/C/figures/export-druid.png: updated
2006-07-04 Don Allingham <don@gramps-project.org> 2006-07-04 Don Allingham <don@gramps-project.org>
* various: pyflakes fixes * various: pyflakes fixes

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

View File

@ -1306,6 +1306,14 @@
Editor</guilabel> dialog may be used to add, remove and rearrange the Editor</guilabel> dialog may be used to add, remove and rearrange the
displayed columns.</para> displayed columns.</para>
<para>If a place has been highlighted, you may select the
<guibutton>Google Maps</guibutton> button to attempt to display the
place in a web browser. Your default web browser should open,
attempting to use either the longitude and lattitude coordinates or
the place name to display the location using the Google Maps web site.
This feature is limited, and may not always produce the results you
desire.</para>
<!-- ==== Figure: Places View ==== --> <!-- ==== Figure: Places View ==== -->
<figure id="places-fig"> <figure id="places-fig">
@ -1497,7 +1505,9 @@
<guimenuitem>Undo</guimenuitem> <guimenuitem>Undo</guimenuitem>
</menuchoice>. If you select this command repeatedly, your most recent </menuchoice>. If you select this command repeatedly, your most recent
changes will be undone one at a time.</para> changes will be undone one at a time. To roll back multple commands at a
time, you can using the <guilabel>Undo History</guilabel> dialog
available from the <guilabel>Edit</guilabel> menu.</para>
<para>If you want to return your database to the way it was when you <para>If you want to return your database to the way it was when you
opened it, select <menuchoice> opened it, select <menuchoice>
@ -1633,66 +1643,8 @@
<para>If you import information from another GRAMPS database or GRAMPS <para>If you import information from another GRAMPS database or GRAMPS
XML database, you will see the progress of the operation in the progress XML database, you will see the progress of the operation in the progress
bar of GRAMPS' main window.</para> bar of GRAMPS' main window.</para>
<!-- Missing media is commented out for now. This may be deleted in the near future -->
<!--
<para>If a media file is not found during import, you'll be prompted to
take one of the actions indicated in <xref
linkend="missing-media-im" />.</para>
<figure id="missing-media-im">
<title>Missing Media dialog</title>
<screenshot>
<mediaobject>
<imageobject>
<imagedata depth="264" fileref="figures/missing-media.png"
format="PNG" width="493" />
</imageobject>
<textobject>
<phrase>Shows Missing Media dialog.</phrase>
</textobject>
</mediaobject>
</screenshot>
</figure>
<itemizedlist>
<listitem>
<para>If you don't have the missing file and have no possibility of
replacing it, click the <guibutton>Remove Object</guibutton> button.
This will remove the object that corresponds to the missing file as
well as all the references in the database to that object.</para>
</listitem>
<listitem>
<para>If you're not sure where the missing file is, but think you
still have it or may be able to find it, click the <guibutton>Keep
Reference</guibutton> button. If and when you find the file, you can
simply copy it into your database directory and have access to it
through GRAMPS.</para>
</listitem>
<listitem>
<para>If you can supply the missing file during the import
operation, click the <guibutton>Select File</guibutton> button. This
will copy the file you select in place of the missing file. No
references will be altered in the database.</para>
</listitem>
<listitem>
<para>To automatically use the selection made in this dialog for all
missing media files, check the <guilabel>Use this selection for all
missing media files</guilabel> box. This will remember your choice
and use it for all media files missing during this import, so that
no further dialogs will be presented. Use this option if you
anticipate many missing files and want to deal with all of them in
the same manner.</para>
</listitem>
</itemizedlist>
-->
</sect1> </sect1>
<!-- ================ Usage Subsection ================================ --> <!-- ================ Usage Subsection ================================ -->
<sect1 id="export-data"> <sect1 id="export-data">
@ -1735,8 +1687,8 @@
<screenshot> <screenshot>
<mediaobject> <mediaobject>
<imageobject> <imageobject>
<imagedata depth="383" fileref="figures/export-druid.png" <imagedata depth="" fileref="figures/export-druid.png"
format="PNG" width="500" /> format="PNG" width="" />
</imageobject> </imageobject>
<textobject> <textobject>
@ -1858,8 +1810,8 @@
<screenshot> <screenshot>
<mediaobject> <mediaobject>
<imageobject> <imageobject>
<imagedata depth="481" fileref="figures/gedcom-export.png" <imagedata depth="" fileref="figures/gedcom-export.png"
format="PNG" width="500" /> format="PNG" width="" />
</imageobject> </imageobject>
<textobject> <textobject>
@ -2027,8 +1979,10 @@
<sect2 id="gramps-add-pers"> <sect2 id="gramps-add-pers">
<title>To Add or Edit a Person</title> <title>To Add or Edit a Person</title>
<para>To add a person to the database, switch to the People View <para>There are multiple ways to add a person to the database. We will
(<xref linkend="side-nofilt-fig" />) and then click the cover some of them as we proceed. The simplest way to enter a person
to add them from the People View. While you are in the People View
(<xref linkend="side-nofilt-fig" />), click the
<guibutton>Add</guibutton> on the toolbar. Enter any data you know <guibutton>Add</guibutton> on the toolbar. Enter any data you know
about this person into the <guilabel>Edit Person</guilabel> dialog about this person into the <guilabel>Edit Person</guilabel> dialog
(see <xref linkend="edit-pers-fig" /> for details).</para> (see <xref linkend="edit-pers-fig" /> for details).</para>
@ -2038,7 +1992,8 @@
<guibutton>Edit</guibutton> button on the toolbar.</para> <guibutton>Edit</guibutton> button on the toolbar.</para>
<note id="person-menu"> <note id="person-menu">
<title>Alternate ways of adding or editing a person</title> <title>Alternate ways of adding or editing a person from the People
View</title>
<para>You can also use <guilabel>Add...</guilabel> and <para>You can also use <guilabel>Add...</guilabel> and
<guilabel>Edit...</guilabel> menu items available under <guilabel>Edit...</guilabel> menu items available under
@ -2046,6 +2001,10 @@
select <guilabel>Add...</guilabel> or <guilabel>Edit...</guilabel> select <guilabel>Add...</guilabel> or <guilabel>Edit...</guilabel>
from the context menu that pops up.</para> from the context menu that pops up.</para>
</note> </note>
<para>People can also be added to the database in the Relationships
View, Edit Family dialog, and other places where it makes
sense.</para>
</sect2> </sect2>
<!-- ================ Usage Sub-subsection ================ --> <!-- ================ Usage Sub-subsection ================ -->
@ -2053,19 +2012,62 @@
<sect2 id="gramps-spec-rel"> <sect2 id="gramps-spec-rel">
<title>To Specify a Relationship</title> <title>To Specify a Relationship</title>
<para>To specify a relationship, select the person for whom the <para>There are two primary ways to specify relationships between
relationship applies. Switch to the Family View (<xref people - using the Relationships View and using the Edit Family dialog
linkend="family-fig" />) and you'll see this individual indicated as from the Family List View. The Family List is usually used to build
the "Active person".</para> all the relationships within a single family at a time. The
Relationships View is usually used to build multiple relationships to
a single person.</para>
<para>To specify a new relationship to the selected person, switch to
the Relationships View (<xref linkend="family-fig" />) and you'll see
this individual indicated as the "Active person". Next to the
<guilabel>Family</guilabel> label is a <guibutton>Add</guibutton>
button (typically represented by a <guibutton>+</guibutton> sign).
Clicking the <guibutton>Add</guibutton> button will display the Edit
Family dialog with the selected person set as either the father or the
mother.</para>
<figure id="edit-family">
<title>Editing a family</title>
<screenshot>
<mediaobject>
<imageobject>
<imagedata fileref="figures/edit-family.png" format="PNG" />
</imageobject>
<textobject>
<phrase>Editing a family.</phrase>
</textobject>
</mediaobject>
</screenshot>
</figure>
<para>Now a question: Does the person who will form the relationship <para>Now a question: Does the person who will form the relationship
with the Active person already exist in the database? If yes, click with the Active person already exist in the database? If yes, click
the middle button to the right of the Spouse box. You'll then be able the <guibutton>Select</guibutton> button to the other person. You'll
to browse through the list of people in the database to select the one then be able to browse through the list of people in the database to
you want. If not, click the topmost button to the right of the Spouse select the one you want. If not, click the <guibutton>Add</guibutton>
box. This will allow you to add a new person to the database and to button. This will allow you to add a new person to the database and to
specify the relationship this person has to the Active person.</para> specify the relationship this person has to the Active person.</para>
<figure id="select-person">
<title>Selecting a person</title>
<screenshot>
<mediaobject>
<imageobject>
<imagedata fileref="figures/select-person.png" format="PNG" />
</imageobject>
<textobject>
<phrase>Selecting a person.</phrase>
</textobject>
</mediaobject>
</screenshot>
</figure>
<note id="spouse-filter"> <note id="spouse-filter">
<title>Filtering</title> <title>Filtering</title>
@ -2079,17 +2081,17 @@
all</guilabel> box.</para> all</guilabel> box.</para>
</note> </note>
<para>To edit an existing relationship, double-click in the Spouse <para>To edit an existing relationship from the Relationships View,
box. If there is more than one relationship in the list, you can click on the <guibutton>Edit</guibutton> button next to corresponding
select the spouse or partner you want from the list before Family entry. If there is more than one relationship in the list, you
double-clicking.</para> can select the spouse or partner you want by clicking the
corresponding <guibutton>Edit</guibutton> button next to the
relationship.</para>
<note id="spouse-alt-edit"> <para>To specify a new relationship in the Family List View, click on
<title>Alternate ways of editing relationships.</title> the <guibutton>Add</guibutton> button on the toolbar, and an empty
Edit Family dialog will open. At this point, you can add people to the
<para>Most of the functions described above are also available in family.</para>
the context menu that pops up when you right-click.</para>
</note>
</sect2> </sect2>
<!-- ================ Usage Sub-subsection ================ --> <!-- ================ Usage Sub-subsection ================ -->
@ -2097,43 +2099,73 @@
<sect2 id="gramps-spec-par"> <sect2 id="gramps-spec-par">
<title>To Specify Parents</title> <title>To Specify Parents</title>
<para>To specify the parents for a person, highlight that individual <para>You can specify Active person's parents in the Relationship
in the People View and then switch to the Family View (<xref View(<xref linkend="family-fig" />). A little care is required to
linkend="family-fig" />). Your selected person will be indicated as prevent the creation of duplicate families. If you wish to add the
the Active person. Click the <guibutton>+</guibutton> button to the active person to an already existing family, you should click the
right of the <guilabel>Active person's parents</guilabel> list box. <guibutton>Select</guibutton> button. If the family including the
This will bring up the <guilabel>Choose Parents</guilabel> dialog. You parents does not already exist, you should click the
will see three sections, one for father, one for mother, and one for <guibutton>Add</guibutton> button.</para>
specifying the relationships between everyone.</para>
<para>If the father and mother of the Active person are already stored <para>If you click on the <guibutton>Select</guibutton> button, you
in your database, you can scroll through the lists and make your are presented with the Select Family dialog. This will allow you to
selections. If they are not in the database, you can click select the existing family, and then the Active person will be added
<guibutton>+</guibutton> to add them.</para> as a child to the family.</para>
<note id="parent-filter"> <figure id="select-family">
<title>Filtering</title> <title>Selecting a family</title>
<para>By default, GRAMPS will limit both lists to people who could <screenshot>
possibly be the parents (judged by the date of birth) of the Active <mediaobject>
person. To override this, check the Show all box for each <imageobject>
list.</para> <imagedata fileref="figures/select-family.png" format="PNG"
</note> width="" />
</imageobject>
<para>To specify parents of the Active person's spouse, switch to <textobject>
Family View and then click the <guibutton>+</guibutton> button to the <phrase>Selecting a family.</phrase>
right of the Spouse's parents list box.</para> </textobject>
</mediaobject>
</screenshot>
</figure>
<para>To edit information about parents who are already present in the <para>If you click on the <guibutton>Add</guibutton> button, a new
database, move the mouse over the corresponding parents' box and Edit Family dialog is presented with the Active person listed a child
double-click.</para> of the new family. You can add the parents to the family by either
adding new people as the parents or selecting existing people as the
parents.</para>
<note id="parents-alt-menu"> <warning>
<title>Alternate ways of specifying parents</title> <para>If you create a new family and select parents that are already
in an existing family, GRAMPS will issue a warning message. If you
proceed by saving the new famiy, you will have a duplicate
family.</para>
<para>These functions can also be performed by right-clicking on the <figure id="family-warn">
parents' box and using the context menu that pops up.</para> <title>Duplicate family warning</title>
</note>
<screenshot>
<mediaobject>
<imageobject>
<imagedata fileref="figures/family-warn.png" format="PNG"
width="" />
</imageobject>
<textobject>
<phrase>Duplicate family warning.</phrase>
</textobject>
</mediaobject>
</screenshot>
</figure>
</warning>
<para>You can also specify the parents of a person in the Family List
View. If the family already exists, click on the
<guibutton>Edit</guibutton> button on the tool bar and add the person
as a child when the Edit Family dialog is displayed. If the family
does not already exist, click the <guibutton>Add</guibutton> button to
create a new family, and add the appropriate parents and
children.</para>
</sect2> </sect2>
<!-- ================ Usage Sub-subsection ================ --> <!-- ================ Usage Sub-subsection ================ -->
@ -2141,25 +2173,38 @@
<sect2 id="gramps-spec-ch"> <sect2 id="gramps-spec-ch">
<title>To Specify Children</title> <title>To Specify Children</title>
<para>To specify children of an Active person, switch to the Family <para>Adding children to a relationship is done through a similar
View (<xref linkend="family-fig" />) and then click either the second proceedure. From the Relationships View or the Family List View,
or the third button from the top right of the children list box. The select the existing family or create a new family. Children can be
second button adds a child to the database and to the family, while added by selecting the Add button or Select button to the right of the
the third button adds a child to the family who is already present in child list.</para>
the database.</para>
<para>If using the third button, select a child from the list and <para>Clicking the <guibutton>Add</guibutton> button will display the
specify the child's relationship with father and mother using menus at Edit Person dialog, allowing you to enter a new person. Clicking on
the bottom. If you want, you can add a person to the list by clicking the <guibutton>Select</guibutton> button, will allow you to select an
the <guibutton>Add...</guibutton> button. By default, GRAMPS will existing person from a list. By default, the child is added with a the
limit the lists to people who could possibly be the child (judged by relationship type of birth to both parents.</para>
the date of birth) of the active person. To override this, check the
<guilabel>Show all</guilabel> box.</para>
<para>The relationship of the child to the parents can be modified by <para>If you wish to change the parent/child relationship from the
right-clicking in the children's box and using the context menu that default setting of birth, select the child and click on the Edit
pops up. Again, most of the above functions are available through this button. This will display the Edit Child Reference dialog.</para>
context menu.</para>
<figure id="child-ref">
<title>Child Reference Editor</title>
<screenshot>
<mediaobject>
<imageobject>
<imagedata fileref="figures/child-ref.png" format="PNG"
width="" />
</imageobject>
<textobject>
<phrase>Child Reference Editor.</phrase>
</textobject>
</mediaobject>
</screenshot>
</figure>
</sect2> </sect2>
<!-- ================ Usage Sub-subsection ================ --> <!-- ================ Usage Sub-subsection ================ -->

View File

@ -59,13 +59,14 @@ class EditChildRef(EditSecondary):
""" """
Displays a dialog that allows the user to edit an address. Displays a dialog that allows the user to edit an address.
""" """
def __init__(self, dbstate, uistate, track, childref, callback): def __init__(self, name, dbstate, uistate, track, childref, callback):
""" """
Displays the dialog box. Displays the dialog box.
parent - The class that called the ChildRef editor. parent - The class that called the ChildRef editor.
addr - The address that is to be edited addr - The address that is to be edited
""" """
self.name = name
EditSecondary.__init__(self, dbstate, uistate, track, EditSecondary.__init__(self, dbstate, uistate, track,
childref, callback) childref, callback)
@ -73,6 +74,7 @@ class EditChildRef(EditSecondary):
self.top = gtk.glade.XML(const.gladeFile, "cref_edit","gramps") self.top = gtk.glade.XML(const.gladeFile, "cref_edit","gramps")
self.set_window(self.top.get_widget("cref_edit"), self.set_window(self.top.get_widget("cref_edit"),
self.top.get_widget("title"), self.top.get_widget("title"),
self.name,
_('Child Reference Editor')) _('Child Reference Editor'))
def _setup_fields(self): def _setup_fields(self):

View File

@ -252,7 +252,9 @@ class ChildEmbedList(EmbeddedList):
for ref in self.family.get_child_ref_list(): for ref in self.family.get_child_ref_list():
if ref.ref == handle: if ref.ref == handle:
EditChildRef(self.dbstate, self.uistate, self.track, p = self.dbstate.db.get_person_from_handle(handle)
n = NameDisplay.displayer.display(p)
EditChildRef(n, self.dbstate, self.uistate, self.track,
ref, self.child_ref_edited) ref, self.child_ref_edited)
break break

View File

@ -16403,7 +16403,7 @@ You should select parents before adding any new information. If you select paren
<property name="spacing">0</property> <property name="spacing">0</property>
<child> <child>
<widget class="GtkLabel" id="label651"> <widget class="GtkLabel" id="title">
<property name="visible">True</property> <property name="visible">True</property>
<property name="label" translatable="yes"></property> <property name="label" translatable="yes"></property>
<property name="use_underline">False</property> <property name="use_underline">False</property>