r313: *** empty log message ***
[ctsim.git] / src / views.cpp
index 8b1abce2803d6167fa5d90ad2addf1d6166342e2..9188b34714abb25b48898c89476271b96d76c679 100644 (file)
@@ -9,7 +9,7 @@
 **  This is part of the CTSim program
 **  Copyright (C) 1983-2000 Kevin Rosenberg
 **
-**  $Id: views.cpp,v 1.37 2000/12/23 18:12:35 kevin Exp $
+**  $Id: views.cpp,v 1.38 2000/12/25 21:54:26 kevin Exp $
 **
 **  This program is free software; you can redistribute it and/or modify
 **  it under the terms of the GNU General Public License (version 2) as
@@ -152,7 +152,7 @@ ImageFileCanvas::OnMouseEvent(wxMouseEvent& event)
   }\r
   if (event.LeftUp()) {\r
     std::ostringstream os;\r
-    os << "Selected column" << pt.x << " and row" << pt.y << "\n";\r
+    os << "Selected column " << pt.x << " , row " << pt.y << "\n";\r
     *theApp->getLog() << os.str().c_str();\r
   }\r
 }
@@ -284,7 +284,8 @@ ImageFileView::OnCompare (wxCommandEvent& event)
           return;\r
         }\r
 \r
-        pDifferenceDoc->Modify(true);\r
+        if (theApp->getSetModifyNewDocs())\r
+          pDifferenceDoc->Modify(true);\r
         pDifferenceDoc->UpdateAllViews(this);\r
         pDifferenceDoc->GetFirstView()->OnUpdate (this, NULL);\r
       }\r
@@ -508,7 +509,8 @@ ImageFileView::OnPlotRow (wxCommandEvent& event)
     }\r
     delete pX;\r
     delete pY;\r
-    pPlotDoc->Modify(true);\r
+    if (theApp->getSetModifyNewDocs())\r
+       pPlotDoc->Modify(true);\r
   }\r
   \r
 }\r
@@ -554,7 +556,8 @@ ImageFileView::OnPlotCol (wxCommandEvent& event)
     }\r
     delete pX;\r
     delete pY;\r
-    pPlotDoc->Modify(true);\r
+    if (theApp->getSetModifyNewDocs())\r
+      pPlotDoc->Modify(true);\r
   }\r
 }\r
 \r
@@ -606,6 +609,11 @@ ImageFileView::OnCompareCol (wxCommandEvent& event)
         rPlotFile.addEzsetCommand (title.c_str());\r
         rPlotFile.addEzsetCommand ("xlabel Row");\r
         rPlotFile.addEzsetCommand ("ylabel Pixel Value");\r
+        rPlotFile.addEzsetCommand ("curve 1");\r
+        rPlotFile.addEzsetCommand ("color 2");\r
+        rPlotFile.addEzsetCommand ("curve 2");\r
+        rPlotFile.addEzsetCommand ("color 4");\r
+        rPlotFile.addEzsetCommand ("dash 5");\r
         rPlotFile.addEzsetCommand ("box");\r
         rPlotFile.addEzsetCommand ("grid");\r
         rPlotFile.setCurveSize (3, nx);\r
@@ -616,7 +624,8 @@ ImageFileView::OnCompareCol (wxCommandEvent& event)
       delete pX;\r
       delete pY1;\r
       delete pY2;\r
-      pPlotDoc->Modify(true);\r
+      if (theApp->getSetModifyNewDocs())\r
+        pPlotDoc->Modify(true);\r
     }\r
   }\r
 }\r
@@ -671,6 +680,11 @@ ImageFileView::OnCompareRow (wxCommandEvent& event)
         rPlotFile.addEzsetCommand (title.c_str());\r
         rPlotFile.addEzsetCommand ("xlabel Column");\r
         rPlotFile.addEzsetCommand ("ylabel Pixel Value");\r
+        rPlotFile.addEzsetCommand ("curve 1");\r
+        rPlotFile.addEzsetCommand ("color 2");\r
+        rPlotFile.addEzsetCommand ("curve 2");\r
+        rPlotFile.addEzsetCommand ("color 4");\r
+        rPlotFile.addEzsetCommand ("dash 5");\r
         rPlotFile.addEzsetCommand ("box");\r
         rPlotFile.addEzsetCommand ("grid");\r
         rPlotFile.setCurveSize (3, ny);\r
@@ -681,7 +695,8 @@ ImageFileView::OnCompareRow (wxCommandEvent& event)
       delete pX;\r
       delete pY1;\r
       delete pY2;\r
-      pPlotDoc->Modify(true);\r
+      if (theApp->getSetModifyNewDocs())\r
+        pPlotDoc->Modify(true);\r
     }\r
   }\r
 }\r
@@ -824,7 +839,8 @@ PhantomView::OnProjections (wxCommandEvent& event)
         theApp->getDocManager()->ActivateView (pView, true, false);
       }
       ::wxYield();
-      pProjectionDoc->Modify(true);
+      if (theApp->getSetModifyNewDocs())\r
+        pProjectionDoc->Modify(true);
       pProjectionDoc->UpdateAllViews(this);
     }
   }
@@ -860,7 +876,8 @@ PhantomView::OnRasterize (wxCommandEvent& event)
           return;
         }
       }
-      pRasterDoc->Modify(true);
+      if (theApp->getSetModifyNewDocs())\r
+        pRasterDoc->Modify(true);
       pRasterDoc->UpdateAllViews(this);
       ImageFileView* rasterView = dynamic_cast<ImageFileView*>(pRasterDoc->GetFirstView());\r
       if (rasterView) {\r
@@ -1146,7 +1163,8 @@ ProjectionFileView::OnReconstruct (wxCommandEvent& event)
         }
       }
       delete pReconstruct;
-      pReconDoc->Modify(true);
+      if (theApp->getSetModifyNewDocs())\r
+        pReconDoc->Modify(true);
       pReconDoc->UpdateAllViews(this);
       ImageFileView* rasterView = dynamic_cast<ImageFileView*>(pReconDoc->GetFirstView());\r
       if (rasterView) {\r