590 Commits

Author SHA1 Message Date
Nick Hall
89da611e38 Convert Gtk Table widgets into Grid widgets 2015-02-06 19:46:53 +00:00
Nick Hall
c1ef48d6d2 Remove deprecated widgets from glade files 2015-02-04 17:56:04 +00:00
Nick Hall
06cae9ed32 Remove check for empty place title 2015-01-30 22:09:39 +00:00
Nick Hall
c0054fd4e4 7860: Update place sidebar filter 2015-01-27 23:00:06 +00:00
Nick Hall
7ec60ae6a3 7860: Add new place HasData rule 2015-01-27 22:58:27 +00:00
Nick Hall
8be5616802 8058: New place reference editor
This allows standard "add" and "share" buttons to be used in the place
reference embedded list.
2015-01-26 23:36:23 +00:00
Nick Hall
5bdb45416f 8056: Activate drag and drop on "enclosed by" tab 2015-01-26 22:42:07 +00:00
Nick Hall
3a0f699fae 8057: Remove auto-update of place titles 2015-01-23 19:55:39 +00:00
Nick Hall
28bc8ba590 7942: Implement place displayer 2015-01-23 19:09:55 +00:00
Nick Hall
0bc7bc8b40 7770: Always display main participants 2015-01-21 18:44:42 +00:00
Doug Blank
cd779d5163 8145: Some Addons provide an update even it was already done during the last start of Gramps 2015-01-05 15:23:39 -05:00
Bastien Jacquet
8fd456f604 Merge branch 'geps/interactivesearch'
Use our own interactive-search box to get it
 - more efficient (binary search on sorted columns).
 - customizable (delayed launch of search to avoid text scrambling)
2015-01-05 17:33:15 +01:00
Bastien Jacquet
bb26e53fc0 Interactive-search: Quick search with LIST_ONLY sorted views 2015-01-05 17:32:38 +01:00
Bastien Jacquet
f2fc776d41 speedup srt_key sorting by sorting them in-place 2015-01-05 15:45:14 +01:00
Josip
479992935c 6548: 'Available Gramps Updates for Addons' window not on top 2015-01-03 18:02:27 +01:00
Bastien Jacquet
d426f6232e Our own interactive-search enabling customized and delayed search.
This commit provides same search capabilities as Gtk's.
The only difference should be the search being delayed
by 150ms after last keypress.

Signed-off-by: Bastien Jacquet <bastien.jacquet_dev@m4x.org>
2014-12-27 03:10:59 +01:00
Bastien Jacquet
22ef07cdeb FlatTreeView : Fix wrong return values 2014-12-11 01:02:56 +01:00
Nick Hall
4995765c5f 8029: Suppress warnings in UndoableEntry widget
Bug 644927 - Support out parameters in signals
https://bugzilla.gnome.org/show_bug.cgi?id=644927
2014-12-10 22:25:55 +00:00
Bastien Jacquet
d4a99d8488 Remove needless use of handles in FlatBaseModel.do_iter_next 2014-12-05 06:17:50 +01:00
Bastien Jacquet
48eb2842ee Optimize FlatNodeMap update of _hndl2index for add/delete
tests with python2.6 and python3 show that it's much quicker to get
the handles after the inser/deleted index and upgrade those
(because random-access in a hash-table is super fast)

Here is the code use for tests:

import string,random,sys
import timeit

def id_generator(size=6, chars=string.ascii_lowercase):
    return ''.join(random.choice(chars) for _ in range(size))

num_items=80000
handle_sizes=10
num_operation=2000
setup="""
from __main__ import id_generator,string,num_items,handle_sizes,random
_index2hndl=[("",id_generator(handle_sizes)) for e in range (num_items)]
_hndl2index=dict([key[1], index]
                for index, key in enumerate(_index2hndl))
"""

add0='''
h=id_generator(handle_sizes)
insert_pos= random.randrange(len(_hndl2index))
srtkey_hndl=("",h)
_index2hndl.insert(insert_pos, srtkey_hndl)
for hndl, index in _hndl2index.iteritems():
    if index >= insert_pos:
        _hndl2index[hndl] += 1
_hndl2index[h]=insert_pos
'''
add1='''
h=id_generator(handle_sizes)
insert_pos= random.randrange(len(_hndl2index))
srtkey_hndl=("",h)
_index2hndl.insert(insert_pos, srtkey_hndl)
for hndl, index in _hndl2index.items():
    if index >= insert_pos:
        _hndl2index[hndl] += 1
_hndl2index[h]=insert_pos
'''
add2='''
h=id_generator(handle_sizes)
insert_pos= random.randrange(len(_hndl2index))
srtkey_hndl=("",h)
_index2hndl.insert(insert_pos, srtkey_hndl)
for srt_key,hndl in _index2hndl[insert_pos+1:]:
    _hndl2index[hndl] += 1
_hndl2index[h]=insert_pos
'''
del0='''
index= random.randrange(len(_hndl2index))
srt_key,handle=_index2hndl[index]
del _index2hndl[index]
del _hndl2index[handle]
for key, val in _hndl2index.iteritems():
    if val > index:
        _hndl2index[key] -= 1
'''
del1='''
index= random.randrange(len(_hndl2index))
srt_key,handle=_index2hndl[index]
del _index2hndl[index]
del _hndl2index[handle]
for key, val in _hndl2index.items():
    if val > index:
        _hndl2index[key] -= 1
'''
del2='''
index= random.randrange(len(_hndl2index))
srt_key,handle=_index2hndl[index]
del _index2hndl[index]
del _hndl2index[handle]
for srt_key,hndl in _index2hndl[index:]:
    _hndl2index[hndl] -= 1
'''
if sys.version_info[0] < 3:
    cmds=[add0,add1,add2,del0,del1,del2]
else:
    cmds=[add1,add2,del1,del2]
for c in cmds:
    print(c)
    random.seed(1)
    t=timeit.Timer(c, setup=setup).timeit(num_operation)
    print(num_operation,"ops in ", t, "seconds. avg:",t/num_operation,"seconds")
2014-12-05 06:08:50 +01:00
Bastien Jacquet
a52a931b57 Fix doc and harmless typo (real_index instead of real_path) 2014-12-05 06:04:26 +01:00
Bastien Jacquet
813075ae2f Fix handling of keypresses in treeview 2014-12-05 06:04:21 +01:00
Josip
1fae92ca54 7865: Closing detached gramplet causes python to crash 2014-12-01 18:51:34 +01:00
Nick Hall
3818d7e5e3 Fix place reference editor for drag support 2014-12-01 15:24:36 +00:00
Josip
90d35cc678 7857: gramps fails to start with gtk+-3.13.3 (Gdk.Event(Gdk.EventType.NOTHING)
TypeError: function takes at most 0 arguments (1 given)
2014-11-16 16:53:13 +01:00
Bastien Jacquet
cd540cdb13 8102: Fix problem with fanchart if max_generation = 1 2014-11-05 23:22:48 +01:00
Bastien Jacquet
d716146e9d 8149: Error on opening twice an object from clipboard because of missing import 2014-11-05 21:26:44 +01:00
Bastien Jacquet
e83190dd82 EditPerson new person calls create_id() to have a handler in clipboard (as in EditFamily) 2014-11-05 17:52:07 +00:00
Bastien Jacquet
88c919d034 Allow for dragging a family from EditFamily 2014-11-05 17:52:07 +00:00
Bastien Jacquet
ebb9b53589 Add Support for dragging from the add/choose selector of Place/Source/Media/Note-Entry 2014-11-05 17:52:07 +00:00
Bastien Jacquet
b7ab556393 Add drag support to parents in EditFamily (when set) and move drop capability if parent already set 2014-11-05 17:52:07 +00:00
Bastien Jacquet
1797b66f48 Allow to drag a person from EditPerson (if not a unsaved person) 2014-11-05 17:52:06 +00:00
Bastien Jacquet
4e86fdafc5 Add person drag support from EditChildRef (always possible as child are
always set)
2014-11-05 17:52:06 +00:00
Bastien Jacquet
79d876e350 And drag support to EditPersonRef when person is set 2014-11-05 17:52:06 +00:00
Bastien Jacquet
ea3afbb35c Create prefilled PersonRef when drop of a Person on Association EmbeddedTab (same as ChildTab) 2014-11-05 17:52:06 +00:00
Bastien Jacquet
077be0c07e 8095:Association editor refuses dropped persons 2014-11-05 17:52:06 +00:00
Paul Franklin
5324ca28d4 5150: new Event types are saved as a disordered list 2014-11-04 07:28:22 -08:00
Nick Hall
addcf6f034 7604: Fix error setting gramplet tab label 2014-11-03 21:47:32 +00:00
Jérôme Rapinat
d4e43ef663 7362 8103: some labels fit better on citations sidebar filter (patch by Nick H.), fix a typo on swedish translation, add the new translated string on most translation files 2014-10-20 11:28:24 +02:00
Jérôme Rapinat
9eb8700cfd 8103: sidebarfilter gramplet does not fit well into People, Events, Citations or Media views (non-english locales) 2014-10-15 21:47:03 +02:00
Jérôme Rapinat
246694b0f7 8103: sidebarfilter gramplet does not fit well into People, Events, Citations or Media views 2014-10-15 21:37:03 +02:00
Paul Franklin
d3e75650b4 typo ("data format" => "date format") 2014-10-07 11:03:25 -07:00
Bastien Jacquet
236b5e68fa 8096: Fix new event default type considering existing events with *default* role 2014-10-01 19:09:41 +01:00
Sam Manzi
e2e4d3c57a 6028: Cleaned up and improved the Gramps API docs, Sphinx - fixed four ERROR: Unexpected indentation, added 'sphinx.ext.viewcode' to allow Sphinx to 'Add links to highlighted source code' http://sphinx-doc.org/latest/ext/viewcode.html , updated the copyright year and instructions to use pip 2014-09-29 19:51:38 +02:00
Nick Hall
6ce73e128e Add draw styles to style sheet editor 2014-08-22 19:39:52 +01:00
Nick Hall
0751d49adc Add cell styles to style sheet editor 2014-08-19 23:00:37 +01:00
Nick Hall
da2023b3f8 7991: Enhance style sheet editor to include table styles 2014-08-18 22:50:03 +01:00
Nick Hall
2ec9de511a Allow gramplets to be displayed in the dashboard only
Add a new navigation type of 'Dashboard' in gramplet definitions.
Define the dashboard To Do gramplet to be dashboard-only.
2014-08-12 18:48:10 +01:00
Malcom Lewis
86303f6116 Update FSF address to current location. 2014-08-08 19:39:45 -07:00
Jérôme Rapinat
be3da94188 typo on doc string 2014-08-05 13:52:49 +02:00