diff FXAnalyse.c @ 75:6aae1ebf397f

Remove not completely implemented autosave option
author Daniele Nicolodi <daniele.nicolodi@obspm.fr>
date Thu, 29 Nov 2012 13:16:32 +0100
parents 1dfaf5ef0352
children 5e0c314528bf
line wrap: on
line diff
--- a/FXAnalyse.c	Thu Nov 08 18:43:15 2012 +0100
+++ b/FXAnalyse.c	Thu Nov 29 13:16:32 2012 +0100
@@ -1277,11 +1277,6 @@
 					}
 				}
 				
-				GetCtrlVal(MainPanel, PANEL_CHECKBOX_MATH2AUTOSAV, &BoxChecked);		   // AutoSave OL
-				if (BoxChecked) {
-					SetCtrlVal(MainPanel, PANEL_CHECKBOX_MATH2SAVE, TRUE);   // so that it will try to write it (at next block) if it seems reasonnable, even though it was off before
-				}
-				
 				GetCtrlVal(MainPanel, PANEL_CHECKBOX_MATH2SAVE, &BoxChecked);			   // Save OL (Math2)
 				if (BoxChecked) {
 					FileOpt = OpenFile("z:\\MeasuresFifi1\\OptCavity.txt", VAL_WRITE_ONLY, VAL_APPEND, VAL_ASCII);
@@ -1294,13 +1289,7 @@
 					CloseFile(FileOpt);
 				}
 				
-				GetCtrlVal(MainPanel, PANEL_CHECKBOX_MATH3AUTOSAV, &BoxChecked);		   // AutoSave Hg (Math3)
-				if (BoxChecked) {
-					SetCtrlVal(MainPanel, PANEL_CHECKBOX_MATH3SAVE, TRUE);   // so that it will try to write it (at next block) if it seems reasonnable, even though it was off before
-				}
-				
 				GetCtrlVal(MainPanel, PANEL_CHECKBOX_MATH3SAVE, &BoxChecked);			   // Save Hg
-				
 				if (BoxChecked) {
 					FileHg = OpenFile("z:\\MeasuresFifi1\\HgCavity.txt", VAL_WRITE_ONLY, VAL_APPEND, VAL_ASCII);
 					Fmt(ReportString, "%s\t%s\t%f[p3]\t%f[p3]", Date, Time, utc, Math3);
@@ -1668,130 +1657,6 @@
 }
 
 
-
-int CVICALLBACK CB_OnSaveOpt (int panel, int control, int event,
-		void *callbackData, int eventData1, int eventData2)
-{
-	bool BoxChecked = FALSE ;
-	
-	switch (event)
-		{
-		case EVENT_COMMIT:
-			
-			GetCtrlVal(MainPanel, control, &BoxChecked);
-			
-			if (BoxChecked) {
-				SetCtrlAttribute(MainPanel, PANEL_CHECKBOX_MATH2AUTOSAV, ATTR_DIMMED, FALSE) ;
-				}
-			
-			if (!BoxChecked) {
-				SetCtrlAttribute(MainPanel, PANEL_CHECKBOX_MATH2AUTOSAV, ATTR_DIMMED, TRUE) ;
-				}
-			
-			break;
-		}
-	return 0;
-}
-
-
-
- 
-int CVICALLBACK CB_OnSaveHg (int panel, int control, int event,
-		void *callbackData, int eventData1, int eventData2)
-{
-	bool BoxChecked = FALSE ;
-	
-	switch (event)
-		{
-		case EVENT_COMMIT:
-			
-			GetCtrlVal(MainPanel, control, &BoxChecked);
-			
-			if (BoxChecked) {
-				SetCtrlAttribute(MainPanel, PANEL_CHECKBOX_MATH3AUTOSAV, ATTR_DIMMED, FALSE) ;
-				}
-			
-			if (!BoxChecked) {
-				SetCtrlAttribute(MainPanel, PANEL_CHECKBOX_MATH3AUTOSAV, ATTR_DIMMED, TRUE) ;
-				}
-			
-			break;
-		}
-	return 0;
-}
-
-int CVICALLBACK CB_OnAutoSaveHg (int panel, int control, int event,
-		void *callbackData, int eventData1, int eventData2)
-{
-	bool BoxChecked = FALSE ;
-	
-	switch (event)
-		{
-		case EVENT_COMMIT:
-			
-			GetCtrlVal(MainPanel, control, &BoxChecked);
-			
-			if (BoxChecked) {
-				SetCtrlAttribute(MainPanel, PANEL_CHECKBOX_MATH2SAVE, ATTR_DIMMED, TRUE) ;
-				}
-			
-			if (!BoxChecked) {
-				SetCtrlAttribute(MainPanel, PANEL_CHECKBOX_MATH2SAVE, ATTR_DIMMED, FALSE) ;
-				}
-
-			break;
-		}
-	return 0;
-}
-
-int CVICALLBACK CB_OnSaveSr (int panel, int control, int event,
-		void *callbackData, int eventData1, int eventData2)
-{
-	bool BoxChecked = FALSE ;
-	
-	switch (event)
-		{
-		case EVENT_COMMIT:
-			
-			GetCtrlVal(MainPanel, control, &BoxChecked);
-			
-			if (BoxChecked) {
-				SetCtrlAttribute(MainPanel, PANEL_CHECKBOX_MATH3AUTOSAV, ATTR_DIMMED, FALSE) ;
-				}
-			
-			if (!BoxChecked) {
-				SetCtrlAttribute(MainPanel, PANEL_CHECKBOX_MATH3AUTOSAV, ATTR_DIMMED, TRUE) ;        
-				}
-			break;
-		}
-	return 0;
-}
-
-int CVICALLBACK CB_OnAutoSaveSr (int panel, int control, int event,
-		void *callbackData, int eventData1, int eventData2)
-{
-	bool BoxChecked = FALSE ; 
-	
-	switch (event)
-		{
-		case EVENT_COMMIT:
-
-			GetCtrlVal(MainPanel, control, &BoxChecked);
-			
-			if (BoxChecked) {
-				SetCtrlAttribute(MainPanel, PANEL_CHECKBOX_MATH3SAVE, ATTR_DIMMED, TRUE) ;
-				}
-			
-			if (!BoxChecked) {
-				SetCtrlAttribute(MainPanel, PANEL_CHECKBOX_MATH3SAVE, ATTR_DIMMED, FALSE) ;
-				}
-			
-			break;
-		}
-	return 0;
-}
-
-
 int CVICALLBACK CB_OnAcceptN (int panel, int control, int event,
 		void *callbackData, int eventData1, int eventData2)
 {