-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update rest_slider.lua #696
Conversation
Converting to `modeless` operation required major surgery. Produces many `undo_block` entries but can see no way to avoid this while keeping document screen updating.
I haven't used the script, so I'm guessing based on what I've read here, but what about using |
Great idea. I'd tried many other options but not the Less important, but a single "wrapping" undo can't display the current (changing) score selection or layer number. I also wonder whether closing the dialog on OK would be better (though then resembling |
Changed "OK" button to "Apply" to make more sense of modeless operation. Minor text edits.
You can make the OK button close by setting the I think the choice boils down to whether multiple undo entries is more annoying or modal operation is more annoying. Even if you set There might be a way to notify when the slider button is released. I'll add a note to myself to investigate it. It wouldn't help if you were using arrow keys to move it, but there might be a way if you are using the mouse to move it. Either way, it will have to wait for another RGP Lua release. |
Ah yes - I remember this issue from ages ago (early foray into Modeless under So this version can go on the repo if you like, along with the plethora of undo events. I use (of course) the key equivalents (+/- with fast key repeats) to change values so simply tracking the slider-thumb won't help. Have been discussing this offline with @ThistleSifter and probably run out of other workarounds for a less wasteful undo list. There's been some good feedback on the original Modal version on FB (well ... one positive review!). Not sure it's a good idea to post both Modal and Modeless versions. |
GIven the ambiguity, I think an option would preferable. It's literally only the difference between calling RunModeless and ExecuteModal (plus updating the undo handling.) One of the things I dislike most about the modal version is that the selected region vanishes when the dialog opens. FWIW: it looks like adding a mouse tracking started/stopped notification is going to be fairly easy. That will considerably reduce the number of undo entries with modeless. |
+1 vote for an option! Maybe just a simple checkbox whose state is retained. For what it's worth, Carl, I fully intend to make one for the Page Format Wizard so that it doesn’t automatically switch units… I happen to like that feature but totally recognize that others don’t :)
|
Are you suggesting posting both? I'd rename this one |
Couldn’t it be done in the same script? Something like:
if run_modeless_check:GetCheck() == 1 then
finenv.RegisterModelessDialog(dialog)
dialog:ShowModeless()
else
dialog:ExecuteModal(nil) == finale.EXECMODAL_OK
end
|
I'm suggestion one script with the option to be modal or modeless. The difference between the two (with mixins) is diminimous. |
With mixins it is simpler that that, @jwink75: if modeless_option then
dialog:RunModeless()
else
dialog:ExecuteModal()
end There will also need to be code to suppress undo handling if it is modal. |
OK. A few more hoops to jump through converting back to modal (... all that PS @jwink75: Page Format Wizard is magical and I have no problem changing Measurement Units - it was the fact that changing units in some areas changed the VALUES for data in a different area! |
This creates optional modal/modeless run modes.
Looks excellent to me. When 0.72 comes out we can add mouse tracking events and reduce the number of modeless undo events. But that's gotta wait for 0.72. FYI: there is currently no continuous update on Windows. Just the final value when the mouse is released. That will change with 0.72 so that both report continuously during mouse scrolling. |
Let me know if you are ready, and I'll merge it. (Probably later tonight.) |
a few tidying things (logic clarifies) and a few less conditionals.
Great. Just a few tidying things and a few less conditionals. All ready to go. |
Converting to
modeless
operation, in response to #691, required major surgery. Produces manyundo_block
entries on slider action but can find no way to avoid this while retaining continuous document screen updating.