[Kst] kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Mon Jun 28 23:28:35 CEST 2004


CVS commit by staikos: 

Rename some functions to make it more clear what they do.


  M +20 -20    kst2dplot.cpp   1.115
  M +4 -4      kst2dplot.h   1.44


--- kdeextragear-2/kst/kst/kst2dplot.cpp  #1.114:1.115
@@ -2617,6 +2617,6 @@ void Kst2DPlot::moveLeft() {
 
   if (view) {
-    moveHorizontal(true);
-    updateTiedPlots(&Kst2DPlot::moveHorizontal, true, view);
+    moveSelfHorizontal(true);
+    updateTiedPlots(&Kst2DPlot::moveSelfHorizontal, true, view);
     pushScale();
     cancelZoom(view);
@@ -2631,6 +2631,6 @@ void Kst2DPlot::moveRight() {
 
   if (view) {
-    moveHorizontal(false);
-    updateTiedPlots(&Kst2DPlot::moveHorizontal, false, view);
+    moveSelfHorizontal(false);
+    updateTiedPlots(&Kst2DPlot::moveSelfHorizontal, false, view);
     pushScale();
     cancelZoom(view);
@@ -2645,6 +2645,6 @@ void Kst2DPlot::moveUp() {
 
   if (view) {
-    moveVertical(true);
-    updateTiedPlots(&Kst2DPlot::moveVertical, true, view);
+    moveSelfVertical(true);
+    updateTiedPlots(&Kst2DPlot::moveSelfVertical, true, view);
     pushScale();
     cancelZoom(view);
@@ -2659,6 +2659,6 @@ void Kst2DPlot::moveDown() {
 
   if (view) {
-    moveVertical(false);
-    updateTiedPlots(&Kst2DPlot::moveVertical, false, view);
+    moveSelfVertical(false);
+    updateTiedPlots(&Kst2DPlot::moveSelfVertical, false, view);
     pushScale();
     cancelZoom(view);
@@ -2669,5 +2669,5 @@ void Kst2DPlot::moveDown() {
 
 
-void Kst2DPlot::moveHorizontal(bool left) {
+void Kst2DPlot::moveSelfHorizontal(bool left) {
   double xmin, xmax, ymin, ymax;
   double new_xmin, new_xmax;
@@ -2688,5 +2688,5 @@ void Kst2DPlot::moveHorizontal(bool left
 
 
-void Kst2DPlot::moveVertical(bool up) {
+void Kst2DPlot::moveSelfVertical(bool up) {
   double xmin, xmax, ymin, ymax;
   double new_ymin, new_ymax;
@@ -2718,5 +2718,5 @@ void Kst2DPlot::moveVertical(bool up) {
 
 
-void Kst2DPlot::yZoom(bool in) {
+void Kst2DPlot::zoomSelfVertical(bool in) {
   double xmin, xmax, ymin, ymax;
   double new_ymin, new_ymax;
@@ -2741,6 +2741,6 @@ void Kst2DPlot::yZoomIn() {
 
   if (view) {
-    yZoom(true);
-    updateTiedPlots(&Kst2DPlot::yZoom, true, view);
+    zoomSelfVertical(true);
+    updateTiedPlots(&Kst2DPlot::zoomSelfVertical, true, view);
     pushScale();
     cancelZoom(view);
@@ -2755,6 +2755,6 @@ void Kst2DPlot::yZoomOut() {
 
   if (view) {
-    yZoom(false);
-    updateTiedPlots(&Kst2DPlot::yZoom, false, view);
+    zoomSelfVertical(false);
+    updateTiedPlots(&Kst2DPlot::zoomSelfVertical, false, view);
     pushScale();
     cancelZoom(view);
@@ -2765,5 +2765,5 @@ void Kst2DPlot::yZoomOut() {
 
 
-void Kst2DPlot::xZoom(bool in) {
+void Kst2DPlot::zoomSelfHorizontal(bool in) {
   double xmin, xmax, ymin, ymax;
   double new_xmin, new_xmax;
@@ -2788,6 +2788,6 @@ void Kst2DPlot::xZoomIn() {
 
   if (view) {
-    xZoom(true);
-    updateTiedPlots(&Kst2DPlot::xZoom, true, view);
+    zoomSelfHorizontal(true);
+    updateTiedPlots(&Kst2DPlot::zoomSelfHorizontal, true, view);
     pushScale();
     cancelZoom(view);
@@ -2802,6 +2802,6 @@ void Kst2DPlot::xZoomOut() {
 
   if (view) {
-    xZoom(false);
-    updateTiedPlots(&Kst2DPlot::xZoom, false, view);
+    zoomSelfHorizontal(false);
+    updateTiedPlots(&Kst2DPlot::zoomSelfHorizontal, false, view);
     pushScale();
     cancelZoom(view);

--- kdeextragear-2/kst/kst/kst2dplot.h  #1.43:1.44
@@ -165,8 +165,8 @@ public:
 
   void cancelZoom(QWidget *view);
-  void moveHorizontal(bool left);
-  void moveVertical(bool up);
-  void xZoom(bool in);
-  void yZoom(bool in);
+  void moveSelfHorizontal(bool left);
+  void moveSelfVertical(bool up);
+  void zoomSelfHorizontal(bool in);
+  void zoomSelfVertical(bool in);
   double xLeft() const;
   void setHasFocus(bool hasFocus);





More information about the Kst mailing list