netterfield at astro.utoronto.ca
Tue Dec 13 07:00:03 CET 2005
SVN commit 488080 by netterfield:
ideas for relative placement of chidren.
M +10 -0 PlotUIFixes
--- trunk/extragear/graphics/kst/devel-docs/PlotUIFixes #488079:488080
@@ -10,6 +10,16 @@
size is changed (changing the border with) the child view object will stay fixed
relative to the axis (imagine an arrow pointing to a feature).
+ The solution to this appears to be to place and draw children relative to the
+ parent's contentsRect, rather than their geomentry(). Setting the viewport to
+ contentsRect() rather than geometry() in kstviewobject::paint() does this, drawing
+ the child relative to the contents rect (set, for 2dplot, to the axis box).
+ But there are problems with this:
+ -the clip regions are still relative to geometry
+ -drag and drop are still relative to geometry
+ -The child can't be moved outside the contents rect.
- Lines and arrows are clipped
- Selection points are always clipped even if the object lies below.
More information about the Kst