-
Notifications
You must be signed in to change notification settings - Fork 86
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
Notes: .ASS support, Drag&Drop support #1762
base: master
Are you sure you want to change the base?
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Some observation from a first glance:
Drag&drop should probably be only active when one of the three subtitles modes is active and the 'import' button is visible.
Drag&drop needs the WS_EX_ACCEPTFILES
window extended style to be enabled on Linux/macOS. In sws_extension.rc:
IDD_SNM_NOTES DIALOGEX 0, 0, 281, 125
STYLE DS_SETFONT | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME
+EXSTYLE WS_EX_ACCEPTFILES
SnM/SnM_Notes.cpp
Outdated
if (ImportAdvancedSubStationFile(fn)) | ||
//JFB hard-coded undo label: _ct might be NULL (when called from a button) | ||
// + avoid trailing "..." in undo point name (when called from an action) | ||
Undo_OnStateChangeEx2(NULL, __LOCALIZE("Import ass file","sws_DLG_152"), UNDO_STATE_ALL, -1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't 'ASS' be in uppercase here?
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
…used btnImportAss member and cleanup whitespace
This comment was marked as outdated.
This comment was marked as outdated.
…first 1K chars of the name field when larger than one buffer
I've been testing this for potential inclusion in v2.14. It seems too easy to make the parser crash or produce bad data.
|
This comment was marked as outdated.
This comment was marked as outdated.
✅ Build sws 1099-master completed (commit 044cc26e98 by @RusAD32) Windows 64-bitWindows 32-bitmacOS x86 64-bitmacOS x86 32-bitmacOS ARM 64-bitLinux x86 64-bitLinux ARM 64-bit |
also fixes a bug from this old issue: #695 because it did reproduce for me and bothered my friends and me a lot.
I'm not proficient with C++ so the code is probably very janky, so sorry about that.