Title handling

svn: r1328
This commit is contained in:
Don Allingham 2003-03-07 02:21:18 +00:00
parent eb4faa076b
commit aa0f689c26
30 changed files with 1995 additions and 1612 deletions

View File

@ -94,6 +94,7 @@ class DbPrompter:
"on_ok_button1_clicked": self.save_ok_button_clicked,
"destroy_passed_object": self.cancel_button_clicked,
})
wFs.get_widget('fileselection').set_title('%s - GRAMPS' % _('Save database'))
def save_ok_button_clicked(self,obj):
filename = obj.get_filename()

View File

@ -130,7 +130,7 @@ class Everyone(Rule):
class HasIdOf(Rule):
"""Rule that checks for a person with a specific GID"""
labels = [ _('ID') ]
labels = [ _('ID:') ]
def name(self):
return 'Has the Id'
@ -163,7 +163,7 @@ class IsDescendantOf(Rule):
"""Rule that checks for a person that is a descendant
of a specified person"""
labels = [ _('ID') ]
labels = [ _('ID:') ]
def name(self):
return 'Is a descendant of'
@ -190,7 +190,7 @@ class IsDescendantFamilyOf(Rule):
"""Rule that checks for a person that is a descendant or the spouse
of a descendant of a specified person"""
labels = [ _('ID') ]
labels = [ _('ID:') ]
def name(self):
return "Is a descendant family member of"
@ -226,7 +226,7 @@ class IsDescendantFamilyOf(Rule):
class IsAncestorOf(Rule):
"""Rule that checks for a person that is an ancestor of a specified person"""
labels = [ _('ID') ]
labels = [ _('ID:') ]
def name(self):
return 'Is an ancestor of'
@ -253,7 +253,7 @@ class IsAncestorOf(Rule):
class HasCommonAncestorWith(Rule):
"""Rule that checks for a person that has a common ancestor with a specified person"""
labels = [ _('ID') ]
labels = [ _('ID:') ]
def name(self):
return 'Has a common ancestor with'
@ -307,7 +307,7 @@ class IsMale(Rule):
class HasEvent(Rule):
"""Rule that checks for a person with a particular value"""
labels = [ _('Personal Event'), _('Date'), _('Place'), _('Description') ]
labels = [ _('Personal event:'), _('Date:'), _('Place:'), _('Description:') ]
def __init__(self,list):
Rule.__init__(self,list)
@ -345,7 +345,7 @@ class HasFamilyEvent(Rule):
"""Rule that checks for a person who has a relationship event
with a particular value"""
labels = [ _('Family Event'), _('Date'), _('Place'), _('Description') ]
labels = [ _('Family event:'), _('Date:'), _('Place:'), _('Description:') ]
def __init__(self,list):
Rule.__init__(self,list)
@ -384,9 +384,9 @@ class HasFamilyEvent(Rule):
class HasRelationship(Rule):
"""Rule that checks for a person who has a particular relationship"""
labels = [ _('Number of Relationships'),
_('Relationship Type'),
_('Number of Children') ]
labels = [ _('Number of relationships:'),
_('Relationship type:'),
_('Number of children:') ]
def name(self):
return 'Has the relationships'
@ -434,7 +434,7 @@ class HasRelationship(Rule):
class HasBirth(Rule):
"""Rule that checks for a person with a birth of a particular value"""
labels = [ _('Date'), _('Place'), _('Description') ]
labels = [ _('Date:'), _('Place:'), _('Description:') ]
def __init__(self,list):
Rule.__init__(self,list)
@ -466,7 +466,7 @@ class HasBirth(Rule):
class HasDeath(Rule):
"""Rule that checks for a person with a death of a particular value"""
labels = [ _('Date'), _('Place'), _('Description') ]
labels = [ _('Date:'), _('Place:'), _('Description:') ]
def __init__(self,list):
Rule.__init__(self,list)
@ -498,7 +498,7 @@ class HasDeath(Rule):
class HasAttribute(Rule):
"""Rule that checks for a person with a particular personal attribute"""
labels = [ _('Personal Attribute'), _('Value') ]
labels = [ _('Personal attribute:'), _('Value:') ]
def name(self):
return 'Has the personal attribute'
@ -519,7 +519,7 @@ class HasAttribute(Rule):
class HasFamilyAttribute(Rule):
"""Rule that checks for a person with a particular family attribute"""
labels = [ _('Family Attribute'), _('Value') ]
labels = [ _('Family attribute:'), _('Value:') ]
def name(self):
return 'Has the family attribute'
@ -544,7 +544,7 @@ class HasFamilyAttribute(Rule):
class HasNameOf(Rule):
"""Rule that checks for full or partial name matches"""
labels = [_('Given Name'),_('Surname'),_('Suffix'),_('Title')]
labels = [_('Given name:'),_('Family name:'),_('Suffix:'),_('Title:')]
def name(self):
return 'Has a name'
@ -572,7 +572,7 @@ class HasNameOf(Rule):
class MatchesFilter(Rule):
"""Rule that checks against another filter"""
labels = [_('Filter Name')]
labels = [_('Filter name:')]
def name(self):
return 'Matches the filter named'

View File

@ -14,11 +14,103 @@ INTLLIBS= intl22.so
# We only want optimized byte-compiled (.pyo) versions, no .pyc
# In principle, this is handled by PYCFILES and PYOFILES, but
# they don't seem to work so we edited the py-compile script instead
pkgpython_PYTHON = ${wildcard *.py}
pkgpython_PYTHON = \
AddMedia.py\
AddrEdit.py\
AddSpouse.py\
ansel_utf8.py\
AttrEdit.py\
AutoComp.py\
Bookmarks.py\
Calendar.py\
ChooseParents.py\
const.py\
DateEdit.py\
Date.py\
DbPrompter.py\
DisplayTrace.py\
DrawDoc.py\
EditPerson.py\
EditPlace.py\
EditSource.py\
Errors.py\
EventEdit.py\
FamilyView.py\
Filter.py\
Find.py\
FontScale.py\
FrenchRepublic.py\
GedcomInfo.py\
GenericFilter.py\
GrampsCfg.py\
gramps_main.py\
GrampsParser.py\
gramps.py\
GrampsXML.py\
GrampsZODB.py\
GraphLayout.py\
Gregorian.py\
Hebrew.py\
ImageSelect.py\
ImgManip.py\
intl.py\
Julian.py\
latin_ansel.py\
latin_utf8.py\
ListModel.py\
LocEdit.py\
Marriage.py\
MediaView.py\
MergeData.py\
NameEdit.py\
NoteEdit.py\
PaperMenu.py\
PedView.py\
PlaceView.py\
Plugins.py\
QuestionDialog.py\
QuickAdd.py\
ReadXML.py\
RelImage.py\
RelLib.py\
Report.py\
SelectChild.py\
sort.py\
soundex.py\
Sources.py\
SourceView.py\
SpreadSheetDoc.py\
StartupDialog.py\
StyleEditor.py\
SubstKeywords.py\
TarFile.py\
TextDoc.py\
UrlEdit.py\
Utils.py\
VersionControl.py\
Witness.py\
WriteXML.py
# Use GNU make's ':=' syntax for nice wildcard use.
# If not using GNU make, then list all files individually
GLADEFILES := ${wildcard *.glade}
GLADEFILES = \
config.glade\
dialog.glade\
edit_person.glade\
errdialogs.glade\
gramps.glade\
imagesel.glade\
marriage.glade\
mergedata.glade\
places.glade\
plugins.glade\
preferences.glade\
revision.glade\
rule.glade\
srcsel.glade\
styles.glade
GRAPHICS = \
bad.png\
caution.png\

View File

@ -119,16 +119,110 @@ LDFLAGS = @GNOMELIB@ @LDFLAGS@ -L@libdir@ @LIBS@
CLEANFILES = ${INTLLIBS}
MOSTLYCLEANFILES =
# What are the PYTHON scripts for this package that need to be handled?
#
# We only want optimized byte-compiled (.pyo) versions, no .pyc
# In principle, this is handled by PYCFILES and PYOFILES, but
# they don't seem to work so we edited the py-compile script instead
pkgpython_PYTHON = ${wildcard *.py}
pkgpython_PYTHON = \
AddMedia.py\
AddrEdit.py\
AddSpouse.py\
ansel_utf8.py\
AttrEdit.py\
AutoComp.py\
Bookmarks.py\
Calendar.py\
ChooseParents.py\
const.py\
DateEdit.py\
Date.py\
DbPrompter.py\
DisplayTrace.py\
DrawDoc.py\
EditPerson.py\
EditPlace.py\
EditSource.py\
Errors.py\
EventEdit.py\
FamilyView.py\
Filter.py\
Find.py\
FontScale.py\
FrenchRepublic.py\
GedcomInfo.py\
GenericFilter.py\
GrampsCfg.py\
gramps_main.py\
GrampsParser.py\
gramps.py\
GrampsXML.py\
GrampsZODB.py\
GraphLayout.py\
Gregorian.py\
Hebrew.py\
ImageSelect.py\
ImgManip.py\
intl.py\
Julian.py\
latin_ansel.py\
latin_utf8.py\
ListModel.py\
LocEdit.py\
Marriage.py\
MediaView.py\
MergeData.py\
NameEdit.py\
NoteEdit.py\
PaperMenu.py\
PedView.py\
PlaceView.py\
Plugins.py\
QuestionDialog.py\
QuickAdd.py\
ReadXML.py\
RelImage.py\
RelLib.py\
Report.py\
SelectChild.py\
sort.py\
soundex.py\
Sources.py\
SourceView.py\
SpreadSheetDoc.py\
StartupDialog.py\
StyleEditor.py\
SubstKeywords.py\
TarFile.py\
TextDoc.py\
UrlEdit.py\
Utils.py\
VersionControl.py\
Witness.py\
WriteXML.py
# Use GNU make's ':=' syntax for nice wildcard use.
# If not using GNU make, then list all files individually
GLADEFILES := ${wildcard *.glade}
GLADEFILES = \
config.glade\
dialog.glade\
edit_person.glade\
errdialogs.glade\
gramps.glade\
imagesel.glade\
marriage.glade\
mergedata.glade\
places.glade\
plugins.glade\
preferences.glade\
revision.glade\
rule.glade\
srcsel.glade\
styles.glade
GRAPHICS = \
bad.png\
caution.png\

View File

@ -60,6 +60,10 @@ class MergePeople:
self.glade = gtk.glade.XML(const.mergeFile,"merge")
self.top = self.glade.get_widget("merge")
Utils.set_titles(self.top,self.glade.get_widget('title'),
_('Merge Places'), _('Select the title for the merged place'))
self.altname = self.glade.get_widget("altname")
self.altbirth = self.glade.get_widget("altbirth")
self.altdeath = self.glade.get_widget("altdeath")
@ -73,8 +77,11 @@ class MergePeople:
fname = GrampsCfg.nameof(person1)
mname = GrampsCfg.nameof(person2)
label_text = "Merge %s and %s" % (fname,mname)
self.glade.get_widget("progress").set_text(label_text)
Utils.set_titles(self.top, self.glade.get_widget('title'),
_("Merge %s and %s") % (fname,mname),
_("Merge people"))
f1 = person1.getMainParents()
f2 = person2.getMainParents()

View File

@ -277,21 +277,25 @@ class PluginStatus:
})
info = cStringIO.StringIO()
info.write(_("The following modules could not be loaded:"))
info.write("\n\n")
for (file,msg) in _expect:
info.write("%s: %s\n\n" % (file,msg))
for (file,msgs) in _failmsg:
error = str(msgs[0])
if error[0:11] == "exceptions.":
error = error[11:]
info.write("%s: %s\n" % (file,error) )
traceback.print_exception(msgs[0],msgs[1],msgs[2],None,info)
info.write('\n')
info.seek(0)
window.get_buffer().set_text(info.read())
if len(_expect) + len(_failmsg) == 0:
window.get_buffer().set_text(_('All modules were successfully loaded.'))
else:
info.write(_("The following modules could not be loaded:"))
info.write("\n\n")
for (file,msg) in _expect:
info.write("%s: %s\n\n" % (file,msg))
for (file,msgs) in _failmsg:
error = str(msgs[0])
if error[0:11] == "exceptions.":
error = error[11:]
info.write("%s: %s\n" % (file,error) )
traceback.print_exception(msgs[0],msgs[1],msgs[2],None,info)
info.write('\n')
info.seek(0)
window.get_buffer().set_text(info.read())
def close(self,obj):
self.top.destroy()

View File

@ -63,10 +63,10 @@ class StyleListDisplay:
self.sheetlist = stylesheetlist
self.top = gtk.glade.XML(const.stylesFile,"styles")
title_label = self.top.get_widget('title')
title_label.set_text(Utils.title(_('Document Styles')))
title_label.set_use_markup(gtk.TRUE)
Utils.set_titles(self.top.get_widget('styles'),
self.top.get_widget('title'),
_('Document Styles'))
self.top.signal_autoconnect({
"destroy_passed_object" : Utils.destroy_passed_object,
"on_ok_clicked" : self.on_ok_clicked,
@ -171,6 +171,9 @@ class StyleEditor:
})
self.window = self.top.get_widget("editor")
Utils.set_titles(self.window, self.top.get_widget('title'),_('Style editor'))
self.first = 1
titles = [(_('Paragraph'),0,130)]

View File

@ -74,13 +74,13 @@ class RevisionComment:
self.filename = filename
self.save = save_file
self.top = gtk.glade.XML(const.revisionFile, "revcom")
self.win = self.top.get_widget("revcom")
self.top.signal_autoconnect({
"on_savecomment_clicked" : self.on_savecomment_clicked,
})
Utils.set_title_label(self.top,_('Revision control comment'))
Utils.set_titles(self.win,self.top.get_widget('title'),_('Revision control comment'))
self.text = self.top.get_widget("text")
self.win = self.top.get_widget("revcom")
self.win.editable_enters(self.text)
self.win.show()
@ -105,7 +105,9 @@ class RevisionSelect:
"on_loadrev_clicked" : self.on_loadrev_clicked,
})
Utils.set_title_label(dialog,_('Select an older revision'))
Utils.set_titles(dialog.get_widget('revselect'),
dialog.get_widget('title'),
_('Select an older revision'))
self.revlist = dialog.get_widget("revlist")
l = self.vc.revision_list()

View File

@ -1,7 +1,11 @@
# This is the src/plugins level Makefile for Gramps
# Use GNU make's ':=' syntax for nice wildcard use.
# If not using GNU make, then list all .py files individually
pkgpython_PYTHON := ${wildcard *.py}
pkgpython_PYTHON = \
Islamic.py \
Persian.py
pkgpyexecdir = @pkgpyexecdir@/plugins
pkgpythondir = @pkgpythondir@/plugins

View File

@ -46,7 +46,7 @@ Preferences dialog under the Settings menu.</property>
<child>
<widget class="GnomeDruidPageStandard" id="druidpagestandard1">
<property name="visible">True</property>
<property name="title" translatable="yes">Researcher Information</property>
<property name="title" translatable="yes">Researcher information</property>
<property name="title_foreground">#53e00817c71b</property>
<property name="background">#53e00817e118</property>
<property name="logo_background">#d7a440c2e108</property>
@ -486,7 +486,7 @@ files, you may leave it blank.</property>
<child>
<widget class="GnomeDruidPageStandard" id="druidpagestandard3">
<property name="visible">True</property>
<property name="title" translatable="yes">Numerical Date Formats</property>
<property name="title" translatable="yes">Numerical date formats</property>
<property name="title_foreground">#53e00817c71b</property>
<property name="background">#53e00817e118</property>
<property name="logo_background">#d7a440c2e108</property>
@ -634,7 +634,7 @@ numerical dates</property>
<child>
<widget class="GnomeDruidPageStandard" id="druidpagestandard4">
<property name="visible">True</property>
<property name="title" translatable="yes">Alternate Calendar Support</property>
<property name="title" translatable="yes">Alternate calendar support</property>
<property name="title_foreground">#53e00817c71b</property>
<property name="background">#53e00817e118</property>
<property name="logo_background">#d7a440c2e108</property>
@ -731,7 +731,7 @@ more of these alternate calendars, enable alternate calendar support.</property>
<child>
<widget class="GnomeDruidPageStandard" id="druidpagestandard2">
<property name="visible">True</property>
<property name="title" translatable="yes">LDS Extensions</property>
<property name="title" translatable="yes">LDS extensions</property>
<property name="title_foreground">#53e00817c71b</property>
<property name="background">#53e00817e118</property>
<property name="logo_background">#d7a440c2e108</property>
@ -790,7 +790,7 @@ change this option in the future in the Preferences dialog.</property>
<property name="border_width">20</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Enable LDS Ordinance Support</property>
<property name="label" translatable="yes">Enable LDS ordinance support</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="active">False</property>

View File

@ -135,7 +135,7 @@ translators = u'Radek Malcic <malcic@atlas.cz> - Czech\n' \
# Constants
#
#-------------------------------------------------------------------------
picWidth = 200.0
picWidth = 275.0
thumbScale = 96.0
xmlFile = "data.gramps"
zodbFile = "gramps.zodb"

View File

@ -117,7 +117,7 @@
<child>
<widget class="GtkLabel" id="label154">
<property name="visible">True</property>
<property name="label" translatable="yes">_Event Type:</property>
<property name="label" translatable="yes">_Event type:</property>
<property name="use_underline">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_CENTER</property>
@ -475,7 +475,7 @@
<widget class="GtkCheckButton" id="priv">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">_Private Record</property>
<property name="label" translatable="yes">_Private record</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="active">False</property>
@ -1052,7 +1052,7 @@
<widget class="GtkCheckButton" id="priv">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">_Private Record</property>
<property name="label" translatable="yes">_Private record</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="active">False</property>
@ -1605,7 +1605,7 @@
<child>
<widget class="GtkLabel" id="label184">
<property name="visible">True</property>
<property name="label" translatable="yes">Church _Parish:</property>
<property name="label" translatable="yes">Church _parish:</property>
<property name="use_underline">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_CENTER</property>
@ -2031,7 +2031,7 @@
<widget class="GtkCheckButton" id="priv">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">_Private Record</property>
<property name="label" translatable="yes">_Private record</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="active">False</property>
@ -2875,7 +2875,7 @@
<child>
<widget class="GtkLabel" id="label181">
<property name="visible">True</property>
<property name="label" translatable="yes">_Family Name:</property>
<property name="label" translatable="yes">_Family name:</property>
<property name="use_underline">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_CENTER</property>
@ -3008,7 +3008,7 @@
<child>
<widget class="GtkLabel" id="label290">
<property name="visible">True</property>
<property name="label" translatable="yes">Family _Prefix:</property>
<property name="label" translatable="yes">Family _prefix:</property>
<property name="use_underline">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_CENTER</property>

View File

@ -1,6 +1,20 @@
# This is the src/docgen level Makefile for Gramps
# Use GNU make's ':=' syntax for nice wildcard use.
# If not using GNU make, then list all .py files individually
pkgpython_PYTHON := ${wildcard *.py}
pkgpython_PYTHON = \
AbiWordDoc.py\
HtmlDoc.py\
KwordDoc.py\
LaTeXDoc.py\
OpenDrawDoc.py\
OpenOfficeDoc.py\
OpenSpreadSheet.py\
PdfDoc.py\
PdfDrawDoc.py\
PSDrawDoc.py\
RTFDoc.py\
SvgDrawDoc.py
pkgpyexecdir = @pkgpyexecdir@/docgen
pkgpythondir = @pkgpythondir@/docgen

View File

@ -1261,7 +1261,7 @@
<property name="justify">GTK_JUSTIFY_CENTER</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">1</property>
<property name="xalign">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
@ -1279,7 +1279,7 @@
<child>
<widget class="GtkLabel" id="label294">
<property name="visible">True</property>
<property name="label" translatable="yes">Prefix:</property>
<property name="label" translatable="yes">Family prefix:</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_CENTER</property>
@ -1327,7 +1327,7 @@
<child>
<widget class="GtkLabel" id="label121">
<property name="visible">True</property>
<property name="label" translatable="yes">Last:</property>
<property name="label" translatable="yes">Family name:</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_CENTER</property>
@ -1351,7 +1351,7 @@
<child>
<widget class="GtkLabel" id="label120">
<property name="visible">True</property>
<property name="label" translatable="yes">Given:</property>
<property name="label" translatable="yes">Given name:</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_CENTER</property>
@ -2949,7 +2949,7 @@
<child>
<widget class="GtkLabel" id="label343">
<property name="visible">True</property>
<property name="label" translatable="yes">ZIP/Postal Code:</property>
<property name="label" translatable="yes">ZIP/Postal code:</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
@ -3631,7 +3631,7 @@
<child>
<widget class="GtkLabel" id="label346">
<property name="visible">True</property>
<property name="label" translatable="yes">Web Address:</property>
<property name="label" translatable="yes">Web address:</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
@ -3726,7 +3726,7 @@
<child>
<widget class="GtkLabel" id="label345">
<property name="visible">True</property>
<property name="label" translatable="yes">&lt;b&gt;Internet Addresses&lt;/b&gt;</property>
<property name="label" translatable="yes">&lt;b&gt;Internet addresses&lt;/b&gt;</property>
<property name="use_underline">False</property>
<property name="use_markup">True</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
@ -4071,7 +4071,7 @@
<child>
<widget class="GtkLabel" id="label257">
<property name="visible">True</property>
<property name="label" translatable="yes">LDS _Temple:</property>
<property name="label" translatable="yes">LDS _temple:</property>
<property name="use_underline">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_CENTER</property>
@ -4279,7 +4279,7 @@
<child>
<widget class="GtkLabel" id="label260">
<property name="visible">True</property>
<property name="label" translatable="yes">LDS Te_mple:</property>
<property name="label" translatable="yes">LDS te_mple:</property>
<property name="use_underline">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_CENTER</property>
@ -4547,7 +4547,7 @@
<child>
<widget class="GtkLabel" id="label261">
<property name="visible">True</property>
<property name="label" translatable="yes">LD_S Temple:</property>
<property name="label" translatable="yes">LD_S temple:</property>
<property name="use_underline">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_CENTER</property>

View File

@ -159,7 +159,7 @@
<property name="visible">True</property>
<property name="can_default">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Close _without Saving</property>
<property name="label" translatable="yes">Close _without saving</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="response_id">-9</property>

View File

@ -1,6 +1,25 @@
# This is the src/filters level Makefile for Gramps
# Use GNU make's ':=' syntax for nice wildcard use.
# If not using GNU make, then list all .py files individually
pkgpython_PYTHON := ${wildcard *.py}
pkgpython_PYTHON = \
After.py\
AltFam.py\
Before.py\
Disconnected.py\
EventPlace.py\
EventType.py\
Females.py\
HavePhotos.py\
IncompleteNames.py\
Males.py\
MatchSndEx2.py\
MatchSndEx.py\
MutlipleMarriages.py\
NeverMarried.py\
NoBirthdate.py\
NoChildren.py\
RegExMatch.py\
SubString.py
pkgpyexecdir = @pkgpyexecdir@/filters
pkgpythondir = @pkgpythondir@/filters

View File

@ -129,7 +129,7 @@
<child>
<widget class="GtkImageMenuItem" id="reload_plugins">
<property name="visible">True</property>
<property name="label" translatable="yes">Reload Plugins</property>
<property name="label" translatable="yes">Reload plugins</property>
<property name="use_underline">True</property>
<signal name="activate" handler="on_reload_plugins_activate"/>
@ -265,7 +265,7 @@
<child>
<widget class="GtkImageMenuItem" id="add_bookmark">
<property name="visible">True</property>
<property name="label" translatable="yes">_Add Bookmark</property>
<property name="label" translatable="yes">_Add bookmark</property>
<property name="use_underline">True</property>
<signal name="activate" handler="on_add_bookmark_activate"/>
<accelerator key="D" modifiers="GDK_CONTROL_MASK" signal="activate"/>
@ -287,7 +287,7 @@
<child>
<widget class="GtkImageMenuItem" id="edit_bookmarks">
<property name="visible">True</property>
<property name="label" translatable="yes">_Edit Bookmarks</property>
<property name="label" translatable="yes">_Edit bookmarks</property>
<property name="use_underline">True</property>
<signal name="activate" handler="on_edit_bookmarks_activate"/>
<accelerator key="B" modifiers="GDK_CONTROL_MASK" signal="activate"/>
@ -315,7 +315,7 @@
<child>
<widget class="GtkMenuItem" id="jump_to">
<property name="visible">True</property>
<property name="label" translatable="yes">Go to Bookmark</property>
<property name="label" translatable="yes">Go to bookmark</property>
<property name="use_underline">True</property>
</widget>
</child>
@ -394,7 +394,7 @@
<child>
<widget class="GtkImageMenuItem" id="contents">
<property name="visible">True</property>
<property name="label" translatable="yes">_User's Manual</property>
<property name="label" translatable="yes">_User's manual</property>
<property name="use_underline">True</property>
<signal name="activate" handler="on_contents_activate"/>
@ -415,7 +415,7 @@
<child>
<widget class="GtkImageMenuItem" id="writing_extensions">
<property name="visible">True</property>
<property name="label" translatable="yes">_Writing Extensions</property>
<property name="label" translatable="yes">_Writing extensions</property>
<property name="use_underline">True</property>
<signal name="activate" handler="on_writing_extensions_activate"/>
@ -436,7 +436,7 @@
<child>
<widget class="GtkImageMenuItem" id="gramps_home_page">
<property name="visible">True</property>
<property name="label" translatable="yes">GRAMPS _Home Page</property>
<property name="label" translatable="yes">GRAMPS _home page</property>
<property name="use_underline">True</property>
<signal name="activate" handler="on_gramps_home_page_activate"/>
@ -457,7 +457,7 @@
<child>
<widget class="GtkImageMenuItem" id="gramps_mailing_lists">
<property name="visible">True</property>
<property name="label" translatable="yes">GRAMPS _Mailing Lists</property>
<property name="label" translatable="yes">GRAMPS _mailing lists</property>
<property name="use_underline">True</property>
<signal name="activate" handler="on_gramps_mailing_lists_activate"/>
@ -487,7 +487,7 @@
<child>
<widget class="GtkMenuItem" id="show_plugin_status">
<property name="visible">True</property>
<property name="label" translatable="yes">_Show Plugin Status</property>
<property name="label" translatable="yes">_Show plugin status</property>
<property name="use_underline">True</property>
<signal name="activate" handler="on_show_plugin_status"/>
</widget>
@ -533,7 +533,7 @@
<child>
<widget class="button" id="button2">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Open File</property>
<property name="tooltip" translatable="yes">Open file</property>
<property name="label" translatable="yes">Open</property>
<property name="use_underline">True</property>
<property name="stock_pixmap">gtk-open</property>
@ -544,7 +544,7 @@
<child>
<widget class="button" id="button3">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Save File</property>
<property name="tooltip" translatable="yes">Save file</property>
<property name="label" translatable="yes">Save</property>
<property name="use_underline">True</property>
<property name="stock_pixmap">gtk-save</property>
@ -1597,7 +1597,7 @@
<child>
<widget class="GtkLabel" id="label360">
<property name="visible">True</property>
<property name="label" translatable="yes">&lt;b&gt;Active Person&lt;/b&gt;</property>
<property name="label" translatable="yes">&lt;b&gt;Active person&lt;/b&gt;</property>
<property name="use_underline">False</property>
<property name="use_markup">True</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
@ -1621,7 +1621,7 @@
<child>
<widget class="GtkLabel" id="label362">
<property name="visible">True</property>
<property name="label" translatable="yes">&lt;b&gt;Active Person's Parents&lt;/b&gt;</property>
<property name="label" translatable="yes">&lt;b&gt;Active person's Parents&lt;/b&gt;</property>
<property name="use_underline">False</property>
<property name="use_markup">True</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
@ -1669,7 +1669,7 @@
<child>
<widget class="GtkLabel" id="label363">
<property name="visible">True</property>
<property name="label" translatable="yes">&lt;b&gt;Spouse's Parents&lt;/b&gt;</property>
<property name="label" translatable="yes">&lt;b&gt;Spouse's parents&lt;/b&gt;</property>
<property name="use_underline">False</property>
<property name="use_markup">True</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
@ -2524,7 +2524,7 @@
<widget class="GtkFileSelection" id="fileselection">
<property name="border_width">10</property>
<property name="visible">True</property>
<property name="title" translatable="yes">Select File - GRAMPS</property>
<property name="title" translatable="yes"></property>
<property name="type">GTK_WINDOW_TOPLEVEL</property>
<property name="window_position">GTK_WIN_POS_NONE</property>
<property name="modal">True</property>

View File

@ -1036,6 +1036,7 @@ class Gramps:
})
fileSelector = wFs.get_widget("fileselection")
fileSelector.set_title('%s - GRAMPS' % _('Save database'))
fileSelector.show()
def on_save_activate(self,obj):

View File

@ -124,7 +124,7 @@
<child>
<widget class="GtkLabel" id="label202">
<property name="visible">True</property>
<property name="label" translatable="yes">_Relationship Type:</property>
<property name="label" translatable="yes">_Relationship type:</property>
<property name="use_underline">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_CENTER</property>
@ -946,7 +946,7 @@
<child>
<widget class="GtkLabel" id="label222">
<property name="visible">True</property>
<property name="label" translatable="yes">&lt;b&gt;Primary Source&lt;/b&gt;</property>
<property name="label" translatable="yes">&lt;b&gt;Primary source&lt;/b&gt;</property>
<property name="use_underline">False</property>
<property name="use_markup">True</property>
<property name="justify">GTK_JUSTIFY_CENTER</property>

File diff suppressed because it is too large Load Diff

View File

@ -1462,7 +1462,7 @@
<child>
<widget class="GtkLabel" id="label287">
<property name="visible">True</property>
<property name="label" translatable="yes">&lt;b&gt;Internet Addresses&lt;/b&gt;</property>
<property name="label" translatable="yes">&lt;b&gt;Internet addresses&lt;/b&gt;</property>
<property name="use_underline">False</property>
<property name="use_markup">True</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>

View File

@ -370,7 +370,7 @@
<widget class="GtkDialog" id="plugstat">
<property name="visible">True</property>
<property name="title" translatable="yes">Plugin Status - GRAMPS</property>
<property name="title" translatable="yes"></property>
<property name="type">GTK_WINDOW_TOPLEVEL</property>
<property name="window_position">GTK_WIN_POS_NONE</property>
<property name="modal">False</property>
@ -426,10 +426,10 @@
<widget class="GtkTextView" id="text">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="editable">True</property>
<property name="editable">False</property>
<property name="justification">GTK_JUSTIFY_LEFT</property>
<property name="wrap_mode">GTK_WRAP_NONE</property>
<property name="cursor_visible">True</property>
<property name="cursor_visible">False</property>
<property name="pixels_above_lines">0</property>
<property name="pixels_below_lines">0</property>
<property name="pixels_inside_wrap">0</property>

View File

@ -31,6 +31,7 @@ import const
import GenericFilter
import AutoComp
import ListModel
import Utils
from intl import gettext as _
_name2list = {
@ -54,6 +55,9 @@ class FilterEditor:
self.delete = self.editor.get_widget('delete')
self.test = self.editor.get_widget('test')
Utils.set_titles(self.editor_top,self.editor.get_widget('title'),
_('User defined filters'))
self.editor.signal_autoconnect({
'on_add_clicked' : self.add_new_filter,
'on_edit_clicked' : self.edit_filter,
@ -104,7 +108,7 @@ class FilterEditor:
store,iter = self.clist.get_selected()
if iter:
filt = self.clist.get_object(iter)
list = filt.apply(self.db.getPersonMap().values())
list = filt.apply(self.db,self.db.getPersonMap().values())
ShowResults(list)
def delete_filter(self,obj):
@ -118,6 +122,9 @@ class FilterEditor:
self.filter = filter
self.glade = gtk.glade.XML(const.filterFile,'define_filter')
self.top = self.glade.get_widget('define_filter')
Utils.set_titles(self.top,self.glade.get_widget('title'),_('Define filter'))
self.rule_list = self.glade.get_widget('rule_list')
self.rlist = ListModel.ListModel(self.rule_list,
[(_('Name'),-1,150),(_('Value'),-1,150)],
@ -220,6 +227,9 @@ class FilterEditor:
self.frame = self.rule.get_widget('values')
self.rname = self.rule.get_widget('rule_name')
Utils.set_titles(self.rule_top, self.rule.get_widget('title'),
_('Add rule'))
self.notebook = gtk.Notebook()
self.notebook.set_show_tabs(0)
self.notebook.set_show_border(0)
@ -303,8 +313,7 @@ class FilterEditor:
self.draw_rules()
def rule_changed(self,obj):
name = obj.get_text()
page = self.name2page[name]
page = self.name2page[obj.get_text()]
self.notebook.set_current_page(page)
def rule_ok(self,obj):
@ -330,6 +339,7 @@ class ShowResults:
def __init__(self,plist):
self.glade = gtk.glade.XML(const.filterFile,'test')
self.top = self.glade.get_widget('test')
self.top.set_title('%s - GRAMPS' % _('Test Filter'))
text = self.glade.get_widget('text')
self.glade.signal_autoconnect({
'on_close_clicked' : self.close,

View File

@ -1,11 +1,57 @@
# This is the src/plugins level Makefile for Gramps
# Use GNU make's ':=' syntax for nice wildcard use.
# If not using GNU make, then list all .py files individually
pkgpython_PYTHON := ${wildcard *.py}
pkgpython_PYTHON = \
AncestorChart.py\
AncestorReport.py\
ChangeTypes.py\
Check.py\
count_anc.py\
Desbrowser.py\
DescendReport.py\
DesGraph.py\
DetAncestralReport.py\
DetDescendantReport.py\
EventCmp.py\
FamilyGroup.py\
FilterEditor.py\
FullFamily.py\
GraphViz.py\
IndivComplete.py\
IndivSummary.py\
Merge.py\
PatchNames.py\
ReadGedcom.py\
ReadNative.py\
RelCalc.py\
ReorderIds.py\
soundgen.py\
Summary.py\
TimeLine.py\
Verify.py\
WebPage.py\
WriteGedcom.py\
WritePkg.py
pkgpyexecdir = @pkgpyexecdir@/plugins
pkgpythondir = @pkgpythondir@/plugins
GLADEFILES := ${wildcard *.glade}
GLADEFILES = \
changetype.glade\
desbrowse.glade\
eventcmp.glade\
gedcomexport.glade\
gedcomimport.glade\
merge.glade\
pafexport.glade\
patchnames.glade\
pkgexport.glade\
readgedcom.glade\
relcalc.glade\
soundex.glade\
summary.glade\
verify.glade
pkgdatadir = ${datadir}/@PACKAGE@/plugins

File diff suppressed because it is too large Load Diff

View File

@ -509,7 +509,7 @@
<child>
<widget class="GtkLabel" id="label122">
<property name="visible">True</property>
<property name="label" translatable="yes">&lt;b&gt;Revision Control&lt;/b&gt;</property>
<property name="label" translatable="yes">&lt;b&gt;Revision control&lt;/b&gt;</property>
<property name="use_underline">False</property>
<property name="use_markup">True</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
@ -1226,7 +1226,7 @@
<child>
<widget class="GtkLabel" id="label127">
<property name="visible">True</property>
<property name="label" translatable="yes">&lt;b&gt;Display Formats&lt;/b&gt;</property>
<property name="label" translatable="yes">&lt;b&gt;Display formats&lt;/b&gt;</property>
<property name="use_underline">False</property>
<property name="use_markup">True</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
@ -1250,7 +1250,7 @@
<child>
<widget class="GtkLabel" id="label128">
<property name="visible">True</property>
<property name="label" translatable="yes">&lt;b&gt;Entry Formats&lt;/b&gt;</property>
<property name="label" translatable="yes">&lt;b&gt;Entry formats&lt;/b&gt;</property>
<property name="use_underline">False</property>
<property name="use_markup">True</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
@ -1767,7 +1767,7 @@
<child>
<widget class="GtkLabel" id="label130">
<property name="visible">True</property>
<property name="label" translatable="yes">&lt;b&gt;Researcher Information&lt;/b&gt;</property>
<property name="label" translatable="yes">&lt;b&gt;Researcher information&lt;/b&gt;</property>
<property name="use_underline">False</property>
<property name="use_markup">True</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
@ -2129,7 +2129,7 @@
<child>
<widget class="GtkLabel" id="label131">
<property name="visible">True</property>
<property name="label" translatable="yes">&lt;b&gt;Report Preferences&lt;/b&gt;</property>
<property name="label" translatable="yes">&lt;b&gt;Report preferences&lt;/b&gt;</property>
<property name="use_underline">False</property>
<property name="use_markup">True</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>

View File

@ -195,7 +195,7 @@
<widget class="GtkDialog" id="revselect">
<property name="visible">True</property>
<property name="title" translatable="yes">Select an older revision - GRAMPS</property>
<property name="title" translatable="yes"></property>
<property name="type">GTK_WINDOW_TOPLEVEL</property>
<property name="window_position">GTK_WIN_POS_NONE</property>
<property name="modal">False</property>
@ -317,7 +317,7 @@
<widget class="GtkDialog" id="revcom">
<property name="visible">True</property>
<property name="title" translatable="yes">Revison Control Comment - GRAMPS</property>
<property name="title" translatable="yes"></property>
<property name="type">GTK_WINDOW_TOPLEVEL</property>
<property name="window_position">GTK_WIN_POS_NONE</property>
<property name="modal">False</property>

View File

@ -5,7 +5,7 @@
<widget class="GtkDialog" id="define_filter">
<property name="visible">True</property>
<property name="title" translatable="yes">Define Filter - GRAMPS</property>
<property name="title" translatable="yes"></property>
<property name="type">GTK_WINDOW_TOPLEVEL</property>
<property name="window_position">GTK_WIN_POS_NONE</property>
<property name="modal">False</property>
@ -14,7 +14,7 @@
<property name="resizable">True</property>
<property name="destroy_with_parent">False</property>
<property name="icon">gramps.png</property>
<property name="has_separator">True</property>
<property name="has_separator">False</property>
<child internal-child="vbox">
<widget class="GtkVBox" id="dialog-vbox1">
@ -39,6 +39,7 @@
<signal name="clicked" handler="on_cancel_clicked"/>
</widget>
</child>
<child>
<widget class="GtkButton" id="ok">
<property name="visible">True</property>
@ -52,7 +53,6 @@
<signal name="clicked" handler="on_ok_clicked"/>
</widget>
</child>
</widget>
<packing>
<property name="padding">0</property>
@ -69,9 +69,9 @@
<property name="spacing">0</property>
<child>
<widget class="GtkLabel" id="label1">
<widget class="GtkLabel" id="title">
<property name="visible">True</property>
<property name="label" translatable="yes">Define Filter</property>
<property name="label" translatable="yes"></property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_CENTER</property>
@ -80,7 +80,7 @@
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
<property name="ypad">6</property>
</widget>
<packing>
<property name="padding">0</property>
@ -89,39 +89,30 @@
</packing>
</child>
<child>
<widget class="GtkHSeparator" id="hseparator1">
<property name="visible">True</property>
</widget>
<packing>
<property name="padding">5</property>
<property name="expand">False</property>
<property name="fill">True</property>
</packing>
</child>
<child>
<widget class="GtkTable" id="table1">
<property name="border_width">12</property>
<property name="visible">True</property>
<property name="n_rows">6</property>
<property name="n_columns">2</property>
<property name="homogeneous">False</property>
<property name="row_spacing">0</property>
<property name="column_spacing">0</property>
<property name="row_spacing">6</property>
<property name="column_spacing">12</property>
<child>
<widget class="GtkLabel" id="label2">
<property name="visible">True</property>
<property name="label" translatable="yes">Name</property>
<property name="use_underline">False</property>
<property name="label" translatable="yes">_Name:</property>
<property name="use_underline">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_CENTER</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">1</property>
<property name="xalign">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
<property name="mnemonic_widget">filter_name</property>
</widget>
<packing>
<property name="left_attach">0</property>
@ -138,16 +129,17 @@
<child>
<widget class="GtkLabel" id="label10">
<property name="visible">True</property>
<property name="label" translatable="yes">Comment</property>
<property name="use_underline">False</property>
<property name="label" translatable="yes">_Comment:</property>
<property name="use_underline">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_CENTER</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">1</property>
<property name="xalign">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
<property name="mnemonic_widget">comment</property>
</widget>
<packing>
<property name="left_attach">0</property>
@ -212,7 +204,7 @@
<widget class="GtkRadioButton" id="logical_one">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Exactly one rule must apply</property>
<property name="label" translatable="yes">E_xactly one rule must apply</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="active">False</property>
@ -233,7 +225,7 @@
<widget class="GtkRadioButton" id="logical_or">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">At least one rule must apply</property>
<property name="label" translatable="yes">At least _one rule must apply</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="active">False</property>
@ -255,7 +247,7 @@
<widget class="GtkRadioButton" id="logical_and">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">All rules must apply</property>
<property name="label" translatable="yes">All _rules must apply</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="active">True</property>
@ -277,7 +269,7 @@
<widget class="GtkCheckButton" id="logical_not">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Invert</property>
<property name="label" translatable="yes">_Invert</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="active">False</property>
@ -302,22 +294,106 @@
</child>
<child>
<widget class="GtkScrolledWindow" id="scrolledwindow1">
<widget class="GtkHBox" id="hbox6">
<property name="border_width">12</property>
<property name="visible">True</property>
<property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
<property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
<property name="shadow_type">GTK_SHADOW_IN</property>
<property name="window_placement">GTK_CORNER_TOP_LEFT</property>
<property name="homogeneous">False</property>
<property name="spacing">6</property>
<child>
<widget class="GtkTreeView" id="rule_list">
<widget class="GtkScrolledWindow" id="scrolledwindow1">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="headers_visible">True</property>
<property name="rules_hint">False</property>
<property name="reorderable">False</property>
<property name="enable_search">True</property>
<property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
<property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
<property name="shadow_type">GTK_SHADOW_IN</property>
<property name="window_placement">GTK_CORNER_TOP_LEFT</property>
<child>
<widget class="GtkTreeView" id="rule_list">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="headers_visible">True</property>
<property name="rules_hint">False</property>
<property name="reorderable">False</property>
<property name="enable_search">True</property>
</widget>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">True</property>
<property name="fill">True</property>
</packing>
</child>
<child>
<widget class="GtkVBox" id="vbox6">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">6</property>
<child>
<widget class="GtkButton" id="add">
<property name="visible">True</property>
<property name="can_default">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">_Add...</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<signal name="clicked" handler="on_add_clicked"/>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<widget class="GtkButton" id="edit">
<property name="visible">True</property>
<property name="sensitive">False</property>
<property name="can_default">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">_Edit...</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<signal name="clicked" handler="on_edit_clicked"/>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<widget class="GtkButton" id="delete">
<property name="visible">True</property>
<property name="sensitive">False</property>
<property name="can_default">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">_Delete</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<signal name="clicked" handler="on_delete_clicked"/>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<placeholder/>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">True</property>
</packing>
</child>
</widget>
<packing>
@ -332,44 +408,6 @@
<property name="visible">True</property>
<property name="layout_style">GTK_BUTTONBOX_SPREAD</property>
<property name="spacing">30</property>
<child>
<widget class="GtkButton" id="add">
<property name="visible">True</property>
<property name="can_default">True</property>
<property name="can_focus">True</property>
<property name="label">gtk-add</property>
<property name="use_stock">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<signal name="clicked" handler="on_add_clicked"/>
</widget>
</child>
<child>
<widget class="GtkButton" id="edit">
<property name="visible">True</property>
<property name="sensitive">False</property>
<property name="can_default">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Edit</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<signal name="clicked" handler="on_edit_clicked"/>
</widget>
</child>
<child>
<widget class="GtkButton" id="delete">
<property name="visible">True</property>
<property name="sensitive">False</property>
<property name="can_default">True</property>
<property name="can_focus">True</property>
<property name="label">gtk-remove</property>
<property name="use_stock">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<signal name="clicked" handler="on_delete_clicked"/>
</widget>
</child>
</widget>
<packing>
<property name="padding">0</property>
@ -390,14 +428,16 @@
<widget class="GtkDialog" id="add_rule">
<property name="visible">True</property>
<property name="title" translatable="yes">Add Rule - GRAMPS</property>
<property name="title" translatable="yes"></property>
<property name="type">GTK_WINDOW_TOPLEVEL</property>
<property name="window_position">GTK_WIN_POS_NONE</property>
<property name="modal">False</property>
<property name="default_width">400</property>
<property name="default_height">300</property>
<property name="resizable">True</property>
<property name="destroy_with_parent">False</property>
<property name="icon">gramps.png</property>
<property name="has_separator">True</property>
<property name="has_separator">False</property>
<child internal-child="vbox">
<widget class="GtkVBox" id="dialog-vbox2">
@ -421,6 +461,7 @@
<property name="response_id">0</property>
</widget>
</child>
<child>
<widget class="GtkButton" id="ok">
<property name="visible">True</property>
@ -432,7 +473,6 @@
<property name="response_id">0</property>
</widget>
</child>
</widget>
<packing>
<property name="padding">0</property>
@ -449,9 +489,9 @@
<property name="spacing">0</property>
<child>
<widget class="GtkLabel" id="label5">
<widget class="GtkLabel" id="title">
<property name="visible">True</property>
<property name="label" translatable="yes">Add Rule</property>
<property name="label" translatable="yes"></property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_CENTER</property>
@ -470,40 +510,36 @@
</child>
<child>
<widget class="GtkHSeparator" id="hseparator2">
<property name="visible">True</property>
</widget>
<packing>
<property name="padding">5</property>
<property name="expand">False</property>
<property name="fill">True</property>
</packing>
</child>
<child>
<widget class="GtkHBox" id="hbox2">
<widget class="GtkTable" id="table2">
<property name="border_width">12</property>
<property name="visible">True</property>
<property name="n_rows">4</property>
<property name="n_columns">3</property>
<property name="homogeneous">False</property>
<property name="spacing">0</property>
<property name="row_spacing">6</property>
<property name="column_spacing">8</property>
<child>
<widget class="GtkLabel" id="label6">
<widget class="GtkLabel" id="label13">
<property name="visible">True</property>
<property name="label" translatable="yes">Rule</property>
<property name="label" translatable="yes">Name:</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_CENTER</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0.5</property>
<property name="xalign">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
<packing>
<property name="padding">5</property>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
<property name="x_options">fill</property>
<property name="y_options"></property>
</packing>
</child>
@ -560,46 +596,74 @@
</child>
</widget>
<packing>
<property name="padding">5</property>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="left_attach">2</property>
<property name="right_attach">3</property>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
<property name="y_options"></property>
</packing>
</child>
</widget>
<packing>
<property name="padding">5</property>
<property name="expand">False</property>
<property name="fill">True</property>
</packing>
</child>
<child>
<widget class="GtkFrame" id="values">
<property name="visible">True</property>
<property name="label_xalign">0</property>
<property name="label_yalign">0.5</property>
<property name="shadow_type">GTK_SHADOW_ETCHED_IN</property>
<child>
<placeholder/>
<widget class="GtkFrame" id="values">
<property name="visible">True</property>
<property name="label_xalign">0</property>
<property name="label_yalign">0.5</property>
<property name="shadow_type">GTK_SHADOW_NONE</property>
<child>
<placeholder/>
</child>
<child>
<widget class="GtkLabel" id="label11">
<property name="visible">True</property>
<property name="label" translatable="yes">&lt;b&gt;Values&lt;/b&gt;</property>
<property name="use_underline">False</property>
<property name="use_markup">True</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
<packing>
<property name="type">label_item</property>
</packing>
</child>
</widget>
<packing>
<property name="left_attach">0</property>
<property name="right_attach">3</property>
<property name="top_attach">3</property>
<property name="bottom_attach">4</property>
<property name="x_options">fill</property>
</packing>
</child>
<child>
<widget class="GtkLabel" id="label11">
<widget class="GtkLabel" id="label12">
<property name="visible">True</property>
<property name="label" translatable="yes">Values</property>
<property name="label" translatable="yes">&lt;b&gt;Rule&lt;/b&gt;</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="use_markup">True</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0.5</property>
<property name="xalign">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="xpad">4</property>
<property name="ypad">0</property>
</widget>
<packing>
<property name="type">label_item</property>
<property name="left_attach">0</property>
<property name="right_attach">3</property>
<property name="top_attach">0</property>
<property name="bottom_attach">1</property>
<property name="x_options">fill</property>
<property name="y_options"></property>
</packing>
</child>
</widget>
@ -622,15 +686,16 @@
<widget class="GtkDialog" id="filter_list">
<property name="visible">True</property>
<property name="title" translatable="yes">User Defined Filters - GRAMPS</property>
<property name="title" translatable="yes"></property>
<property name="type">GTK_WINDOW_TOPLEVEL</property>
<property name="window_position">GTK_WIN_POS_NONE</property>
<property name="modal">False</property>
<property name="default_width">400</property>
<property name="default_height">350</property>
<property name="resizable">True</property>
<property name="destroy_with_parent">False</property>
<property name="icon">gramps.png</property>
<property name="has_separator">True</property>
<property name="has_separator">False</property>
<child internal-child="vbox">
<widget class="GtkVBox" id="dialog-vbox3">
@ -671,9 +736,9 @@
<property name="spacing">0</property>
<child>
<widget class="GtkLabel" id="label7">
<widget class="GtkLabel" id="title">
<property name="visible">True</property>
<property name="label" translatable="yes">User Defined Filters</property>
<property name="label" translatable="yes"></property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_CENTER</property>
@ -692,33 +757,125 @@
</child>
<child>
<widget class="GtkHSeparator" id="hseparator3">
<widget class="GtkHBox" id="hbox5">
<property name="border_width">6</property>
<property name="visible">True</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">True</property>
</packing>
</child>
<child>
<widget class="GtkScrolledWindow" id="scrolledwindow2">
<property name="visible">True</property>
<property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
<property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
<property name="shadow_type">GTK_SHADOW_IN</property>
<property name="window_placement">GTK_CORNER_TOP_LEFT</property>
<property name="homogeneous">False</property>
<property name="spacing">6</property>
<child>
<widget class="GtkTreeView" id="filters">
<widget class="GtkScrolledWindow" id="scrolledwindow2">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="headers_visible">True</property>
<property name="rules_hint">False</property>
<property name="reorderable">False</property>
<property name="enable_search">True</property>
<property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
<property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
<property name="shadow_type">GTK_SHADOW_IN</property>
<property name="window_placement">GTK_CORNER_TOP_LEFT</property>
<child>
<widget class="GtkTreeView" id="filters">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="headers_visible">True</property>
<property name="rules_hint">False</property>
<property name="reorderable">False</property>
<property name="enable_search">True</property>
</widget>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">True</property>
<property name="fill">True</property>
</packing>
</child>
<child>
<widget class="GtkVBox" id="vbox5">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">6</property>
<child>
<widget class="GtkButton" id="button3">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Add a new filter</property>
<property name="can_default">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">_Add...</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<signal name="clicked" handler="on_add_clicked"/>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<widget class="GtkButton" id="edit">
<property name="visible">True</property>
<property name="sensitive">False</property>
<property name="tooltip" translatable="yes">Edit the selected filter</property>
<property name="can_default">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">_Edit...</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<signal name="clicked" handler="on_edit_clicked"/>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<widget class="GtkButton" id="test">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">_Test...</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<signal name="clicked" handler="on_test_clicked" last_modification_time="Thu, 06 Mar 2003 21:59:03 GMT"/>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<widget class="GtkButton" id="delete">
<property name="visible">True</property>
<property name="sensitive">False</property>
<property name="tooltip" translatable="yes">Delete the selected filter</property>
<property name="can_default">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">_Delete</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<signal name="clicked" handler="on_delete_clicked"/>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<placeholder/>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">True</property>
</packing>
</child>
</widget>
<packing>
@ -733,115 +890,6 @@
<property name="visible">True</property>
<property name="layout_style">GTK_BUTTONBOX_SPREAD</property>
<property name="spacing">30</property>
<child>
<widget class="GtkButton" id="button3">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Add a new filter</property>
<property name="can_default">True</property>
<property name="can_focus">True</property>
<property name="label">gtk-add</property>
<property name="use_stock">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<signal name="clicked" handler="on_add_clicked"/>
</widget>
</child>
<child>
<widget class="GtkButton" id="edit">
<property name="visible">True</property>
<property name="sensitive">False</property>
<property name="tooltip" translatable="yes">Edit the selected filter</property>
<property name="can_default">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Edit</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<signal name="clicked" handler="on_edit_clicked"/>
</widget>
</child>
<child>
<widget class="GtkButton" id="delete">
<property name="visible">True</property>
<property name="sensitive">False</property>
<property name="tooltip" translatable="yes">Delete the selected filter</property>
<property name="can_default">True</property>
<property name="can_focus">True</property>
<property name="label">gtk-remove</property>
<property name="use_stock">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<signal name="clicked" handler="on_delete_clicked"/>
</widget>
</child>
<child>
<widget class="GtkButton" id="test">
<property name="visible">True</property>
<property name="sensitive">False</property>
<property name="tooltip" translatable="yes">Display people matching the filter</property>
<property name="can_default">True</property>
<property name="can_focus">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<signal name="clicked" handler="on_test_clicked"/>
<child>
<widget class="GtkAlignment" id="alignment1">
<property name="visible">True</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xscale">0</property>
<property name="yscale">0</property>
<child>
<widget class="GtkHBox" id="hbox3">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">2</property>
<child>
<widget class="GtkImage" id="image1">
<property name="visible">True</property>
<property name="stock">gtk-execute</property>
<property name="icon_size">4</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<widget class="GtkLabel" id="label12">
<property name="visible">True</property>
<property name="label" translatable="yes">Test</property>
<property name="use_underline">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
</widget>
</child>
</widget>
</child>
</widget>
</child>
</widget>
<packing>
<property name="padding">0</property>
@ -862,14 +910,16 @@
<widget class="GtkDialog" id="test">
<property name="visible">True</property>
<property name="title" translatable="yes">Test Filter - GRAMPS</property>
<property name="title" translatable="yes"></property>
<property name="type">GTK_WINDOW_TOPLEVEL</property>
<property name="window_position">GTK_WIN_POS_NONE</property>
<property name="modal">False</property>
<property name="default_width">450</property>
<property name="default_height">400</property>
<property name="resizable">True</property>
<property name="destroy_with_parent">False</property>
<property name="icon">gramps.png</property>
<property name="has_separator">True</property>
<property name="has_separator">False</property>
<child internal-child="vbox">
<widget class="GtkVBox" id="dialog-vbox4">

View File

@ -135,7 +135,7 @@
<child>
<widget class="GtkLabel" id="label254">
<property name="visible">True</property>
<property name="label" translatable="yes">&lt;b&gt;Source Details&lt;/b&gt;</property>
<property name="label" translatable="yes">&lt;b&gt;Source details&lt;/b&gt;</property>
<property name="use_underline">False</property>
<property name="use_markup">True</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
@ -456,7 +456,7 @@
<child>
<widget class="GtkLabel" id="label255">
<property name="visible">True</property>
<property name="label" translatable="yes">&lt;b&gt;Source Selection&lt;/b&gt;</property>
<property name="label" translatable="yes">&lt;b&gt;Source selection&lt;/b&gt;</property>
<property name="use_underline">False</property>
<property name="use_markup">True</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>

View File

@ -6,7 +6,7 @@
<widget class="GtkDialog" id="styles">
<property name="visible">True</property>
<property name="title" translatable="yes">Document Styles - GRAMPS</property>
<property name="title" translatable="yes"></property>
<property name="type">GTK_WINDOW_TOPLEVEL</property>
<property name="window_position">GTK_WIN_POS_NONE</property>
<property name="modal">True</property>
@ -192,7 +192,7 @@
<widget class="GtkDialog" id="editor">
<property name="visible">True</property>
<property name="title" translatable="yes">Style Editor - GRAMPS</property>
<property name="title" translatable="yes"></property>
<property name="type">GTK_WINDOW_TOPLEVEL</property>
<property name="window_position">GTK_WIN_POS_NONE</property>
<property name="modal">True</property>
@ -283,7 +283,7 @@
<child>
<widget class="GtkLabel" id="label19">
<property name="visible">True</property>
<property name="label" translatable="yes">Style _Name:</property>
<property name="label" translatable="yes">Style _name:</property>
<property name="use_underline">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_CENTER</property>
@ -525,7 +525,7 @@
<child>
<widget class="GtkLabel" id="label4">
<property name="visible">True</property>
<property name="label" translatable="yes">&lt;b&gt;Type Face&lt;/b&gt;</property>
<property name="label" translatable="yes">&lt;b&gt;Type face&lt;/b&gt;</property>
<property name="use_underline">False</property>
<property name="use_markup">True</property>
<property name="justify">GTK_JUSTIFY_CENTER</property>
@ -695,7 +695,7 @@
<child>
<widget class="GtkLabel" id="label22">
<property name="visible">True</property>
<property name="label" translatable="yes">&lt;b&gt;Font Options&lt;/b&gt;</property>
<property name="label" translatable="yes">&lt;b&gt;Font options&lt;/b&gt;</property>
<property name="use_underline">False</property>
<property name="use_markup">True</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
@ -1258,7 +1258,7 @@
<child>
<widget class="GtkLabel" id="label23">
<property name="visible">True</property>
<property name="label" translatable="yes">&lt;b&gt;Paragraph Options&lt;/b&gt;</property>
<property name="label" translatable="yes">&lt;b&gt;Paragraph options&lt;/b&gt;</property>
<property name="use_underline">False</property>
<property name="use_markup">True</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>