-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
shortcut refactor for songeditor #3649
Conversation
Ctrl-dragging is proper copying in my opinion, not shift. Isn't this how we copy full tracks? |
Then we should change this in the piano roll. But I fear the short cuts of the piano roll are more burned to the brain of the users than the cuts of the song editor. Piano roll should be our basis. There the people work at most. |
Ctrl+dragging sounds more like copying to me too. I still get really confused by Shift+dragging in the Piano Roll 😥 |
Ctrl+drag is the default for Windows and Ubuntu to make a copy of a file. (Mac uses Shift + Alt). |
I vote for ctrl+drag as well, it's consistent with the other software I use 👍 |
I'll try my best. 😑 |
I have updated this PR. [Ctrl] is now for copy. For Piano Roll Editor though I'll make a new pull request. This will be a deeper dive into the code. This PR should be tested. |
@PhysSong thank you. |
Tested. ❤️ When you delete a whole lot at once and go Ctrl+z to undo, the undo action is done in steps. I think it should all be done in one step. |
that sounds good. Can you give me a hint how to do so? |
Agreed. The journaling should record everything between mouse press and mouse release when deleting. |
Sorry, no. |
Well, there are several methods to do so. An example is modifying |
For this one I need help. I don't get how to do this. @PhysSong |
@BaraMGB I think it will take some time to do such things. I'll give it a try soon. |
const int ProjectJournal::MAX_UNDO_STATES = 100; It brings another problem: If I delete more than 100 TCOs, I can't undo it completely. |
Just increase this? Can you count the number of objects and override this MAX when deleting many TCOs at once? |
@zonkmachine Then it shouldn't be |
I don't know. Maybe it's leaner and faster to copy the complete project at a certain point? |
CPU: Intel® Core™ i5-4210M For demo project |
@zonkmachine wrote:
By investigate some PR and issues and test a little bit in lmms I came to the conclusion that the UNDO-System of lmms needs a lot of work. But I don't think, this is in the scope of this PR. (For example: if you copy a bunch of TCOs in master build, you got the same undo issue) I have tested this PR and (excepts the undo issue) it works like a charm. I don't wanna work without this changes in the songeditor. If there are no other issues with this PR I vote for merging this and file an issue for reworking the UNDO system. Perhaps @curlymorphic can help here. He introduced the undo for the songeditor here: #1699 |
I agree on this and vote merge too. |
@zonkmachine Thank you. If there are no more objections I will merge it tomorrow. 👍 |
Sorry, was reading email and not PR. Description is good. :) |
* shortcut refactor for songeditor * Ctrl-modifier for copy Tcos * QAction()::trigger methode qt4 compatible
This cleans up the keyboard short cuts for the song editor to being consist with the Piano Roll editor. I want to have the same behavior as in the Piano Roll editor.
What is implemented so far:
hold Ctrl - toggle to selection mode
you can select your Tcos and by release the Ctrl key it turns back into draw mode.
deselect all selections by:
click on empty space (new Tco)
click on unselected Tco
[Ctrl] + [shift] + A
[Esc]
select all Tcos
[ctrl] + A
EDIT:
[Ctrl] + drag
copies a selection or an unselected Tco
no matter the mode (draw or selection)
click + drag
moves a selection or an unselected Tco
no matter the mode (draw or selection)
[DEL]
deletes all selected Tcos