From 57e408ada57f3adc618065a2e16f48d457f3b912 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Mon, 6 Jan 2014 17:09:45 +0100 Subject: [PATCH] 5024: add 'Last Change' column on selectors, when missing --- src/gui/selectors/selectcitation.py | 3 ++- src/gui/selectors/selectevent.py | 3 ++- src/gui/selectors/selectfamily.py | 1 + src/gui/selectors/selectnote.py | 3 ++- src/gui/selectors/selectobject.py | 1 + src/gui/selectors/selectplace.py | 1 + src/gui/selectors/selectrepository.py | 3 ++- src/gui/selectors/selectsource.py | 3 ++- 8 files changed, 13 insertions(+), 5 deletions(-) diff --git a/src/gui/selectors/selectcitation.py b/src/gui/selectors/selectcitation.py index 4d6a31b8f..7ee8f42a3 100644 --- a/src/gui/selectors/selectcitation.py +++ b/src/gui/selectors/selectcitation.py @@ -64,7 +64,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, 4), ] def get_from_handle_func(self): diff --git a/src/gui/selectors/selectevent.py b/src/gui/selectors/selectevent.py index 4674ed181..688d1e0cf 100644 --- a/src/gui/selectors/selectevent.py +++ b/src/gui/selectors/selectevent.py @@ -63,7 +63,8 @@ class SelectEvent(BaseSelector): (_('Type'), 75, BaseSelector.TEXT, 2), (_('Main Participants'), 250, BaseSelector.TEXT, 6), (_('Date'), 150, BaseSelector.TEXT, 3), - (_('Place'), 150, BaseSelector.TEXT, 4) + (_('Place'), 150, BaseSelector.TEXT, 4), + (_('Last Change'), 150, BaseSelector.TEXT, 5), ] def get_from_handle_func(self): diff --git a/src/gui/selectors/selectfamily.py b/src/gui/selectors/selectfamily.py index 423bdb53d..875e4bc35 100644 --- a/src/gui/selectors/selectfamily.py +++ b/src/gui/selectors/selectfamily.py @@ -61,6 +61,7 @@ class SelectFamily(BaseSelector): (_('ID'), 75, BaseSelector.TEXT, 0), (_('Father'), 200, BaseSelector.TEXT, 1), (_('Mother'), 200, BaseSelector.TEXT, 2), + (_('Last Change'), 150, BaseSelector.TEXT, 6), ] def get_from_handle_func(self): diff --git a/src/gui/selectors/selectnote.py b/src/gui/selectors/selectnote.py index 552f5cee3..823c8aca7 100644 --- a/src/gui/selectors/selectnote.py +++ b/src/gui/selectors/selectnote.py @@ -66,7 +66,8 @@ class SelectNote(BaseSelector): (_('Preview'), 350, BaseSelector.TEXT, 0), (_('ID'), 75, BaseSelector.TEXT, 1), (_('Type'), 100, BaseSelector.TEXT, 2), - (_('Tags'), 100, BaseSelector.TEXT, 3) + (_('Tags'), 100, BaseSelector.TEXT, 3), + (_('Last Change'), 150, BaseSelector.TEXT, 4), ] def get_from_handle_func(self): diff --git a/src/gui/selectors/selectobject.py b/src/gui/selectors/selectobject.py index e7df2517c..ed5184a90 100644 --- a/src/gui/selectors/selectobject.py +++ b/src/gui/selectors/selectobject.py @@ -74,6 +74,7 @@ class SelectObject(BaseSelector): (_('Title'), 350, BaseSelector.TEXT, 0), (_('ID'), 75, BaseSelector.TEXT, 1), (_('Type'), 75, BaseSelector.TEXT, 2), + (_('Last Change'), 150, BaseSelector.TEXT, 6), ] def _local_init(self): diff --git a/src/gui/selectors/selectplace.py b/src/gui/selectors/selectplace.py index 1be1b8096..3cbb250eb 100644 --- a/src/gui/selectors/selectplace.py +++ b/src/gui/selectors/selectplace.py @@ -68,6 +68,7 @@ class SelectPlace(BaseSelector): (_('State'), 75, BaseSelector.TEXT, 6), (_('Country'), 75, BaseSelector.TEXT, 7), (_('Parish'), 75, BaseSelector.TEXT, 9), + (_('Last Change'), 150, BaseSelector.TEXT, 12), ] def get_from_handle_func(self): diff --git a/src/gui/selectors/selectrepository.py b/src/gui/selectors/selectrepository.py index 90b994193..b0b5b1930 100644 --- a/src/gui/selectors/selectrepository.py +++ b/src/gui/selectors/selectrepository.py @@ -59,7 +59,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, 12), ] def get_handle_column(self): diff --git a/src/gui/selectors/selectsource.py b/src/gui/selectors/selectsource.py index 0d39738d7..eba0ecdd1 100644 --- a/src/gui/selectors/selectsource.py +++ b/src/gui/selectors/selectsource.py @@ -59,7 +59,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, 5), ] def get_from_handle_func(self):