aboutsummaryrefslogtreecommitdiffstats
path: root/math/xgfe/files/patch-multiFile.cpp
blob: b8ae133b2dc7ede9799fdb1781ad688aa9585f43 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
--- multiFile.cpp.orig  Mon May 18 04:13:18 1998
+++ multiFile.cpp   Thu Oct 30 21:42:04 2003
@@ -23,7 +23,7 @@
    ------------------------------------------------------------------------*/
 
 #include "multiFile.h"
-#include <iostream.h>
+#include <iostream>
 
 
 #define Inherited multiFileData
@@ -86,24 +86,24 @@
   // make sure we actually have files in the combo box
   if (multiFileList->count() > 0)
   {
-    string filename = multiFileList->currentText();
-    string dataSetStart = dataSetStartEdit->text();
-    string dataSetEnd = dataSetEndEdit->text();
-    string dataSetInc = dataSetIncEdit->text();
-    string sampPointInc = pointIncEdit->text();
-    string sampLineInc = lineIncEdit->text();
-    string sampStartPoint = startPointEdit->text();
-    string sampStartLine = startLineEdit->text();
-    string sampEndPoint = endPointEdit->text();
-    string sampEndLine = endLineEdit->text();
-    string xcol = xColumnEdit->text();
-    string ycol = yColumnEdit->text();
-    string zcol = zColumnEdit->text();
-    string format = formatEdit->text();
-    string rawformat = rawFormatEdit->text();
-    string smoothType = interpList->currentText();
-    string style = fileStyleList->currentText();
-    string filter = filterEdit->text();
+    string filename = multiFileList->currentText().ascii();
+    string dataSetStart = dataSetStartEdit->text().ascii();
+    string dataSetEnd = dataSetEndEdit->text().ascii();
+    string dataSetInc = dataSetIncEdit->text().ascii();
+    string sampPointInc = pointIncEdit->text().ascii();
+    string sampLineInc = lineIncEdit->text().ascii();
+    string sampStartPoint = startPointEdit->text().ascii();
+    string sampStartLine = startLineEdit->text().ascii();
+    string sampEndPoint = endPointEdit->text().ascii();
+    string sampEndLine = endLineEdit->text().ascii();
+    string xcol = xColumnEdit->text().ascii();
+    string ycol = yColumnEdit->text().ascii();
+    string zcol = zColumnEdit->text().ascii();
+    string format = formatEdit->text().ascii();
+    string rawformat = rawFormatEdit->text().ascii();
+    string smoothType = interpList->currentText().ascii();
+    string style = fileStyleList->currentText().ascii();
+    string filter = filterEdit->text().ascii();
 
     gnuInt->setMultiFileStyleOption(filename, style);
     gnuInt->setMultiFileDataSetStart(filename,dataSetStart);
@@ -122,7 +122,7 @@
     gnuInt->insertMultiFileRawFormatOption(filename, rawformat);
     gnuInt->setMultiFileSmoothType(filename,smoothType);
 
-    string title = legendTitleEdit->text();
+    string title = legendTitleEdit->text().ascii();
     gnuInt->setMultiFileLegendTitle(filename, title);
 
     if (legendTitleDefaultButton->isChecked() == TRUE)
@@ -150,7 +150,7 @@
   
   if ( !filename.isNull() )
   {
-    temp = filename;
+    temp = filename.ascii();
 
     multiFileList->insertItem(filename,0);
     gnuInt->insertMultiFileNew(temp);
@@ -165,7 +165,7 @@
   if (multiFileList->count() > 0)
   { 
     // get current file in combo box
-    string filename = multiFileList->currentText();
+    string filename = multiFileList->currentText().ascii();
     
     int currentItem = multiFileList->currentItem();
     
@@ -235,7 +235,7 @@
 void multiFile::getCurrentOptions()
 {
   // get options for this file
-  string filename = multiFileList->currentText();
+  string filename = multiFileList->currentText().ascii();
   string dataSetStart = gnuInt->getMultiFileDataSetStart(filename);
   string dataSetEnd = gnuInt->getMultiFileDataSetEnd(filename);
   string dataSetInc = gnuInt->getMultiFileDataSetIncrement(filename);