* src/gramps.glade: widen the ChildSelect window

* src/SelectPerson.py: sort people before adding to list
* src/SelectChild.py: sort people before adding to list
* src/ChooseParents.py: sort people before adding to list
* src/AddSpouse.py: sort people before adding to list

* src/ListModel.py: sorting improvements
* src/PlaceView.py: use ListModel
* src/RelLib.py: sort places by name


svn: r2272
This commit is contained in:
Don Allingham 2003-10-21 03:42:55 +00:00
parent b5f7ec7504
commit da7b26c741
5 changed files with 6 additions and 6 deletions

View File

@ -230,7 +230,7 @@ class AddSpouse:
self.entries = [] self.entries = []
self.slist.clear() self.slist.clear()
self.slist.new_model() self.slist.new_model()
for key in self.db.getPersonKeys(): for key in self.db.sortPersonKeys():
data = self.db.getPersonDisplay(key) data = self.db.getPersonDisplay(key)
if data[2] == sgender: if data[2] == sgender:
continue continue

View File

@ -161,7 +161,7 @@ class ChooseParents:
dday = self.person.getDeath().getDateObj() dday = self.person.getDeath().getDateObj()
person_list = [] person_list = []
for key in self.db.getPersonKeys(): for key in self.db.sortPersonKeys():
if pkey == key: if pkey == key:
continue continue
@ -235,7 +235,7 @@ class ChooseParents:
dday = self.person.getDeath().getDateObj() dday = self.person.getDeath().getDateObj()
person_list = [] person_list = []
for key in self.db.getPersonKeys(): for key in self.db.sortPersonKeys():
if pkey == key: if pkey == key:
continue continue

View File

@ -140,7 +140,7 @@ class SelectChild:
slist[c.getId()] = 1 slist[c.getId()] = 1
person_list = [] person_list = []
for key in self.db.getPersonKeys(): for key in self.db.sortPersonKeys():
person = self.db.getPerson(key) person = self.db.getPerson(key)
if filter: if filter:
if slist.has_key(key) or person.getMainParents(): if slist.has_key(key) or person.getMainParents():

View File

@ -109,7 +109,7 @@ class SelectPerson:
self.umodel.clear() self.umodel.clear()
self.umodel.new_model() self.umodel.new_model()
for key in self.db.getPersonKeys(): for key in self.db.sortPersonKeys():
person = self.db.getPerson(key) person = self.db.getPerson(key)
if self.use_filter and not self.filter(person): if self.use_filter and not self.filter(person):
continue continue

View File

@ -4846,7 +4846,7 @@
<property name="type">GTK_WINDOW_TOPLEVEL</property> <property name="type">GTK_WINDOW_TOPLEVEL</property>
<property name="window_position">GTK_WIN_POS_NONE</property> <property name="window_position">GTK_WIN_POS_NONE</property>
<property name="modal">True</property> <property name="modal">True</property>
<property name="default_width">450</property> <property name="default_width">500</property>
<property name="default_height">400</property> <property name="default_height">400</property>
<property name="resizable">True</property> <property name="resizable">True</property>
<property name="destroy_with_parent">False</property> <property name="destroy_with_parent">False</property>