From a0210fc1f8adcb259508429ced10a4a1fe78a2b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Mon, 6 Jan 2014 16:52:19 +0100 Subject: [PATCH] 5024: add 'Last Change' column on selectors, if missing --- gramps/gui/selectors/selectcitation.py | 3 ++- gramps/gui/selectors/selectevent.py | 3 ++- gramps/gui/selectors/selectfamily.py | 1 + gramps/gui/selectors/selectnote.py | 3 ++- gramps/gui/selectors/selectobject.py | 1 + gramps/gui/selectors/selectplace.py | 1 + gramps/gui/selectors/selectrepository.py | 3 ++- gramps/gui/selectors/selectsource.py | 1 + 8 files changed, 12 insertions(+), 4 deletions(-) diff --git a/gramps/gui/selectors/selectcitation.py b/gramps/gui/selectors/selectcitation.py index c6c7b04a9..33e9d6786 100644 --- a/gramps/gui/selectors/selectcitation.py +++ b/gramps/gui/selectors/selectcitation.py @@ -65,7 +65,8 @@ class SelectCitation(BaseSelector): def get_column_titles(self): return [ (_('Source: Title or Citation: Volume/Page'), 350, BaseSelector.TEXT, 0), - (_('ID'), 75, BaseSelector.TEXT, 1) + (_('ID'), 75, BaseSelector.TEXT, 1), + (_('Last Change'), 150, BaseSelector.TEXT, 6), ] def get_from_handle_func(self): diff --git a/gramps/gui/selectors/selectevent.py b/gramps/gui/selectors/selectevent.py index 7a0ebfc43..784f8ad05 100644 --- a/gramps/gui/selectors/selectevent.py +++ b/gramps/gui/selectors/selectevent.py @@ -64,7 +64,8 @@ class SelectEvent(BaseSelector): (_('Type'), 75, BaseSelector.TEXT, 2), (_('Main Participants'), 250, BaseSelector.TEXT, 8), (_('Date'), 150, BaseSelector.TEXT, 3), - (_('Place'), 150, BaseSelector.TEXT, 4) + (_('Place'), 150, BaseSelector.TEXT, 4), + (_('Last Change'), 150, BaseSelector.TEXT, 7), ] def get_from_handle_func(self): diff --git a/gramps/gui/selectors/selectfamily.py b/gramps/gui/selectors/selectfamily.py index 2ad896e4b..c4a696fe0 100644 --- a/gramps/gui/selectors/selectfamily.py +++ b/gramps/gui/selectors/selectfamily.py @@ -62,6 +62,7 @@ class SelectFamily(BaseSelector): (_('ID'), 75, BaseSelector.TEXT, 0), (_('Father'), 200, BaseSelector.TEXT, 1), (_('Mother'), 200, BaseSelector.TEXT, 2), + (_('Last Change'), 150, BaseSelector.TEXT, 7), ] def get_from_handle_func(self): diff --git a/gramps/gui/selectors/selectnote.py b/gramps/gui/selectors/selectnote.py index 06c4390be..a246cfceb 100644 --- a/gramps/gui/selectors/selectnote.py +++ b/gramps/gui/selectors/selectnote.py @@ -67,7 +67,8 @@ class SelectNote(BaseSelector): (_('Preview'), 350, BaseSelector.TEXT, 0), (_('ID'), 75, BaseSelector.TEXT, 1), (_('Type'), 100, BaseSelector.TEXT, 2), - (_('Tags'), 100, BaseSelector.TEXT, 4) + (_('Tags'), 100, BaseSelector.TEXT, 4), + (_('Last Change'), 150, BaseSelector.TEXT, 5), ] def get_from_handle_func(self): diff --git a/gramps/gui/selectors/selectobject.py b/gramps/gui/selectors/selectobject.py index 9112adb19..42d54190a 100644 --- a/gramps/gui/selectors/selectobject.py +++ b/gramps/gui/selectors/selectobject.py @@ -72,6 +72,7 @@ class SelectObject(BaseSelector): (_('Title'), 350, BaseSelector.TEXT, 0), (_('ID'), 75, BaseSelector.TEXT, 1), (_('Type'), 75, BaseSelector.TEXT, 2), + (_('Last Change'), 150, BaseSelector.TEXT, 7), ] def _local_init(self): diff --git a/gramps/gui/selectors/selectplace.py b/gramps/gui/selectors/selectplace.py index 9f4323bdb..9e10a4a7d 100644 --- a/gramps/gui/selectors/selectplace.py +++ b/gramps/gui/selectors/selectplace.py @@ -64,6 +64,7 @@ class SelectPlace(BaseSelector): (_('ID'), 75, BaseSelector.TEXT, 1), (_('Type'), 100, BaseSelector.TEXT, 3), (_('Title'), 300, BaseSelector.TEXT, 2), + (_('Last Change'), 150, BaseSelector.TEXT, 9), ] def get_from_handle_func(self): diff --git a/gramps/gui/selectors/selectrepository.py b/gramps/gui/selectors/selectrepository.py index 1db701743..c566a9970 100644 --- a/gramps/gui/selectors/selectrepository.py +++ b/gramps/gui/selectors/selectrepository.py @@ -60,7 +60,8 @@ class SelectRepository(BaseSelector): def get_column_titles(self): return [ (_('Title'), 350, BaseSelector.TEXT, 0), - (_('ID'), 75, BaseSelector.TEXT, 1) + (_('ID'), 75, BaseSelector.TEXT, 1), + (_('Last Change'), 150, BaseSelector.TEXT, 14), ] def get_from_handle_func(self): diff --git a/gramps/gui/selectors/selectsource.py b/gramps/gui/selectors/selectsource.py index 9e76f671c..8903f6c94 100644 --- a/gramps/gui/selectors/selectsource.py +++ b/gramps/gui/selectors/selectsource.py @@ -61,6 +61,7 @@ class SelectSource(BaseSelector): return [ (_('Title'), 350, BaseSelector.TEXT, 0), (_('ID'), 75, BaseSelector.TEXT, 1) + (_('Last Change'), 150, BaseSelector.TEXT, 7), ] def get_from_handle_func(self):