Clean-up Sources and Citations views:

* Add icon for citations view
* disable old sourceview
* change citationtreeview to be Sources navigation view
* citationlistview is now the Citations view
* merge libcitationview into citationlistview and citationtreeview, and corrected and rationalised
* remove libcitationview
* corrected initialisation of source_handle in Citation.py
* fixes for preventing same source being edited twice
    - fixed blockedtext in citationembededlist
    - override build_window_key in editcitation.py

svn: r18211
This commit is contained in:
Tim G L Lyons
2011-09-26 19:53:18 +00:00
parent a4f9e6834d
commit a906c98439
18 changed files with 641 additions and 472 deletions

View File

@ -197,20 +197,21 @@ viewclass = 'RepositoryView',
order = START,
)
register(VIEW,
id = 'sourceview',
name = _("Source View"),
description = _("The view showing all the sources"),
version = '1.0',
gramps_target_version = '3.4',
status = STABLE,
fname = 'sourceview.py',
authors = [u"The Gramps project"],
authors_email = ["http://gramps-project.org"],
category = ("Sources", _("Sources")),
viewclass = 'SourceView',
order = START,
)
# FIXME: REDUNDANT As of gramps 3.4, sourceview.py is redundant.
#register(VIEW,
#id = 'sourceview',
#name = _("Source View"),
#description = _("The view showing all the sources"),
#version = '1.0',
#gramps_target_version = '3.4',
#status = STABLE,
#fname = 'sourceview.py',
#authors = [u"The Gramps project"],
#authors_email = ["http://gramps-project.org"],
#category = ("Sources", _("Sources")),
#viewclass = 'SourceView',
#order = START,
# )
register(VIEW,
id = 'citationlistview',
@ -237,8 +238,7 @@ status = STABLE,
fname = 'citationtreeview.py',
authors = [u"Tim G L Lyons", u"Nick Hall"],
authors_email = [""],
category = ("Citations", _("Citations")),
category = ("Sources", _("Sources")),
viewclass = 'CitationTreeView',
stock_icon = 'gramps-tree-group',
order = START,
)