46 Commits

Author SHA1 Message Date
Doug Blank
1bc7a15a27 Fixed some optimized reference copy errors
svn: r14148
2010-01-27 12:07:25 +00:00
Gerald Britton
1f2469b09f Simplify with built-in functions where possible. e.g.
change [x for x in y if x] to filter(None, y)
change [f(x) for x in y] to map(f, x)
change [x for x in y] to list(y)

These changes reduce source code size and complexity and produce some minor performance gains

svn: r14104
2010-01-21 18:42:53 +00:00
Brian Matherly
f04880ec09 Move gettext, ngettext and sgettext calls into the new ggettext module. All of them return unicode all of the time.
svn: r14091
2010-01-18 04:42:17 +00:00
Nick Hall
b503fa2e25 Extend history functionality (back/forward) and active-changed signals to all primary objects
svn: r14023
2010-01-10 19:19:33 +00:00
Doug Blank
cd17f1e0fa Add support for checkbox/toggle columns; a debug msg for developers
svn: r14012
2010-01-10 04:03:59 +00:00
Doug Blank
7dd624d657 Workaround added for strange Python 2.6 bug on recusive signal handling
svn: r14007
2010-01-09 17:13:56 +00:00
Doug Blank
59b06487b7 Add ability for Table to have toggle-able rows; also keeps track of raw data
svn: r13991
2010-01-07 21:42:43 +00:00
Doug Blank
fa1413c640 Fixed issue on emitting a signal which will change a table before the click has returned, which can crash Python
svn: r13946
2009-12-31 14:56:44 +00:00
Doug Blank
145a517324 Typo in SimpleAccess and refinement in SimpleTable -- allow any object, just turn into string
svn: r13911
2009-12-24 22:19:30 +00:00
Doug Blank
8f2f2f200f Moved gtk imports out of global scope for cli use
svn: r13824
2009-12-16 12:43:21 +00:00
Doug Blank
f2abf6e4c2 Removed hacky flag; don't know why it was needed
svn: r13811
2009-12-15 16:48:03 +00:00
Brian Matherly
bbe2b6da0c move src/Editors/* to src/gui/editors as part of GEP008
svn: r13807
2009-12-15 05:56:12 +00:00
Doug Blank
013ef62b6b Four ways to link a row: by object, object/col, (object, handle), [(obj, handle)...]]
svn: r13785
2009-12-13 14:45:52 +00:00
Doug Blank
9fd2e4a7fc Add manual url links on table rows
svn: r13730
2009-12-06 15:57:53 +00:00
Doug Blank
fa21027a23 Changed the displayed text of an object in the simple table to gramps_id rather than name of item
svn: r13593
2009-11-15 22:43:44 +00:00
Doug Blank
a96eb41a7f Use new link tag; SimpleTable can now output docgen types other than gtk
svn: r13588
2009-11-15 13:18:59 +00:00
Doug Blank
b5ca175f2b Changed the names of the styles of tables and fixed a col width error (which weren't used, but will be in the webapp)
svn: r13580
2009-11-14 22:50:19 +00:00
Doug Blank
99282aa715 3272: Proposal for updating config settings
svn: r13346
2009-10-08 01:12:51 +00:00
Doug Blank
7f2b239f26 Add ability for double-click on SimpleTable row to show people by list of handles
svn: r13221
2009-09-18 22:49:43 +00:00
Gerald Britton
021b754939 Bug 3011: change old-style classes to new-style classes
svn: r12559
2009-05-21 17:19:50 +00:00
Doug Blank
aa7ff9cf68 Make SimpleTable columns resizable
svn: r12483
2009-04-20 21:00:20 +00:00
Doug Blank
ec4905b6ca Removed extra space before family names in table row
svn: r12477
2009-04-18 23:32:09 +00:00
Doug Blank
832acac4c9 fix for gtk not liking unicode?
svn: r11603
2009-01-10 16:26:24 +00:00
Doug Blank
61ca9201b5 Changes in the manner that date differences are represented and compared
svn: r11565
2009-01-04 17:44:33 +00:00
Doug Blank
6244a0c033 Added a Gramplet that can run a Quick View
svn: r11466
2008-12-13 16:59:14 +00:00
Gerald Britton
4982292774 Code optimizations wrt handling of None - bug 2212
svn: r10811
2008-06-16 15:01:46 +00:00
Zsolt Foldvari
998908175f Issue #0002175: Change type() expressions to isinstance() expressions.
Patch from Gerald Britton <gerald.britton@gmail.com>


svn: r10762
2008-05-25 19:55:47 +00:00
Doug Blank
20420efec2 Added invalid date format to configs, with bold default
svn: r10618
2008-04-22 01:36:03 +00:00
Doug Blank
10d5232085 Display and sort invalid dates better
svn: r10593
2008-04-19 17:04:54 +00:00
Doug Blank
f637730a87 General polish of some date handling code; fixed a bug in date comparisons involving 'ABT' dates
svn: r10592
2008-04-19 16:48:46 +00:00
Doug Blank
2098a01f8d refactored SimpleTable; QuickReports can return values; date diffs return Span
svn: r10578
2008-04-18 01:09:32 +00:00
Doug Blank
29ed9a79fe 0001972: Fixed untranslated filter names in FilterByName\n and 'and' in family description
svn: r10396
2008-03-25 15:06:01 +00:00
Doug Blank
b04ef64231 Indicate mouse clicks properly handled by returning True
svn: r10229
2008-03-08 20:23:11 +00:00
Doug Blank
671891b816 Refinements on previous commit; new filter by name 'media by size'
svn: r10190
2008-03-05 04:34:28 +00:00
Doug Blank
2ef34cf90a * src/Simple/_SimpleTable.py:
added callback for click/doubleclick manual override for rows
	added numeric sorting
	* src/QuickReports.py: added run_quick_report_by_name_direct
	that allows one quick report to run another
	* src/plugins/DefaultGramplets.py: made stats gramplet show 
	details when drilling down with double-click
	* src/plugins/SameSurnames.py: allow running by string rather than 
	person object
	* src/DataViews/GrampletView.py: added Filter type of link; fixed
	bug in drag and drop from earlier option infrastructure
	* src/plugins/FilterByName.py: quick report that runs a filter by
	name

2008-03-04  Douglas S. Blank  <dblank@cs.brynmawr.edu>


svn: r10188
2008-03-05 04:01:27 +00:00
Raphael Ackermann
c962d5e6e1 2008-02-22 Raphael Ackermann <raphael.ackermann@gmail.com>
* various (294 files)
	pep8 doc fixes & pylint fixes

svn: r10103
2008-02-24 13:55:55 +00:00
Doug Blank
cafebdcd83 2008-01-16 Douglas S. Blank <dblank@cs.brynmawr.edu>
* src/Simple/_SimpleTable.py: added gettext
	* data/Makefile.am: added schema files
	* po/POTFILES.skip: some files not in POTFILES.in
	* po/POTFILES.in: added some missing files



svn: r9851
2008-01-16 14:48:56 +00:00
Doug Blank
2cddb31ef2 * src/plugins/OnThisDay.py: date sortable
* src/plugins/SameSurnames.py: date sortable
	* src/plugins/siblings.py: date sortable
	* src/Simple/_SimpleAccess.py: simple method to get date_obj
	* src/Simple/_SimpleTable.py: manual override of link_col;
	removed call to quick_reports (could have been recursive)

2008-01-15  Douglas S. Blank  <dblank@cs.brynmawr.edu>


svn: r9831
2008-01-16 02:25:40 +00:00
Doug Blank
e226c06de6 2008-01-04 Douglas S. Blank <dblank@cs.brynmawr.edu>
* src/gen/lib/date.py (Date.__sub__): fixed date differences
	* src/Simple/_SimpleTable.py: removed frame around textview
	


svn: r9709
2008-01-05 03:02:56 +00:00
Doug Blank
1e3ce27007 2008-01-03 Douglas S. Blank <dblank@cs.brynmawr.edu>
* src/ReportBase/_Constants.py: added QR_NOTE, QR_DATE
	* src/gen/lib/date.py: working on date math
	* src/plugins/AgeOnDate.py: new Quick View for age on date
	* src/plugins/DefaultGadgets.py: added Age on Date gadget
	* src/QuickReports.py: new constants
	* src/Simple/_SimpleTable.py: handle sort columns



svn: r9698
2008-01-03 14:18:18 +00:00
Doug Blank
cbce0ac6b4 2008-01-02 Douglas S. Blank <dblank@cs.brynmawr.edu>
* src/Simple/_SimpleTable.py (SimpleTable.row): added obj handlers
	* src/plugins/References.py: new quick report for listing refs



svn: r9682
2008-01-02 13:20:26 +00:00
Doug Blank
e2cb83448a 2007-12-30 Douglas S. Blank <dblank@cs.brynmawr.edu>
* src/plugins/OnThisDay.py: i18n changes
	* src/plugins/Makefile.am: added missing files
	* src/plugins/DefaultGadgets.py: i18n changes
	* src/QuickReports.py: allow callers to send obj directly
	* src/Simple/_SimpleTable.py: added support for objs
	* po/POTFILES.in: i18n changes



svn: r9640
2007-12-30 15:39:00 +00:00
Doug Blank
fcb4797ae4 2007-12-29 Douglas S. Blank <dblank@saliva.brynmawr.edu>
* src/DataViews/MyGrampsView.py: fixme's are fixed
	* src/DataViews/EventView.py: added quick report popup
	* src/plugins/SameSurnames.py: removed unneeded imports
	* src/plugins/siblings.py: removed unneeded imports
	* src/Simple/_SimpleTable.py: add date handler
	* src/plugins/OnThisDay.py: new event quick report



svn: r9630
2007-12-29 19:55:27 +00:00
Doug Blank
104875c5a3 Added get_row_count and show title
svn: r9555
2007-12-21 18:20:04 +00:00
Doug Blank
c23b1259c8 2007-12-21 Douglas S. Blank <dblank@cs.brynmawr.edu>
* src/DataViews/_PersonView.py: pass create_quickreport uistate
	* src/Editors/_EditPrimary.py: pass create_quickreport uistate
	* src/plugins/all_events.py: use SimpleTable
	* src/plugins/siblings.py: use SimpleTable
	* src/QuickReports.py: pass create_quickreport uistate
	* src/Simple/_SimpleTable.py: Handles raw objects, click/doubleclick
	* src/PageView.py: pass create_quickreport uistate
	* src/docgen/TextBufDoc.py: need to make a managed window, transient



svn: r9552
2007-12-21 06:22:46 +00:00
Doug Blank
f84b9c816c 2007-12-20 Douglas S. Blank <dblank@cs.brynmawr.edu>
* src/plugins/siblings.py: Quick Reports under construction...
	* src/Simple/_SimpleDoc.py: added table style defaults
	* src/Simple/__init__.py: added SimpleTable
	* src/BaseDoc.py: added doc.type = "standard"
	* src/docgen/TextBufDoc.py: added doc.type = "gtk"
	* src/Simple/_SimpleTable.py: new file defining table



svn: r9550
2007-12-21 00:18:39 +00:00