Rename placeview and placemodel classes for consistency

svn: r14216
This commit is contained in:
Nick Hall
2010-02-04 21:05:15 +00:00
parent 31d920ef29
commit a818db8817
10 changed files with 298 additions and 399 deletions

View File

@@ -19,9 +19,9 @@ pkgdata_PYTHON = \
pedigreeviewext.gpr.py \
personlistview.py \
persontreeview.py \
placetreeview.gpr.py \
placelistview.py \
placetreeview.py \
placeview.py \
placetreeview.gpr.py \
relview.py \
repoview.py \
sourceview.py \

View File

@@ -20,7 +20,7 @@
# $Id$
"""
Place View
Place List View
"""
#-------------------------------------------------------------------------
@@ -29,7 +29,7 @@ Place View
#
#-------------------------------------------------------------------------
from libplaceview import PlaceBaseView
from gui.views.treemodels import PlaceModel
from gui.views.treemodels.placemodel import PlaceListModel
#-------------------------------------------------------------------------
#
@@ -40,14 +40,14 @@ from gen.ggettext import gettext as _
#-------------------------------------------------------------------------
#
# PlaceView
# PlaceListView
#
#-------------------------------------------------------------------------
class PlaceView(PlaceBaseView):
class PlaceListView(PlaceBaseView):
"""
Flat place view. (Original code in PlaceBaseView).
"""
def __init__(self, dbstate, uistate):
PlaceBaseView.__init__(self, dbstate, uistate,
_('Places'), PlaceModel,
_('Places'), PlaceListModel,
nav_group=0)

View File

@@ -30,7 +30,7 @@ Place Tree View
#-------------------------------------------------------------------------
from gui.views.listview import LISTTREE
from libplaceview import PlaceBaseView
from gui.views.treemodels.placetreemodel import PlaceTreeModel, COUNTRYLEVELS
from gui.views.treemodels.placemodel import PlaceTreeModel, COUNTRYLEVELS
import gen.lib
import Errors
from gui.editors import EditPlace

View File

@@ -154,16 +154,16 @@ viewclass = 'PersonListView',
order = END,
)
register(VIEW,
id = 'placeview',
id = 'placelistview',
name = _("Place View"),
description = _("The view showing all the places of the family tree"),
version = '1.0',
status = STABLE,
fname = 'placeview.py',
fname = 'placelistview.py',
authors = [u"The Gramps project"],
authors_email = ["http://gramps-project.org"],
category = ("Places", _("Places")),
viewclass = 'PlaceView',
viewclass = 'PlaceListView',
order = START,
)