* src/Bookmarks.py: use IDs instead of person references

* src/ChooseParents.py: allow for NOSORT option
* src/GrampsParser.py: removed
* src/GrampsXML.py: removed
* src/MediaView.py: allow for NOSORT option
* src/PedView.py: double click to edit
* src/PeopleView.py: allow for NOSORT option
* src/PlaceView.py: allow for NOSORT option
* src/RelLib.py: handle bookmarks in metadata
* src/ReadXML.py: merge GrampsParser
* src/SourceView.py: allow for NOSORT option
* src/const.py.in: fix paths for xml files
* src/gramps_main.py: bookmark fixes
* src/papersize.xml : move to data subdirectory
* src/plugins/ReadGedcom.py: fix menu string
* src/plugins/ReadNative.py: fix menu string
* src/plugins/ReadPkg.py: fix menu string


svn: r3085
This commit is contained in:
Don Allingham
2004-04-11 02:37:13 +00:00
parent 98f5e48e37
commit 245fa23f64
23 changed files with 998 additions and 1285 deletions

View File

@ -38,6 +38,7 @@ import RelLib
import EditSource
import Utils
import DisplayModels
import const
from QuestionDialog import QuestionDialog
@ -73,7 +74,10 @@ class SourceView:
self.renderer = gtk.CellRendererText()
self.model = gtk.TreeModelSort(DisplayModels.SourceModel(self.db))
if const.nosort_tree:
self.model = DisplayModels.SourceModel(self.db)
else:
self.model = gtk.TreeModelSort(DisplayModels.SourceModel(self.db))
self.list.set_model(self.model)
self.topWindow = self.glade.get_widget("gramps")
@ -85,10 +89,11 @@ class SourceView:
self.list.remove_column(column)
column = gtk.TreeViewColumn(_('Title'), self.renderer,text=0)
column.set_resizable(gtk.TRUE)
column.set_clickable(gtk.TRUE)
column.set_resizable(gtk.TRUE)
if not const.nosort_tree:
column.set_clickable(gtk.TRUE)
column.set_sort_column_id(0)
column.set_min_width(225)
column.set_sort_column_id(0)
self.list.append_column(column)
self.columns = [column]
@ -99,9 +104,10 @@ class SourceView:
name = column_names[pair[1]]
column = gtk.TreeViewColumn(name, self.renderer, text=pair[1])
column.set_resizable(gtk.TRUE)
column.set_clickable(gtk.TRUE)
if not const.nosort_tree:
column.set_clickable(gtk.TRUE)
column.set_sort_column_id(index)
column.set_min_width(75)
column.set_sort_column_id(index)
self.columns.append(column)
self.list.append_column(column)
index += 1
@ -115,7 +121,10 @@ class SourceView:
def build_tree(self):
self.list.set_model(None)
self.model = gtk.TreeModelSort(DisplayModels.SourceModel(self.parent.db))
if const.nosort_tree:
self.model = DisplayModels.SourceModel(self.parent.db)
else:
self.model = gtk.TreeModelSort(DisplayModels.SourceModel(self.parent.db))
self.list.set_model(self.model)
self.selection = self.list.get_selection()