Alex Roitman
542bbd9404
2007-06-19 Alex Roitman <shura@phy.ucsf.edu>
...
* src/FilterEditor/_FilterEditor.py (_find_dependent_filters):
Add method to first find all filters fo deletion.
svn: r8603
2007-06-20 01:44:26 +00:00
Alex Roitman
8278778e65
2007-06-19 Alex Roitman <shura@gramps-project.org>
...
* src/FilterEditor/_FilterEditor.py (_do_delete_filter): Use a
copy for iteration over the filters.
svn: r8597
2007-06-19 17:09:20 +00:00
Alex Roitman
5c5921d9ea
2007-06-16 Alex Roitman <shura@gramps-project.org>
...
* src/Filters/Rules/Person/_IsChildOfFilterMatch.py
(IsChildOfFilterMatch): Subclass MatchesFilter.
* src/Filters/Rules/Person/_IsAncestorOfFilterMatch.py
(IsAncestorOfFilterMatch): Subclass MatchesFilter.
* src/Filters/Rules/Person/_IsDescendantOfFilterMatch.py
(IsDescendantOfFilterMatch): Subclass MatchesFilter.
* src/Filters/Rules/Person/_HasCommonAncestorWithFilterMatch.py
(HasCommonAncestorWithFilterMatch): Subclass MatchesFilter.
* src/Filters/Rules/Person/_IsParentOfFilterMatch.py
(IsParentOfFilterMatch): Subclass MatchesFilter.
* src/Filters/Rules/Person/_IsSiblingOfFilterMatch.py
(IsSiblingOfFilterMatch): Subclass MatchesFilter.
* src/Filters/Rules/Person/_IsSpouseOfFilterMatch.py
(IsSpouseOfFilterMatch): Subclass MatchesFilter.
svn: r8560
2007-06-16 20:03:59 +00:00
Alex Roitman
6bf09da13d
2007-06-06 Alex Roitman <shura@gramps-project.org>
...
* src/DisplayState.py (DisplayState.__signals__): Port fixes from
2.2 tree.
* src/FilterEditor/_EditFilter.py: Port fixes from 2.2 tree.
* src/FilterEditor/_FilterEditor.py: Port fixes from 2.2 tree.
* data/grampsxml.rng: Port fixes from 2.2 tree.
* data/grampsxml.dtd: Port fixes from 2.2 tree.
* src/GrampsDb/_GrampsDbWriteXML.py (_xml_version): Bump up version.
svn: r8536
2007-06-07 05:06:14 +00:00
Martin Hawlisch
ac3e84d207
* src/DataViews/_NoteView.py: Enable filter editor
...
* src/FilterEditor/_FilterEditor.py: Note Filter Editor
* src/FilterEditor/_EditRule.py: Note Filter Editor
* src/Filters/Rules/Note/_HasNote.py: Rename label
* src/Filters/Rules/Note/__init__.py: Add more rules
* src/Filters/Rules/__init__.py: Add Note Rules
svn: r8232
2007-02-25 12:19:47 +00:00
Richard Taylor
70e12c490e
Moved NameDisplay into BasicUtils.
...
svn: r8197
2007-02-20 20:56:48 +00:00
Martin Hawlisch
e72f927e5f
* src/FilterEditor/_EditRule.py: Support MarkerType
...
svn: r7768
2006-12-08 17:00:21 +00:00
Alex Roitman
7c240f8d3c
2006-10-09 Alex Roitman <shura@gramps-project.org>
...
* src/FilterEditor/_FilterEditor.py (close): Allow more arguments.
svn: r7380
2006-10-09 23:54:23 +00:00
Don Allingham
a6237e602e
* src/FilterEditor/_EditRule.py: limit source name in menu display
...
to 40 characters (#451 )
svn: r7337
2006-09-30 03:56:29 +00:00
Alex Roitman
dcd6d6d7c6
* src/FilterEditor/_FilterEditor.py (clone_filter): Add method;
...
Support clone-and-edit functionality.
* src/glade/rule.glade (filter_list): Add clone button.
svn: r7250
2006-08-23 20:17:02 +00:00
Alex Roitman
266d796333
* src/FilterEditor/_EditRule.py: Change Media to MediaObject;
...
(__init__): Work with empty filter names (new filter).
svn: r7238
2006-08-22 18:00:31 +00:00
Alex Roitman
5c666600e8
* src/Filters/Rules/MediaObject: Added to replace Media.
...
* src/Filters/Rules/Media: Removed.
* src/DataViews/_MediaView.py (filter_editor): Change Media to
MediaObject.
* src/Filters/_GenericFilter.py: Change Media to MediaObject.
* src/DataViews/_PersonView.py (build_widget): Pass uistate
to filter class.
* src/PageView.py (ListView.build_filter_container): Pass uistate
to filter class.
* src/DisplayState.py (DisplayState.__signals__): Register
'filters-changed' signal.
* src/FilterEditor/_ShowResults.py: Change Media to MediaObject.
* src/FilterEditor/_EditRule.py: Change Media to MediaObject.
* src/FilterEditor/_FilterEditor.py (close): Emit 'filters-changed'.
* src/Filters/SideBar/*py: Take uistate and connect to the
'filters-changed' signal.
svn: r7233
2006-08-22 16:49:21 +00:00
Alex Roitman
1cb5f1fa9b
* src/FilterEditor/_FilterEditor.py (close): Override parent's close.
...
* src/Filters/_FilterMenu.py (build_filter_menu,
build_filter_model): Import Custom and System filters when needed.
* src/plugins/Calendar.py (get_filters): Import Custom
filters when needed.
* src/plugins/GraphViz.py (get_report_filters): Import Custom
filters when needed.
* src/plugins/IndivComplete.py (get_report_filters): Import Custom
filters when needed.
* src/plugins/NarrativeWeb.py (get_report_filters): Import Custom
filters when needed.
* src/plugins/StatisticsChart.py (get_report_filters): Import Custom
filters when needed.
* src/plugins/TimeLine.py (get_report_filters): Import Custom
filters when needed.
svn: r7231
2006-08-22 05:28:55 +00:00
Alex Roitman
a9a3d9acbf
* src/FilterEditor/_EditFilter.py (on_edit_clicked,on_add_clicked):
...
Pass filter name to the rule editor.
* src/FilterEditor/_EditRule.py (EditRule.__init__): Pass filter
name to MyFilters.
(MyFilters.__init__): Exclude filter being edited from the
matching filter.
svn: r7187
2006-08-16 04:45:45 +00:00
Alex Roitman
b19d9eaecb
In .:
...
* src/DataViews/_PlaceView.py: Add filter sidebar.
* src/FilterEditor/_ShowResults.py: Support media filters.
* src/FilterEditor/_EditRule.py: Support media filters.
* src/FilterEditor/_FilterEditor.py: Support media filters.
* src/Filters/_GenericFilter.py: Support media filters.
* src/Filters/SideBar/Makefile.am (pkgdata_PYTHON): Ship new file.
* src/Filters/SideBar/__init__.py: Expose new module.
* src/Filters/SideBar/_MediaSidebarFilter.py: Add module.
* src/Filters/Rules/Media/Makefile.am (pkgdata_PYTHON): Ship new files.
* src/Filters/Rules/Media/_HasIdOf.py: Add module.
* src/Filters/Rules/Media/_HasNoteMatchingSubstringOf.py: Add module.
* src/Filters/Rules/Media/_HasNoteRegexp.py: Add module.
* src/Filters/Rules/Media/_MatchesFilter.py: Add module.
* src/Filters/Rules/Media/_RegExpIdOf.py: Add module.
* src/Filters/Rules/Media/_MediaPrivate.py: Add module.
* src/Filters/Rules/Media/__init__.py: Expose new modules.
* src/Filters/Rules/Media/_AllMedia.py: Add module.
* src/Filters/Rules/Media/_HasMedia.py: Add module.
In po:
2006-08-09 Alex Roitman <shura@gramps-project.org>
* POTFILES.in: Add new files.
svn: r7147
2006-08-10 00:42:44 +00:00
Alex Roitman
b1522eab91
In .:
...
2006-08-07 Alex Roitman <shura@gramps-project.org>
* src/DataViews/_RepositoryView.py: Add filter sidebar.
* src/FilterEditor/_ShowResults.py: Support repo filters.
* src/FilterEditor/_EditRule.py: Support repo filters.
* src/FilterEditor/_FilterEditor.py: Support repo filters.
* src/Filters/_GenericFilter.py: Support repo filters.
* src/Filters/SideBar/Makefile.am (pkgdata_PYTHON): Ship new file.
* src/Filters/SideBar/__init__.py: Expose new module.
* src/Filters/SideBar/_RepoSidebarFilter.py: Add module.
* src/Filters/Rules/Repository/Makefile.am (pkgdata_PYTHON): Ship
new files.
* src/Filters/Rules/Repository/__init__.py: Expose new modules.
* src/Filters/Rules/Repository/_HasRepo.py: Add module.
* src/Filters/Rules/Repository/_RepoPrivate.py: Add module.
* src/Filters/Rules/Repository/_RegExpIdOf.py: Add module.
* src/Filters/Rules/Repository/_MatchesFilter.py: Add module.
* src/Filters/Rules/Repository/_HasNoteRegexp.py: Add module.
* src/Filters/Rules/Repository/_HasNoteMatchingSubstringOf.py: Add
module.
* src/Filters/Rules/Repository/_HasIdOf.py: Add module.
* src/Filters/Rules/Repository/_AllRepos.py: Add module.
In po:
2006-08-07 Alex Roitman <shura@gramps-project.org>
* POTFILES.in: Add new files.
svn: r7144
2006-08-07 20:16:00 +00:00
Alex Roitman
7c742ec66a
In .:
...
* src/DataViews/_PlaceView.py: Add sidebar filter.
* src/FilterEditor/_EditRule.py: Support place filters.
* src/FilterEditor/_FilterEditor.py: Support place filters.
* src/FilterEditor/_ShowResults.py: Support place filters.
* src/Filters/_GenericFilter.py: Support place filters.
* src/Filters/SideBar/__init__.py: Expose new module.
* src/Filters/SideBar/Makefile.am (pkgdata_PYTHON): Ship new file.
* src/Filters/SideBar/_PlaceSidebarFilter.py: Add module.
* src/Filters/Rules/Place/Makefile.am (pkgdata_PYTHON): Ship new files.
* src/Filters/Rules/Place/_AllPlaces.py: Add module.
* src/Filters/Rules/Place/_HasIdOf.py: Add module.
* src/Filters/Rules/Place/_HasNoteMatchingSubstringOf.py: Add module.
* src/Filters/Rules/Place/_HasNoteRegexp.py: Add module.
* src/Filters/Rules/Place/_MatchesFilter.py: Add module.
* src/Filters/Rules/Place/_RegExpIdOf.py: Add module.
* src/Filters/Rules/Place/_PlacePrivate.py: Add module.
* src/Filters/Rules/Place/_HasPlace.py: Add module.
* src/Filters/Rules/Place/__init__.py (editor_rule_list): Expose
new module.
In po:
2006-08-06 Alex Roitman <shura@gramps-project.org>
* POTFILES.in: Add new files.
svn: r7142
2006-08-07 02:49:12 +00:00
Alex Roitman
a2237d7da5
* src/Filters/_GenericFilter.py: Support Source filters.
...
* src/Filters/SideBar/Makefile.am (pkgdata_PYTHON): Ship new file.
* src/Filters/Rules/Source/Makefile.am: Ship new files.
* src/FilterEditor/_EditRule.py: Support Source filters.
* src/FilterEditor/_FilterEditor.py: Support Source filters.
* src/FilterEditor/_ShowResults.py: Support Source filters.
* src/Filters/Rules/Source/__init__.py: Expose new modules.
* src/Filters/SideBar/_SourceSidebarFilter.py: Add module.
* src/Filters/SideBar/__init__.py: Expose new module.
* src/Filters/Rules/_Rule.py (Rule.match_substring): Add
convenience method for simple substring search.
* src/Filters/Rules/Source/_RegExpIdOf.py: Add module.
* src/Filters/Rules/Source/_MatchesFilter.py: Add module.
* src/Filters/Rules/Source/_HasNoteRegexp.py: Add module.
* src/Filters/Rules/Source/_HasNoteMatchingSubstringOf.py: Add module.
* src/Filters/Rules/Source/_HasIdOf.py: Add module.
* src/Filters/Rules/Source/_SourcePrivate.py: Add module.
* src/Filters/Rules/Source/_AllSources.py: Add module.
svn: r7138
2006-08-06 06:26:10 +00:00
Alex Roitman
48b97d4961
Update
...
svn: r7130
2006-08-05 04:18:19 +00:00
Alex Roitman
e7dc7a9125
* src/DataViews/_EventView.py: Add sidebar filter.
...
* src/FilterEditor/_FilterEditor.py: Support event filters.
* src/Filters/__init__.py: expose new module.
* src/Filters/_PersonSidebarFilter.py: Fix type handling.
* src/Filters/_FamilySidebarFilter.py: Fix type handling.
* src/Filters/_GenericFilter.py: Support event filters.
* src/Filters/_EventSidebarFilter.py: add new module.
* src/Filters/Rules/Events/*.py: add new rules.
* src/Filters/Rules/Family/_HasRelType.py (apply): Use new API.
svn: r7127
2006-08-05 04:05:05 +00:00
Alex Roitman
af33023e61
* src/FilterEditor/_EditFilter.py: Support invert attribute.
...
* src/Filters/_GenericFilter.py: Support invert attribute.
* src/Filters/_FilterList.py (save): Save invert attribute.
* src/Filters/_FilterParser.py (startElement): Parse invert attribute.
svn: r7126
2006-08-05 01:06:33 +00:00
Alex Roitman
47d6700f60
* src/Filters/Rules/Person/_IsWitness.py: Rewrite with new API.
...
debugging output;
(_name2typeclass): Add name->type mapping.
svn: r7123
2006-08-04 21:59:57 +00:00
Alex Roitman
d265fadc1f
* src/FilterEditor/_FilterEditor.py (__init__): Remove unneeded
...
argument, namespace is enough to get the filter class via factory;
(add_new_filter): Use factory; (get_all_handles): Get handles for
any object type.
* src/FilterEditor/_ShowResults.py (get_name_id): Add method to
return name and id for different object types;
(sort_val_from_handle): Support different object types.
(__init__): Accept namespace as an argument.
* src/Filters/__init__.py: Do not expose GenericFamilyFilter;
expose GenericFilterFactory instead.
* src/Filters/_FamilySidebarFilter.py (GenericFamilyFilter): Use
factory.
svn: r7122
2006-08-04 20:29:26 +00:00
Alex Roitman
b7ddf09cba
* src/FilterEditor/_EditRule.py (MyID.name_from_gramps_id): Remove
...
debugginb output.
svn: r7121
2006-08-04 19:49:32 +00:00
Alex Roitman
7c5077280c
2006-08-03 Alex Roitman <shura@gramps-project.org>
...
* src/Filters/Rules/Person/_HasIdOf.py: Cleanup.
* src/Filters/Rules/Person/__init__.py (editor_rule_list): Add
RegExpIdOf.
* src/Filters/Rules/Person/_RegExpIdOf.py: Cleanup.
* src/Filters/Rules/_RegExpIdBase.py: Cleanup.
* src/Filters/Rules/Person/_HasRelationship.py: Cleanup.
* src/Filters/Rules/Family/_HasIdOf.py: Cleanup.
* src/Filters/Rules/Family/_RegExpIdOf.py: Cleanup.
* src/FilterEditor/_EditRule.py: Clean, localization fixes, ID
selection fixes.
* src/NameDisplay.py: Import gettext.
* src/Filters/Rules/Family/_HasRelType.py (labels): Use lowercase.
* src/FilterEditor/_EditFilter.py (on_add_clicked,
on_edit_clicked): Catch exception.
svn: r7115
2006-08-03 19:49:29 +00:00
Alex Roitman
865be0198b
* src/FilterEditor/_EditRule.py (MySelect.get_text): Dirty hack to
...
prevent rule editor from crashing. NEEDS REPAIR to stop relying on
the localized text.
* src/Filters/Rules/Person/_HasFamilyEvent.py (apply): Use new API.
* src/RelLib/_GrampsType.py (set,__cmp__): Consider unicode type
along with the str.
svn: r7075
2006-07-25 19:52:28 +00:00
Don Allingham
e3edec3107
2006-07-10 Don Allingham <don@gramps-project.org>
...
* src/DataViews/_FamlyList.py: add filter editor support
* src/FilterEditor/_FilterEditor.py: add family support
* src/FilterEditor/_EditRule.py: add family support
* src/Filters/_FamilySidebarFilter.py: start of family support
* src/Filters/Rules/Family/_HasRelType.py: start of family filters
* src/Filters/Rules/Family/__init__.py: start of family filters
svn: r7014
2006-07-10 17:45:18 +00:00
Don Allingham
e593f5fd33
* various: pyflakes fixes
...
svn: r6982
2006-07-03 04:25:33 +00:00
Don Allingham
f40c352aa4
2006-06-03 Don Allingham <don@gramps-project.org>
...
* src/FilterEditor/_ShowResults.py: move glade functions to
ManagedWindow
* src/FilterEditor/_EditFilter.py: move glade functions to
ManagedWindow
* src/FilterEditor/_FilterEditor.py: move glade functions to
ManagedWindow
* src/FilterEditor/_EditRule.py: move glade functions to
ManagedWindow
* src/ManagedWindow.py: move glade functions to ManagedWindow
svn: r6852
2006-06-03 19:08:09 +00:00
Don Allingham
79921262dd
* src/FilterEditor/_ShowResults.py: use list instead of text display
...
svn: r6851
2006-06-03 04:31:59 +00:00
Don Allingham
20aa297a21
2006-06-02 Don Allingham <don@gramps-project.org>
...
* src/FilterEditor/_EditFilter.py: clean up
* src/FilterEditor/_EditRule.py: clean up
* src/glade/rule.glade: clean up
* src/Filters/Rules/Person/_IsDescendantFamilyOf.py: make current with RelLib
* src/Filters/Rules/Person/_HasFamilyEvent.py: make current with RelLib
* src/Filters/Rules/Person/_IsParentOfFilterMatch.py: make current with RelLib
* src/Filters/Rules/Person/_FamilyWithIncompleteEvent.py: make current with RelLib
* src/Filters/Rules/Person/_IsBookmarked.py: make current with RelLib
* src/Filters/Rules/Person/_IsLessThanNthGenerationAncestorOfBookmarked.py:
make current with RelLib
svn: r6849
2006-06-02 22:18:57 +00:00
Don Allingham
d12edc082c
set window propertied
...
svn: r6844
2006-06-02 03:56:02 +00:00
Don Allingham
28d4740d3c
2006-06-01 Don Allingham <don@gramps-project.org>
...
* src/DataViews/_PersonView.py: FilterEditor call sequence
* src/FilterEditor/_EditFilter.py: added
* src/FilterEditor/_FilterEditor.py: Break out other classes
* src/FilterEditor/_EditRule.py: added
* src/FilterEditor/_ShowResults.py: added
* src/FilterEditor/Makefile.am: Add new files
svn: r6843
2006-06-02 03:21:52 +00:00
Don Allingham
60dd633324
2006-06-01 Don Allingham <don@gramps-project.org>
...
* configure.in: add FilterEditor subdir
* src/DataViews/_PersonView.py: call filter editor with 'Person'
argument
* src/FilterEditor/_FilterEditor.py: get functional again
* src/glade/rule.glade: clean up ui a bit
* src/Filters/_FilterList.py: fix logical condition
* src/Filters/_GenericFilter.py: fix inversion
svn: r6840
2006-06-01 22:37:13 +00:00
Don Allingham
bf7247c5e4
* src/FilterEditor/_FilterEditor.py: moved from plugins, renamed
...
svn: r6837
2006-06-01 04:15:57 +00:00
Don Allingham
5a1fa1c1c7
2006-05-31 Don Allingham <don@gramps-project.org>
...
* src/DataViews/_PersonView.py: call FilterEditor
* src/FilterEditor/__init__.py: added
* src/FilterEditor/_FilterEditor.py: moved from plugins
* src/glade/rule.glade: filter editor changes
* src/Makefile.am: change subdirs
* src/FilterEditor/Makefile.am: added
svn: r6836
2006-06-01 03:36:59 +00:00