Merge branch 'worktree-agent-ac19ea2d9f670cb36' into claude/practical-noether-1hb2s1
This commit is contained in:
22 files changed
+643
-30
No files matched your search
@@ -33,6 +33,7 @@ export interface AppMenuBarProps {
|
||||
onImportPointCloud?: () => void;
|
||||
onImportMesh?: () => void;
|
||||
/** Datei: Export-Dialoge (im Browser/Electron die einzige Quelle — das native Menü gibt es nur unter Tauri). */
|
||||
onExportPdf?: () => void;
|
||||
onExportDxf?: () => void;
|
||||
onExportIfc?: () => void;
|
||||
onExportObj?: () => void;
|
||||
@@ -79,6 +80,7 @@ export const AppMenuBar = memo(function AppMenuBar({
|
||||
onImport,
|
||||
onImportPointCloud,
|
||||
onImportMesh,
|
||||
onExportPdf,
|
||||
onExportDxf,
|
||||
onExportIfc,
|
||||
onExportObj,
|
||||
@@ -116,7 +118,8 @@ export const AppMenuBar = memo(function AppMenuBar({
|
||||
{ label: t("file.import"), onSelect: onImport },
|
||||
...(onImportPointCloud ? [{ label: t("menu.native.importPointCloud"), onSelect: onImportPointCloud }] : []),
|
||||
...(onImportMesh ? [{ label: t("menu.native.importMesh"), onSelect: onImportMesh }] : []),
|
||||
...(onExportDxf || onExportIfc || onExportObj || onExportStl ? [{ divider: true }] : []),
|
||||
...(onExportPdf || onExportDxf || onExportIfc || onExportObj || onExportStl ? [{ divider: true }] : []),
|
||||
...(onExportPdf ? [{ label: `${t("menu.native.export")}: PDF`, onSelect: onExportPdf }] : []),
|
||||
...(onExportDxf ? [{ label: `${t("menu.native.export")}: DXF`, onSelect: onExportDxf }] : []),
|
||||
...(onExportIfc ? [{ label: `${t("menu.native.export")}: IFC`, onSelect: onExportIfc }] : []),
|
||||
...(onExportObj ? [{ label: `${t("menu.native.export")}: OBJ`, onSelect: onExportObj }] : []),
|
||||
|
||||
@@ -47,6 +47,7 @@ export type TopBarEvents = Required<
|
||||
| "onOpenHistory"
|
||||
>
|
||||
> & {
|
||||
onOpenExportPdf: () => void;
|
||||
onOpenExportDxf: () => void;
|
||||
applyScale: ViewRibbonTabProps["onApplyScale"];
|
||||
fitPlan: ViewRibbonTabProps["onFit"];
|
||||
@@ -139,6 +140,7 @@ export function useTopBarElements(opts: {
|
||||
onImport={ev.onImport}
|
||||
onImportPointCloud={ev.onImportPointCloud}
|
||||
onImportMesh={ev.onImportMesh}
|
||||
onExportPdf={ev.onOpenExportPdf}
|
||||
onExportDxf={ev.onOpenExportDxf}
|
||||
onExportIfc={ev.onExportIfc}
|
||||
onExportObj={ev.onExportObj}
|
||||
|
||||
Reference in new issue
Block a user