Upgraded Source and Citation reference Quick Views to work with citations (actually, for citationtreeview, this is a source_or_citation reference, to avoid having to change the way listview calls the pop up menu items).

Also minimal changes to SimpleAccess and SimpleTable to support these references views.

svn: r18447
This commit is contained in:
Tim G L Lyons
2011-11-15 12:08:43 +00:00
parent a73075f881
commit 4a69d45fe6
10 changed files with 61 additions and 8 deletions

View File

@@ -47,7 +47,7 @@ import gtk
#-------------------------------------------------------------------------
from gui.views.listview import LISTTREE
from gui.views.treemodels.citationtreemodel import CitationTreeModel
from gen.plug import CATEGORY_QR_SOURCE
from gen.plug import CATEGORY_QR_SOURCE_OR_CITATION
import gen.lib
from gui.views.listview import ListView
import Utils
@@ -112,7 +112,7 @@ class CitationTreeView(ListView):
DEL_MSG = _("Delete the selected citation or source")
MERGE_MSG = _("Merge the selected citations or selected sources")
FILTER_TYPE = "Citation"
QR_CATEGORY = CATEGORY_QR_SOURCE
QR_CATEGORY = CATEGORY_QR_SOURCE_OR_CITATION
def __init__(self, pdata, dbstate, uistate, nav_group=0):