Commit Graph
42 Commits
Author SHA1 Message Date
Mika Fischer 5eecfd6789 Try to fix boundingRect of GroupItem by ignoring boundingRect of text child 2012-01-27 14:02:37 +01:00
Mika Fischer c0940bce1d Add missing constructor for NPointFaceItem 2012-01-27 14:02:37 +01:00
Martin Baeuml 7c377a0669 call prepareGeometryChange *before* actually changing the bounding rect 2011-12-06 16:53:09 +01:00
Martin Baeuml 01ea5edcad GroupItem may not be selected or focused
Only its children can be.  This fixes the problem, that a group item
could even be selected by clicking somewhere between the item's children
and the upper left corner of the scene (because the group items bounding
rect extends all the way up to (0,0))
2011-12-06 16:51:38 +01:00
Martin Baeuml 99822b85d6 add missing paint base method 2011-12-06 16:42:21 +01:00
Martin Baeuml 5e0c295316 make the item's text size independent of the scene's transformation (fixes #64) 2011-12-06 16:25:56 +01:00
Martin Baeuml 1002806ef0 display text in child item (fixes #12)
This allows the text to have a bounding box of its own.
Thus, text is not clipped at an items border anymore if it
is too long.  It's also properly deleted when the item is deleted.
2011-12-06 16:25:16 +01:00
Martin Baeuml 589abac210 allow ids to be in the range 0-35
ids 0-9 are labeled using keys 0-9,
ids 10-35 are labeled using keys a-z
2011-12-06 15:37:23 +01:00
Martin Baeuml 09060a52fc pep8 2011-10-11 11:06:33 +02:00
Martin Baeuml 9e153a78c4 more sensible error/log message when expected key is not found in modelitem 2011-10-11 10:59:56 +02:00
Mika Fischer 328aa38723 Support missing points in NPointFaceItem 2011-10-05 16:37:02 +02:00
Mika Fischer f0bc05ead5 Change points in NPointFaceItem 2011-09-30 14:41:37 +02:00
Mika Fischer 85bcefda61 Use SequenceItemInserter and GroupItem for NPointFaceItem and Inserter 2011-09-30 13:43:57 +02:00
Martin Baeuml 757623bd9a add defaultAutoTextKeys class member 2011-09-14 17:20:56 +02:00
Martin Baeuml b4d5445fbf add cycleValuesOnKeypress parameter to BaseItem 2011-09-14 17:20:39 +02:00
Martin Baeuml 74897c8a52 add BBoxFaceItem
the BBoxFaceItem is the corresponding item to the BBoxFaceItemInserter
2011-09-14 16:08:24 +02:00
Martin Baeuml c0fd6536df add GroupItem
A group item delegates displaying and modification
to the different basic items.
2011-09-14 16:07:52 +02:00
Martin Baeuml 733bf7a635 add prefix handling for basic items 2011-09-14 16:07:02 +02:00
Mika Fischer 802a17d0c3 Fix some bugs with NPointFaceItem 2011-08-01 15:24:57 +02:00
Mika Fischer a1582f135d Add basic support for face labels that consist of facial landmarks 2011-08-01 14:53:27 +02:00
Mika Fischer 1a2d5412aa Consistently use _foo for "protected" members 2011-07-25 10:55:48 +02:00
Mika Fischer cd62566e54 Add support for resizing RectItems using the mouse (closes #15) 2011-06-30 17:40:12 +02:00
Mika Fischer a7d51aefe4 Allow RectItems with zero width or height 2011-06-30 14:47:14 +02:00
Mika Fischer 4b7aaf2356 Make items change color according to unconfirmed property 2011-06-30 14:11:22 +02:00
Mika Fischer 999b5c556d Paint unconfirmed annotations red in treeview and scene 2011-06-30 11:02:23 +02:00
Mika Fischer 7e9a93348a Update all properties at once when items change them
Avoids jumpiness when dragging stuff around
2011-06-24 21:42:24 +02:00
Martin Baeuml d2021e9c8e remove obsolote import 2011-06-21 13:14:30 +02:00
Martin Baeuml 8f6bd89de5 fix displaying of autotext in BaseItem 2011-06-21 13:14:00 +02:00
Martin Baeuml 90e95921ae - fix updating of model for RectItem (fixes #36)
- removes also the support for 'w' instead of 'width' (and 'h' respectively)
2011-06-21 13:12:29 +02:00
Mika Fischer 6a8be5f0b7 Implement dict-like interface for model items 2011-06-16 15:43:34 +02:00
Mika Fischer 0395164784 Convert (Scene)Items to new model API 2011-06-15 11:04:17 +02:00
Martin Baeuml 476fb995b5 pep8 2011-06-10 17:36:55 +02:00
Martin Baeuml 645fe5900c remove obsolete visualization items 2011-06-10 17:36:44 +02:00
Martin Baeuml d165de6b21 properly update items if model changes 2011-06-09 17:18:25 +02:00
Mika Fischer 6ace774ee0 Properly initialize auto_text_keys_ for all Items 2011-06-07 14:30:34 +02:00
Martin Baeuml 03c241787e store persistent model index 2011-06-06 13:46:25 +02:00
Martin Baeuml 2b51ce8e0b add text drawing to BaseItem 2011-06-06 13:46:09 +02:00
Martin Baeuml 14889a4b97 cleanup and pep8 2011-06-06 13:45:16 +02:00
Martin Baeuml 29294a7a35 rewrite PointItem and RectItem using the new base class, adds __call__ method 2011-05-27 17:04:32 +02:00
Martin Baeuml e2df6dd7e0 allow rects to be moved by keyboard 2011-05-19 12:38:18 +02:00
Martin Baeuml 2756b40d56 fix import paths 2011-05-17 14:43:30 +02:00
Martin Baeuml 7739f76777 make sloth its own package 2011-05-17 14:04:02 +02:00