-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Add contextual options to toggle alignment/snapping properties #23329
Labels
Comments
RomanPudashkin
added a commit
that referenced
this issue
Jul 4, 2024
…_context Add snap to next/previous to shortcuts and context menus (#23329)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Context
4.4 introduces new alignment properties for these elements:
Hairpins, which have both "Snap to previous" and "Snap to next" toggles
![image](https://private-user-images.githubusercontent.com/20806406/343222525-398b14c4-7990-4c23-8765-3612afbabe53.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjI1MzY3MzksIm5iZiI6MTcyMjUzNjQzOSwicGF0aCI6Ii8yMDgwNjQwNi8zNDMyMjI1MjUtMzk4YjE0YzQtNzk5MC00YzIzLTg3NjUtMzYxMmFmYmFiZTUzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MDElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODAxVDE4MjAzOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTE1ODE0NzVlOTE3ZTYyMmViZGZlODk4NDJhODJhYjFlOTJlMDlmMmZmZjJlYzU4MDY2MGNkZjE5MjA5YjJhNDUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.b8sNM4UaxuMjIWMaAba63n_vsrAvvcAdQtLx9-ZSa8I)
Tempo lines, which just has "Snap to next"
![image](https://private-user-images.githubusercontent.com/20806406/343222442-64dbe7d5-acad-4be8-9f8f-aaa096f06a3f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjI1MzY3MzksIm5iZiI6MTcyMjUzNjQzOSwicGF0aCI6Ii8yMDgwNjQwNi8zNDMyMjI0NDItNjRkYmU3ZDUtYWNhZC00YmU4LTlmOGYtYWFhMDk2ZjA2YTNmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MDElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODAxVDE4MjAzOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTAwNDRhYmUwZWZmNjc0YWI4MzIzNGY0ZmQxZGQ4NWFhNjE5ZDRiMGNiZTRlYjFkMWFhOTNiNTM4NmRjZDgzMTUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.GqhtpdJWNjo-7VsACn6na0qWXZ5bbn_3Vd5Sthbszx8)
Requirement 1
Create two new shortcut-assignable actions in Preferences > Shortcuts:
They don't need a default shortcut. These will toggle the properties for both hairpins and tempo lines (for the latter, only "Toggle snap to next").
Requirement 2
Add context menu actions when hairpins and tempo text are right-clicked to control the snapping toggles in properties. The option(s) should be added after "Edit element" and before "Style", with divider lines above/below.
Hairpins:
![image](https://private-user-images.githubusercontent.com/20806406/343228044-102953db-8429-4fc5-9b2f-68f8a780d287.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjI1MzY3MzksIm5iZiI6MTcyMjUzNjQzOSwicGF0aCI6Ii8yMDgwNjQwNi8zNDMyMjgwNDQtMTAyOTUzZGItODQyOS00ZmM1LTliMmYtNjhmOGE3ODBkMjg3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MDElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODAxVDE4MjAzOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWJiMzZjNGMwNTY4ZDEyNTRlYjM2NWZiODRlNmYyN2U1OWRjMzIyZDNhZWI3ZDJiNzA0ZjMzODg4MGIzOTM1NGYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.R12PKV_7pZL-dVlJ91dTnAEw17CEXI18trGHJ4sav3o)
Tempo text:
![image](https://private-user-images.githubusercontent.com/20806406/343228123-4baeba24-116b-4847-bc83-7a4825c6adc5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjI1MzY3MzksIm5iZiI6MTcyMjUzNjQzOSwicGF0aCI6Ii8yMDgwNjQwNi8zNDMyMjgxMjMtNGJhZWJhMjQtMTE2Yi00ODQ3LWJjODMtN2E0ODI1YzZhZGM1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MDElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODAxVDE4MjAzOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY0MTg5N2IyMGZlMzI5MWIxNzgyZDhkMmNlMDQ2OGE4ZGE5NzkzZjUwMTMwYmFhNWY0MjAyMDY0YTMyZDE3YTQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Tx5uno7-1_q2kJa3-hwzr8uVEF3aZO-ktQhOYzposDY)
The text was updated successfully, but these errors were encountered: