Commit Graph

118 Commits

Author SHA1 Message Date
Alex Roitman
2e34d583c8 * src/ViewManager.py (preferences_activate): Use uistate to emit.
* src/DisplayState.py (DisplayState.__signals__): Add new signal.
	* src/GrampsCfg.py (cb_name_changed): Use uistate to emit signal.


svn: r7265
2006-08-25 23:46:19 +00:00
Zsolt Foldvari
bd377f63a0 2006-08-25 Zsolt Foldvari <zsolt.foldvari@nokia.com>
* src/GrampsCfg.py: Implement callback mechanism for dynamic name format
	change.
	* src/ViewManager.py (__init__, preferences_activate, change_page):
	Rebuild the active page after name fomat changed by connecting to
	GrampsPreferences' signal



svn: r7262
2006-08-25 17:17:37 +00:00
Alex Roitman
cd50843624 2006-08-20 Alex Roitman <shura@gramps-project.org>
* src/Config/_GrampsConfigKeys.py: Regenerate file.
	* src/GrampsCfg.py (add_behavior_panel): Use new key.
	* data/gramps.schemas.in: Add default-source key.



svn: r7222
2006-08-21 05:32:07 +00:00
Zsolt Foldvari
5af5a2a3c2 2006-08-03 Zsolt Foldvari <zfoldvar@users.sourceforge.net>
* src/plugins/Check.py (cleanup_deleted_name_formats): Change hardcoded
	values with constants.
	* src/GrampsCfg.py: Unused constants cleanup.
	* src/DataViews/_PedigreeView.py (__init__): connection to "active-
	person-changed" signal moved to set_active()
	(set_active, set_inactive): Improve performance of other views.
	* src/NameDisplay.py (name_grouping_data): Change hardcoded values
	with constants.



svn: r7114
2006-08-03 14:26:43 +00:00
Zsolt Foldvari
a16b488d1d 2006-07-31 Zsolt Foldvari <zfoldvar@users.sourceforge.net>
* src/NameDisplay.py: Rewrite in more object oriented way; Interface
	change.
	* src/ViewManager.py (post_load_newdb): Change of NameDisplay interface.
	* src/GrampsDb/_ReadXML.py (parse): Change of NameDisplay interface.
	* src/GrampsDb/_ReadGrdb.py (importData): Change of NameDisplay
	interface.
	* src/GrampsCfg.py: Change of NameDisplay interface; Name format Edit
	and Add callbacks divided.
	* src/RelLib/_Name.py: Default/standard name format definitions moved to
	NameDisplay.
	* src/Editors/_EditName.py (_setup_fields): Change of NameDisplay
	interface.
	* src/plugins/Check.py (cleanup_deleted_name_formats): Change of
	NameDisplay interface.



svn: r7099
2006-07-31 11:08:44 +00:00
Zsolt Foldvari
5814acc1e3 2006-07-29 Zsolt Foldvari <zfoldvar@users.sourceforge.net>
* src/NameDisplay.py (display_given): Cleanup
	* src/Gramps.Cfg.py (NameFormatEditDlg.run): Verification of the
	returned values



svn: r7088
2006-07-29 20:56:11 +00:00
Zsolt Foldvari
c7d9e4b9fe 2006-07-27 Zsolt Foldvari <zfoldvar@users.sourceforge.net>
* src/GrampsCfg.py: Custom name format support improvements.
	* src/Editors/_EditName.py: Custom name format support improvements.
	* src/NameDisplay.py: Custom name format support improvements.
	* src/plugins/Check.py (cleanup_deleted_name_formats): Db cleanup of
	deleted custom name format references.



svn: r7083
2006-07-27 10:48:16 +00:00
Alex Roitman
d575d66fe8 2006-07-20 Alex Roitman <shura@gramps-project.org>
* src/GrampsCfg.py (add_name_panel): Minor UI improvements;
	(_build_custom_name_ui): Minor UI improvements;
	(cb_edit_fmt_str): Make correct transient_for call.
	* src/gramps.glade (namefmt_edit): Add expander with the help on
	format definitions; minor UI improvements.



svn: r7050
2006-07-20 19:12:22 +00:00
Alex Roitman
0d24ddc403 2006-07-19 Zsolt Foldvari <zsolt.foldvari@nokia.com>
* src/GrampsCfg.py: UI improvements.
	* src/Config/_GrampsIniKeys.py: Proper key retrieval.



svn: r7045
2006-07-19 19:56:15 +00:00
Alex Roitman
cf0449db8f 2006-07-16 Zsolt Foldvari <zsolt.foldvari@nokia.com>
* src/ViewManager.py: Custom name format support.
	* src/GrampsCfg.py: Custom name format support.
	* src/RelLib/_Name.py: Custom name format support.
	* src/Editors/_EditName.py: Custom name format support.
	* src/glade/gramps.glade: Custom name format support.
	* src/NameDisplay.py: Custom name format support.



svn: r7032
2006-07-16 14:44:13 +00:00
Alex Roitman
712d0828e2 Update
svn: r7002
2006-07-06 21:27:29 +00:00
Don Allingham
05caffe3ed * src/GrampsCfg.py: add cell renderer to combobox
svn: r7001
2006-07-06 20:11:32 +00:00
Alex Roitman
154787c06c 2006-07-06 Alex Roitman <shura@gramps-project.org>
* src/ViewManager.py (ViewManager.post_load_newdb): Register
	custom formats after loading the db.
	* src/GrampsCfg.py: Switch to use new formats (still in progress).
	* src/GrampsDb/_GrampsDbBase.py (GrampsDbBase.__init__): Set up
	custom name formats list.
	* src/GrampsDb/_DbUtils.py (db_copy): Copy custom name formats.
	* src/GrampsDb/_ReadXML.py (start_format): Parse custom formats.
	* src/GrampsDb/_WriteXML.py (write_name_formats): Add method.
	* src/GrampsDb/_GrampsBSDDB.py (GrampsBSDDB._load_metadata) 
	(GrampsBSDDB._close_metadata): load and save name_formats.
	* src/Editors/_EditName.py (EditName._setup_fields): Use proper
	format lists.
	* src/NameDisplay.py: Support new name formats scheme.
	* src/RelLib/_Name.py (Name.DEFAULT_FORMATS): Add list of formats.



svn: r6999
2006-07-06 17:46:46 +00:00
Alex Roitman
824ee8968c 2006-06-24 Alex Roitman <shura@gramps-project.org>
* src/NameDisplay.py (_format_base): Add format string display;
	(_format_raw, _format): Add format string methods.
	* src/GrampsCfg.py (name_changed): Switch back to int key.
	* data/gramps.schemas.in: Add name-format-str key for custom name
	display format string.
	* src/Config/_GrampsConfigKeys.py: Re-generate the file.
	* src/Config/gen_schema_keys.py (copy): Add Id string; 
	Write header into the generated file.



svn: r6967
2006-06-25 05:39:32 +00:00
Alex Roitman
55884a56d3 * src/Config/_GrampsConfigKeys.py: Re-generate file.
* src/GrampsCfg.py: More name display prefs.


svn: r6896
2006-06-15 21:07:41 +00:00
Alex Roitman
5b113d9558 2006-06-14 Alex Roitman <shura@gramps-project.org>
* src/NameDisplay.py: Factor out commont code.
	* src/Editors/_EditName.py (_setup_fields): Remove Default item.
	* src/RelLib/_Name.py (Name.DEF): Replace with CUSTOM, use LNFN in
	place of previous DEF.
	* src/GrampsCfg.py (add_name_panel): Add Name Display panel.
	* src/GrampsDb/_ReadXML.py (stop_name): Properly set name type;
	do not set conf attribute on attr, addr, and event.



svn: r6889
2006-06-14 20:20:39 +00:00
Don Allingham
4cb9bb81b2 2006-05-23 Don Allingham <don@gramps-project.org>
* src/DataViews/_RelationView.py: make shading optional
	* src/GrampsCfg.py: make shading optional
	* src/Config/_GrampsConfigKeys.py: make shading optional
	* data/gramps.schemas.in: make shading optional



svn: r6769
2006-05-24 04:49:05 +00:00
Don Allingham
ff07f8407f * src/DataViews/_MapView.py: use config value to determine if online
maps should be used
	* src/GrampsCfg.py: online map config value
	* src/Config/_GrampsCOnfigKeys.py: online map config value
	* daa/gramps.schema.in: online map config value


svn: r6728
2006-05-20 01:49:38 +00:00
Don Allingham
ae6da05e4b 2006-05-17 Don Allingham <don@gramps-project.org>
* src/GrampsCfg.py: pychecker fixes
	* src/GrampsWidgets.py: pychecker fixes
	* src/glade/gramps.glade: fix text entry -> label
	* src/NameDisplay.py: pychecker fixes
	* src/DisplayState.py: pychecker fixes
	* src/GrampsDisplay.py: pychecker fixes
	* src/DateEdit.py: pychecker fixes
	* src/gramps_main.py: pychecker fixes
	* src/DbLoader.py: pychecker fixes



svn: r6701
2006-05-18 01:39:50 +00:00
Alex Roitman
0ca3a01bd3 * src/Config/_GrampsGconfKeys.py (get_default): Allow other types.
* src/GrampsCfg.py (reset_colors): Emit color-set signal to
	trigget hex text updates.


svn: r6643
2006-05-13 05:53:47 +00:00
Don Allingham
9aa8094b00 2006-05-12 Don Allingham <don@gramps-project.org>
* src/GrampsCfg.py: add revert option for colors
	* src/Config/_GrampsGconfKeys.py: added get_default
	* src/Config/_GrampsIniKeys.py: added get_default



svn: r6641
2006-05-13 05:12:19 +00:00
Alex Roitman
b9cc6e8bf0 2006-05-12 Alex Roitman <shura@gramps-project.org>
* src/GrampsCfg.py (add_color): Update text label after color change.



svn: r6638
2006-05-13 04:30:47 +00:00
Don Allingham
3b62238ba8 * src/GrampsCfg.py: fix color dialog buttons
* src/Filters/Rules/Person/_HasEvent.py: handle EventType


svn: r6635
2006-05-13 03:53:06 +00:00
Don Allingham
8fc4565d1b * src/GrampsCfg.py: update for selectable colors, default colors
* data/gramps.schemas.in: update for selectable colors, default colors


svn: r6631
2006-05-12 18:49:12 +00:00
Don Allingham
75d6553294 * src/GrampsCfg.py: update for selectable colors
* src/PeopleModel.py: update for selectable colors
	* data/gramps.schemas.in: update for selectable colors


svn: r6629
2006-05-12 18:20:18 +00:00
Don Allingham
b7e6d2f149 sidebar-text option
svn: r6534
2006-05-03 22:21:59 +00:00
Alex Roitman
53c551afd5 * src/GrampsCfg.py (build_window_key): Remove, as there's no need
to override the base class anymore.


svn: r6450
2006-04-26 05:15:38 +00:00
Don Allingham
50ee01250d * src/GrampsCfg/py: move and rename tabs, change Prefixes for Formats
svn: r6444
2006-04-26 03:46:33 +00:00
Don Allingham
1eb5f05424 * src/GrampsCfg/py: move and rename tabs
svn: r6443
2006-04-26 02:46:09 +00:00
Don Allingham
4d1b7b53dd svn: r6439 2006-04-26 01:44:03 +00:00
Don Allingham
5afa945819 Config method changed
svn: r6429
2006-04-24 21:04:01 +00:00
Don Allingham
c44729fb3a 2006-04-23 Don Allingham <don@gramps-project.org>
* src/GrampsCfg.py: remove familyview stuff
	* src/plugins/TestcaseGenerator.py: fix BIRTH, DEATH constants



svn: r6421
2006-04-23 21:17:50 +00:00
Don Allingham
471694030c * src/DataViews/_EventView.py: pychecker fixes
* src/ViewManager.py: call scratchpad properly
	* src/GrampsCfg.py: pychecker fixes
	* src/Editors/_EditEvent.py
	* src/DisplayModels.py:pychecker fixes
	* src/DisplayTabs.py: pychecker fixes
	* src/ScratchPad.py: use ManagedWindow
	* src/GenericFilter.py: pychecker fixes
	* src/ImgManip.py: pychecker fixes
	* src/PageView.py: pychecker fixes
	* src/ArgHandler.py: pychecker fixes


svn: r6389
2006-04-21 04:14:00 +00:00
Alex Roitman
57d6df04c9 * various: Revert back to using gettext except for the modules that need context -- those will use TransUtils.sgettext
svn: r6282
2006-04-06 22:02:46 +00:00
Don Allingham
4c3e96b163 remove expanduser
svn: r6219
2006-03-29 04:24:39 +00:00
Alex Roitman
93add4967a * various: Use TransUtils.sgettext instead of gettext.gettext to work out stripping the context.
svn: r6155
2006-03-16 20:24:27 +00:00
Don Allingham
9ffa6613a7 column editing
svn: r6085
2006-03-05 23:39:20 +00:00
Alex Roitman
bc6848cf20 Add Config package
svn: r6044
2006-03-03 00:10:52 +00:00
Don Allingham
1226c0d55a * src/AddMedia.py: glade path
* src/AddrEdit.py: glade path
* src/AttrEdit.py: glade path
* src/DateEdit.py: glade path
* src/EventEdit.py: glade path
* src/GrampsCfg.py: glade path
* src/ImageSelect.py: glade path
* src/Sources.py: glade path
* src/StyleEditor.py: glade path
* src/const.py.in: glade path
* src/Marriage.py: glade path
* src/unlocked.png: added
* src/GrampsDb/_ReadGedcom.py: optimize UI updates, add test code


svn: r5772
2006-01-17 05:03:30 +00:00
Alex Roitman
2f962b5f96 merge changes from gramps20
svn: r5482
2005-12-06 06:38:09 +00:00
Don Allingham
c987a9faff * src/ChooseParents.py: pychecker changes
* src/DdTargets.py: pychecker changes
* src/FamilyView.py: pychecker changes
* src/GrampsCfg.py: pychecker changes
* src/MergeData.py: pychecker changes
* src/MergePeople.py: pychecker changes
* src/NameEdit.py: pychecker changes
* src/NoteEdit.py: pychecker changes
* src/RelLib.py: pychecker changes
* src/gramps_main.py: pychecker changes


svn: r4327
2005-04-09 03:11:03 +00:00
Don Allingham
347ac96279 * src/EditPerson.py: don't use quote date
* src/PeopleModel.py: remove BOLD
* src/PeopleView.py: start of sorting support
* src/WriteXML.py: use hlink for Witness
* various: pychecker fixes
* configure.in: bump up to 1.1.3, the "Splunge: this is a
greate idea, but possibly lousy, and I'm not being indecisive"
release


svn: r3915
2005-01-16 04:00:35 +00:00
Don Allingham
5d61ffc49c * src/DateDisplay.py: Make DateDisplayEn inherit from DateDisplay, make
DateDisplay handle only ISO dates
* src/DateHandler.py: use DateDisplayEn for English languages, use
DateDisplay for CJK
* src/GrampsCfg.py: Don't do initial redisplay of Person List when
dialog comes up, update dates dynamically when date format changes


svn: r3908
2005-01-12 21:23:31 +00:00
Alex Roitman
65b6bb34af * src/gramps.glade: Reorder toolbar style options.
* src/GrampsCfg.py (get_toolbar_style): Remove function;
(GrampsPreferences.build): Use correct values.
* src/GrampsGconfKeys.py (get_toolbar, save_toolbar):
Correct tuple of valid values.
* src/gramps_main.py (init_interface, toolbar_key_update):
Use function from GrampsKeys.
* src/data/gramps.schemas: Correct the default and the
description of the toolbar key.


svn: r3887
2005-01-08 22:35:04 +00:00
Don Allingham
b5b5167e73 * src/gramps.glade: removal of more OptionMenus in favor
of ComboBoxes
* src/GrampsCfg.py: use new ComboBoxes
* src/DateHandler.py: fix set_format vs. formats bug


svn: r3882
2005-01-08 03:49:43 +00:00
Don Allingham
09328f505b * src/GrampsIniKeys.py: provide support for the default schema
* src/GrampsKeys.py: select appropriate backend
* various: switch from GrampsGconfKeys to GrampsKeys for normal usage

* src/GrampsIniKeys.py: Alternate backend using .ini files instead
of gconf


svn: r3873
2005-01-06 17:28:31 +00:00
Don Allingham
63b3c2e687 * src/EditPerson.py: move strip_id from Utils
* src/GrampsCfg.py: use ComboBox for toolbar selection
* src/Sources.py: switch to ComboBoxes from OptionMenus
* src/Utils.py: removed unused functions
* src/gramps.glade: switch to ComboBoxes


svn: r3856
2005-01-02 05:16:25 +00:00
Don Allingham
6b2bf53b49 * src/gramps.glade: remove name display options
* src/GrampsCfg.py: remove name displaying functions
* src/Makefile.am: add NameDisplay.py to list
* src/NameDisplay.py: New name displaying class
* src/Utils.py: use new NameDisplay class
* src/AddSpouse.py: use new NameDisplay class
* src/AddrEdit.py: use new NameDisplay class
* src/Bookmarks.py: use new NameDisplay class
* src/ChooseParents.py: use new NameDisplay class
* src/DisplayModels.py: use new NameDisplay class
* src/EditPerson.py: use new NameDisplay class
* src/EditPlace.py: use new NameDisplay class
* src/EditSource.py: use new NameDisplay class
* src/FamilyView.py: use new NameDisplay class
* src/GenericFilter.py: use new NameDisplay class
* src/ImageSelect.py: use new NameDisplay class
* src/Marriage.py: use new NameDisplay class
* src/MergeData.py: use new NameDisplay class
* src/NameEdit.py: use new NameDisplay class
* src/PedView.py: use new NameDisplay class
* src/PeopleModel.py: use new NameDisplay class
* src/ReadGedcom.py: use new NameDisplay class
* src/Report.py: use new NameDisplay class
* src/SelectChild.py: use new NameDisplay class
* src/SubstKeywords.py: use new NameDisplay class
* src/Witness.py: use new NameDisplay class
* src/WriteGedcom.py: use new NameDisplay class
* src/gramps_main.py: use new NameDisplay class
* src/plugins/Desbrowser.py: use new NameDisplay class
* src/plugins/Merge.py: use new NameDisplay class
* src/plugins/RelCalc.py: use new NameDisplay class


svn: r3852
2005-01-01 04:27:15 +00:00
Don Allingham
e2c149f41e * src/DateEdit.py: use global date displayer/parser
* src/DateHandler.py: provide global date displayer/parser
instead of having a bunch of different classes have their
own handler that needs to be updated with the handlers change.
* src/EditPerson.py: use global date displayer/parser
* src/EventEdit.py: use global date displayer/parser
* src/FamilyView.py: use global date displayer/parser
* src/GenericFilter.py: use global date displayer/parser
* src/GrampsCfg.py: remove unused statements
* src/ImageSelect.py: use global date displayer/parser
* src/Marriage.py: use global date displayer/parser
* src/ReadXML.py: use global date displayer/parser
* src/RelLib.py: don't require get_display_info, eliminate
needed for importing const and GrampsCfg
* src/SelectChild.py: don't require get_display_info
* src/Sources.py: use global date displayer/parser
* src/plugins/RelCalc.py: don't require get_display_info


svn: r3841
2004-12-29 05:06:10 +00:00
Don Allingham
fb2ef63eee * src/GrampsBSDDB.py: thumbnail handing in the database
* src/GrampsDbBase.py: add set_thumbnail_image and
get_thumbnail_image in base class
* src/GrampsInMemDB.py: saving thumbnail image
* src/GrampsCfg.py: create thumbnail image directory
* src/ImageSelect.py: use new thumbnail scheme
* src/MediaView.py: use new thumbnail scheme
* src/ReadGedcom.py: use new thumbnail scheme
* src/ReadXML.py: use new thumbnail scheme
* src/SelectObject.py: use new thumbnail scheme
* src/gramps_main.py: use new thumbnail scheme
* src/Utils.py: remove unused tasks
* src/RelImage.py: remove unused tasks

* src/DateParser.py: fix dates of the format of JAN 2000


svn: r3662
2004-10-23 03:56:48 +00:00