|
@@ -2,7 +2,6 @@
|
2
|
2
|
<layout type="vertical">
|
3
|
3
|
<layout type="horizontal">
|
4
|
4
|
<button type="push" id="target" name="Load profile as target" />
|
5
|
|
- <button type="push" id="compare" name="Compare profile" />
|
6
|
5
|
<stretch />
|
7
|
6
|
<label>Search:</label>
|
8
|
7
|
<line id="search" />
|
|
@@ -145,9 +144,7 @@
|
145
|
144
|
});
|
146
|
145
|
var fileID;
|
147
|
146
|
var target = findChildObject(this, 'target');
|
148
|
|
- var compare = findChildObject(this, 'compare');
|
149
|
147
|
if(typeof(Windows.loggingWindow) == "undefined") {
|
150
|
|
- compare.enabled = false;
|
151
|
148
|
target.enabled = false;
|
152
|
149
|
}
|
153
|
150
|
var tableReference;
|
|
@@ -157,24 +154,6 @@
|
157
|
154
|
var approval;
|
158
|
155
|
var annotation;
|
159
|
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
|
157
|
target.clicked.connect(function() {
|
179
|
158
|
var query = new QSqlQuery;
|
180
|
159
|
query.prepare("SELECT file, name FROM files WHERE id = :id");
|