Bug 123568

Summary: Plot dialog out of sync with plot
Product: [Applications] kst Reporter: Andrew Walker <arwalker>
Component: generalAssignee: kst
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 1.x   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Proposed patch

Description Andrew Walker 2006-03-13 20:45:27 UTC
Version:           HEAD (using KDE KDE 3.5.0)
Installed from:    Compiled From Sources
OS:                Linux

PROBLEM:

The plot dialog does not allow reflect the current status of the plot object

STEPS TO REPRODUCE:

Start kst
Create a plot with a single curve
Right-click on the plot and select Edit...
Click on the Range tab
With the plot dialog open use the mouse to zoom in on a portion of the plot 

RESULTS:

The range tab is not updated

EXPECTED RESULTS:

The range tab should reflect the new axes values of the plot
Comment 1 Andrew Walker 2006-03-13 20:46:36 UTC
Created attachment 15096 [details]
Proposed patch
Comment 2 Andrew Walker 2006-03-14 19:38:59 UTC
SVN commit 518631 by arwalker:

BUG:123568 Ensure that plot dialog is sync'ed with plot

 M  +2 -1      kst2dplot.cpp  


--- trunk/extragear/graphics/kst/src/libkstapp/kst2dplot.cpp #518630:518631
@@ -4174,6 +4174,7 @@
     kstdDebug() << "mouse release: do update" << endl;
     setDirty();
     static_cast<KstViewWidget*>(view)->paint();
+    emit modified();
   }
 }
 
@@ -5054,7 +5055,7 @@
   if (handled) {
     view->paint();
     e->accept();
-    //emit modified();
+    emit modified();
     return;
   }
 
Comment 3 George Staikos 2006-03-14 21:14:57 UTC
I'm worried about this change for many reasons:

1) modified() causes many things to happen.  For instance, it sets the 
document to modified, so that exit prompts for save.  This is not what we 
want in these cases based on my last discussions with Barth about this.
2) It causes a forced update -> performance issue, and also if we're paused, 
we get an update when we shouldn't
3) It only covers a few cases.  KstScript that modifies the plot will not 
result in updated dialogs this way, for example.

On Tuesday 14 March 2006 13:38, Andrew Walker wrote:
> SVN commit 518631 by arwalker:
>
> BUG:123568 Ensure that plot dialog is sync'ed with plot
>
>  M  +2 -1      kst2dplot.cpp
>
>
> --- trunk/extragear/graphics/kst/src/libkstapp/kst2dplot.cpp #518630:518631
> @@ -4174,6 +4174,7 @@
>      kstdDebug() << "mouse release: do update" << endl;
>      setDirty();
>      static_cast<KstViewWidget*>(view)->paint();
> +    emit modified();
>    }
>  }
>
> @@ -5054,7 +5055,7 @@
>    if (handled) {
>      view->paint();
>      e->accept();
> -    //emit modified();
> +    emit modified();
>      return;
>    }
>
> _______________________________________________
> Kst mailing list
> Kst@kde.org
> https://mail.kde.org/mailman/listinfo/kst

Comment 4 George Staikos 2006-03-18 23:22:09 UTC
I will revert this change if I don't hear back about it.  Is there no 
interest?

On Tuesday 14 March 2006 15:15, George Staikos wrote:
> I'm worried about this change for many reasons:
>
> 1) modified() causes many things to happen.  For instance, it sets the
> document to modified, so that exit prompts for save.  This is not what we
> want in these cases based on my last discussions with Barth about this.
> 2) It causes a forced update -> performance issue, and also if we're
> paused, we get an update when we shouldn't
> 3) It only covers a few cases.  KstScript that modifies the plot will not
> result in updated dialogs this way, for example.
>
> On Tuesday 14 March 2006 13:38, Andrew Walker wrote:
> > SVN commit 518631 by arwalker:
> >
> > BUG:123568 Ensure that plot dialog is sync'ed with plot
> >
> >  M  +2 -1      kst2dplot.cpp
> >
> >
> > --- trunk/extragear/graphics/kst/src/libkstapp/kst2dplot.cpp
> > #518630:518631 @@ -4174,6 +4174,7 @@
> >      kstdDebug() << "mouse release: do update" << endl;
> >      setDirty();
> >      static_cast<KstViewWidget*>(view)->paint();
> > +    emit modified();
> >    }
> >  }
> >
> > @@ -5054,7 +5055,7 @@
> >    if (handled) {
> >      view->paint();
> >      e->accept();
> > -    //emit modified();
> > +    emit modified();
> >      return;
> >    }
> >
> > _______________________________________________
> > Kst mailing list
> > Kst@kde.org
> > https://mail.kde.org/mailman/listinfo/kst

Comment 5 Andrew Walker 2006-03-20 18:31:51 UTC
If you revert the bug fix then please make sure you re-open the bug report.

-----Original Message-----
From: George Staikos [mailto:staikos@kde.org]
Sent: Saturday, March 18, 2006 2:22 PM
To: kst@kde.org
Subject: [Kst] [Bug 123568] Plot dialog out of sync with plot


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=123568         




------- Additional Comments From staikos kde org  2006-03-18 23:22 -------
I will revert this change if I don't hear back about it.  Is there no 
interest?

On Tuesday 14 March 2006 15:15, George Staikos wrote:
> I'm worried about this change for many reasons:
>
> 1) modified() causes many things to happen.  For instance, it sets the
> document to modified, so that exit prompts for save.  This is not what we
> want in these cases based on my last discussions with Barth about this.
> 2) It causes a forced update -> performance issue, and also if we're
> paused, we get an update when we shouldn't
> 3) It only covers a few cases.  KstScript that modifies the plot will not
> result in updated dialogs this way, for example.
>
> On Tuesday 14 March 2006 13:38, Andrew Walker wrote:
> > SVN commit 518631 by arwalker:
> >
> > BUG:123568 Ensure that plot dialog is sync'ed with plot
> >
> >  M  +2 -1      kst2dplot.cpp
> >
> >
> > --- trunk/extragear/graphics/kst/src/libkstapp/kst2dplot.cpp
> > #518630:518631  @ -4174,6 +4174,7  @
> >      kstdDebug() << "mouse release: do update" << endl;
> >      setDirty();
> >      static_cast<KstViewWidget*>(view)->paint();
> > +    emit modified();
> >    }
> >  }
> >
> >  @ -5054,7 +5055,7  @
> >    if (handled) {
> >      view->paint();
> >      e->accept();
> > -    //emit modified();
> > +    emit modified();
> >      return;
> >    }
> >
> > _______________________________________________
> > Kst mailing list
> > Kst kde org
> > https://mail.kde.org/mailman/listinfo/kst

_______________________________________________
Kst mailing list
Kst@kde.org
https://mail.kde.org/mailman/listinfo/kst