[Kst] branches/work/kst/portto4/kst

Barth Netterfield netterfield at astro.utoronto.ca
Fri Sep 17 22:25:10 CEST 2010


SVN commit 1176505 by netterfield:

Fix changing settings in shared axis boxes.



 M  +0 -6      devel-docs/Kst2Specs/Bugs  
 M  +1 -1      devel-docs/Kst2Specs/Wishlist  
 M  +2 -0      src/libkstapp/sharedaxisboxitem.cpp  
 M  +2 -1      src/libkstapp/viewgridlayout.cpp  


--- branches/work/kst/portto4/kst/devel-docs/Kst2Specs/Bugs #1176504:1176505
@@ -28,10 +28,4 @@
 "First") value on the plot rather than the Last value.
 
 ** This appears to be either a BLASTpol defile bug, or a filesystem issue.  **
------------------------
 
-Create a bunch of plots with same X range but different Y range.
-Put them in a shared axis box.  X is shared as expected.
-rmb-> select share Y axis.  The Y zooms are now tied as expected, but the Y 
-axis are not shared.  They should be.
-
--- branches/work/kst/portto4/kst/devel-docs/Kst2Specs/Wishlist #1176504:1176505
@@ -62,4 +62,4 @@
 
 --------------------
 
-Legends can get larger than the plot if there are enought things in them.  This should not be.  Requires chewing of the cud...
+Legends can get larger than the plot if there are enought things in them.  This should not be. 
--- branches/work/kst/portto4/kst/src/libkstapp/sharedaxisboxitem.cpp #1176504:1176505
@@ -246,12 +246,14 @@
 
 void SharedAxisBoxItem::shareXAxis() {
   _shareX = !_shareX;
+  _sharedIsDirty = true;
   updateShare();
 }
 
 
 void SharedAxisBoxItem::shareYAxis() {
   _shareY = !_shareY;
+  _sharedIsDirty = true;
   updateShare();
 }
 
--- branches/work/kst/portto4/kst/src/libkstapp/viewgridlayout.cpp #1176504:1176505
@@ -376,6 +376,7 @@
 
 void ViewGridLayout::shareAxis(QPainter *painter, bool creation) {
 
+
   SharedAxisBoxItem *shareBox = qobject_cast<SharedAxisBoxItem*>(parentItem());
   if (!shareBox) {
     return;
@@ -711,7 +712,7 @@
   }
 }
 
-
+// static function
 void ViewGridLayout::updateProjections(ViewItem *item, bool forceXShare, bool forceYShare) {
   bool xMatch = true;
   bool yMatch = true;


More information about the Kst mailing list