From 7544d66cb11984520b40cc5e0c735513d7700191 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Mon, 6 Jan 2014 17:33:58 +0100 Subject: [PATCH] 5024: add 'Last Change' column on selectors, when 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 | 3 ++- 8 files changed, 13 insertions(+), 5 deletions(-) diff --git a/gramps/gui/selectors/selectcitation.py b/gramps/gui/selectors/selectcitation.py index c6c7b04a9..17d95bdb2 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, 5), ] def get_from_handle_func(self): diff --git a/gramps/gui/selectors/selectevent.py b/gramps/gui/selectors/selectevent.py index 276de99a0..0f7bb72e6 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, 7), (_('Date'), 150, BaseSelector.TEXT, 3), - (_('Place'), 150, BaseSelector.TEXT, 4) + (_('Place'), 150, BaseSelector.TEXT, 4), + (_('Last Change'), 150, BaseSelector.TEXT, 6), ] 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 977ec2826..88f147704 100644 --- a/gramps/gui/selectors/selectplace.py +++ b/gramps/gui/selectors/selectplace.py @@ -69,6 +69,7 @@ class SelectPlace(BaseSelector): (_('State'), 75, BaseSelector.TEXT, 6), (_('Country'), 75, BaseSelector.TEXT, 7), (_('Parish'), 75, BaseSelector.TEXT, 9), + (_('Last Change'), 150, BaseSelector.TEXT, 13), ] def get_from_handle_func(self): diff --git a/gramps/gui/selectors/selectrepository.py b/gramps/gui/selectors/selectrepository.py index 1db701743..ef883e47e 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, 13), ] def get_from_handle_func(self): diff --git a/gramps/gui/selectors/selectsource.py b/gramps/gui/selectors/selectsource.py index 9e76f671c..3fd30df0d 100644 --- a/gramps/gui/selectors/selectsource.py +++ b/gramps/gui/selectors/selectsource.py @@ -60,7 +60,8 @@ class SelectSource(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, 6), ] def get_from_handle_func(self):