GEPS008: Moved GrampsDisplay module

svn: r19769
This commit is contained in:
Nick Hall 2012-06-05 22:53:35 +00:00
parent eb369d08dd
commit ce1bb72219
49 changed files with 110 additions and 110 deletions

View File

@ -7,7 +7,6 @@
src/AutoComp.py src/AutoComp.py
src/DdTargets.py src/DdTargets.py
src/Errors.py src/Errors.py
src/GrampsDisplay.py
src/ImgManip.py src/ImgManip.py
src/ListModel.py src/ListModel.py
src/RecentFiles.py src/RecentFiles.py
@ -229,6 +228,7 @@ src/gen/utils/callman.py
# gui - GUI code # gui - GUI code
src/gui/__init__.py src/gui/__init__.py
src/gui/dbguielement.py src/gui/dbguielement.py
src/gui/display.py
src/gui/glade.py src/gui/glade.py
src/gui/managedwindow.py src/gui/managedwindow.py
src/gui/navigator.py src/gui/navigator.py

View File

@ -51,7 +51,7 @@ import gtk
# gramps modules # gramps modules
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
import GrampsDisplay from gui.display import display_help
import ListModel import ListModel
import Utils import Utils
import const import const
@ -300,7 +300,7 @@ class Bookmarks :
def help_clicked(self): def help_clicked(self):
"""Display the relevant portion of GRAMPS manual.""" """Display the relevant portion of GRAMPS manual."""
GrampsDisplay.help(webpage=WIKI_HELP_PAGE, section=WIKI_HELP_SEC) display_help(webpage=WIKI_HELP_PAGE, section=WIKI_HELP_SEC)
class ListBookmarks(Bookmarks): class ListBookmarks(Bookmarks):

View File

@ -65,7 +65,7 @@ from gen.ggettext import sgettext as _
from gen.lib.date import Date, NextYear from gen.lib.date import Date, NextYear
import gen.datehandler import gen.datehandler
import const import const
import GrampsDisplay from gui.display import display_help
from gui.managedwindow import ManagedWindow from gui.managedwindow import ManagedWindow
from Errors import ValidationError from Errors import ValidationError
from gui.glade import Glade from gui.glade import Glade
@ -280,7 +280,7 @@ class DateEditorDialog(ManagedWindow):
while True: while True:
response = self.window.run() response = self.window.run()
if response == gtk.RESPONSE_HELP: if response == gtk.RESPONSE_HELP:
GrampsDisplay.help(webpage=WIKI_HELP_PAGE, display_help(webpage=WIKI_HELP_PAGE,
section=WIKI_HELP_SEC) section=WIKI_HELP_SEC)
elif response == gtk.RESPONSE_DELETE_EVENT: elif response == gtk.RESPONSE_DELETE_EVENT:
break break

View File

@ -24,7 +24,6 @@ gdir_PYTHON = \
Errors.py\ Errors.py\
ExportAssistant.py\ ExportAssistant.py\
ExportOptions.py\ ExportOptions.py\
GrampsDisplay.py\
gramps.py\ gramps.py\
ImgManip.py\ ImgManip.py\
LdsUtils.py \ LdsUtils.py \

View File

@ -48,7 +48,7 @@ import const
import config import config
import gen.lib import gen.lib
import gen.datehandler import gen.datehandler
import GrampsDisplay from gui.display import display_help
from gui.managedwindow import ManagedWindow from gui.managedwindow import ManagedWindow
from gen.ggettext import sgettext as _ from gen.ggettext import sgettext as _
from TransUtils import trans_objclass from TransUtils import trans_objclass
@ -1371,7 +1371,7 @@ class ScratchPadWindow(ManagedWindow):
def on_help_clicked(self, obj): def on_help_clicked(self, obj):
"""Display the relevant portion of GRAMPS manual""" """Display the relevant portion of GRAMPS manual"""
GrampsDisplay.help(webpage=WIKI_HELP_PAGE, section=WIKI_HELP_SEC) display_help(webpage=WIKI_HELP_PAGE, section=WIKI_HELP_SEC)
def on_clear_clicked(self, obj): def on_clear_clicked(self, obj):
"""Deletes the selected object from the object list""" """Deletes the selected object from the object list"""

View File

@ -26,6 +26,7 @@ pkgpython_PYTHON = \
dbguielement.py \ dbguielement.py \
dbloader.py \ dbloader.py \
dbman.py \ dbman.py \
display.py \
displaystate.py \ displaystate.py \
filtereditor.py \ filtereditor.py \
glade.py \ glade.py \

View File

@ -52,7 +52,7 @@ import gtk
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
import const import const
from GrampsDisplay import url as display_url from gui.display import display_url
import config import config
if config.get('preferences.use-bsddb3'): if config.get('preferences.use-bsddb3'):

View File

@ -63,7 +63,7 @@ try:
except KeyError: except KeyError:
pass pass
def help(webpage='', section=''): def display_help(webpage='', section=''):
""" """
Display the specified webpage and section from the Gramps 3.0 wiki. Display the specified webpage and section from the Gramps 3.0 wiki.
""" """
@ -75,7 +75,7 @@ def help(webpage='', section=''):
link = link + '#' + section link = link + '#' + section
url(link) url(link)
def url(link, uistate=None): def display_url(link, uistate=None):
""" """
Open the specified URL in a browser. Open the specified URL in a browser.
""" """

View File

@ -55,7 +55,7 @@ import config
import Utils import Utils
import gen.mime import gen.mime
import ThumbNails import ThumbNails
import GrampsDisplay from gui.display import display_help
from gui.managedwindow import ManagedWindow from gui.managedwindow import ManagedWindow
from QuestionDialog import ErrorDialog, WarningDialog from QuestionDialog import ErrorDialog, WarningDialog
from gui.glade import Glade from gui.glade import Glade
@ -125,7 +125,7 @@ class AddMediaObject(ManagedWindow):
self.cancel_button = self.glade.get_object('button81') self.cancel_button = self.glade.get_object('button81')
self.ok_button.connect('clicked', self.save) self.ok_button.connect('clicked', self.save)
self.ok_button.set_sensitive(not self.dbase.readonly) self.ok_button.set_sensitive(not self.dbase.readonly)
self.help_button.connect('clicked', lambda x: GrampsDisplay.help()) self.help_button.connect('clicked', lambda x: display_help())
self.cancel_button.connect('clicked', self.close) self.cancel_button.connect('clicked', self.close)
self.show() self.show()
self.modal_call() self.modal_call()

View File

@ -118,8 +118,8 @@ class WebEmbedList(EmbeddedList):
] ]
def jump_button_clicked(self, obj): def jump_button_clicked(self, obj):
import GrampsDisplay from gui.display import display_url
url = self.get_selected() url = self.get_selected()
if url.get_path(): if url.get_path():
GrampsDisplay.url(url.get_path()) display_url(url.get_path())

View File

@ -44,7 +44,7 @@ import gtk
import const import const
import gen.lib import gen.lib
from gen.db import DbTxn from gen.db import DbTxn
import GrampsDisplay from gui.display import display_help
from editprimary import EditPrimary from editprimary import EditPrimary
from objectentries import PlaceEntry from objectentries import PlaceEntry
from gui.glade import Glade from gui.glade import Glade
@ -223,7 +223,7 @@ class EditEvent(EditPrimary):
def help_clicked(self, obj): def help_clicked(self, obj):
"""Display the relevant portion of GRAMPS manual""" """Display the relevant portion of GRAMPS manual"""
GrampsDisplay.help(webpage=WIKI_HELP_PAGE, section=WIKI_HELP_SEC) display_help(webpage=WIKI_HELP_PAGE, section=WIKI_HELP_SEC)
def save(self, *obj): def save(self, *obj):
self.ok_button.set_sensitive(False) self.ok_button.set_sensitive(False)
if self.object_is_empty(): if self.object_is_empty():

View File

@ -35,7 +35,7 @@ import re
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
from gen.ggettext import gettext as _ from gen.ggettext import gettext as _
from gui.managedwindow import ManagedWindow from gui.managedwindow import ManagedWindow
import GrampsDisplay from gui.display import display_help
from gui.glade import Glade from gui.glade import Glade
from gen.simple import SimpleAccess from gen.simple import SimpleAccess
@ -233,5 +233,5 @@ class EditLink(ManagedWindow):
button.connect('clicked',self.close) button.connect('clicked',self.close)
def define_help_button(self, button, webpage='', section=''): def define_help_button(self, button, webpage='', section=''):
button.connect('clicked', lambda x: GrampsDisplay.help(webpage, button.connect('clicked', lambda x: display_help(webpage,
section)) section))

View File

@ -45,7 +45,7 @@ import gen.datehandler
from gen.display.name import displayer as name_displayer from gen.display.name import displayer as name_displayer
import config import config
import gui.utils import gui.utils
import GrampsDisplay from gui.display import display_help
from QuestionDialog import SaveDialog from QuestionDialog import SaveDialog
import gen.lib import gen.lib
from gui.dbguielement import DbGUIElement from gui.dbguielement import DbGUIElement
@ -173,7 +173,7 @@ class EditPrimary(ManagedWindow, DbGUIElement):
button.connect('clicked', self.close) button.connect('clicked', self.close)
def define_help_button(self, button, webpage='', section=''): def define_help_button(self, button, webpage='', section=''):
button.connect('clicked', lambda x: GrampsDisplay.help(webpage, button.connect('clicked', lambda x: display_help(webpage,
section)) section))
def _do_close(self, *obj): def _do_close(self, *obj):

View File

@ -198,8 +198,8 @@ class EditReference(ManagedWindow, DbGUIElement):
self.close() self.close()
def define_help_button(self, button, webpage='', section=''): def define_help_button(self, button, webpage='', section=''):
import GrampsDisplay from gui.display import display_help
button.connect('clicked', lambda x: GrampsDisplay.help(webpage, button.connect('clicked', lambda x: display_help(webpage,
section)) section))
button.set_sensitive(True) button.set_sensitive(True)

View File

@ -22,7 +22,7 @@
# $Id$ # $Id$
from gui.managedwindow import ManagedWindow from gui.managedwindow import ManagedWindow
import GrampsDisplay from gui.display import display_help
import config import config
from gui.dbguielement import DbGUIElement from gui.dbguielement import DbGUIElement
@ -130,7 +130,7 @@ class EditSecondary(ManagedWindow, DbGUIElement):
button.connect('clicked', self.canceledits) button.connect('clicked', self.canceledits)
def define_help_button(self, button, webpage='', section=''): def define_help_button(self, button, webpage='', section=''):
button.connect('clicked', lambda x: GrampsDisplay.help(webpage, button.connect('clicked', lambda x: display_help(webpage,
section)) section))
def canceledits(self, *obj): def canceledits(self, *obj):

View File

@ -68,8 +68,8 @@ class EditUrl(EditSecondary):
def jump_to(self, obj): def jump_to(self, obj):
if self.obj.get_path(): if self.obj.get_path():
import GrampsDisplay from gui.display import display_url
GrampsDisplay.url(self.obj.get_path()) display_url(self.obj.get_path())
def _setup_fields(self): def _setup_fields(self):
self.des = MonitoredEntry(self.top.get_object("url_des"), self.des = MonitoredEntry(self.top.get_object("url_des"),

View File

@ -60,7 +60,7 @@ import ListModel
from gui.managedwindow import ManagedWindow from gui.managedwindow import ManagedWindow
from QuestionDialog import QuestionDialog from QuestionDialog import QuestionDialog
import const import const
import GrampsDisplay from gui.display import display_help
import Errors import Errors
from gen.ggettext import sgettext as _ from gen.ggettext import sgettext as _
import gen.lib import gen.lib
@ -666,7 +666,7 @@ class EditRule(ManagedWindow):
""" """
Display the relevant portion of GRAMPS manual. Display the relevant portion of GRAMPS manual.
""" """
GrampsDisplay.help() display_help()
def close_window(self, obj): def close_window(self, obj):
self.close() self.close()
@ -777,7 +777,7 @@ class EditFilter(ManagedWindow):
def on_help_clicked(self, obj): def on_help_clicked(self, obj):
"""Display the relevant portion of GRAMPS manual""" """Display the relevant portion of GRAMPS manual"""
GrampsDisplay.help(webpage=WIKI_HELP_PAGE) display_help(webpage=WIKI_HELP_PAGE)
def close_window(self, obj): def close_window(self, obj):
self.close() self.close()
@ -1034,7 +1034,7 @@ class FilterEditor(ManagedWindow):
def help_clicked(self, obj): def help_clicked(self, obj):
"""Display the relevant portion of GRAMPS manual""" """Display the relevant portion of GRAMPS manual"""
GrampsDisplay.help() display_help()
def filter_select_row(self, obj): def filter_select_row(self, obj):
store, node = self.clist.get_selected() store, node = self.clist.get_selected()

View File

@ -48,7 +48,7 @@ import gtk
import ConfigParser import ConfigParser
import const import const
from gui.managedwindow import ManagedWindow from gui.managedwindow import ManagedWindow
import GrampsDisplay from gui.display import display_help, display_url
from gui.widgets.grampletpane import (AVAILABLE_GRAMPLETS, from gui.widgets.grampletpane import (AVAILABLE_GRAMPLETS,
GET_AVAILABLE_GRAMPLETS, GET_AVAILABLE_GRAMPLETS,
GET_GRAMPLET_LIST, GET_GRAMPLET_LIST,
@ -593,11 +593,11 @@ class DetachedWindow(ManagedWindow):
# translated name: # translated name:
if self.gramplet.help_url: if self.gramplet.help_url:
if self.gramplet.help_url.startswith("http://"): if self.gramplet.help_url.startswith("http://"):
GrampsDisplay.url(self.gramplet.help_url) display_url(self.gramplet.help_url)
else: else:
GrampsDisplay.help(self.gramplet.help_url) display_help(self.gramplet.help_url)
else: else:
GrampsDisplay.help(WIKI_HELP_PAGE, display_help(WIKI_HELP_PAGE,
self.gramplet.tname.replace(" ", "_")) self.gramplet.tname.replace(" ", "_"))
def get_notebook(self): def get_notebook(self):

View File

@ -44,7 +44,7 @@ else:
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
import const import const
import GrampsDisplay from gui.display import display_help, display_url
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# #
@ -132,7 +132,7 @@ class ErrorReportAssistant(gtk.Assistant):
""" """
Start an email client to send the report. Start an email client to send the report.
""" """
GrampsDisplay.url('mailto:gramps-bugs@lists.sourceforge.net?subject=' display_url('mailto:gramps-bugs@lists.sourceforge.net?subject='
'"bug report"&body="%s"' \ '"bug report"&body="%s"' \
% self._final_report_text_buffer.get_text( % self._final_report_text_buffer.get_text(
self._final_report_text_buffer.get_start_iter(), self._final_report_text_buffer.get_start_iter(),
@ -142,7 +142,7 @@ class ErrorReportAssistant(gtk.Assistant):
""" """
Start a web browser to report the bug. Start a web browser to report the bug.
""" """
GrampsDisplay.url('http://bugs.gramps-project.org/bug_report_page.php') display_url('http://bugs.gramps-project.org/bug_report_page.php')
def _get_sys_information(self): def _get_sys_information(self):
""" """

View File

@ -35,7 +35,7 @@ import gtk
import const import const
from gen.ggettext import sgettext as _ from gen.ggettext import sgettext as _
from _errorreportassistant import ErrorReportAssistant from _errorreportassistant import ErrorReportAssistant
import GrampsDisplay from gui.display import display_help
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# #
@ -78,7 +78,7 @@ class ErrorView(object):
def help_clicked(self): def help_clicked(self):
"""Display the relevant portion of GRAMPS manual""" """Display the relevant portion of GRAMPS manual"""
GrampsDisplay.help(WIKI_HELP_PAGE, WIKI_HELP_SEC) display_help(WIKI_HELP_PAGE, WIKI_HELP_SEC)
def draw_window(self): def draw_window(self):
title = "%s - Gramps" % _("Error Report") title = "%s - Gramps" % _("Error Report")

View File

@ -32,7 +32,7 @@ Provide merge capabilities for citations.
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
from gen.ggettext import sgettext as _ from gen.ggettext import sgettext as _
import const import const
import GrampsDisplay from gui.display import display_help
from gui.managedwindow import ManagedWindow from gui.managedwindow import ManagedWindow
import gen.datehandler import gen.datehandler
from Utils import confidence from Utils import confidence
@ -137,7 +137,7 @@ class MergeCitation(ManagedWindow):
def cb_help(self, obj): def cb_help(self, obj):
"""Display the relevant portion of Gramps manual""" """Display the relevant portion of Gramps manual"""
GrampsDisplay.help(webpage = WIKI_HELP_PAGE, section = WIKI_HELP_SEC) display_help(webpage = WIKI_HELP_PAGE, section = WIKI_HELP_SEC)
def cb_merge(self, obj): def cb_merge(self, obj):
""" """

View File

@ -31,7 +31,7 @@ Provide merge capabilities for events.
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
from gen.ggettext import sgettext as _ from gen.ggettext import sgettext as _
import const import const
import GrampsDisplay from gui.display import display_help
from gui.managedwindow import ManagedWindow from gui.managedwindow import ManagedWindow
import gen.datehandler import gen.datehandler
import Utils import Utils
@ -152,7 +152,7 @@ class MergeEvent(ManagedWindow):
def cb_help(self, obj): def cb_help(self, obj):
"""Display the relevant portion of the Gramps manual""" """Display the relevant portion of the Gramps manual"""
GrampsDisplay.help(webpage = WIKI_HELP_PAGE, section = WIKI_HELP_SEC) display_help(webpage = WIKI_HELP_PAGE, section = WIKI_HELP_SEC)
def cb_merge(self, obj): def cb_merge(self, obj):
""" """

View File

@ -32,7 +32,7 @@ Provide merge capabilities for families.
from gen.ggettext import sgettext as _ from gen.ggettext import sgettext as _
from gen.display.name import displayer as name_displayer from gen.display.name import displayer as name_displayer
import const import const
import GrampsDisplay from gui.display import display_help
from Errors import MergeError from Errors import MergeError
from QuestionDialog import ErrorDialog from QuestionDialog import ErrorDialog
from gui.managedwindow import ManagedWindow from gui.managedwindow import ManagedWindow
@ -185,7 +185,7 @@ class MergeFamily(ManagedWindow):
def cb_help(self, obj): def cb_help(self, obj):
"""Display the relevant portion of the Gramps manual""" """Display the relevant portion of the Gramps manual"""
GrampsDisplay.help(webpage = WIKI_HELP_PAGE, section = WIKI_HELP_SEC) display_help(webpage = WIKI_HELP_PAGE, section = WIKI_HELP_SEC)
def cb_merge(self, obj): def cb_merge(self, obj):
""" """

View File

@ -31,7 +31,7 @@ Provide merge capabilities for media objects.
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
from gen.ggettext import sgettext as _ from gen.ggettext import sgettext as _
import const import const
import GrampsDisplay from gui.display import display_help
from gui.managedwindow import ManagedWindow from gui.managedwindow import ManagedWindow
import gen.datehandler import gen.datehandler
from gen.merge import MergeMediaQuery from gen.merge import MergeMediaQuery
@ -135,7 +135,7 @@ class MergeMedia(ManagedWindow):
def cb_help(self, obj): def cb_help(self, obj):
"""Display the relevant portion of the Gramps manual""" """Display the relevant portion of the Gramps manual"""
GrampsDisplay.help(webpage = WIKI_HELP_PAGE, section = WIKI_HELP_SEC) display_help(webpage = WIKI_HELP_PAGE, section = WIKI_HELP_SEC)
def cb_merge(self, obj): def cb_merge(self, obj):
""" """

View File

@ -31,7 +31,7 @@ Provide merge capabilities for notes.
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
from gen.ggettext import sgettext as _ from gen.ggettext import sgettext as _
import const import const
import GrampsDisplay from gui.display import display_help
from gui.managedwindow import ManagedWindow from gui.managedwindow import ManagedWindow
from gui.widgets.styledtextbuffer import StyledTextBuffer from gui.widgets.styledtextbuffer import StyledTextBuffer
from gen.merge import MergeNoteQuery from gen.merge import MergeNoteQuery
@ -147,7 +147,7 @@ class MergeNote(ManagedWindow):
def cb_help(self, obj): def cb_help(self, obj):
"""Display the relevant portion of the Gramps manual""" """Display the relevant portion of the Gramps manual"""
GrampsDisplay.help(webpage = WIKI_HELP_PAGE, section= WIKI_HELP_SEC) display_help(webpage = WIKI_HELP_PAGE, section= WIKI_HELP_SEC)
def cb_merge(self, obj): def cb_merge(self, obj):
""" """

View File

@ -42,7 +42,7 @@ from gen.ggettext import sgettext as _
from gen.plug.report import utils as ReportUtils from gen.plug.report import utils as ReportUtils
from gen.display.name import displayer as name_displayer from gen.display.name import displayer as name_displayer
import const import const
import GrampsDisplay from gui.display import display_help
import gen.datehandler import gen.datehandler
from Errors import MergeError from Errors import MergeError
from QuestionDialog import ErrorDialog from QuestionDialog import ErrorDialog
@ -302,7 +302,7 @@ class MergePerson(ManagedWindow):
def cb_help(self, obj): def cb_help(self, obj):
"""Display the relevant portion of Gramps manual""" """Display the relevant portion of Gramps manual"""
GrampsDisplay.help(webpage = WIKI_HELP_PAGE, section = WIKI_HELP_SEC) display_help(webpage = WIKI_HELP_PAGE, section = WIKI_HELP_SEC)
def cb_merge(self, obj): def cb_merge(self, obj):
""" """

View File

@ -39,7 +39,7 @@ import gtk
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
from gen.ggettext import sgettext as _ from gen.ggettext import sgettext as _
import const import const
import GrampsDisplay from gui.display import display_help
from gui.managedwindow import ManagedWindow from gui.managedwindow import ManagedWindow
from gen.merge import MergePlaceQuery from gen.merge import MergePlaceQuery
@ -156,7 +156,7 @@ class MergePlace(ManagedWindow):
def cb_help(self, obj): def cb_help(self, obj):
"""Display the relevant portion of Gramps manual""" """Display the relevant portion of Gramps manual"""
GrampsDisplay.help(webpage = WIKI_HELP_PAGE, section = WIKI_HELP_SEC) display_help(webpage = WIKI_HELP_PAGE, section = WIKI_HELP_SEC)
def cb_merge(self, obj): def cb_merge(self, obj):
""" """

View File

@ -31,7 +31,7 @@ Provide merge capabilities for repositories.
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
from gen.ggettext import sgettext as _ from gen.ggettext import sgettext as _
import const import const
import GrampsDisplay from gui.display import display_help
from gui.managedwindow import ManagedWindow from gui.managedwindow import ManagedWindow
from gen.merge import MergeRepositoryQuery from gen.merge import MergeRepositoryQuery
@ -123,7 +123,7 @@ class MergeRepository(ManagedWindow):
def cb_help(self, obj): def cb_help(self, obj):
"""Display the relevant portion of the Gramps manual""" """Display the relevant portion of the Gramps manual"""
GrampsDisplay.help(webpage = WIKI_HELP_PAGE, section = WIKI_HELP_SEC) display_help(webpage = WIKI_HELP_PAGE, section = WIKI_HELP_SEC)
def cb_merge(self, obj): def cb_merge(self, obj):
""" """

View File

@ -33,7 +33,7 @@ Provide merge capabilities for sources.
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
from gen.ggettext import sgettext as _ from gen.ggettext import sgettext as _
import const import const
import GrampsDisplay from gui.display import display_help
from gui.managedwindow import ManagedWindow from gui.managedwindow import ManagedWindow
from gen.merge import MergeSourceQuery from gen.merge import MergeSourceQuery
@ -146,7 +146,7 @@ class MergeSource(ManagedWindow):
def cb_help(self, obj): def cb_help(self, obj):
"""Display the relevant portion of Gramps manual""" """Display the relevant portion of Gramps manual"""
GrampsDisplay.help(webpage = WIKI_HELP_PAGE, section = WIKI_HELP_SEC) display_help(webpage = WIKI_HELP_PAGE, section = WIKI_HELP_SEC)
def cb_merge(self, obj): def cb_merge(self, obj):
""" """

View File

@ -580,8 +580,8 @@ class ReportDialog(ManagedWindow):
pass pass
def on_help_clicked(self, *obj): def on_help_clicked(self, *obj):
import GrampsDisplay from gui.display import display_help
GrampsDisplay.help(URL_REPORT_PAGE, self.report_name.replace(" ", "_")) display_help(URL_REPORT_PAGE, self.report_name.replace(" ", "_"))
def on_style_edit_clicked(self, *obj): def on_style_edit_clicked(self, *obj):
"""The user has clicked on the 'Edit Styles' button. Create a """The user has clicked on the 'Edit Styles' button. Create a

View File

@ -88,7 +88,7 @@ from gui import widgets
from gui.undohistory import UndoHistory from gui.undohistory import UndoHistory
import Utils import Utils
from gui.dbloader import DbLoader from gui.dbloader import DbLoader
import GrampsDisplay from gui.display import display_help, display_url
from gui.widgets.progressdialog import ProgressMonitor, GtkProgressDialog from gui.widgets.progressdialog import ProgressMonitor, GtkProgressDialog
from gui.configure import GrampsPreferences from gui.configure import GrampsPreferences
from gen.db.backup import backup from gen.db.backup import backup
@ -1820,43 +1820,43 @@ def key_bindings(obj):
""" """
Display key bindings Display key bindings
""" """
GrampsDisplay.help(webpage=WIKI_HELP_PAGE_KEY) display_help(webpage=WIKI_HELP_PAGE_KEY)
def manual_activate(obj): def manual_activate(obj):
""" """
Display the GRAMPS manual Display the GRAMPS manual
""" """
GrampsDisplay.help(webpage=WIKI_HELP_PAGE_MAN) display_help(webpage=WIKI_HELP_PAGE_MAN)
def report_bug_activate(obj): def report_bug_activate(obj):
""" """
Display the bug tracker web site Display the bug tracker web site
""" """
GrampsDisplay.url(const.URL_BUGTRACKER) display_url(const.URL_BUGTRACKER)
def home_page_activate(obj): def home_page_activate(obj):
""" """
Display the GRAMPS home page Display the GRAMPS home page
""" """
GrampsDisplay.url(const.URL_HOMEPAGE) display_url(const.URL_HOMEPAGE)
def mailing_lists_activate(obj): def mailing_lists_activate(obj):
""" """
Display the mailing list web page Display the mailing list web page
""" """
GrampsDisplay.url(const.URL_MAILINGLIST) display_url(const.URL_MAILINGLIST)
def extra_plugins_activate(obj): def extra_plugins_activate(obj):
""" """
Display the wiki page with extra plugins Display the wiki page with extra plugins
""" """
GrampsDisplay.url(const.URL_WIKISTRING+const.WIKI_EXTRAPLUGINS) display_url(const.URL_WIKISTRING+const.WIKI_EXTRAPLUGINS)
def faq_activate(obj): def faq_activate(obj):
""" """
Display FAQ Display FAQ
""" """
GrampsDisplay.help(webpage=WIKI_HELP_PAGE_FAQ) display_help(webpage=WIKI_HELP_PAGE_FAQ)
def by_menu_name(first, second): def by_menu_name(first, second):
""" """

View File

@ -47,7 +47,7 @@ from gen.db import DbTxn
from gui.dbguielement import DbGUIElement from gui.dbguielement import DbGUIElement
from ListModel import ListModel, NOSORT, COLOR, INTEGER from ListModel import ListModel, NOSORT, COLOR, INTEGER
import const import const
import GrampsDisplay from gui.display import display_help
from QuestionDialog import ErrorDialog, QuestionDialog2 from QuestionDialog import ErrorDialog, QuestionDialog2
import gui.widgets.progressdialog as progressdlg import gui.widgets.progressdialog as progressdlg
@ -316,7 +316,7 @@ class OrganizeTagsDialog(object):
while True: while True:
response = self.top.run() response = self.top.run()
if response == gtk.RESPONSE_HELP: if response == gtk.RESPONSE_HELP:
GrampsDisplay.help(webpage=WIKI_HELP_PAGE, display_help(webpage=WIKI_HELP_PAGE,
section=WIKI_HELP_SEC) section=WIKI_HELP_SEC)
else: else:
break break

View File

@ -48,7 +48,7 @@ from gui.managedwindow import ManagedWindow
import ConfigParser import ConfigParser
import gui.utils import gui.utils
from gui.plug.quick import run_quick_report_by_name from gui.plug.quick import run_quick_report_by_name
import GrampsDisplay from gui.display import display_help, display_url
from gui.glade import Glade from gui.glade import Glade
from gui.pluginmanager import GuiPluginManager from gui.pluginmanager import GuiPluginManager
from gui.widgets.undoablebuffer import UndoableBuffer from gui.widgets.undoablebuffer import UndoableBuffer
@ -244,11 +244,11 @@ class GrampletWindow(ManagedWindow):
# translated name: # translated name:
if self.gramplet.help_url: if self.gramplet.help_url:
if self.gramplet.help_url.startswith("http://"): if self.gramplet.help_url.startswith("http://"):
GrampsDisplay.url(self.gramplet.help_url) display_url(self.gramplet.help_url)
else: else:
GrampsDisplay.help(self.gramplet.help_url) display_help(self.gramplet.help_url)
else: else:
GrampsDisplay.help(WIKI_HELP_PAGE, display_help(WIKI_HELP_PAGE,
self.gramplet.tname.replace(" ", "_")) self.gramplet.tname.replace(" ", "_"))
def build_menu_names(self, obj): def build_menu_names(self, obj):
@ -638,16 +638,16 @@ class GuiGramplet(object):
return True return True
elif link_type == 'URL': elif link_type == 'URL':
if event.button == 1: # left mouse if event.button == 1: # left mouse
GrampsDisplay.url(handle) display_url(handle)
return True return True
elif link_type == 'WIKI': elif link_type == 'WIKI':
if event.button == 1: # left mouse if event.button == 1: # left mouse
handle = handle.replace(" ", "_") handle = handle.replace(" ", "_")
if "#" in handle: if "#" in handle:
page, section = handle.split("#", 1) page, section = handle.split("#", 1)
GrampsDisplay.help(page, section) display_help(page, section)
else: else:
GrampsDisplay.help(handle) display_help(handle)
return True return True
elif link_type == 'Family': elif link_type == 'Family':
family = self.dbstate.db.get_family_from_handle(handle) family = self.dbstate.db.get_family_from_handle(handle)

View File

@ -58,7 +58,7 @@ from gui.widgets.valueaction import ValueAction
from gui.widgets.toolcomboentry import ToolComboEntry from gui.widgets.toolcomboentry import ToolComboEntry
from gui.widgets.springseparator import SpringSeparatorAction from gui.widgets.springseparator import SpringSeparatorAction
from Spell import Spell from Spell import Spell
from GrampsDisplay import url as display_url from gui.display import display_url
import config import config
from constfunc import has_display from constfunc import has_display

View File

@ -36,7 +36,7 @@ import gtk
from gen.ggettext import sgettext as _ from gen.ggettext import sgettext as _
from gui.managedwindow import ManagedWindow from gui.managedwindow import ManagedWindow
import const import const
import GrampsDisplay from gui.display import display_help
from ListModel import ListModel, TOGGLE from ListModel import ListModel, TOGGLE
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
@ -80,7 +80,7 @@ class TagEditor(ManagedWindow):
while True: while True:
response = self.window.run() response = self.window.run()
if response == gtk.RESPONSE_HELP: if response == gtk.RESPONSE_HELP:
GrampsDisplay.help(webpage=WIKI_HELP_PAGE, display_help(webpage=WIKI_HELP_PAGE,
section=WIKI_HELP_SEC) section=WIKI_HELP_SEC)
elif response == gtk.RESPONSE_DELETE_EVENT: elif response == gtk.RESPONSE_DELETE_EVENT:
break break

View File

@ -47,7 +47,7 @@ import gtk
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
# GRAMPS modules # GRAMPS modules
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
import GrampsDisplay from gui.display import display_help
from gen.ggettext import gettext as _ from gen.ggettext import gettext as _
@ -885,7 +885,7 @@ class EditExifMetadata(Gramplet):
will bring up a Wiki help page. will bring up a Wiki help page.
""" """
addonwiki = 'Edit Image Exif Metadata' addonwiki = 'Edit Image Exif Metadata'
GrampsDisplay.help(webpage = addonwiki) display_help(webpage = addonwiki)
def activate_buttons(self, buttonlist): def activate_buttons(self, buttonlist):
""" """

View File

@ -36,7 +36,7 @@ Base class for map services. Example: open place in openstreetmap.org
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
from PlaceUtils import conv_lat_lon from PlaceUtils import conv_lat_lon
import GrampsDisplay from gui.display import display_url
class MapService(): class MapService():
"""Generic base class for map services """Generic base class for map services
@ -93,7 +93,7 @@ class MapService():
def __display(self): def __display(self):
"""Show the url in an external browser""" """Show the url in an external browser"""
if self.url: if self.url:
GrampsDisplay.url(self.url) display_url(self.url)
def _free(self): def _free(self):
"""Allow garbage collection to do it's work""" """Allow garbage collection to do it's work"""

View File

@ -40,7 +40,7 @@ import gtk
from gen.db import find_surname_name, DbTxn from gen.db import find_surname_name, DbTxn
import const import const
from gui.utils import ProgressMeter from gui.utils import ProgressMeter
import GrampsDisplay from gui.display import display_help
from gui.managedwindow import ManagedWindow from gui.managedwindow import ManagedWindow
from QuestionDialog import OkDialog from QuestionDialog import OkDialog
@ -228,7 +228,7 @@ class ChangeNames(tool.BatchTool, ManagedWindow):
def on_help_clicked(self, obj): def on_help_clicked(self, obj):
"""Display the relevant portion of GRAMPS manual""" """Display the relevant portion of GRAMPS manual"""
GrampsDisplay.help(WIKI_HELP_PAGE , WIKI_HELP_SEC) display_help(WIKI_HELP_PAGE , WIKI_HELP_SEC)
def on_ok_clicked(self, obj): def on_ok_clicked(self, obj):
with DbTxn(_("Capitalization changes"), self.db, batch=True with DbTxn(_("Capitalization changes"), self.db, batch=True

View File

@ -39,7 +39,7 @@ import gtk
import const import const
from gen.display.name import displayer as name_displayer from gen.display.name import displayer as name_displayer
from gui.plug import tool from gui.plug import tool
import GrampsDisplay from gui.display import display_help
from gui.managedwindow import ManagedWindow from gui.managedwindow import ManagedWindow
from gen.ggettext import sgettext as _ from gen.ggettext import sgettext as _
from gui.glade import Glade from gui.glade import Glade
@ -104,7 +104,7 @@ class DesBrowse(tool.ActivePersonTool, ManagedWindow):
def on_help_clicked(self, obj): def on_help_clicked(self, obj):
"""Display the relevant portion of GRAMPS manual""" """Display the relevant portion of GRAMPS manual"""
GrampsDisplay.help(webpage=WIKI_HELP_PAGE, section=WIKI_HELP_SEC) display_help(webpage=WIKI_HELP_PAGE, section=WIKI_HELP_SEC)
def add_to_tree(self, parent_id, sib_id, person_handle): def add_to_tree(self, parent_id, sib_id, person_handle):
item_id = self.model.insert_after(parent_id, sib_id) item_id = self.model.insert_after(parent_id, sib_id)

View File

@ -56,7 +56,7 @@ import gen.datehandler
from QuestionDialog import WarningDialog from QuestionDialog import WarningDialog
from gui.plug import tool from gui.plug import tool
from gen.plug.report import utils as ReportUtils from gen.plug.report import utils as ReportUtils
import GrampsDisplay from gui.display import display_help
from gui.managedwindow import ManagedWindow from gui.managedwindow import ManagedWindow
from gen.ggettext import sgettext as _ from gen.ggettext import sgettext as _
from gui.glade import Glade from gui.glade import Glade
@ -162,7 +162,7 @@ class EventComparison(tool.Tool,ManagedWindow):
def on_help_clicked(self, obj): def on_help_clicked(self, obj):
"""Display the relevant portion of GRAMPS manual""" """Display the relevant portion of GRAMPS manual"""
GrampsDisplay.help(webpage=WIKI_HELP_PAGE, section=WIKI_HELP_SEC) display_help(webpage=WIKI_HELP_PAGE, section=WIKI_HELP_SEC)
def build_menu_names(self, obj): def build_menu_names(self, obj):
return (_("Filter selection"),_("Event Comparison tool")) return (_("Filter selection"),_("Event Comparison tool"))
@ -270,7 +270,7 @@ class DisplayChart(ManagedWindow):
def on_help_clicked(self, obj): def on_help_clicked(self, obj):
"""Display the relevant portion of GRAMPS manual""" """Display the relevant portion of GRAMPS manual"""
GrampsDisplay.help(webpage=WIKI_HELP_PAGE, section=WIKI_HELP_SEC) display_help(webpage=WIKI_HELP_PAGE, section=WIKI_HELP_SEC)
def build_menu_names(self, obj): def build_menu_names(self, obj):
return (_("Event Comparison Results"),None) return (_("Event Comparison Results"),None)

View File

@ -48,7 +48,7 @@ import gobject
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
from gen.db import DbTxn from gen.db import DbTxn
from gui.managedwindow import ManagedWindow from gui.managedwindow import ManagedWindow
import GrampsDisplay from gui.display import display_help
from gui.plug import tool from gui.plug import tool
from gui.utils import ProgressMeter from gui.utils import ProgressMeter
@ -589,7 +589,7 @@ class ExtractCity(tool.BatchTool, ManagedWindow):
def on_help_clicked(self, obj): def on_help_clicked(self, obj):
"""Display the relevant portion of GRAMPS manual""" """Display the relevant portion of GRAMPS manual"""
GrampsDisplay.help() display_help()
def on_ok_clicked(self, obj): def on_ok_clicked(self, obj):
with DbTxn(_("Extract Place data"), self.db, batch=True) as self.trans: with DbTxn(_("Extract Place data"), self.db, batch=True) as self.trans:

View File

@ -46,7 +46,7 @@ from QuestionDialog import OkDialog
import ListModel import ListModel
import Errors import Errors
from gui.merge import MergePerson from gui.merge import MergePerson
import GrampsDisplay from gui.display import display_help
from gui.managedwindow import ManagedWindow from gui.managedwindow import ManagedWindow
from QuestionDialog import RunDatabaseRepair from QuestionDialog import RunDatabaseRepair
from gen.ggettext import sgettext as _ from gen.ggettext import sgettext as _
@ -142,7 +142,7 @@ class Merge(tool.Tool,ManagedWindow):
def on_help_clicked(self, obj): def on_help_clicked(self, obj):
"""Display the relevant portion of GRAMPS manual""" """Display the relevant portion of GRAMPS manual"""
GrampsDisplay.help(WIKI_HELP_PAGE , WIKI_HELP_SEC) display_help(WIKI_HELP_PAGE , WIKI_HELP_SEC)
def ancestors_of(self, p1_id, id_list): def ancestors_of(self, p1_id, id_list):
if (not p1_id) or (p1_id in id_list): if (not p1_id) or (p1_id in id_list):
@ -571,7 +571,7 @@ class ShowMatches(ManagedWindow):
def on_help_clicked(self, obj): def on_help_clicked(self, obj):
"""Display the relevant portion of GRAMPS manual""" """Display the relevant portion of GRAMPS manual"""
GrampsDisplay.help(WIKI_HELP_PAGE , WIKI_HELP_SEC) display_help(WIKI_HELP_PAGE , WIKI_HELP_SEC)
def redraw(self): def redraw(self):
list = [] list = []
for p1key, p1data in self.map.iteritems(): for p1key, p1data in self.map.iteritems():

View File

@ -50,7 +50,7 @@ import gobject
# #
#------------------------------------------------------------------------ #------------------------------------------------------------------------
import const import const
import GrampsDisplay from gui.display import display_help
from gen.lib import MediaObject from gen.lib import MediaObject
from gen.db import DbTxn from gen.db import DbTxn
from gen.updatecallback import UpdateCallback from gen.updatecallback import UpdateCallback
@ -153,7 +153,7 @@ class MediaMan(tool.Tool):
""" """
Display the relevant portion of Gramps manual. Display the relevant portion of Gramps manual.
""" """
GrampsDisplay.help(webpage=WIKI_HELP_PAGE, section=WIKI_HELP_SEC) display_help(webpage=WIKI_HELP_PAGE, section=WIKI_HELP_SEC)
def build_batch_ops(self): def build_batch_ops(self):
""" """

View File

@ -50,7 +50,7 @@ import const
from gui.utils import ProgressMeter from gui.utils import ProgressMeter
from gui.plug import tool from gui.plug import tool
from QuestionDialog import OkDialog from QuestionDialog import OkDialog
import GrampsDisplay from gui.display import display_help
import gen.datehandler import gen.datehandler
from gui.managedwindow import ManagedWindow from gui.managedwindow import ManagedWindow
from gen.ggettext import sgettext as _ from gen.ggettext import sgettext as _
@ -161,7 +161,7 @@ class MergeCitations(tool.BatchTool,ManagedWindow):
def on_help_clicked(self, obj): def on_help_clicked(self, obj):
"""Display the relevant portion of GRAMPS manual""" """Display the relevant portion of GRAMPS manual"""
GrampsDisplay.help(WIKI_HELP_PAGE , WIKI_HELP_SEC) display_help(WIKI_HELP_PAGE , WIKI_HELP_SEC)
def on_merge_ok_clicked(self, obj): def on_merge_ok_clicked(self, obj):
""" """

View File

@ -52,7 +52,7 @@ from gen.plug.report import utils as ReportUtils
from gui.editors import EditPerson, EditFamily from gui.editors import EditPerson, EditFamily
from gui.managedwindow import ManagedWindow from gui.managedwindow import ManagedWindow
from gui.utils import ProgressMeter from gui.utils import ProgressMeter
import GrampsDisplay from gui.display import display_help
from gen.ggettext import sgettext as _ from gen.ggettext import sgettext as _
from gui.glade import Glade from gui.glade import Glade
from gen.lib import Tag from gen.lib import Tag
@ -235,7 +235,7 @@ class NotRelated(tool.ActivePersonTool, ManagedWindow) :
def on_help_clicked(self, obj): def on_help_clicked(self, obj):
"""Display the relevant portion of GRAMPS manual""" """Display the relevant portion of GRAMPS manual"""
GrampsDisplay.help(WIKI_HELP_PAGE , WIKI_HELP_SEC) display_help(WIKI_HELP_PAGE , WIKI_HELP_SEC)
def applyTagClicked(self, button) : def applyTagClicked(self, button) :

View File

@ -40,7 +40,7 @@ import gtk
import const import const
import config import config
from Utils import get_researcher from Utils import get_researcher
import GrampsDisplay from gui.display import display_help
from gui.widgets import MonitoredEntry from gui.widgets import MonitoredEntry
from gui.managedwindow import ManagedWindow from gui.managedwindow import ManagedWindow
from gui.plug import tool from gui.plug import tool
@ -151,7 +151,7 @@ class OwnerEditor(tool.Tool, ManagedWindow):
def on_help_button_clicked(self, obj): def on_help_button_clicked(self, obj):
"""Display the relevant portion of GRAMPS manual""" """Display the relevant portion of GRAMPS manual"""
GrampsDisplay.help(webpage=WIKI_HELP_PAGE, section=WIKI_HELP_SEC) display_help(webpage=WIKI_HELP_PAGE, section=WIKI_HELP_SEC)
def on_button_press_event(self, obj, event): def on_button_press_event(self, obj, event):
"""Shows popup-menu for db <-> preferences copying""" """Shows popup-menu for db <-> preferences copying"""

View File

@ -49,7 +49,7 @@ from gui.utils import ProgressMeter
from gui.plug import tool from gui.plug import tool
from QuestionDialog import OkDialog from QuestionDialog import OkDialog
from gui.managedwindow import ManagedWindow from gui.managedwindow import ManagedWindow
import GrampsDisplay from gui.display import display_help
import gen.lib import gen.lib
from gen.db import DbTxn from gen.db import DbTxn
from gen.ggettext import sgettext as _ from gen.ggettext import sgettext as _
@ -479,7 +479,7 @@ class PatchNames(tool.BatchTool, ManagedWindow):
def on_help_clicked(self, obj): def on_help_clicked(self, obj):
"""Display the relevant portion of GRAMPS manual""" """Display the relevant portion of GRAMPS manual"""
GrampsDisplay.help(webpage=WIKI_HELP_PAGE, section=WIKI_HELP_SEC) display_help(webpage=WIKI_HELP_PAGE, section=WIKI_HELP_SEC)
def on_ok_clicked(self, obj): def on_ok_clicked(self, obj):
with DbTxn(_("Extract information from names"), self.db, batch=True with DbTxn(_("Extract information from names"), self.db, batch=True

View File

@ -31,7 +31,7 @@
#------------------------------------------------------------------------ #------------------------------------------------------------------------
import const import const
import soundex import soundex
import GrampsDisplay from gui.display import display_help
from gui.managedwindow import ManagedWindow from gui.managedwindow import ManagedWindow
import AutoComp import AutoComp
from gen.ggettext import sgettext as _ from gen.ggettext import sgettext as _
@ -101,7 +101,7 @@ class SoundGen(tool.Tool, ManagedWindow):
def on_help_clicked(self, obj): def on_help_clicked(self, obj):
"""Display the relevant portion of GRAMPS manual""" """Display the relevant portion of GRAMPS manual"""
GrampsDisplay.help(WIKI_HELP_PAGE , WIKI_HELP_SEC) display_help(WIKI_HELP_PAGE , WIKI_HELP_SEC)
def build_menu_names(self, obj): def build_menu_names(self, obj):
return (self.label,None) return (self.label,None)

View File

@ -58,7 +58,7 @@ import const
import gen.lib import gen.lib
from gui.editors import EditPerson, EditFamily from gui.editors import EditPerson, EditFamily
import Utils import Utils
import GrampsDisplay from gui.display import display_help
from ManagedWindow from gui.managedwindow import ManagedWindow from ManagedWindow from gui.managedwindow import ManagedWindow
from gen.updatecallback import UpdateCallback from gen.updatecallback import UpdateCallback
from gui.plug import tool from gui.plug import tool
@ -298,7 +298,7 @@ class Verify(tool.Tool, ManagedWindow, UpdateCallback):
def on_help_clicked(self, obj): def on_help_clicked(self, obj):
"""Display the relevant portion of GRAMPS manual""" """Display the relevant portion of GRAMPS manual"""
GrampsDisplay.help(webpage=WIKI_HELP_PAGE, section=WIKI_HELP_SEC) display_help(webpage=WIKI_HELP_PAGE, section=WIKI_HELP_SEC)
def on_apply_clicked(self, obj): def on_apply_clicked(self, obj):
run_button = self.top.get_object('button4') run_button = self.top.get_object('button4')