Commit Graph

21271 Commits

Author SHA1 Message Date
Tim G L Lyons
7fb1ad876a Improve/harmonise error handling for missing template (even though missing template should never occur).
svn: r23195
2013-09-25 13:59:54 +00:00
Tim G L Lyons
89909f87cd Correct error introduced in r23144
svn: r23194
2013-09-25 13:48:17 +00:00
Tim G L Lyons
5903853640 Fix citation filters so they no longer try to filter citations with a sources filter. Citation filter now allows specification of both source and citation data. When a citation is shown in a search or a filtered citation tree view, the corresponding source is also shown.
svn: r23144
2013-09-16 21:42:28 +00:00
Tim G L Lyons
7c90638ad3 Various changes to use title, author, pubinfo and page from citeref, rather than from Src and Citation.
svn: r22912
2013-08-23 18:25:21 +00:00
Tim G L Lyons
9037f827a5 - update exportxml and importxml for templates,
- move TemplateElement into separate module,
- remove redundant srctemplatelist module,
- fix editsource so source attribute tab updates when template fields are input,
- fix importcsv so it uses map names defined in citeref module,

svn: r22880
2013-08-19 22:31:52 +00:00
Tim G L Lyons
367de337a4 - Move citeref formatting to gen.utils. Functions now have a db parameter, so they find the template themselves.
- Separate out the GEDCOM template creation. It becomes a separate plugin that can be loaded or not as the user chooses (but it is loaded automatically on upgrade).
- Fixes to allow templates to work even when no templates are loaded (data is input via the Attributes tab not the source template tab).
- Enhance upgrade to include GEDCOM template. The GEDCOM template is automatically loaded when a database that contains sources is upgraded.
- Tidy up unused variables and redundant code.


svn: r22856
2013-08-12 16:04:37 +00:00
Tim G L Lyons
06de73c8f4 Templates are a full TableObject and stored in the database. Template attributes are CUSTOM attributes.
svn: r22843
2013-08-10 15:25:56 +00:00
Tim G L Lyons
c4ecfaafe9 Modified EE-references and GEDCOM generation to use Template data structures. Added support for interface to citeproc for CSL style sheets (not ready for use yet). Modified code to work with Python3.
svn: r22737
2013-07-25 14:22:48 +00:00
Tim G L Lyons
2430607b63 Modify srctemplatetab to use new Template data model
svn: r22698
2013-07-20 18:15:58 +00:00
Tim G L Lyons
94fe287886 Restructure SrcTemplate and introduce SrcTemplateList (work in progress)
svn: r22694
2013-07-17 18:26:35 +00:00
Tim G L Lyons
6cf005cb38 Source editor, wrap 'Reference Information' lines.
svn: r22692
2013-07-16 23:26:46 +00:00
Benny Malengier
38db8959fa GEP18: big database change for source and citation
svn: r22639
2013-07-01 19:27:48 +00:00
Benny Malengier
6c04f8b151 GEP18: add deprecated decorator to gramps, use in src and citation
Usage: python -W all Gramps.py


svn: r22622
2013-06-28 12:49:31 +00:00
Benny Malengier
85cc487ee9 GEP18: no longer show default cite fields on source level. Flag could be reactivated in the future
svn: r22621
2013-06-28 06:43:31 +00:00
Benny Malengier
38d7ee72f2 GEP18: csv loading based on English only
svn: r22620
2013-06-28 06:36:45 +00:00
Benny Malengier
9ce8403106 GEP 18: Improve error message
svn: r22619
2013-06-27 19:02:11 +00:00
Benny Malengier
ee3350e9d5 GEP 18: fix bug in List reference determination
svn: r22614
2013-06-25 23:05:49 +00:00
Benny Malengier
6cde88e22d GEP 18: fix index error
svn: r22613
2013-06-25 22:33:37 +00:00
Benny Malengier
e9efb9debc GEP 18: merge trunk into GEP branch
svn: r22612
2013-06-25 22:28:13 +00:00
Benny Malengier
0a2580e9c5 GEP 18: 1. Source templates as new plugin type
2. EE templates in their own plugin, loading from csv in data


svn: r22611
2013-06-25 22:26:56 +00:00
Benny Malengier
4664f77608 squash 40 commits:
1. 6848: citationtreeview corrupts when search bar open and edit occurs
2. avoid critical gdk error by processing events only when window visible :
     Gdk-CRITICAL **: gdk_error_trap_pop_internal: assertion `trap != NULL' failed
3. In case of errors with fg_color, enormous amount of error messages. This patch
   grabs wrong fg_color, and skips action, avoiding the error messages. Error goes to debug.


svn: r22610
2013-06-25 22:15:08 +00:00
Benny Malengier
5b6da40866 GEP 18: merge latest trunk changes in branch
svn: r22605
2013-06-25 10:56:02 +00:00
Benny Malengier
e9629f77e0 Bring srcattrtype in line with GEP 18:
1. less types
  2. no template data
  3. an ignore list


svn: r22604
2013-06-25 10:55:12 +00:00
Benny Malengier
0d3aec7313 GEP 18: merge trunk changes in gep branch
svn: r22603
2013-06-25 10:45:43 +00:00
Benny Malengier
a7e5ecbadf GEP 18: add date from cite in reference part of citation
svn: r22602
2013-06-25 09:20:16 +00:00
Paul Franklin
6e22f80784 added GPL "boilerplate", SVN properties, and SVN Id line as needed
svn: r22598
2013-06-24 19:31:17 +00:00
Vassilii Khachaturov
242fd1372d 6838: report cli crash ignoring unknown param
merge from gramps40 branch

svn: r22596
2013-06-24 18:17:15 +00:00
Jérôme Rapinat
6d9fbe0238 update Ukrainian relationship calculator (by Fedir)
svn: r22582
2013-06-24 06:41:23 +00:00
Paul Franklin
39395150f7 make sure relationship calculator tool's relationships are in the UI language
svn: r22581
2013-06-24 01:59:25 +00:00
John Ralls
1158e77e13 Correctly set images/webstuff path in htmldoc.py and setup.py
svn: r22578
2013-06-23 23:24:02 +00:00
John Ralls
3fd0762ae0 Move the HTML resources from gramps/plugins/webstuff to data and images
So that they're together with the other resources instead of in 
site-package/gramps. Aside from a better source and installation 
layout, this makes it easier to bundle them.



svn: r22576
2013-06-23 22:47:25 +00:00
Benny Malengier
54ef9241a1 GEP 18: remove subgroup, replace by section
svn: r22575
2013-06-23 21:42:54 +00:00
Benny Malengier
1fd823bb71 GEP 18: Obtain repo data from attached repo, no user input field
svn: r22572
2013-06-23 14:38:36 +00:00
Vassilii Khachaturov
b8a18b02b5 6740: root cursor corruption
Use get_window() not get_root_window() to set the cursor.

svn: r22571
2013-06-23 14:16:22 +00:00
Vassilii Khachaturov
8af57bcf07 4571: RTL support in fanchart: cleanup older code
Use math.degrees() / math.radians() where able

Follow-up to CR by Benny:
    Removed redundant forced conversion to float, the
    	from future import division
    handles that already. See PEP-238 for details.

draw_text:
Remove manual layout wrapping, use pango Layout logic.
Refactored wrap_truncate_layout from draw_arc_text,
and it's now reused in draw_text, here with CHAR
wrapping mode as opposed to WORD in draw_arc_text.
This replaces the (Unicode-wrong) implementation of
manual char-by-char code with text truncation.

svn: r22569
2013-06-23 11:12:13 +00:00
Jérôme Rapinat
32172f1168 do not limit family's actors to mother and father, no relation between age of the person and child
svn: r22567
2013-06-23 09:18:57 +00:00
Jérôme Rapinat
a4558b3ccc enable Ukrainian date handler (by Fedir)
svn: r22566
2013-06-23 09:16:54 +00:00
Jérôme Rapinat
8bbbae41aa support Arabic on installation and lang_map (reports)
svn: r22565
2013-06-23 09:15:33 +00:00
Nick Hall
d30ade0488 6814: Fix gramplet positioning when using RTL locale
svn: r22557
2013-06-22 21:01:04 +00:00
Benny Malengier
99671bdfaf GEP18: refractor: move template stuff to srctemplate.py
svn: r22554
2013-06-22 16:09:24 +00:00
Vassilii Khachaturov
d03fc19188 Fix minor ugliness due to precision loss.
Change an integer division into a floating one,
now the rendered text looks better.

svn: r22553
2013-06-22 15:23:06 +00:00
Paul Franklin
1dc1f6c0c2 added SVN Id property, and SVN Id line if needed
svn: r22552
2013-06-21 20:28:39 +00:00
Vassilii Khachaturov
face94275c 4571: RTL support in fan chart
gramps/gui/utilscairo.py:
new file, currently holds just the warpPath() function,
taken from /usr/share/doc/python-cairo/examples/warpedtext.py,
with explanatory docs added.

gramps/gui/widgets/fanchart.py, class FanChartBaseWidget:
draw_text() method:
previous logic using cairo toy text API didn't support CTL text.
It has been removed, and replaced with a call to a new
method, draw_arc_text().

Flagged a subtle Unicode issue in the remaining old code,
for radial-oriented text, with a FIXME, I'll probably fix it
later as a separate issue.

create_map_rect_to_sector() static method:
create a transform to use with gui.utilscairo.warpPath(),
currently used in draw_arc_text().

Following Benny's code review I have annotated the algorithm
and made it hopefully clear, but I guess it could be reworked
into a better form if re-expressed with stacked transforms /
complex numbers / matrices for easier later maintenance.
Meanwhile I have used the same approach as the older code
in the file, good enough for a patch under this feature request.

The only issue remaining from the code review is whether
the create_map_rect_to_sector() function should be moved
to gui.utilscairo; see the bug thread.

svn: r22548
2013-06-21 14:13:40 +00:00
Tim G L Lyons
4ba97726a2 0006352: Bookmarking a source in the citation tree creates a blank bookmark. Disallow bookmarking a source in the Citation Tree View, and do not add sources to the history in the Citation Tree View.
svn: r22545
2013-06-20 16:43:43 +00:00
Paul Franklin
f3fc5c5257 6821: CLI asks forever when trying to overwrite while exporting
svn: r22542
2013-06-20 16:34:22 +00:00
Jérôme Rapinat
aa7516cbb4 6817: print should be now a function
svn: r22537
2013-06-20 14:27:33 +00:00
Jérôme Rapinat
fab092f6fd 6817: Enhancements for testing localized Relationship handlers (contribution by Fedir)
svn: r22535
2013-06-20 10:07:41 +00:00
Jérôme Rapinat
87499c96bc Add Ukrainian relationship calculator (contributions by Fedir); not yet included on 4.0.x branch
svn: r22530
2013-06-20 07:30:05 +00:00
Jérôme Rapinat
dc690b7071 Add Ukrainian holidays (contributions by Fedir)
svn: r22529
2013-06-20 07:21:40 +00:00
Benny Malengier
8ad6600746 GEP 18: automatic update as you type for citation fields, fix in formatting, fix with indicators
svn: r22526
2013-06-19 21:14:18 +00:00