16 Commits

Author SHA1 Message Date
Alberto Sottile
0279702f73 Do not throw a KeyError when GUI is not available 2019-05-24 17:20:02 +02:00
Alberto Sottile
12fc04326a macOS: add localized Edit menu with dictation support and emoji picker
Qt on macOS automatically adds these entries to the menubar of GUI apps,
providing that such apps have an Edit menu at their startup.
Hence, this commit contains the following changes (macOS only):
- create the menubar in the first dialog shown by the app (GuiConfiguration)
- create an Edit menu, populate it with Cut/Copy/Paste/Select all actions
- connect system-wide shortcuts to these new actions
- pass the menubar and the Edit menu to the MainWindow through config and
through an added optional argument in getUI and GraphicalUI
- populate the menubar created before and not a new menubar in MainWindow
- provide localized strings for the entries in the Edit menu
- add xx.lproj folders in Syncplay.app/Contents/Resources/ to allow
automatic localization of the entries added by the OS

Known issues:
- automatically added entries will always be in the OS language
- the Edit menu might retain the previous language after a language
change in the app settings. Reboot the app solves the issue.
- the automatically added entries might disappear if the app language
does not match the OS language
2019-05-14 16:00:22 +02:00
Daniel Ahn
ac4da59479 Revert "Revert "Code Syntax Refactoring""
This reverts commit 51fba3722f653156eca30d45cb07846fb725a777.
2018-07-23 14:12:09 -07:00
Alberto Sottile
51fba3722f
Revert "Code Syntax Refactoring" 2018-07-23 22:32:47 +02:00
Daniel Ahn
aa4f95e4be Finished cleanup 2018-07-20 13:49:13 -07:00
Alberto Sottile
b827a57cab 2to3 conversion and initial VLC support 2018-04-24 00:44:19 +02:00
Uriziel
d6d09e403c Applied fix: "Remove redundant parameters" 2014-07-03 00:20:31 +02:00
Et0h
b6f755785f Make getMessage locale optional and take precedence 2014-07-01 13:04:15 +01:00
Etoh
0ab2dc7bca 'Unable to start client' error is critical 2014-05-23 21:01:01 +01:00
Uriziel
b317a618e0 First attempt to merge syncplay with PySide 2013-06-07 21:16:45 +02:00
Uriziel
eb27fe2c6a Added PlayerFactory 2013-01-11 00:43:52 +01:00
daniel-123
c0d644c4da Added missing imports. 2013-01-05 23:22:03 +01:00
daniel-123
9dd4f7cc0f Implemented getMessage across syncplay. 2013-01-05 23:17:18 +01:00
Uriziel
fe2aae1d83 Reworked configuration 2012-12-29 15:27:30 +01:00
Uriziel
0a0f249b07 Fixed code formatting 2012-10-15 20:33:24 +02:00
Uriziel
ac54d22fd0 tequila init 2012-10-12 18:37:12 +02:00