moved files to DataViews
svn: r6071
This commit is contained in:
parent
71b21cdafc
commit
34ed34e018
14
ChangeLog
14
ChangeLog
@ -1,3 +1,17 @@
|
|||||||
|
2006-03-04 Don Allingham <don@gramps-project.org>
|
||||||
|
* src/DataViews/Makefile.in: added
|
||||||
|
* src/DataViews/__init__.py: added
|
||||||
|
* src/DataViews/_MapView.py: moved to DataViews directory
|
||||||
|
* src/DataViews/_MediaView.py: moved to DataViews directory
|
||||||
|
* src/DataViews/_RepositoryView.py: moved to DataViews directory
|
||||||
|
* src/DataViews/_SourceView.py: moved to DataViews directory
|
||||||
|
* src/DataViews/_FamilyView.py: moved to DataViews directory
|
||||||
|
* src/DataViews/_FamilyList.py: moved to DataViews directory
|
||||||
|
* src/DataViews/_PlaceView.py: moved to DataViews directory
|
||||||
|
* src/DataViews/_PersonView.py: moved to DataViews directory
|
||||||
|
* src/DataViews/_PedView.py: moved to DataViews directory
|
||||||
|
* src/DataViews/_RepositoryView.py: moved to DataViews directory
|
||||||
|
|
||||||
2006-03-04 Martin Hawlisch <Martin.Hawlisch@gmx.de>
|
2006-03-04 Martin Hawlisch <Martin.Hawlisch@gmx.de>
|
||||||
* src/Models/Makefile.am: Added file
|
* src/Models/Makefile.am: Added file
|
||||||
* Editors/__init__.py: Added file
|
* Editors/__init__.py: Added file
|
||||||
|
@ -239,6 +239,7 @@ src/GrampsDb/Makefile
|
|||||||
src/docgen/Makefile
|
src/docgen/Makefile
|
||||||
src/Models/Makefile
|
src/Models/Makefile
|
||||||
src/Editors/Makefile
|
src/Editors/Makefile
|
||||||
|
src/DataViews/Makefile
|
||||||
src/plugins/Makefile
|
src/plugins/Makefile
|
||||||
src/dates/Makefile
|
src/dates/Makefile
|
||||||
src/data/Makefile
|
src/data/Makefile
|
||||||
|
28
src/DataViews/Makefile.am
Normal file
28
src/DataViews/Makefile.am
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
# This is the src/DataViews level Makefile for Gramps
|
||||||
|
# We could use GNU make's ':=' syntax for nice wildcard use,
|
||||||
|
# but that is not necessarily portable.
|
||||||
|
# If not using GNU make, then list all .py files individually
|
||||||
|
|
||||||
|
pkgdatadir = $(datadir)/@PACKAGE@/DataViews
|
||||||
|
|
||||||
|
pkgdata_PYTHON = \
|
||||||
|
__init__.py\
|
||||||
|
PersonView.py\
|
||||||
|
FamilyView.py\
|
||||||
|
FamilyList.py\
|
||||||
|
PedView.py\
|
||||||
|
EventView.py\
|
||||||
|
SourceView.py\
|
||||||
|
PlaceView.py\
|
||||||
|
MediaView.py\
|
||||||
|
MapView.py\
|
||||||
|
RepositoryView.py
|
||||||
|
|
||||||
|
pkgpyexecdir = @pkgpyexecdir@/DataViews
|
||||||
|
pkgpythondir = @pkgpythondir@/DataViews
|
||||||
|
|
||||||
|
GRAMPS_PY_MODPATH = "../"
|
||||||
|
|
||||||
|
pycheck:
|
||||||
|
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
|
||||||
|
pychecker $(pkgdata_PYTHON));
|
36
src/DataViews/__init__.py
Normal file
36
src/DataViews/__init__.py
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
# Gramps - a GTK+/GNOME based genealogy program
|
||||||
|
#
|
||||||
|
# Copyright (C) 2001-2005 Donald N. Allingham
|
||||||
|
#
|
||||||
|
# This program is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
#
|
||||||
|
|
||||||
|
# $Id: __init__.py 6067 2006-03-04 05:24:16Z dallingham $
|
||||||
|
|
||||||
|
from PersonView import PersonView
|
||||||
|
from FamilyView import FamilyView
|
||||||
|
from FamilyList import FamilyListView
|
||||||
|
from PedView import PedView
|
||||||
|
from EventView import EventView
|
||||||
|
from SourceView import SourceView
|
||||||
|
from PlaceView import PlaceView
|
||||||
|
from MediaView import MediaView
|
||||||
|
from MapView import MapView
|
||||||
|
from RepositoryView import RepositoryView
|
||||||
|
|
||||||
|
def get_views():
|
||||||
|
return [PersonView, FamilyView, FamilyListView, PedView,
|
||||||
|
EventView, SourceView, PlaceView, MediaView,
|
||||||
|
MapView, RepositoryView]
|
@ -2,21 +2,22 @@
|
|||||||
|
|
||||||
# This is the src level Makefile for Gramps
|
# This is the src level Makefile for Gramps
|
||||||
SUBDIRS = \
|
SUBDIRS = \
|
||||||
docgen \
|
|
||||||
plugins \
|
|
||||||
dates \
|
|
||||||
data \
|
|
||||||
po \
|
|
||||||
GrampsDb \
|
|
||||||
RelLib \
|
|
||||||
ObjectSelector \
|
|
||||||
GrampsLogger \
|
|
||||||
TreeViews \
|
|
||||||
Config \
|
Config \
|
||||||
|
DataViews \
|
||||||
|
Editors \
|
||||||
|
GrampsDb \
|
||||||
|
GrampsLogger \
|
||||||
Mime \
|
Mime \
|
||||||
Models \
|
Models \
|
||||||
|
ObjectSelector \
|
||||||
|
RelLib \
|
||||||
|
TreeViews \
|
||||||
|
data \
|
||||||
|
dates \
|
||||||
|
docgen \
|
||||||
images \
|
images \
|
||||||
Editors
|
plugins \
|
||||||
|
po
|
||||||
|
|
||||||
# For intl. support, how do we compile?
|
# For intl. support, how do we compile?
|
||||||
MOSTLYCLEANFILES =
|
MOSTLYCLEANFILES =
|
||||||
@ -58,10 +59,7 @@ gdir_PYTHON = \
|
|||||||
DisplayTabs.py\
|
DisplayTabs.py\
|
||||||
DisplayTrace.py\
|
DisplayTrace.py\
|
||||||
Errors.py\
|
Errors.py\
|
||||||
EventView.py\
|
|
||||||
Exporter.py\
|
Exporter.py\
|
||||||
FamilyList.py\
|
|
||||||
FamilyView.py\
|
|
||||||
FontScale.py\
|
FontScale.py\
|
||||||
GenericFilter.py\
|
GenericFilter.py\
|
||||||
GrampsCfg.py\
|
GrampsCfg.py\
|
||||||
@ -73,19 +71,13 @@ gdir_PYTHON = \
|
|||||||
ImgManip.py\
|
ImgManip.py\
|
||||||
latin_ansel.py\
|
latin_ansel.py\
|
||||||
ListModel.py\
|
ListModel.py\
|
||||||
MapView.py\
|
|
||||||
MediaView.py\
|
|
||||||
MergeData.py\
|
MergeData.py\
|
||||||
MergePeople.py\
|
MergePeople.py\
|
||||||
NameDisplay.py\
|
NameDisplay.py\
|
||||||
Navigation.py\
|
Navigation.py\
|
||||||
Options.py\
|
Options.py\
|
||||||
PageView.py\
|
|
||||||
PaperMenu.py\
|
PaperMenu.py\
|
||||||
PedView.py\
|
|
||||||
PeopleModel.py\
|
PeopleModel.py\
|
||||||
PersonView.py\
|
|
||||||
PlaceView.py\
|
|
||||||
PluginMgr.py\
|
PluginMgr.py\
|
||||||
Plugins.py\
|
Plugins.py\
|
||||||
QuestionDialog.py\
|
QuestionDialog.py\
|
||||||
@ -95,7 +87,6 @@ gdir_PYTHON = \
|
|||||||
ReportOptions.py\
|
ReportOptions.py\
|
||||||
Report.py\
|
Report.py\
|
||||||
ReportUtils.py\
|
ReportUtils.py\
|
||||||
RepositoryView.py\
|
|
||||||
ScratchPad.py\
|
ScratchPad.py\
|
||||||
SelectChild.py\
|
SelectChild.py\
|
||||||
SelectEvent.py\
|
SelectEvent.py\
|
||||||
@ -104,7 +95,6 @@ gdir_PYTHON = \
|
|||||||
Sort.py\
|
Sort.py\
|
||||||
soundex.py\
|
soundex.py\
|
||||||
Sources.py\
|
Sources.py\
|
||||||
SourceView.py\
|
|
||||||
Spell.py\
|
Spell.py\
|
||||||
SpreadSheetDoc.py\
|
SpreadSheetDoc.py\
|
||||||
StartupDialog.py\
|
StartupDialog.py\
|
||||||
|
@ -36,19 +36,9 @@ log = logging.getLogger(".")
|
|||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
import ViewManager
|
import ViewManager
|
||||||
import PersonView
|
|
||||||
import FamilyList
|
|
||||||
import RepositoryView
|
|
||||||
import GrampsDisplay
|
import GrampsDisplay
|
||||||
import RelLib
|
import RelLib
|
||||||
import GrampsDb
|
import GrampsDb
|
||||||
import PedView
|
|
||||||
import MapView
|
|
||||||
import FamilyView
|
|
||||||
import PlaceView
|
|
||||||
import EventView
|
|
||||||
import SourceView
|
|
||||||
import MediaView
|
|
||||||
import ArgHandler
|
import ArgHandler
|
||||||
import Config
|
import Config
|
||||||
import GrampsCfg
|
import GrampsCfg
|
||||||
@ -56,6 +46,7 @@ import const
|
|||||||
import Errors
|
import Errors
|
||||||
import PluginMgr
|
import PluginMgr
|
||||||
import TipOfDay
|
import TipOfDay
|
||||||
|
import DataViews
|
||||||
|
|
||||||
from Mime import mime_type_is_defined
|
from Mime import mime_type_is_defined
|
||||||
from QuestionDialog import ErrorDialog
|
from QuestionDialog import ErrorDialog
|
||||||
@ -154,16 +145,8 @@ class Gramps:
|
|||||||
|
|
||||||
state = GrampsDb.DbState()
|
state = GrampsDb.DbState()
|
||||||
vm = ViewManager.ViewManager(state)
|
vm = ViewManager.ViewManager(state)
|
||||||
vm.register_view(PersonView.PersonView)
|
for view in DataViews.get_views():
|
||||||
vm.register_view(FamilyView.FamilyView)
|
vm.register_view(view)
|
||||||
vm.register_view(FamilyList.FamilyListView)
|
|
||||||
vm.register_view(PedView.PedView)
|
|
||||||
vm.register_view(EventView.EventView)
|
|
||||||
vm.register_view(SourceView.SourceView)
|
|
||||||
vm.register_view(PlaceView.PlaceView)
|
|
||||||
vm.register_view(MediaView.MediaView)
|
|
||||||
vm.register_view(MapView.MapView)
|
|
||||||
vm.register_view(RepositoryView.RepositoryView)
|
|
||||||
|
|
||||||
ArgHandler.ArgHandler(state,vm,args)
|
ArgHandler.ArgHandler(state,vm,args)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user