Skip to content

Add Designer copy, cut, paste and duplicate support - #95

Merged
ProGraMajster merged 2 commits into
masterfrom
codex/issue-34-designer-copy-cut-paste-duplicate
Aug 22, 2026
Merged

Add Designer copy, cut, paste and duplicate support#95
ProGraMajster merged 2 commits into
masterfrom
codex/issue-34-designer-copy-cut-paste-duplicate

Conversation

@ProGraMajster

Copy link
Copy Markdown
Owner

Summary

Add safe detached Designer clipboard operations for controls and complete subtrees.

Operations

  • Copy
  • Cut
  • Paste
  • Duplicate

Architecture

  • detached, deterministic, versioned JSON payload (Format = ModernFormsNext.Designer, Version = 1)
  • no live control or source-document references
  • safe data-only type and property reconstruction
  • deterministic document-wide name remapping
  • same-session cross-document copy that survives closing and collecting the source document
  • atomic transaction and Undo/Redo integration from Add Designer undo/redo and transaction system #33

Designer integration

  • selection restoration
  • Document Outline refresh
  • Property Grid refresh
  • toolbar commands and enabled states
  • Ctrl+C / Ctrl+X / Ctrl+V / Ctrl+D, while active Property Grid text editors retain normal text clipboard behavior
  • deterministic code generation
  • .mfdesign save/reopen and reverse-parser compatibility

Security

  • no arbitrary CLR deserialization or assembly-qualified type resolution from clipboard data
  • no assembly loading
  • no user control constructor execution
  • no delegates, native handles, dispatchers, Skia objects, backend objects, or event subscriptions in the payload
  • strict schema, identifier, canonical value, size, node-count, and depth validation before mutation

Validation

No manual Android device/emulator or interactive Designer UI smoke result is claimed; platform and UI evidence above is automated.

Scope

Closes #34

- add detached Designer clipboard payloads for controls and subtrees
- integrate cut, paste and duplicate with transaction and undo/redo history
- remap names and preserve supported design metadata and collections
- support safe cross-document copy without live object references
- add Designer commands, validation and headless regression coverage
@ProGraMajster
ProGraMajster merged commit 46b98b5 into master Aug 22, 2026
1 check passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in ModernFormsNext Roadmap Aug 22, 2026
@ProGraMajster
ProGraMajster deleted the codex/issue-34-designer-copy-cut-paste-duplicate branch August 22, 2026 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Add Designer copy, cut, paste and duplicate support

1 participant