- Copied complete Lts/Tools directory from qt5-before to qt6-after - Updated 32 CMakeLists.txt files (Qt5:: → Qt6::) - Tools subdirectory already included in parent Lts/CMakeLists.txt - All 72 tool submodules now present in qt6-migrated-legatus - Includes: Adler, ArAssets, ConfigX, DBAdministration, DBUpdate, DdsView, InfrastructureManagement, and 67 more tools - C++17 standard (RTI 7.7.0 compatibility maintained) - Tests deferred until final validation phase Migration progress: ✅ Lts/Application (68 files) ✅ Lts/DDS (verified Qt6-ready) ✅ Lts/Plugins (60 submodules, verified) ✅ Lts/Projects (5 submodules, verified) ✅ Lts/Proxies (13 submodules, verified) ✅ Lts/Services (47 submodules, verified) ✅ Lts/Tools (72 submodules, copied + CMake updated) ✅ Lts/Viewer (LtsFileDialog, LtsReportDisplay, SituationMap) 🟡 TetraIF (partial) 🟡 Z (partial: nglwidgets, QtSingleApplication, qsql_informix, WMS_Interface)
60 lines
2.0 KiB
JavaScript
Executable File
60 lines
2.0 KiB
JavaScript
Executable File
var searchContent = new URLSearchParams (window.location.search);
|
|
var exc = searchContent.get('exc');
|
|
var buttonsAdded = false;
|
|
var headCellBuilt = false;
|
|
|
|
export function getLongName () {
|
|
return "Participant Management";
|
|
}
|
|
|
|
export function createButtons (webSocket) {
|
|
//Container
|
|
if (!buttonsAdded){
|
|
(document.getElementById ("RequestButtonContainer")).innerHTML = `<div class='px-3 pt-2 h5'>Dieser Port empfängt Positonsdaten der Exercise ${exc}.</div>`
|
|
buttonsAdded = true;
|
|
}
|
|
}
|
|
|
|
|
|
//Positionsdaten tabellarisch abbilden
|
|
var table = document.createElement ("table");
|
|
var tHead = document.createElement ("thead");
|
|
var tBody = document.createElement ("tbody");
|
|
tBody.id = 'tBody';
|
|
|
|
//leert den Table-Body mit allen bisherigen Positionen durch Clear-Button
|
|
document.getElementById("ClearBtn").addEventListener ('click', function () {
|
|
document.getElementById("tBody").innerHTML = "";
|
|
});
|
|
|
|
export function decryptMessage (message) {
|
|
document.getElementById("OutputContainer").hidden = false
|
|
//erstellt Table body einmalig
|
|
table.classList.add("table","table-hover", "table-condensed");
|
|
var headRow = document.createElement ("tr");
|
|
var keys = new Map;
|
|
var keyIndexCounter = 0;
|
|
if (!headCellBuilt) {
|
|
for (var key in JSON.parse(message.data)) {
|
|
var headCell = headRow.insertCell(keys.get(key));
|
|
headCell.innerHTML = key;
|
|
keys.set(key, keyIndexCounter);
|
|
keyIndexCounter++;
|
|
}
|
|
headCellBuilt = true;
|
|
tHead.appendChild (headRow);
|
|
table.appendChild (tHead);
|
|
}
|
|
//fuegt Table Body je Positonsmeldung an
|
|
var bodyRow = document.createElement ("tr");
|
|
for (var key in JSON.parse(message.data)) {
|
|
var bodyCell = bodyRow.insertCell(keys.get(key));
|
|
bodyCell.innerHTML = JSON.parse(message.data)[key];
|
|
}
|
|
tBody.appendChild (bodyRow)
|
|
table.appendChild (tBody);
|
|
document.getElementById("Output").appendChild (table);
|
|
}
|
|
|
|
|