2006-05-20 Don Allingham <don@gramps-project.org>

* src/Editors/_EditPlace.py: custom menus
	* src/Editors/_EditLdsOrd.py: custom menus
	* src/Editors/_EditSourceRef.py: custom menus
	* src/Editors/_EditSource.py: custom menus
	* src/Editors/_EditRepoRef.py: custom menus
	* src/Editors/_EditUrl.py: custom menus
	* src/Editors/_EditAttribute.py: custom menus
	* src/Editors/_EditPerson.py: custom menus
	* src/Editors/_EditLocation.py: custom menus
	* src/Editors/_EditMediaRef.py: custom menus
	* src/Editors/_EditEventRef.py: custom menus
	* src/Editors/_EditMedia.py: custom menus
	* src/Editors/_EditRepository.py: custom menus
	* src/Editors/_EditName.py: custom menus
	* src/Editors/_EditChildRef.py: custom menus
	* src/Editors/_EditFamily.py: custom menus
	* src/Editors/_EditEvent.py: custom menus



svn: r6734
This commit is contained in:
Don Allingham 2006-05-21 04:24:56 +00:00
parent e08ae4e0b0
commit 5c7267e9c3
18 changed files with 48 additions and 24 deletions

View File

@ -1,3 +1,22 @@
2006-05-20 Don Allingham <don@gramps-project.org>
* src/Editors/_EditPlace.py: custom menus
* src/Editors/_EditLdsOrd.py: custom menus
* src/Editors/_EditSourceRef.py: custom menus
* src/Editors/_EditSource.py: custom menus
* src/Editors/_EditRepoRef.py: custom menus
* src/Editors/_EditUrl.py: custom menus
* src/Editors/_EditAttribute.py: custom menus
* src/Editors/_EditPerson.py: custom menus
* src/Editors/_EditLocation.py: custom menus
* src/Editors/_EditMediaRef.py: custom menus
* src/Editors/_EditEventRef.py: custom menus
* src/Editors/_EditMedia.py: custom menus
* src/Editors/_EditRepository.py: custom menus
* src/Editors/_EditName.py: custom menus
* src/Editors/_EditChildRef.py: custom menus
* src/Editors/_EditFamily.py: custom menus
* src/Editors/_EditEvent.py: custom menus
2006-05-20 Alex Roitman <shura@gramps-project.org> 2006-05-20 Alex Roitman <shura@gramps-project.org>
* src/GrampsDb/_WriteGedcom.py (write_repos): Add method. * src/GrampsDb/_WriteGedcom.py (write_repos): Add method.
* src/gramps_main.py (Gramps.__init__): Call ArgHandler between * src/gramps_main.py (Gramps.__init__): Call ArgHandler between

View File

@ -48,7 +48,6 @@ import gtk.glade
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
import const import const
import Utils
import RelLib import RelLib
import GrampsDisplay import GrampsDisplay
from _EditSecondary import EditSecondary from _EditSecondary import EditSecondary
@ -102,6 +101,8 @@ class EditAttribute(EditSecondary):
self.top.get_widget("attr_menu"), self.top.get_widget("attr_menu"),
self.obj.set_type, self.obj.set_type,
self.obj.get_type, self.obj.get_type,
self.db.readonly,
custom_values=self.alist
) )
def _create_tabbed_pages(self): def _create_tabbed_pages(self):

View File

@ -82,12 +82,16 @@ class EditChildRef(EditSecondary):
self.top.get_widget('frel'), self.top.get_widget('frel'),
self.obj.set_father_relation, self.obj.set_father_relation,
self.obj.get_father_relation, self.obj.get_father_relation,
self.db.readonly,
self.db.get_child_reference_types()
) )
self.mrel = MonitoredDataType( self.mrel = MonitoredDataType(
self.top.get_widget('mrel'), self.top.get_widget('mrel'),
self.obj.set_mother_relation, self.obj.set_mother_relation,
self.obj.get_mother_relation, self.obj.get_mother_relation,
self.db.readonly,
self.db.get_child_reference_types()
) )
self.priv = PrivacyButton( self.priv = PrivacyButton(

View File

@ -46,7 +46,6 @@ import gtk.glade
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
import const import const
import Utils
import AutoComp import AutoComp
import RelLib import RelLib
import GrampsDisplay import GrampsDisplay
@ -105,10 +104,6 @@ class EditEvent(EditPrimary):
ok.set_sensitive(not self.db.readonly) ok.set_sensitive(not self.db.readonly)
ok.connect('clicked',self.save) ok.connect('clicked',self.save)
def get_custom_events(self):
return self.dbstate.db.get_person_event_type_list() + \
self.dbstate.db.get_family_event_types()
def _setup_fields(self): def _setup_fields(self):
# place, select_place, add_del_place # place, select_place, add_del_place

View File

@ -46,7 +46,6 @@ import gtk.glade
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
import const import const
import Utils
import RelLib import RelLib
from DisplayTabs import SourceEmbedList,NoteTab,GalleryTab,EventBackRefList from DisplayTabs import SourceEmbedList,NoteTab,GalleryTab,EventBackRefList
@ -134,6 +133,8 @@ class EditEventRef(EditReference):
self.top.get_widget('eer_role_combo'), self.top.get_widget('eer_role_combo'),
self.source_ref.set_role, self.source_ref.set_role,
self.source_ref.get_role, self.source_ref.get_role,
self.db.readonly,
self.db.get_event_roles()
) )
self.event_menu = MonitoredDataType( self.event_menu = MonitoredDataType(

View File

@ -25,7 +25,6 @@
# python modules # python modules
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
import cPickle as pickle
from gettext import gettext as _ from gettext import gettext as _
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
@ -429,12 +428,16 @@ class EditFamily(EditPrimary):
self.top.get_widget('marker'), self.top.get_widget('marker'),
self.obj.set_marker, self.obj.set_marker,
self.obj.get_marker, self.obj.get_marker,
self.db.readonly) self.db.readonly,
self.db.get_marker_types(),
)
self.data_type = MonitoredDataType( self.data_type = MonitoredDataType(
self.top.get_widget('marriage_type'), self.top.get_widget('marriage_type'),
self.obj.set_relationship, self.obj.set_relationship,
self.obj.get_relationship, self.obj.get_relationship,
self.db.readonly,
self.db.get_marker_types(),
) )
def load_data(self): def load_data(self):

View File

@ -48,7 +48,6 @@ import gtk.glade
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
import const import const
import Utils
import RelLib import RelLib
import GrampsDisplay import GrampsDisplay
import NameDisplay import NameDisplay

View File

@ -34,7 +34,6 @@ import gtk.glade
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
import const import const
import Utils
from _EditSecondary import EditSecondary from _EditSecondary import EditSecondary
from GrampsWidgets import * from GrampsWidgets import *

View File

@ -43,7 +43,6 @@ import gtk.glade
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
import const import const
import Utils
import RelLib import RelLib
import Mime import Mime
import ImgManip import ImgManip

View File

@ -42,7 +42,6 @@ import gtk.glade
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
import const import const
import Utils
import RelLib import RelLib
import Mime import Mime
import ImgManip import ImgManip

View File

@ -168,6 +168,8 @@ class EditName(EditSecondary):
self.top.get_widget("name_type"), self.top.get_widget("name_type"),
self.obj.set_type, self.obj.set_type,
self.obj.get_type, self.obj.get_type,
self.db.readonly,
self.db.get_name_types(),
) )
self.privacy = PrivacyButton( self.privacy = PrivacyButton(

View File

@ -187,13 +187,16 @@ class EditPerson(EditPrimary):
self.top.get_widget("ntype"), self.top.get_widget("ntype"),
self.pname.set_type, self.pname.set_type,
self.pname.get_type, self.pname.get_type,
self.db.readonly) self.db.readonly,
self.db.get_name_types())
self.marker = GrampsWidgets.MonitoredDataType( self.marker = GrampsWidgets.MonitoredDataType(
self.top.get_widget('marker'), self.top.get_widget('marker'),
self.obj.set_marker, self.obj.set_marker,
self.obj.get_marker, self.obj.get_marker,
self.db.readonly) self.db.readonly,
self.db.get_marker_types(),
)
if self.use_patronymic: if self.use_patronymic:
self.prefix = GrampsWidgets.MonitoredEntry( self.prefix = GrampsWidgets.MonitoredEntry(

View File

@ -25,7 +25,6 @@
# python modules # python modules
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
import cPickle as pickle
from gettext import gettext as _ from gettext import gettext as _
import logging import logging

View File

@ -46,7 +46,6 @@ import gtk.glade
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
import const import const
import Utils
import RelLib import RelLib
from DisplayTabs import NoteTab,AddrEmbedList,WebEmbedList,SourceBackRefList from DisplayTabs import NoteTab,AddrEmbedList,WebEmbedList,SourceBackRefList
@ -99,13 +98,17 @@ class EditRepoRef(EditReference):
self.type_selector = MonitoredDataType( self.type_selector = MonitoredDataType(
self.top.get_widget("media_type"), self.top.get_widget("media_type"),
self.source_ref.set_media_type, self.source_ref.set_media_type,
self.source_ref.get_media_type self.source_ref.get_media_type,
self.db.readonly,
self.db.get_source_media_types(),
) )
self.media_type_selector = MonitoredDataType( self.media_type_selector = MonitoredDataType(
self.top.get_widget("repo_type"), self.top.get_widget("repo_type"),
self.source.set_type, self.source.set_type,
self.source.get_type self.source.get_type,
self.db.readonly,
self.db.get_repository_types(),
) )
def _create_tabbed_pages(self): def _create_tabbed_pages(self):

View File

@ -41,7 +41,6 @@ import gtk.glade
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
import const import const
import Utils
import RelLib import RelLib
from GrampsWidgets import * from GrampsWidgets import *
@ -75,7 +74,9 @@ class EditRepository(EditPrimary):
self.type = MonitoredDataType( self.type = MonitoredDataType(
self.glade.get_widget("repository_type"), self.glade.get_widget("repository_type"),
self.obj.set_type, self.obj.set_type,
self.obj.get_type self.obj.get_type,
self.db.readonly,
self.db.get_repository_types(),
) )
self.call_number = MonitoredEntry( self.call_number = MonitoredEntry(

View File

@ -44,7 +44,6 @@ import gtk.glade
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
import const import const
import Utils
import RelLib import RelLib
import NameDisplay import NameDisplay
import Spell import Spell

View File

@ -46,7 +46,6 @@ import gtk.glade
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
import const import const
import Utils
import RelLib import RelLib
from DisplayTabs import \ from DisplayTabs import \

View File

@ -41,7 +41,6 @@ import gtk.glade
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
import const import const
import Utils
from _EditSecondary import EditSecondary from _EditSecondary import EditSecondary
from GrampsWidgets import * from GrampsWidgets import *