|
@@ -1163,10 +1163,30 @@
|
1163
|
1163
|
if(QSettings.value("temperatureUnit", "F") == "C") {
|
1164
|
1164
|
showC.trigger();
|
1165
|
1165
|
}
|
|
1166
|
+ window.postLoadColumnSetup = function(c) {
|
|
1167
|
+ for(var i = 0; i < adapters.length; i++) {
|
|
1168
|
+ adapters[i].setColumn(c + i + 1);
|
|
1169
|
+ zeroemitters[i].setColumn(c + i + 1);
|
|
1170
|
+ log.setHeaderData(c + i + 1, columnName(i));
|
|
1171
|
+ }
|
|
1172
|
+ log.setHeaderData(c + columnNames.length + 1 - channelSkip, TTR("basicWindow", "Note"));
|
|
1173
|
+ stop.setTemperatureColumn(c + 1);
|
|
1174
|
+ stop.setAnnotationColumn(c + columnNames.length + 1 - channelSkip);
|
|
1175
|
+ for(var i = 0; i < annotationButtons.length; i++) {
|
|
1176
|
+ annotationButtons[i].setTemperatureColumn(c + 1);
|
|
1177
|
+ annotationButtons[i].setAnnotationColumn(c + columnNames.length + 1 - channelSkip);
|
|
1178
|
+ }
|
|
1179
|
+ log.clearCurrentColumnSet();
|
|
1180
|
+ for(var i = 0; i < channels.length - channelSkip; i++) {
|
|
1181
|
+ log.addToCurrentColumnSet(c + i + 1);
|
|
1182
|
+ }
|
|
1183
|
+ window.firstTempColumn = c + 1;
|
|
1184
|
+ window.annotationColumn = c + columnNames.length - channelSkip + 1;
|
|
1185
|
+ }
|
1166
|
1186
|
var clear = findChildObject(this, 'clear');
|
1167
|
|
- clear.triggered.connect(log.clear);
|
1168
|
|
- clear.triggered.connect(graph.clear);
|
1169
|
|
- clear.triggered.connect(function() {
|
|
1187
|
+ window.clearLog = function() {
|
|
1188
|
+ log.clear();
|
|
1189
|
+ graph.clear();
|
1170
|
1190
|
window.windowTitle = "Typica [*]";
|
1171
|
1191
|
log.setHeaderData(0, "Time");
|
1172
|
1192
|
QSettings.setValue("liveColumn", 1);
|
|
@@ -1176,7 +1196,8 @@
|
1176
|
1196
|
}
|
1177
|
1197
|
resetTranslation.enabled = false;
|
1178
|
1198
|
setTranslation.enabled = false;
|
1179
|
|
- });
|
|
1199
|
+ };
|
|
1200
|
+ clear.triggered.connect(window.clearLog);
|
1180
|
1201
|
var openMenu = findChildObject(this, 'open');
|
1181
|
1202
|
var compareMenu = findChildObject(this, 'compare');
|
1182
|
1203
|
compareMenu.triggered.connect(function() {
|
|
@@ -1252,26 +1273,6 @@
|
1252
|
1273
|
}
|
1253
|
1274
|
return "";
|
1254
|
1275
|
};
|
1255
|
|
- window.postLoadColumnSetup = function(c) {
|
1256
|
|
- for(var i = 0; i < adapters.length; i++) {
|
1257
|
|
- adapters[i].setColumn(c + i + 1);
|
1258
|
|
- zeroemitters[i].setColumn(c + i + 1);
|
1259
|
|
- log.setHeaderData(c + i + 1, columnName(i));
|
1260
|
|
- }
|
1261
|
|
- log.setHeaderData(c + columnNames.length + 1 - channelSkip, TTR("basicWindow", "Note"));
|
1262
|
|
- stop.setTemperatureColumn(c + 1);
|
1263
|
|
- stop.setAnnotationColumn(c + columnNames.length + 1 - channelSkip);
|
1264
|
|
- for(var i = 0; i < annotationButtons.length; i++) {
|
1265
|
|
- annotationButtons[i].setTemperatureColumn(c + 1);
|
1266
|
|
- annotationButtons[i].setAnnotationColumn(c + columnNames.length + 1 - channelSkip);
|
1267
|
|
- }
|
1268
|
|
- log.clearCurrentColumnSet();
|
1269
|
|
- for(var i = 0; i < channels.length - channelSkip; i++) {
|
1270
|
|
- log.addToCurrentColumnSet(c + i + 1);
|
1271
|
|
- }
|
1272
|
|
- window.firstTempColumn = c + 1;
|
1273
|
|
- window.annotationColumn = c + columnNames.length - channelSkip + 1;
|
1274
|
|
- }
|
1275
|
1276
|
var saveMenu = findChildObject(this, 'save');
|
1276
|
1277
|
saveMenu.triggered.connect(function() {
|
1277
|
1278
|
var filename = QFileDialog.getSaveFileName(window, TTR("basicWindow", "Save Log As..."), QSettings.value("script/lastDir", "") + "/");
|