Edit Person changes

svn: r1322
This commit is contained in:
Don Allingham 2003-02-28 04:49:18 +00:00
parent b6974070d0
commit a537a4bf49
10 changed files with 4245 additions and 4887 deletions

1
NEWS
View File

@ -3,6 +3,7 @@ Version 0.9.1
* Witnesses may be added to an event. The witnesses do not have to be in
the database, in which case only a string for a name is kept.
* Improved Dialogs to be compliant with GNOME Human Interface Guidelines.
* Added Romanian translation (Radu Bogdan Mare)
Version 0.9.0
* GNOME 2.0 support. Requires pygtk2 and gnome-python2.

4
configure vendored
View File

@ -1567,7 +1567,7 @@ INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
RELEASE=rc5
RELEASE=1
VERSIONSTRING=$VERSION
if test x"$RELEASE" != "x"
@ -1621,7 +1621,7 @@ fi
LANGUAGES="sv pl de fr es it pt_BR ru da_DK cs"
LANGUAGES="sv pl de fr es it pt_BR ru da_DK cs ro"
DISTLANGS=

View File

@ -18,7 +18,7 @@ AC_SUBST(VERSIONSTRING)
AC_PATH_PROG(MSGFMT, msgfmt)
AC_SUBST(MSGFMT)
LANGUAGES="sv pl de fr es it pt_BR ru da_DK cs"
LANGUAGES="sv pl de fr es it pt_BR ru da_DK cs ro"
AC_SUBST(LANGUAGES)
DISTLANGS=

View File

@ -1,5 +1,5 @@
%define ver 0.9.0
%define rel rc5
%define rel 1
%define prefix /usr
Summary: Genealogical Research and Analysis Management Programming System.

View File

@ -96,6 +96,7 @@ class EditPerson:
self.gallery = ImageSelect.Gallery(person, self.path, self.icon_list,self.db,self)
self.name_delete_btn = self.top.get_widget('aka_delete')
self.name_edit_btn = self.top.get_widget('aka_edit')
self.web_delete_btn = self.top.get_widget('delete_url')
self.event_delete_btn = self.top.get_widget('event_delete_btn')
self.attr_delete_btn = self.top.get_widget('attr_delete_btn')
@ -134,7 +135,6 @@ class EditPerson:
self.event_list = self.get_widget("eventList")
self.edit_person = self.get_widget("editPerson")
self.name_list = self.get_widget("nameList")
self.name_frame = self.get_widget("name_frame")
self.alt_given_field = self.get_widget("alt_given")
self.alt_last_field = self.get_widget("alt_last")
self.alt_title_field = self.get_widget("alt_title")
@ -816,6 +816,7 @@ class EditPerson:
"""If the data has changed, give the user a chance to cancel
the close window"""
if self.did_data_change():
n = "<i>%s</i>" % self.person.getPrimaryName().getRegularName()
SaveDialog(_('Save Changes to %s?' % n),
_('If you close without saving, the changes you '
'have made will be lost'),
@ -1065,7 +1066,6 @@ class EditPerson:
store,iter = self.ntree.get_selected()
if iter:
name = self.ntree.get_object(iter)
self.name_frame.set_label(name.getName())
self.alt_given_field.set_text(name.getFirstName())
self.alt_title_field.set_text(name.getTitle())
self.alt_last_field.set_text(name.getSurname())
@ -1080,8 +1080,8 @@ class EditPerson:
self.name_src_field.set_text('')
self.name_conf_field.set_text('')
self.name_delete_btn.set_sensitive(1)
self.name_edit_btn.set_sensitive(1)
else:
self.name_frame.set_label('')
self.alt_given_field.set_text('')
self.alt_title_field.set_text('')
self.alt_last_field.set_text('')
@ -1091,6 +1091,7 @@ class EditPerson:
self.name_src_field.set_text('')
self.name_conf_field.set_text('')
self.name_delete_btn.set_sensitive(0)
self.name_edit_btn.set_sensitive(0)
def on_web_select_row(self,obj):
store,iter = self.wtree.get_selected()
@ -1466,8 +1467,9 @@ class EditPerson:
def write_primary_name(self):
# initial values
name = GrampsCfg.nameof(self.person)
name = '<span size="larger" weight="bold">%s</span>' % GrampsCfg.nameof(self.person)
self.get_widget("activepersonTitle").set_text(name)
self.get_widget("activepersonTitle").set_use_markup(gtk.TRUE)
self.suffix.set_text(self.pname.getSuffix())
self.prefix.set_text(self.pname.getSurnamePrefix())

View File

@ -135,7 +135,7 @@ translators = u'Radek Malcic <malcic@atlas.cz> - Czech\n' \
# Constants
#
#-------------------------------------------------------------------------
picWidth = 275.0
picWidth = 200.0
thumbScale = 96.0
xmlFile = "data.gramps"
zodbFile = "gramps.zodb"

File diff suppressed because it is too large Load Diff

View File

@ -12,7 +12,7 @@
<property name="default_width">450</property>
<property name="resizable">True</property>
<property name="destroy_with_parent">False</property>
<property name="has_separator">True</property>
<property name="has_separator">False</property>
<child internal-child="vbox">
<widget class="GtkVBox" id="dialog-vbox1">
@ -141,7 +141,7 @@
<property name="modal">False</property>
<property name="resizable">True</property>
<property name="destroy_with_parent">False</property>
<property name="has_separator">True</property>
<property name="has_separator">False</property>
<child internal-child="vbox">
<widget class="GtkVBox" id="dialog-vbox2">
@ -159,7 +159,7 @@
<property name="visible">True</property>
<property name="can_default">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Close without Saving</property>
<property name="label" translatable="yes">Close _without Saving</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="response_id">-9</property>
@ -170,7 +170,9 @@
<widget class="GtkButton" id="button2">
<property name="visible">True</property>
<property name="can_default">True</property>
<property name="has_default">True</property>
<property name="can_focus">True</property>
<property name="has_focus">True</property>
<property name="label">gtk-cancel</property>
<property name="use_stock">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
@ -294,7 +296,7 @@
<property name="modal">False</property>
<property name="resizable">True</property>
<property name="destroy_with_parent">False</property>
<property name="has_separator">True</property>
<property name="has_separator">False</property>
<child internal-child="vbox">
<widget class="GtkVBox" id="vbox1">
@ -435,7 +437,7 @@
<property name="modal">False</property>
<property name="resizable">True</property>
<property name="destroy_with_parent">False</property>
<property name="has_separator">True</property>
<property name="has_separator">False</property>
<child internal-child="vbox">
<widget class="GtkVBox" id="vbox2">
@ -577,7 +579,7 @@
<property name="default_width">450</property>
<property name="resizable">True</property>
<property name="destroy_with_parent">False</property>
<property name="has_separator">True</property>
<property name="has_separator">False</property>
<child internal-child="vbox">
<widget class="GtkVBox" id="vbox3">

View File

@ -555,7 +555,7 @@
<child>
<widget class="button" id="button97">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Make the default person the active person</property>
<property name="tooltip" translatable="yes">Make the home person the active person</property>
<property name="label" translatable="yes">Home</property>
<property name="use_underline">True</property>
<property name="stock_pixmap">gtk-home</property>
@ -591,6 +591,7 @@
<child>
<widget class="button" id="addbtn">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Add a new item</property>
<property name="label" translatable="yes">Add</property>
<property name="use_underline">True</property>
<property name="stock_pixmap">gtk-add</property>
@ -604,6 +605,7 @@
<child>
<widget class="button" id="removebtn">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Remove the currently selected item</property>
<property name="label" translatable="yes">Remove</property>
<property name="use_underline">True</property>
<property name="stock_pixmap">gtk-remove</property>
@ -614,6 +616,7 @@
<child>
<widget class="button" id="editbtn">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Edit the selected item</property>
<property name="label" translatable="yes">Edit</property>
<property name="use_underline">True</property>
<property name="icon">edit.png</property>
@ -1216,7 +1219,7 @@
<widget class="GtkTable" id="table38">
<property name="border_width">6</property>
<property name="visible">True</property>
<property name="n_rows">6</property>
<property name="n_rows">8</property>
<property name="n_columns">6</property>
<property name="homogeneous">False</property>
<property name="row_spacing">6</property>
@ -1298,7 +1301,7 @@
<widget class="GtkImage" id="image84">
<property name="visible">True</property>
<property name="stock">gtk-add</property>
<property name="icon_size">4</property>
<property name="icon_size">1</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
@ -1324,7 +1327,7 @@
<widget class="GtkImage" id="image86">
<property name="visible">True</property>
<property name="stock">gtk-remove</property>
<property name="icon_size">4</property>
<property name="icon_size">1</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
@ -1342,8 +1345,8 @@
<packing>
<property name="left_attach">2</property>
<property name="right_attach">3</property>
<property name="top_attach">3</property>
<property name="bottom_attach">4</property>
<property name="top_attach">4</property>
<property name="bottom_attach">5</property>
<property name="x_options">fill</property>
<property name="y_options">fill</property>
</packing>
@ -1366,7 +1369,7 @@
<widget class="GtkImage" id="image87">
<property name="visible">True</property>
<property name="stock">gtk-go-forward</property>
<property name="icon_size">4</property>
<property name="icon_size">1</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
@ -1392,7 +1395,7 @@
<widget class="GtkImage" id="image91">
<property name="visible">True</property>
<property name="stock">gtk-add</property>
<property name="icon_size">4</property>
<property name="icon_size">1</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
@ -1418,7 +1421,7 @@
<widget class="GtkImage" id="image92">
<property name="visible">True</property>
<property name="stock">gtk-remove</property>
<property name="icon_size">4</property>
<property name="icon_size">1</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
@ -1467,8 +1470,8 @@
<packing>
<property name="left_attach">4</property>
<property name="right_attach">5</property>
<property name="top_attach">3</property>
<property name="bottom_attach">4</property>
<property name="top_attach">4</property>
<property name="bottom_attach">5</property>
<property name="y_options">fill</property>
</packing>
</child>
@ -1490,7 +1493,7 @@
<widget class="GtkImage" id="image88">
<property name="visible">True</property>
<property name="stock">gtk-go-forward</property>
<property name="icon_size">4</property>
<property name="icon_size">1</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
@ -1516,7 +1519,7 @@
<widget class="GtkImage" id="image89">
<property name="visible">True</property>
<property name="stock">gtk-add</property>
<property name="icon_size">4</property>
<property name="icon_size">1</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
@ -1542,7 +1545,7 @@
<widget class="GtkImage" id="image90">
<property name="visible">True</property>
<property name="stock">gtk-remove</property>
<property name="icon_size">4</property>
<property name="icon_size">1</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
@ -1560,8 +1563,8 @@
<packing>
<property name="left_attach">5</property>
<property name="right_attach">6</property>
<property name="top_attach">3</property>
<property name="bottom_attach">4</property>
<property name="top_attach">4</property>
<property name="bottom_attach">5</property>
<property name="x_options">fill</property>
<property name="y_options">fill</property>
</packing>
@ -1584,8 +1587,8 @@
<packing>
<property name="left_attach">0</property>
<property name="right_attach">6</property>
<property name="top_attach">4</property>
<property name="bottom_attach">5</property>
<property name="top_attach">6</property>
<property name="bottom_attach">7</property>
<property name="x_options">fill</property>
<property name="y_options"></property>
</packing>
@ -1656,8 +1659,8 @@
<packing>
<property name="left_attach">0</property>
<property name="right_attach">3</property>
<property name="top_attach">2</property>
<property name="bottom_attach">3</property>
<property name="top_attach">3</property>
<property name="bottom_attach">4</property>
<property name="x_options">fill</property>
<property name="y_options"></property>
</packing>
@ -1680,8 +1683,8 @@
<packing>
<property name="left_attach">3</property>
<property name="right_attach">6</property>
<property name="top_attach">2</property>
<property name="bottom_attach">3</property>
<property name="top_attach">3</property>
<property name="bottom_attach">4</property>
<property name="x_options">fill</property>
<property name="y_options"></property>
</packing>
@ -1711,8 +1714,8 @@
<packing>
<property name="left_attach">1</property>
<property name="right_attach">5</property>
<property name="top_attach">5</property>
<property name="bottom_attach">6</property>
<property name="top_attach">7</property>
<property name="bottom_attach">8</property>
<property name="x_options">fill</property>
</packing>
</child>
@ -1801,8 +1804,8 @@
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="top_attach">3</property>
<property name="bottom_attach">4</property>
<property name="top_attach">4</property>
<property name="bottom_attach">5</property>
<property name="y_options">fill</property>
</packing>
</child>
@ -1824,7 +1827,7 @@
<widget class="GtkImage" id="image93">
<property name="visible">True</property>
<property name="stock">gtk-go-back</property>
<property name="icon_size">4</property>
<property name="icon_size">1</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
@ -1850,7 +1853,7 @@
<widget class="GtkImage" id="image94">
<property name="visible">True</property>
<property name="stock">gtk-add</property>
<property name="icon_size">4</property>
<property name="icon_size">1</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
@ -1876,7 +1879,7 @@
<widget class="GtkImage" id="image95">
<property name="visible">True</property>
<property name="stock">gtk-remove</property>
<property name="icon_size">4</property>
<property name="icon_size">1</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
@ -1894,8 +1897,8 @@
<packing>
<property name="left_attach">5</property>
<property name="right_attach">6</property>
<property name="top_attach">5</property>
<property name="bottom_attach">6</property>
<property name="top_attach">7</property>
<property name="bottom_attach">8</property>
<property name="x_options">fill</property>
<property name="y_options">fill</property>
</packing>

File diff suppressed because it is too large Load Diff