Bug 98821

Summary: Report Size/Position when Moving/Resizing Plots
Product: [Applications] kst Reporter: D. V. Wiebe <dvw>
Component: generalAssignee: kst
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version: 1.x   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description D. V. Wiebe 2005-02-08 03:59:44 UTC
Version:           1.1.0_devel (using KDE 3.3.2, compiled sources)
Compiler:          gcc version 3.3.4
OS:                Linux (i686) release 2.6.10

When laying out plots in the window, it would help in lining things up if the pixel size or position of the plot being manipulated would be displayed.
Comment 1 George Staikos 2005-02-08 04:23:34 UTC
CVS commit by staikos: 

display (x0,y0)-(x1,y1) when moving and resizing objects to make it easier to
line things up
FEATURE: 98821


  M +5 -0      ksttoplevelview.cpp   1.90


--- kdeextragear-2/kst/kst/ksttoplevelview.cpp  #1.89:1.90
@@ -195,4 +195,5 @@ void KstTopLevelView::updateFocus(const 
 
 void KstTopLevelView::setViewMode(ViewMode v) {
+  KstApp::inst()->slotUpdateDataMsg(QString::null);
   if (_mode == LayoutMode && v != LayoutMode) {
     recursively<bool>(&KstViewObject::setSelected, false);
@@ -503,4 +504,5 @@ void KstTopLevelView::pressMove(const QP
       }
     }
+    KstApp::inst()->slotUpdateDataMsg(i18n("(x0,y0)-(x1,y1)", "(%1,%2)-(%3,%4)").arg(_prevBand.topLeft().x()).arg(_prevBand.topLeft().y()).arg(_prevBand.bottomRight().x()).arg(_prevBand.bottomRight().y()));
   } else {
     QRect old = _prevBand;
@@ -517,4 +519,5 @@ void KstTopLevelView::pressMove(const QP
       p.end();
     }
+    KstApp::inst()->slotUpdateDataMsg(QString::null);
   }
 }
@@ -527,4 +530,6 @@ void KstTopLevelView::releasePress(const
   }
 
+  KstApp::inst()->slotUpdateDataMsg(QString::null);
+
   if (_pressDirection == -1 && _pressTarget) { // menu released
     _pressTarget = 0L;