AGPL-3.0 Dual-Lizenz + Pill-Stil-UI + Section-Style-Overhaul + Plan-Mode-Template
Lizenz: - AGPL-3.0 LICENSE-File im Repo-Root (GNU Volltext) - SPDX-Header + Copyright in allen Source-Files (Python/JSX/JS/Rust) - license-Feld in package.json + Cargo.toml - About-App komplett neu: Dual-Lizenz-Block (AGPL + Commercial), openbureau-Branding, Version-Pills, made-in-Switzerland-Footer UI-Restyle (3 Wellen) — alle Dialoge + Satellites + Panel-Sidebars auf gemeinsamen Pill-Stil aus BarControls (BarToggle/BarButton/BarCombo): - Welle 1: GeschossDialog/Settings, AusschnittSettings, LayoutDialog - Welle 2: ConfirmDeleteEbene, Kamera, MasseSettings, Osm, Swisstopo, TextEditor, AusschnittLayerDialog, LayerCombinations - Welle 3: LayoutsApp, MassstabApp, WerkzeugeApp, OverridesApp, ZeichnungsebenenApp; Werkzeuge mit ElementeApp-PillGroup-Layout GeschossDialog Header-Refactor: +Geschoss/+Zeichnung in Toolbar oben, move-Pfeile-Spalte breiter (kein Overlap mit G-Haken) Ausschnitte Rows als Pills, kein Outer-Border ums Suchfeld Section-Style komplett neu (gestaltung.py + GestaltungApp.jsx): - ObjectSectionAttributesSource.FromObject (richtiger Enum-Name fuer Mac) - HatchPatternPrintColor + BoundaryPrintColor mit-setzen (Display = Print) - BoundaryColor nur bei explizitem User-Override, sonst Rhino-Default - background_color_hex Parameter (BackgroundFillMode=SolidColor) - Readback aus GetCustomSectionStyle statt direkt aus Attributes - UI: Schnittkante > Section Style > Solid-Fill mit proper SectionHead - 'Boundary' (3D Pen) -> 'Background' weil sich's wie Section-Hintergrund verhaelt Plan-Mode 'Dossier Plan' via Template: - rhino/templates/dossier_plan.ini wird direkt geladen - Fallback auf Technical-Clone + ini-Patch wenn Template fehlt - Auto-Cleanup von Orphan-Modes vor Import (Name- oder Guid-Match) - ClipSectionUsage=1 + TechnicalMask=15 als bekannte Soll-Werte - Bei Template-Pfad keine ini-Patches (1:1 wie User exportiert) - Sanity-Print listet alle registrierten Modes nach Anlegen Bridge-Unification: 4 Settings-Apps (Ebenen/Project/Geschoss*Dialog) benutzen jetzt chunkende send() statt eigene bridgeSend ohne Chunk- Logik -> grosse Payloads (Hatch-Refs etc.) kommen nicht mehr truncated bei Python an (loeste 'JSON-Fehler char 990'-Regression in Ebenen- Settings) Library-Imports robust: 'import library' jetzt Top-Level in elemente.py + rhinopanel.py (statt Lazy in Methoden) -> 'No module named library'- Crashes weg auch wenn sys.path zwischendurch resettet wird Tools fuer Display-Mode-Maintenance: - _clean_display_modes.py (loescht alle Custom-Modes, Built-ins bleiben) - _inspect_plan_mode.py / _inspect_obj_section.py / _inspect_obj_boundary.py (Diagnose-Skripte fuer SectionStyle-Property-Reverse-Engineering) - _reset_rhino_settings.sh (Backup + Nuke der Rhino-Settings als letzte Bastion gegen korrupte Display-Modes)
This commit is contained in:
+34
-33
@@ -1,5 +1,8 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
// Copyright (C) 2026 Karim Gabriele Varano
|
||||
import { useEffect, useState } from 'react'
|
||||
import Icon from './components/Icon'
|
||||
import { BarButton, BarCombo, BAR_H } from './components/BarControls'
|
||||
import { onMessage, notifyReady,
|
||||
masseSetActive as setActive,
|
||||
masseSavePreset as savePreset,
|
||||
@@ -19,6 +22,18 @@ const labelXs = {
|
||||
fontWeight: 600,
|
||||
}
|
||||
|
||||
const pillInput = {
|
||||
height: BAR_H,
|
||||
background: 'var(--bg-input)',
|
||||
border: '1px solid var(--border)',
|
||||
borderRadius: 999,
|
||||
color: 'var(--text-primary)',
|
||||
fontSize: 11, fontFamily: 'var(--font)',
|
||||
padding: '0 10px',
|
||||
outline: 'none',
|
||||
boxSizing: 'border-box',
|
||||
}
|
||||
|
||||
function Row({ label, children }) {
|
||||
return (
|
||||
<div style={{ display: 'flex', alignItems: 'center', gap: 8 }}>
|
||||
@@ -86,35 +101,27 @@ export default function MasseSettingsApp() {
|
||||
{/* Picker + Aktionen */}
|
||||
<Row label="Aktiv">
|
||||
<div style={{ display: 'flex', gap: 4 }}>
|
||||
<select
|
||||
<BarCombo stretch
|
||||
value={activeId || (active?.id || '')}
|
||||
onChange={(e) => setActive(e.target.value)}
|
||||
style={{ flex: 1, fontSize: 12 }}
|
||||
>
|
||||
onChange={(v) => setActive(v)}>
|
||||
{presets.map(p => (
|
||||
<option key={p.id} value={p.id}>{p.name}</option>
|
||||
))}
|
||||
</select>
|
||||
<button
|
||||
</BarCombo>
|
||||
<BarButton icon="add"
|
||||
onClick={addNew}
|
||||
className="btn-outlined"
|
||||
style={{ padding: '4px 8px' }}
|
||||
title="Neues Mass anlegen (mit aktuellen Werten als Vorlage)"
|
||||
><Icon name="add" size={13} /></button>
|
||||
<button
|
||||
title="Neues Mass anlegen (mit aktuellen Werten als Vorlage)" />
|
||||
<BarButton icon="delete"
|
||||
onClick={remove}
|
||||
className="btn-outlined"
|
||||
style={{ padding: '4px 8px' }}
|
||||
title="Aktives Mass löschen"
|
||||
disabled={presets.length <= 1}
|
||||
><Icon name="delete" size={13} /></button>
|
||||
title="Aktives Mass löschen" />
|
||||
</div>
|
||||
</Row>
|
||||
|
||||
{active && (
|
||||
<div style={{
|
||||
display: 'flex', flexDirection: 'column', gap: 10,
|
||||
padding: 12, borderRadius: 6,
|
||||
padding: 12, borderRadius: 'var(--r-lg)',
|
||||
background: 'var(--bg-section)',
|
||||
border: '1px solid var(--border-light)',
|
||||
}}>
|
||||
@@ -123,44 +130,38 @@ export default function MasseSettingsApp() {
|
||||
type="text"
|
||||
value={active.name}
|
||||
onChange={(e) => update({ name: e.target.value })}
|
||||
style={{ width: '100%', fontSize: 12, padding: '4px 8px' }}
|
||||
style={{ ...pillInput, width: '100%' }}
|
||||
/>
|
||||
</Row>
|
||||
|
||||
<Row label="Raum-Rundung">
|
||||
<select
|
||||
<BarCombo stretch
|
||||
value={active.raumRundung}
|
||||
onChange={(e) => update({ raumRundung: e.target.value })}
|
||||
style={{ width: '100%', fontSize: 12 }}
|
||||
>
|
||||
onChange={(v) => update({ raumRundung: v })}>
|
||||
{Object.entries(RAUM_RUNDUNGS_LABELS).map(([v, l]) => (
|
||||
<option key={v} value={v}>{l}</option>
|
||||
))}
|
||||
</select>
|
||||
</BarCombo>
|
||||
</Row>
|
||||
|
||||
<Row label="Mass-Dezimalstellen">
|
||||
<select
|
||||
value={active.dimDezimalstellen}
|
||||
onChange={(e) => update({ dimDezimalstellen: parseInt(e.target.value, 10) })}
|
||||
style={{ width: '100%', fontSize: 12 }}
|
||||
>
|
||||
<BarCombo stretch
|
||||
value={String(active.dimDezimalstellen)}
|
||||
onChange={(v) => update({ dimDezimalstellen: parseInt(v, 10) })}>
|
||||
{[0, 1, 2, 3, 4].map(n => (
|
||||
<option key={n} value={n}>{n} {n === 1 ? 'Stelle' : 'Stellen'}</option>
|
||||
))}
|
||||
</select>
|
||||
</BarCombo>
|
||||
</Row>
|
||||
|
||||
<Row label="Mass-Einheit">
|
||||
<select
|
||||
<BarCombo stretch
|
||||
value={active.dimEinheit}
|
||||
onChange={(e) => update({ dimEinheit: e.target.value })}
|
||||
style={{ width: '100%', fontSize: 12 }}
|
||||
>
|
||||
onChange={(v) => update({ dimEinheit: v })}>
|
||||
<option value="m">m (Meter)</option>
|
||||
<option value="cm">cm (Zentimeter)</option>
|
||||
<option value="mm">mm (Millimeter)</option>
|
||||
</select>
|
||||
</BarCombo>
|
||||
</Row>
|
||||
</div>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user