feat(silo): replace modal new-item dialog with MDI pre-document tab #176
Reference in New Issue
Block a user
Delete Branch "feat/editing-context-system"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Converts the modal
Silo_Newdialog into a non-blocking MDI tab that lives alongside document tabs in the viewport. Each Ctrl+N invocation opens a new "pre-document" tab. On successful item creation, the tab closes and the real document opens in its place.Changes
mods/silo/freecad/schema_form.pySchemaFormWidget(QWidget)fromSchemaFormDialog— a plain widget withitem_created/cancelledsignals that can be embedded in any containerSchemaFormDialogpreserved as a thin modal wrapper for backward compatibility (exec_and_create()still works)QMessageBoxmods/silo/freecad/silo_commands.pySilo_New.Activated()now creates aSchemaFormWidgetand adds it as an MDI subwindow (follows the_SiloStartCommandpattern fromsilo_start.py)QMessageBoxfor success/errorBehavior