GEPS008: Moved AutoComp module
svn: r19804
This commit is contained in:
parent
fdb3be0ffa
commit
20682993b5
@ -4,7 +4,6 @@
|
||||
#
|
||||
|
||||
#src
|
||||
src/AutoComp.py
|
||||
src/ImgManip.py
|
||||
|
||||
# cli
|
||||
@ -221,6 +220,7 @@ src/gen/utils/callman.py
|
||||
|
||||
# gui - GUI code
|
||||
src/gui/__init__.py
|
||||
src/gui/autocomp.py
|
||||
src/gui/dbguielement.py
|
||||
src/gui/ddtargets.py
|
||||
src/gui/display.py
|
||||
|
@ -13,7 +13,6 @@ SUBDIRS = \
|
||||
gdirdir=$(prefix)/share/gramps
|
||||
|
||||
gdir_PYTHON = \
|
||||
AutoComp.py\
|
||||
config.py\
|
||||
const.py\
|
||||
constfunc.py\
|
||||
|
@ -20,6 +20,7 @@ pkgpythondir = $(datadir)/@PACKAGE@/gui
|
||||
pkgpython_PYTHON = \
|
||||
__init__.py \
|
||||
aboutdialog.py \
|
||||
autocomp.py \
|
||||
basesidebar.py \
|
||||
clipboard.py \
|
||||
columnorder.py \
|
||||
|
@ -48,7 +48,6 @@ _ENTER = gtk.gdk.keyval_from_name("Enter")
|
||||
from surnamemodel import SurnameModel
|
||||
from embeddedlist import EmbeddedList
|
||||
from gui.ddtargets import DdTargets
|
||||
import AutoComp
|
||||
from gen.lib import Surname, NameOriginType
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
|
@ -65,7 +65,7 @@ from gen.errors import WindowActiveError
|
||||
from gen.ggettext import sgettext as _
|
||||
import gen.lib
|
||||
from gen.filters import rules
|
||||
import AutoComp
|
||||
from gui.autocomp import StandardCustomSelector, fill_entry
|
||||
from gui.selectors import SelectorFactory
|
||||
from gen.display.name import displayer as _nd
|
||||
import Utils
|
||||
@ -275,7 +275,7 @@ class MyPlaces(gtk.Entry):
|
||||
def __init__(self, places):
|
||||
gtk.Entry.__init__(self)
|
||||
|
||||
AutoComp.fill_entry(self, places)
|
||||
fill_entry(self, places)
|
||||
self.show()
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
@ -398,9 +398,9 @@ class MySelect(gtk.ComboBoxEntry):
|
||||
def __init__(self, type_class):
|
||||
gtk.ComboBoxEntry.__init__(self)
|
||||
self.type_class = type_class
|
||||
self.sel = AutoComp.StandardCustomSelector(type_class._I2SMAP, self,
|
||||
type_class._CUSTOM,
|
||||
type_class._DEFAULT)
|
||||
self.sel = StandardCustomSelector(type_class._I2SMAP, self,
|
||||
type_class._CUSTOM,
|
||||
type_class._DEFAULT)
|
||||
self.show()
|
||||
|
||||
def get_text(self):
|
||||
|
@ -51,7 +51,7 @@ import pango
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from gen.ggettext import gettext as _
|
||||
import AutoComp
|
||||
from gui.autocomp import StandardCustomSelector, fill_entry
|
||||
import gen.datehandler
|
||||
from gen.lib.date import Date, NextYear
|
||||
from gen.errors import ValidationError
|
||||
@ -116,7 +116,7 @@ class MonitoredEntry(object):
|
||||
self.obj.set_editable(not read_only)
|
||||
|
||||
if autolist:
|
||||
AutoComp.fill_entry(obj, autolist)
|
||||
fill_entry(obj, autolist)
|
||||
|
||||
## def destroy(self):
|
||||
## """
|
||||
@ -234,7 +234,7 @@ class MonitoredSpinButton(object):
|
||||
self.obj.set_editable(not read_only)
|
||||
|
||||
if autolist:
|
||||
AutoComp.fill_entry(obj,autolist)
|
||||
fill_entry(obj,autolist)
|
||||
|
||||
## def destroy(self):
|
||||
## """
|
||||
@ -380,7 +380,7 @@ class MonitoredType(object):
|
||||
else:
|
||||
default = None
|
||||
|
||||
self.sel = AutoComp.StandardCustomSelector(
|
||||
self.sel = StandardCustomSelector(
|
||||
mapping, obj, custom, default, additional=custom_values)
|
||||
|
||||
self.set_val(self.sel.get_values())
|
||||
@ -452,7 +452,7 @@ class MonitoredDataType(object):
|
||||
if key in ignore_values and key not in (None, default):
|
||||
del map[key]
|
||||
|
||||
self.sel = AutoComp.StandardCustomSelector(
|
||||
self.sel = StandardCustomSelector(
|
||||
map,
|
||||
obj,
|
||||
get_val().get_custom(),
|
||||
|
@ -40,7 +40,7 @@ from gen.ggettext import ngettext
|
||||
from gui.utils import ProgressMeter
|
||||
import locale
|
||||
from gui.managedwindow import ManagedWindow
|
||||
import AutoComp
|
||||
from gui.autocomp import fill_combo
|
||||
from gen.lib import EventType
|
||||
from gen.db import DbTxn
|
||||
from gui.dialog import OkDialog
|
||||
@ -80,8 +80,8 @@ class ChangeTypes(tool.BatchTool, ManagedWindow):
|
||||
etype = EventType()
|
||||
event_names = sorted(etype.get_standard_names(), key=locale.strxfrm)
|
||||
|
||||
AutoComp.fill_combo(self.auto1,event_names)
|
||||
AutoComp.fill_combo(self.auto2,event_names)
|
||||
fill_combo(self.auto1,event_names)
|
||||
fill_combo(self.auto2,event_names)
|
||||
|
||||
etype.set_from_xml_str(self.options.handler.options_dict['fromtype'])
|
||||
self.auto1.child.set_text(str(etype))
|
||||
|
@ -33,7 +33,7 @@ import const
|
||||
from gen.soundex import soundex
|
||||
from gui.display import display_help
|
||||
from gui.managedwindow import ManagedWindow
|
||||
import AutoComp
|
||||
from gui.autocomp import fill_combo
|
||||
from gen.ggettext import sgettext as _
|
||||
from gui.plug import tool
|
||||
from gui.glade import Glade
|
||||
@ -84,7 +84,7 @@ class SoundGen(tool.Tool, ManagedWindow):
|
||||
|
||||
names.sort()
|
||||
|
||||
AutoComp.fill_combo(self.autocomp, names)
|
||||
fill_combo(self.autocomp, names)
|
||||
|
||||
if person:
|
||||
n = person.get_primary_name().get_surname()
|
||||
|
Loading…
Reference in New Issue
Block a user