Add global parameter system for edit plugins, optional CTRL invert selection#1639
Open
Z3roCo0l wants to merge 2 commits intocnr-isti-vclab:develfrom
Open
Add global parameter system for edit plugins, optional CTRL invert selection#1639Z3roCo0l wants to merge 2 commits intocnr-isti-vclab:develfrom
Z3roCo0l wants to merge 2 commits intocnr-isti-vclab:develfrom
Conversation
…eload confirmations - EditPlugin base class: initGlobalParameterList + setCurrentGlobalParamSet for persistent per-plugin settings - edit_select: opt-in "Invert CTRL Behavior" parameter (default OFF) - Reload/Reload All confirmation dialogs - Updated all edit plugin factory headers for new interface
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
EditPluginbase class now supportsinitGlobalParameterListandsetCurrentGlobalParamSetfor persistent per-plugin settings saved across sessionsInvert CTRL Behaviorsetting (default OFF) — when enabled, drag adds to selection and CTRL+drag replaces. Default MeshLab behavior is preservedReloadandReload Allto prevent accidental loss of workDetails
The global parameter system extends the existing
EditPlugininterface so that any edit plugin can register settings that persist in MeshLab's settings system. The CTRL invert feature uses this system to expose its toggle.All existing edit plugin factory headers are updated to conform to the new interface (trivial changes — just adding the required virtual method stubs).
Default behavior is unchanged — the CTRL invert is opt-in only.
Test plan