aboutsummaryrefslogtreecommitdiff
path: root/generic/Track.c
diff options
context:
space:
mode:
authorlecoanet2004-03-03 10:16:24 +0000
committerlecoanet2004-03-03 10:16:24 +0000
commite3bb24569b85ff5fea4dcc3eb10e86ae59608967 (patch)
tree4a5a104f74812cd7ac1c914c90c5ae51053d767d /generic/Track.c
parent30852dd99b28fddaef4ac37bfa225da343c6be7e (diff)
downloadtkzinc-e3bb24569b85ff5fea4dcc3eb10e86ae59608967.zip
tkzinc-e3bb24569b85ff5fea4dcc3eb10e86ae59608967.tar.gz
tkzinc-e3bb24569b85ff5fea4dcc3eb10e86ae59608967.tar.bz2
tkzinc-e3bb24569b85ff5fea4dcc3eb10e86ae59608967.tar.xz
Changes to implement a new behavior for -position attribute and local transforms.
Diffstat (limited to 'generic/Track.c')
-rw-r--r--generic/Track.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/generic/Track.c b/generic/Track.c
index 1d68217..77366cf 100644
--- a/generic/Track.c
+++ b/generic/Track.c
@@ -2288,12 +2288,20 @@ Selection(ZnItem item,
*
**********************************************************************************
*/
+/*
+ * Track and WP -position attribute is not handled the same way as other
+ * interface items like texts, icons and such, as it make little sense
+ * to change the local transform of a track. It is always processed as
+ * a point in the coordinate system of the track's parent. It is the same
+ * for the points in the history and the speed vector end.
+ */
static ZnItemClassStruct TRACK_ITEM_CLASS = {
sizeof(TrackItemStruct),
4, /* num_parts */
True, /* has_anchors */
"track",
track_attrs,
+ -1,
Init,
Clone,
Destroy,
@@ -2327,6 +2335,7 @@ static ZnItemClassStruct WAY_POINT_ITEM_CLASS = {
True, /* has_anchors */
"waypoint",
wp_attrs,
+ -1,
Init,
Clone,
Destroy,