From 651e03c69709628399c8821a7eb9298dcc0dc7c5 Mon Sep 17 00:00:00 2001 From: Sam Manzi Date: Tue, 29 Sep 2015 16:29:02 +1000 Subject: [PATCH] 8888 'baseselector's add help urls only --- gramps/gui/selectors/selectcitation.py | 10 ++++++++++ gramps/gui/selectors/selectevent.py | 10 ++++++++++ gramps/gui/selectors/selectfamily.py | 10 ++++++++++ gramps/gui/selectors/selectnote.py | 10 ++++++++++ gramps/gui/selectors/selectobject.py | 10 ++++++++++ gramps/gui/selectors/selectperson.py | 22 ++++++++++++++++++++++ gramps/gui/selectors/selectplace.py | 10 ++++++++++ gramps/gui/selectors/selectrepository.py | 10 ++++++++++ gramps/gui/selectors/selectsource.py | 10 ++++++++++ 9 files changed, 102 insertions(+) diff --git a/gramps/gui/selectors/selectcitation.py b/gramps/gui/selectors/selectcitation.py index 324ad6261..f822da42c 100644 --- a/gramps/gui/selectors/selectcitation.py +++ b/gramps/gui/selectors/selectcitation.py @@ -39,6 +39,16 @@ _ = glocale.translation.gettext #------------------------------------------------------------------------- from ..views.treemodels import CitationTreeModel from .baseselector import BaseSelector +from gramps.gui.display import display_help +from gramps.gen.const import URL_MANUAL_PAGE + +#------------------------------------------------------------------------- +# +# Constants +# +#------------------------------------------------------------------------- +WIKI_HELP_PAGE = _('%s_-_Entering_and_editing_data:_detailed_-_part_2') % URL_MANUAL_PAGE +WIKI_HELP_SEC = _('Select_Source_or_Citation_selector') #------------------------------------------------------------------------- # diff --git a/gramps/gui/selectors/selectevent.py b/gramps/gui/selectors/selectevent.py index 044085752..e35556412 100644 --- a/gramps/gui/selectors/selectevent.py +++ b/gramps/gui/selectors/selectevent.py @@ -34,6 +34,16 @@ _ = glocale.translation.gettext #------------------------------------------------------------------------- from ..views.treemodels import EventModel from .baseselector import BaseSelector +from gramps.gui.display import display_help +from gramps.gen.const import URL_MANUAL_PAGE + +#------------------------------------------------------------------------- +# +# Constants +# +#------------------------------------------------------------------------- +WIKI_HELP_PAGE = _('%s_-_Entering_and_editing_data:_detailed_-_part_1') % URL_MANUAL_PAGE +WIKI_HELP_SEC = _('Select_Event_selector') #------------------------------------------------------------------------- # diff --git a/gramps/gui/selectors/selectfamily.py b/gramps/gui/selectors/selectfamily.py index 6ff4c7f41..5ad6cd8eb 100644 --- a/gramps/gui/selectors/selectfamily.py +++ b/gramps/gui/selectors/selectfamily.py @@ -34,6 +34,16 @@ _ = glocale.translation.gettext #------------------------------------------------------------------------- from ..views.treemodels import FamilyModel from .baseselector import BaseSelector +from gramps.gui.display import display_help +from gramps.gen.const import URL_MANUAL_PAGE + +#------------------------------------------------------------------------- +# +# Constants +# +#------------------------------------------------------------------------- +WIKI_HELP_PAGE = _('%s_-_Categories') % URL_MANUAL_PAGE +WIKI_HELP_SEC = _('Select_Family_selector') #------------------------------------------------------------------------- # diff --git a/gramps/gui/selectors/selectnote.py b/gramps/gui/selectors/selectnote.py index 818348439..421550999 100644 --- a/gramps/gui/selectors/selectnote.py +++ b/gramps/gui/selectors/selectnote.py @@ -37,6 +37,16 @@ _ = glocale.translation.gettext #------------------------------------------------------------------------- from ..views.treemodels import NoteModel from .baseselector import BaseSelector +from gramps.gui.display import display_help +from gramps.gen.const import URL_MANUAL_PAGE + +#------------------------------------------------------------------------- +# +# Constants +# +#------------------------------------------------------------------------- +WIKI_HELP_PAGE = _('%s_-_Entering_and_editing_data:_detailed_-_part_1') % URL_MANUAL_PAGE +WIKI_HELP_SEC = _('Select_Note_selector') #------------------------------------------------------------------------- # diff --git a/gramps/gui/selectors/selectobject.py b/gramps/gui/selectors/selectobject.py index aa94d833e..e32f51152 100644 --- a/gramps/gui/selectors/selectobject.py +++ b/gramps/gui/selectors/selectobject.py @@ -48,6 +48,16 @@ from gramps.gen.utils.file import media_path_full from gramps.gen.utils.thumbnails import get_thumbnail_image from ..views.treemodels import MediaModel from .baseselector import BaseSelector +from gramps.gui.display import display_help +from gramps.gen.const import URL_MANUAL_PAGE + +#------------------------------------------------------------------------- +# +# Constants +# +#------------------------------------------------------------------------- +WIKI_HELP_PAGE = _('%s_-_Entering_and_editing_data:_detailed_-_part_1') % URL_MANUAL_PAGE +WIKI_HELP_SEC = _('Select_Media_Object_selector') #------------------------------------------------------------------------- # diff --git a/gramps/gui/selectors/selectperson.py b/gramps/gui/selectors/selectperson.py index c2fa3dfee..3797d2eca 100644 --- a/gramps/gui/selectors/selectperson.py +++ b/gramps/gui/selectors/selectperson.py @@ -36,6 +36,28 @@ from gi.repository import Gtk #------------------------------------------------------------------------- from ..views.treemodels import PeopleBaseModel, PersonTreeModel from .baseselector import BaseSelector +from gramps.gui.display import display_help +from gramps.gen.const import URL_MANUAL_PAGE + +#------------------------------------------------------------------------- +# +# Constants +# +#------------------------------------------------------------------------- + +# This dialog changes depending on the string pass for the title. + +# https://gramps-project.org/wiki/index.php?title=Gramps_4.2_Wiki_Manual_-_Entering_and_editing_data:_detailed_-_part_1#Select_Child_selector +WIKI_HELP_PAGE = _('%s_-_Entering_and_editing_data:_detailed_-_part_1') % URL_MANUAL_PAGE +WIKI_HELP_SEC = _('Select_Child_selector') + +# https://gramps-project.org/wiki/index.php?title=Gramps_4.2_Wiki_Manual_-_Entering_and_editing_data:_detailed_-_part_1#Select_Father_selector +WIKI_HELP_PAGE2 = _('%s_-_Entering_and_editing_data:_detailed_-_part_1') % URL_MANUAL_PAGE +WIKI_HELP_SEC2 = _('Select_Father_selector') + +# https://gramps-project.org/wiki/index.php?title=Gramps_4.2_Wiki_Manual_-_Entering_and_editing_data:_detailed_-_part_1#Select_Mother_selector +WIKI_HELP_PAGE3 = _('%s_-_Entering_and_editing_data:_detailed_-_part_1') % URL_MANUAL_PAGE +WIKI_HELP_SEC3 = _('Select_Mother_selector') #------------------------------------------------------------------------- # diff --git a/gramps/gui/selectors/selectplace.py b/gramps/gui/selectors/selectplace.py index ec5f8f176..6a1604520 100644 --- a/gramps/gui/selectors/selectplace.py +++ b/gramps/gui/selectors/selectplace.py @@ -35,6 +35,16 @@ _ = glocale.translation.gettext #------------------------------------------------------------------------- from ..views.treemodels.placemodel import PlaceTreeModel from .baseselector import BaseSelector +from gramps.gui.display import display_help +from gramps.gen.const import URL_MANUAL_PAGE + +#------------------------------------------------------------------------- +# +# Constants +# +#------------------------------------------------------------------------- +WIKI_HELP_PAGE = _('%s_-_Entering_and_editing_data:_detailed_-_part_2') % URL_MANUAL_PAGE +WIKI_HELP_SEC = _('Select_Place_selector') #------------------------------------------------------------------------- # diff --git a/gramps/gui/selectors/selectrepository.py b/gramps/gui/selectors/selectrepository.py index a3ce364a3..0db3b19f7 100644 --- a/gramps/gui/selectors/selectrepository.py +++ b/gramps/gui/selectors/selectrepository.py @@ -34,6 +34,16 @@ _ = glocale.translation.gettext #------------------------------------------------------------------------- from ..views.treemodels import RepositoryModel from .baseselector import BaseSelector +from gramps.gui.display import display_help +from gramps.gen.const import URL_MANUAL_PAGE + +#------------------------------------------------------------------------- +# +# Constants +# +#------------------------------------------------------------------------- +WIKI_HELP_PAGE = _('%s_-_Entering_and_editing_data:_detailed_-_part_2') % URL_MANUAL_PAGE +WIKI_HELP_SEC = _('Repositories') #------------------------------------------------------------------------- # diff --git a/gramps/gui/selectors/selectsource.py b/gramps/gui/selectors/selectsource.py index b695f2717..949f1f7ca 100644 --- a/gramps/gui/selectors/selectsource.py +++ b/gramps/gui/selectors/selectsource.py @@ -34,6 +34,16 @@ _ = glocale.translation.gettext #------------------------------------------------------------------------- from ..views.treemodels import SourceModel from .baseselector import BaseSelector +from gramps.gui.display import display_help +from gramps.gen.const import URL_MANUAL_PAGE + +#------------------------------------------------------------------------- +# +# Constants +# +#------------------------------------------------------------------------- +WIKI_HELP_PAGE = _('%s_-_xxx') % URL_MANUAL_PAGE +WIKI_HELP_SEC = _('xxxx') #------------------------------------------------------------------------- #