1765: Add private column to views

svn: r21114
This commit is contained in:
Nick Hall
2013-01-14 16:49:52 +00:00
parent a030be6100
commit c3edd2c359
31 changed files with 276 additions and 91 deletions

View File

@ -86,8 +86,9 @@ class BasePersonView(ListView):
COL_DDAT = 5
COL_DPLAC = 6
COL_SPOUSE = 7
COL_TAGS = 8
COL_CHAN = 9
COL_PRIV = 8
COL_TAGS = 9
COL_CHAN = 10
#name of the columns
COLUMN_NAMES = [
_('Name'),
@ -98,18 +99,20 @@ class BasePersonView(ListView):
_('Death Date'),
_('Death Place'),
_('Spouse'),
_('Private'),
_('Tags'),
_('Last Changed'),
]
# columns that contain markup
MARKUP_COLS = [COL_BDAT, COL_BPLAC, COL_DDAT, COL_DPLAC]
PIXBUF_COLS = [COL_PRIV]
# default setting with visible columns, order of the col, and their size
CONFIGSETTINGS = (
('columns.visible', [COL_NAME, COL_ID, COL_GEN, COL_BDAT, COL_DDAT]),
('columns.rank', [COL_NAME, COL_ID, COL_GEN, COL_BDAT, COL_BPLAC,
COL_DDAT, COL_DPLAC, COL_SPOUSE, COL_TAGS,
COL_DDAT, COL_DPLAC, COL_SPOUSE, COL_PRIV, COL_TAGS,
COL_CHAN]),
('columns.size', [250, 75, 75, 100, 175, 100, 175, 100, 100, 100])
('columns.size', [250, 75, 75, 100, 175, 100, 175, 100, 50, 100, 100])
)
ADD_MSG = _("Add a new person")
EDIT_MSG = _("Edit the selected person")
@ -139,7 +142,8 @@ class BasePersonView(ListView):
PersonBookmarks, nav_group,
multiple=True,
filter_class=PersonSidebarFilter,
markup=BasePersonView.MARKUP_COLS)
markup=BasePersonView.MARKUP_COLS,
pixbuf=BasePersonView.PIXBUF_COLS)
self.func_list.update({
'<PRIMARY>J' : self.jump,