Bug 87001 - Problem after scrolling in determining mode...
Summary: Problem after scrolling in determining mode...
Status: RESOLVED FIXED
Alias: None
Product: kst
Classification: Applications
Component: general (show other bugs)
Version: 1.x
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kst
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-11 23:12 UTC by Andrew Walker
Modified: 2004-08-31 22:04 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Walker 2004-08-11 23:12:40 UTC
Version:           0.98 (using KDE KDE 3.2.1)
Installed from:    Compiled From Sources

PROBLEM:
Plot does not update as expected.

STEPS TO REPRODUCE:
Load some data file into Kst and generate one or more plots in the same 
window, displaying some fraction of the data.

Advance 1 Screen in the plots and notice that the data moves to the next 
screen and is plotted correctly. In one of plots use the mouse wheel to 
scroll in the x-direction through the data (I'm not sure if its a feature or 
bug that the data doesn't actually update). Return to the same position as 
when you started moving the wheel. Hit the Advance 1 Screen button again.
Notice that the plot that you wheeled in does not advance 1 screen (although 
the data is correctly plotted for 1 screen ahead), and you left looking at a 
blank plot.
Comment 1 Netterfield 2004-08-11 23:21:02 UTC
This is because any zoom operation takes you out of auto-scale mode and puts you in fixed scale mode.  So the behavior, while surprising, is consistent.

We can't have 'advance 1 screen' change back to auto-scale mode because it is possible that you wanted to be in fixed scale mode (say you are plotting RA vs DEC tracks throughout the day). 

The best I can think of is to have a visual cue which indicates that we are in fixed scale mode, but we should decide on what it should look like before we do anything.
Comment 2 Andrew Walker 2004-08-31 22:04:48 UTC
CVS commit by arwalker: 

Ensure that the plot dialog is upated when the user modifies a plot setting through a mouse operation. Previously if the user zoomed in with the mouse and the plot dialog was open to the plot being worked upon then the plot dialog would not update with the new axes settings.

CCMAIL: 87001-done@bugs.kde.org


  M +3 -2      kst2dplot.cpp   1.257


--- kdeextragear-2/kst/kst/kst2dplot.cpp  #1.256:1.257
@@ -2778,4 +2777,5 @@ void Kst2DPlot::mouseReleaseEvent(QWidge
     setDirty();
     static_cast<KstViewWidget*>(view)->paint();
+    emit modified();
   }
 }
@@ -3442,4 +3442,5 @@ void Kst2DPlot::keyPressEvent(QWidget *v
       } else if (s & Qt::ControlButton) {
         xZoomMax(view);
+        view->paint();
       } else {
         zoomMax(view);
@@ -3501,5 +3502,4 @@ void Kst2DPlot::keyPressEvent(QWidget *v
         }
         setDirty();
-        emit modified();
       }
       break;
@@ -3512,4 +3512,5 @@ void Kst2DPlot::keyPressEvent(QWidget *v
     view->paint();
     e->accept();
+    emit modified();
     return;
   }