Masse-Dropdown in Oberleiste + Satellite-Settings statt Dimensionen-Inline

User-Feedback: Mass-Style passt nicht ins Dimensionen-Panel, und der
Name "Mass-Style" gefaellt nicht. Umzug in die Oberleiste (analog Display)
+ Zahnrad oeffnet eigenes Settings-Fenster. UI-Begriff jetzt "Masse".

Frontend:
- OberleisteApp: neue Gruppe "Masse" mit Preset-Dropdown + Zahnrad-Button
  zwischen Display und Massstab
- MasseSettingsApp.jsx (neu): Satellite-Fenster mit Name/Raum-Rundung/
  Mass-Dezimalstellen/Mass-Einheit + Picker + Add/Delete
- DimensionenApp: MassStyleSection raus
- rhinoBridge: setMasseActive + openMasseSettings (Topbar);
  masseSetActive/masseSavePreset/masseDeletePreset (Settings-Fenster)

Backend:
- rhino/masse_settings.py (neu): Bridge fuer das Satellite-Fenster,
  Topics SET_ACTIVE / SAVE / DELETE, triggert regen_all_rooms + topbar refresh
- mass_style.regen_all_rooms(doc): neue cross-modul-Helper, queued
  Raum-Regen fuer alle raum_outline-Objekte
- oberleiste.py: massePresets + masseActiveId im State, SET_MASSE_ACTIVE
  + OPEN_MASSE_SETTINGS handler, Signature update
- dimensionen.py: Mass-Style-Endpoints + State raus (sind jetzt im
  OberleisteBridge bzw. MasseSettingsBridge)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-20 21:29:23 +02:00
parent 0b4b25cf47
commit 2ee4688fe3
9 changed files with 347 additions and 186 deletions
+27
View File
@@ -10,6 +10,7 @@ import {
pickLayerCombination, saveLayerCombination,
deleteLayerCombination, openLayerCombinationsDialog,
openDossierSettings, openKameraPanel,
setMasseActive, openMasseSettings,
} from './lib/rhinoBridge'
const PRESETS = [
@@ -129,6 +130,7 @@ export default function OberleisteApp() {
cmdPrompt: '', cmdOptions: [],
overridesActivePreset: null, overridesPresets: [],
layerCombinations: [], layerCombinationActive: null,
massePresets: [], masseActiveId: null,
})
const [appliedScale, setAppliedScale] = useState(null)
const appliedScaleRef = useRef(null)
@@ -303,6 +305,31 @@ export default function OberleisteApp() {
<div style={sep} />
{/* ====== GRUPPE: MASSE ====== */}
<span style={groupLabel}>Masse</span>
<select
value={state.masseActiveId || ''}
onChange={(e) => setMasseActive(e.target.value)}
style={pillSelect}
title="Aktives Mass — Raum-Rundung + Mass-Linien-Format"
>
{(state.massePresets || []).length === 0 && <option value=""></option>}
{(state.massePresets || []).map(p => (
<option key={p.id} value={p.id}>{p.name}</option>
))}
</select>
<button
onClick={() => openMasseSettings()}
title="Masse bearbeiten / neues anlegen"
className="btn-outlined"
style={{ height: PILL_H, padding: '0 6px', boxSizing: 'border-box',
fontSize: 9 }}
>
<Icon name="settings" size={12} />
</button>
<div style={sep} />
{/* ====== GRUPPE: MASSSTAB ====== */}
<span style={groupLabel}>Massstab</span>
<span