Browse Source

Remove compare profile button

Neal Wilson 7 years ago
parent
commit
6f3fecc65f
1 changed files with 0 additions and 21 deletions
  1. 0
    21
      config/Windows/batchdetailsnew.xml

+ 0
- 21
config/Windows/batchdetailsnew.xml View File

2
     <layout type="vertical">
2
     <layout type="vertical">
3
         <layout type="horizontal">
3
         <layout type="horizontal">
4
             <button type="push" id="target" name="Load profile as target" />
4
             <button type="push" id="target" name="Load profile as target" />
5
-            <button type="push" id="compare" name="Compare profile" />
6
             <stretch />
5
             <stretch />
7
             <label>Search:</label>
6
             <label>Search:</label>
8
             <line id="search" />
7
             <line id="search" />
145
             });
144
             });
146
             var fileID;
145
             var fileID;
147
             var target = findChildObject(this, 'target');
146
             var target = findChildObject(this, 'target');
148
-            var compare = findChildObject(this, 'compare');
149
             if(typeof(Windows.loggingWindow) == "undefined") {
147
             if(typeof(Windows.loggingWindow) == "undefined") {
150
-                compare.enabled = false;
151
                 target.enabled = false;
148
                 target.enabled = false;
152
             }
149
             }
153
             var tableReference;
150
             var tableReference;
157
             var approval;
154
             var approval;
158
             var annotation;
155
             var annotation;
159
             var roastWeight;
156
             var roastWeight;
160
-            compare.clicked.connect(function() {
161
-                var query = new QSqlQuery;
162
-                query.prepare("SELECT file, name FROM files WHERE id = :id");
163
-                query.bind(":id", Number(fileID));
164
-                query.exec();
165
-                query.next();
166
-                var buffer = new QBuffer(query.value(0));
167
-                var pname = query.value(1);
168
-                query = query.invalidate();
169
-                var startSeries = Number(QSettings.value('cseries', 3));
170
-                var nextSeries = startSeries + 2;
171
-                QSettings.setValue('cseries', nextSeries);
172
-                var input = new XMLInput(buffer, startSeries);
173
-                var graph = findChildObject(Windows.loggingWindow, 'graph');
174
-                input.measure.connect(graph.newMeasurement);
175
-                input.input();
176
-                query = query.invalidate();
177
-            });
178
             target.clicked.connect(function() {
157
             target.clicked.connect(function() {
179
                 var query = new QSqlQuery;
158
                 var query = new QSqlQuery;
180
                 query.prepare("SELECT file, name FROM files WHERE id = :id");
159
                 query.prepare("SELECT file, name FROM files WHERE id = :id");

Loading…
Cancel
Save