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:
parent
beb85185a1
commit
230ec2bf8a
19
ChangeLog
19
ChangeLog
@ -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>
|
||||
* src/GrampsDb/_WriteGedcom.py (write_repos): Add method.
|
||||
* src/gramps_main.py (Gramps.__init__): Call ArgHandler between
|
||||
|
@ -48,7 +48,6 @@ import gtk.glade
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import const
|
||||
import Utils
|
||||
import RelLib
|
||||
import GrampsDisplay
|
||||
from _EditSecondary import EditSecondary
|
||||
@ -102,6 +101,8 @@ class EditAttribute(EditSecondary):
|
||||
self.top.get_widget("attr_menu"),
|
||||
self.obj.set_type,
|
||||
self.obj.get_type,
|
||||
self.db.readonly,
|
||||
custom_values=self.alist
|
||||
)
|
||||
|
||||
def _create_tabbed_pages(self):
|
||||
|
@ -82,12 +82,16 @@ class EditChildRef(EditSecondary):
|
||||
self.top.get_widget('frel'),
|
||||
self.obj.set_father_relation,
|
||||
self.obj.get_father_relation,
|
||||
self.db.readonly,
|
||||
self.db.get_child_reference_types()
|
||||
)
|
||||
|
||||
self.mrel = MonitoredDataType(
|
||||
self.top.get_widget('mrel'),
|
||||
self.obj.set_mother_relation,
|
||||
self.obj.get_mother_relation,
|
||||
self.db.readonly,
|
||||
self.db.get_child_reference_types()
|
||||
)
|
||||
|
||||
self.priv = PrivacyButton(
|
||||
|
@ -46,7 +46,6 @@ import gtk.glade
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import const
|
||||
import Utils
|
||||
import AutoComp
|
||||
import RelLib
|
||||
import GrampsDisplay
|
||||
@ -105,10 +104,6 @@ class EditEvent(EditPrimary):
|
||||
ok.set_sensitive(not self.db.readonly)
|
||||
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):
|
||||
|
||||
# place, select_place, add_del_place
|
||||
|
@ -46,7 +46,6 @@ import gtk.glade
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import const
|
||||
import Utils
|
||||
import RelLib
|
||||
|
||||
from DisplayTabs import SourceEmbedList,NoteTab,GalleryTab,EventBackRefList
|
||||
@ -134,6 +133,8 @@ class EditEventRef(EditReference):
|
||||
self.top.get_widget('eer_role_combo'),
|
||||
self.source_ref.set_role,
|
||||
self.source_ref.get_role,
|
||||
self.db.readonly,
|
||||
self.db.get_event_roles()
|
||||
)
|
||||
|
||||
self.event_menu = MonitoredDataType(
|
||||
|
@ -25,7 +25,6 @@
|
||||
# python modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import cPickle as pickle
|
||||
from gettext import gettext as _
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
@ -429,12 +428,16 @@ class EditFamily(EditPrimary):
|
||||
self.top.get_widget('marker'),
|
||||
self.obj.set_marker,
|
||||
self.obj.get_marker,
|
||||
self.db.readonly)
|
||||
self.db.readonly,
|
||||
self.db.get_marker_types(),
|
||||
)
|
||||
|
||||
self.data_type = MonitoredDataType(
|
||||
self.top.get_widget('marriage_type'),
|
||||
self.obj.set_relationship,
|
||||
self.obj.get_relationship,
|
||||
self.db.readonly,
|
||||
self.db.get_marker_types(),
|
||||
)
|
||||
|
||||
def load_data(self):
|
||||
|
@ -48,7 +48,6 @@ import gtk.glade
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import const
|
||||
import Utils
|
||||
import RelLib
|
||||
import GrampsDisplay
|
||||
import NameDisplay
|
||||
|
@ -34,7 +34,6 @@ import gtk.glade
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import const
|
||||
import Utils
|
||||
from _EditSecondary import EditSecondary
|
||||
|
||||
from GrampsWidgets import *
|
||||
|
@ -43,7 +43,6 @@ import gtk.glade
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import const
|
||||
import Utils
|
||||
import RelLib
|
||||
import Mime
|
||||
import ImgManip
|
||||
|
@ -42,7 +42,6 @@ import gtk.glade
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import const
|
||||
import Utils
|
||||
import RelLib
|
||||
import Mime
|
||||
import ImgManip
|
||||
|
@ -168,6 +168,8 @@ class EditName(EditSecondary):
|
||||
self.top.get_widget("name_type"),
|
||||
self.obj.set_type,
|
||||
self.obj.get_type,
|
||||
self.db.readonly,
|
||||
self.db.get_name_types(),
|
||||
)
|
||||
|
||||
self.privacy = PrivacyButton(
|
||||
|
@ -187,13 +187,16 @@ class EditPerson(EditPrimary):
|
||||
self.top.get_widget("ntype"),
|
||||
self.pname.set_type,
|
||||
self.pname.get_type,
|
||||
self.db.readonly)
|
||||
self.db.readonly,
|
||||
self.db.get_name_types())
|
||||
|
||||
self.marker = GrampsWidgets.MonitoredDataType(
|
||||
self.top.get_widget('marker'),
|
||||
self.obj.set_marker,
|
||||
self.obj.get_marker,
|
||||
self.db.readonly)
|
||||
self.db.readonly,
|
||||
self.db.get_marker_types(),
|
||||
)
|
||||
|
||||
if self.use_patronymic:
|
||||
self.prefix = GrampsWidgets.MonitoredEntry(
|
||||
|
@ -25,7 +25,6 @@
|
||||
# python modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import cPickle as pickle
|
||||
from gettext import gettext as _
|
||||
|
||||
import logging
|
||||
|
@ -46,7 +46,6 @@ import gtk.glade
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import const
|
||||
import Utils
|
||||
import RelLib
|
||||
|
||||
from DisplayTabs import NoteTab,AddrEmbedList,WebEmbedList,SourceBackRefList
|
||||
@ -99,13 +98,17 @@ class EditRepoRef(EditReference):
|
||||
self.type_selector = MonitoredDataType(
|
||||
self.top.get_widget("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.top.get_widget("repo_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):
|
||||
|
@ -41,7 +41,6 @@ import gtk.glade
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import const
|
||||
import Utils
|
||||
import RelLib
|
||||
|
||||
from GrampsWidgets import *
|
||||
@ -75,7 +74,9 @@ class EditRepository(EditPrimary):
|
||||
self.type = MonitoredDataType(
|
||||
self.glade.get_widget("repository_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(
|
||||
|
@ -44,7 +44,6 @@ import gtk.glade
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import const
|
||||
import Utils
|
||||
import RelLib
|
||||
import NameDisplay
|
||||
import Spell
|
||||
|
@ -46,7 +46,6 @@ import gtk.glade
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import const
|
||||
import Utils
|
||||
import RelLib
|
||||
|
||||
from DisplayTabs import \
|
||||
|
@ -41,7 +41,6 @@ import gtk.glade
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import const
|
||||
import Utils
|
||||
from _EditSecondary import EditSecondary
|
||||
|
||||
from GrampsWidgets import *
|
||||
|
Loading…
Reference in New Issue
Block a user