Session 022: Migrate Lts/Tools (72 submodules) to Qt6

- 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)
This commit is contained in:
torsten committed 2026-08-25 14:07:20 +02:00
1 parent 01dce5fe52
commit d5c13033e2
1792 files changed
+982018

No files matched your search

@@ -0,0 +1,53 @@
import { useEffect, useState } from "react";
import { useDispatch } from "react-redux";
import { useNavigate } from "react-router-dom";
import { deleteReplay, getAvgLatLng, getReplays } from "../../api/replay";
import { setAvgLatLng } from "../../store/MapSlice";
import ReplayTable from "../../components/dashboard/ReplayTable";
import { Replay } from "../../types/replay";
const Dashboard: React.FC = () => {
const [replays, setReplays] = useState<Replay[]>([]);
const dispatch = useDispatch();
const navigate = useNavigate();
useEffect(() => {
const fetchReplays = async () => {
const data = await getReplays();
setReplays(data);
};
fetchReplays();
}, []);
const handleViewReplay = async (uuid: string) => {
const avgLatLng = await getAvgLatLng(uuid);
dispatch(setAvgLatLng(avgLatLng));
navigate(`/replays/replay?replayId=${uuid}`);
};
const handleDeleteReplay = async (uuid: string) => {
await deleteReplay(uuid);
const updatedReplays = await getReplays();
setReplays(updatedReplays);
};
return (
<main className="container mx-auto p-6">
<header className="mb-6">
<h1 className="text-3xl font-bold text-gray-800">Replay Dashboard</h1>
<p className="text-gray-600">Manage your Replays</p>
<p className="text-gray-600"></p>
</header>
<section className="overflow-x-auto bg-white shadow-md rounded-lg">
<ReplayTable
replays={replays}
onView={handleViewReplay}
onDelete={handleDeleteReplay}
/>
</section>
</main>
);
};
export default Dashboard;
@@ -0,0 +1,54 @@
// src/pages/loginpage/Login.tsx
import React, { useState } from 'react';
import { useNavigate } from 'react-router-dom';
import { LoginUser } from '../../api/auth';
const Login = () => {
const [username, setUsername] = useState('');
const [password, setPassword] = useState('');
const navigate = useNavigate();
const handleLogin = () => {
LoginUser(username, password).then((success) => {
if (success) {
navigate('/dashboard');
} else {
alert('Login failed');
}
}
);
};
return (
<div className="flex items-center justify-center min-h-screen bg-gray-100">
<div className="w-full max-w-md p-8 space-y-6 bg-white rounded shadow-md">
<h2 className="text-2xl font-bold text-center">Login</h2>
<div className="space-y-4">
<input
type="text"
placeholder="Username"
value={username}
onChange={(e) => setUsername(e.target.value)}
className="w-full px-4 py-2 border rounded focus:outline-none focus:ring-2 focus:ring-blue-600"
/>
<input
type="password"
placeholder="Password"
value={password}
onChange={(e) => setPassword(e.target.value)}
className="w-full px-4 py-2 border rounded focus:outline-none focus:ring-2 focus:ring-blue-600"
/>
<button
onClick={handleLogin}
className="w-full px-4 py-2 font-bold text-white bg-blue-600 rounded hover:bg-blue-700"
>
Login
</button>
</div>
</div>
</div>
);
};
export default Login;
@@ -0,0 +1,100 @@
import React, { useEffect, useState } from "react";
import StaticMap from "../../components/Map";
import CustomSlider from "../../components/Slider";
import { useSearchParams } from "react-router-dom";
import { GeoJson } from "../../types/geojson";
import { getInitialReplayInformation } from "../../api/geojson";
import { Marker } from "../../types/marker";
import { getBookmarks } from "../../api/bookmark";
const Replay: React.FC = () => {
const [searchParams] = useSearchParams();
const [geoJsons, setGeoJsons] = useState<GeoJson[]>([]);
const [displayGeoJsons, setDisplayGeoJsons] = useState<GeoJson[]>([]);
const [isLoading, setIsLoading] = useState<boolean>(true);
const [openPopup, setOpenPopup] = useState<boolean>(false);
const [markers, setMarkers] = useState<Marker[]>([]);
const [sliderValue, setSliderValue] = useState<number>(0);
const [minTimestamp, setMinTimestamp] = useState<number>(0);
const [maxTimestamp, setMaxTimestamp] = useState<number>(0);
const replayId = searchParams.get("replayId");
useEffect(() => {
const fetchGeoObjects = async () => {
try {
const geoObjects = await getInitialReplayInformation(replayId || "");
setGeoJsons(geoObjects.geojsons);
setMinTimestamp(Number(geoObjects.timestamps.min_timestamp));
setMaxTimestamp(Number(geoObjects.timestamps.max_timestamp));
setIsLoading(false);
} catch (error) {
console.error("Error fetching geo objects:", error);
} finally {
}
};
fetchGeoObjects();
}, [replayId]);
useEffect(() => {
const fetchBookmarks = async () => {
try {
const markers = await getBookmarks(replayId || "");
setMarkers(markers);
} catch (error) {
console.error("Error fetching bookmarks:", error);
}
};
fetchBookmarks();
}, [replayId]);
return (
<div className="h-[100%]">
{isLoading ? (
<div className="flex justify-center items-center h-full">
Loading...
</div>
) : (
<div>
<StaticMap geoJsons={displayGeoJsons} replayId={replayId || ""} />
<div className="w-full z-100 h-[20vh]">
{openPopup && (
<div className="absolute top-0 left-0 w-[30%] h-full bg-white bg-opacity-90 z-10">
<div className="flex justify-between items-center p-2">
<h2 className="text-lg font-bold">Marker Dialog</h2>
<button onClick={() => setOpenPopup(false)}>Close</button>
</div>
<div className="flex flex-col">
{markers.map(marker => (
<div key={marker.id} className="flex justify-between items-center p-2 border-b">
<div>{marker.name}</div>
<div>{new Date(marker.timestamp).toLocaleString()}</div>
<button
className="bg-blue-500 text-white rounded-lg px-2 py-1"
onClick={() => setSliderValue(marker.timestamp)} // Update the slider value
>
Show on Map
</button>
</div>
))}
</div>
</div>
)}
<CustomSlider
geoJsons={geoJsons}
setDisplayGeoJsons={setDisplayGeoJsons}
setOpenPopup={setOpenPopup}
markerValue={sliderValue}
minTimestamp={minTimestamp}
maxTimestamp={maxTimestamp}
replayId={replayId || ""}
/>
</div>
</div>
)}
</div>
);
};
export default Replay;