Thomas Goyne
3f9080bbee
Fix left-click check on audio display
...
Originally committed to SVN as r6189.
2011-12-30 15:52:04 +00:00
Thomas Goyne
e34b401201
Return -1 from AegisubApp::FilterEvent rather than wxEventFilter::Event_Skip, as the enum was added in wx 2.9.4
...
Originally committed to SVN as r6188.
2011-12-30 15:51:58 +00:00
Thomas Goyne
84d1315736
Write the config and MRU files to ?data in portable mode rather than ?user
...
Originally committed to SVN as r6187.
2011-12-30 01:21:03 +00:00
Thomas Goyne
d01d7eb78b
Fix crash when the audio commit hotkey is pressed with the grid focused and no audio open
...
Originally committed to SVN as r6185.
2011-12-29 15:12:36 +00:00
Thomas Goyne
d192f1c332
Fix bad format string that made stack trace writing fail after one stack frame
...
Originally committed to SVN as r6184.
2011-12-29 05:36:49 +00:00
Thomas Goyne
68b2ae8275
Eliminate most clang warnings
...
Originally committed to SVN as r6183.
2011-12-28 21:27:22 +00:00
Thomas Goyne
cae10121ed
Fix a bunch of -pedantic stuff
...
Originally committed to SVN as r6181.
2011-12-28 21:27:06 +00:00
Thomas Goyne
cdf8e31e1a
Get audio marker drag sensitivity from configuration
...
Originally committed to SVN as r6180.
2011-12-28 21:27:00 +00:00
Thomas Goyne
0e17edc561
Rearrange AudioDisplay::OnMouseEvent a bit to eliminate some duplicated code and separate the code which requires a timing controller from that which doesn't
...
Originally committed to SVN as r6179.
2011-12-28 21:26:54 +00:00
Thomas Goyne
6953a69cf8
Store the last used AudioMarkerInteractionObject in its own member variable to eliminate an ugly dynamic_cast
...
Originally committed to SVN as r6178.
2011-12-28 21:26:48 +00:00
Thomas Goyne
88ba844850
Make middle-click-drag on the audio display continue to update the video position
...
Originally committed to SVN as r6177.
2011-12-28 21:26:41 +00:00
Thomas Goyne
4b2e5d1b93
Make audio marker snap distance and whether or not it defaults to snapping customizable
...
Originally committed to SVN as r6176.
2011-12-28 01:22:59 +00:00
Thomas Goyne
c06d72d5be
gcc compilation fix
...
Originally committed to SVN as r6175.
2011-12-28 01:22:54 +00:00
Thomas Goyne
532072218f
Allow snapping to the inactive line markers in the audio display
...
Originally committed to SVN as r6172.
2011-12-27 18:46:20 +00:00
Thomas Goyne
eda90a15fb
Make the "Play last 500ms of selection" command always play to the end of the selection as it did in 2.1
...
Originally committed to SVN as r6171.
2011-12-27 02:23:04 +00:00
Thomas Goyne
935e5544d5
Fix intermediate overflow in DirectSoundPlayer2 that resulted in the playback position resetting to the beginning after 97 seconds with 44.1 khz audio
...
Originally committed to SVN as r6170.
2011-12-27 01:38:14 +00:00
Thomas Goyne
090fdecb95
Scroll instantly to the audio playback position when "Lock Scroll on Cursor" is enabled
...
Originally committed to SVN as r6169.
2011-12-27 01:38:08 +00:00
Thomas Goyne
cfc7e009f2
Don't disable or hide the visual tools while video is playing. Updates #1336 .
...
Originally committed to SVN as r6168.
2011-12-27 01:38:00 +00:00
Thomas Goyne
ae3895fb8e
Handle empty files better in the translation assistant
...
Originally committed to SVN as r6167.
2011-12-26 22:21:19 +00:00
Thomas Goyne
92254a9806
Start the translation assistant at the first translatable block rather than always the first block
...
Originally committed to SVN as r6166.
2011-12-26 22:21:14 +00:00
Thomas Goyne
9cfe230682
Remove unused 'parent' member from AssDialogueBlock and make 'text' protected
...
Originally committed to SVN as r6165.
2011-12-26 22:21:08 +00:00
Thomas Goyne
7b4759cc13
Parse {} as an empty override block rather than an empty comment
...
Originally committed to SVN as r6164.
2011-12-26 22:21:02 +00:00
Thomas Goyne
04990e8694
Fix seeking to previous keyframe when the current frame is not a keyframe
...
Originally committed to SVN as r6163.
2011-12-26 22:20:57 +00:00
Thomas Goyne
7adbe07b4e
Silence a bunch of PREFast warnings
...
Originally committed to SVN as r6162.
2011-12-26 22:20:49 +00:00
Thomas Goyne
bddd4fc714
Add group as an optional parameter to AssEntry's contructor
...
Originally committed to SVN as r6161.
2011-12-26 22:20:43 +00:00
Thomas Goyne
a189bac35e
Make AudioRenderingStyleRanges's destructor protected
...
Originally committed to SVN as r6160.
2011-12-26 22:20:37 +00:00
Thomas Goyne
bc640b4f94
Fix use of uninitialized value that resulted in the find/replace dialog always opening as the replace dialog
...
Originally committed to SVN as r6155.
2011-12-24 00:47:41 +00:00
Thomas Goyne
7c6696a53a
Fix signature of AssDialogue::SetEntryData so it actually overrides the base
...
Originally committed to SVN as r6154.
2011-12-24 00:36:30 +00:00
Thomas Goyne
309e7e75fd
Eliminate the use of wxAny as it's the only thing not supported by clang
...
Originally committed to SVN as r6153.
2011-12-24 00:36:19 +00:00
Thomas Goyne
aba01b833a
Allow nonintegral font sizes in styles
...
Originally committed to SVN as r6150.
2011-12-23 23:21:02 +00:00
Thomas Goyne
435e7170df
Add missing semicolon in the FFTW build credit
...
Originally committed to SVN as r6149.
2011-12-23 22:05:44 +00:00
Thomas Goyne
9bfa40a9d3
Add FFTW credit to the about dialog
...
Originally committed to SVN as r6146.
2011-12-22 21:32:37 +00:00
Thomas Goyne
31c696157d
Change FFmpegSource to FFMS2 in the about dialog
...
Originally committed to SVN as r6145.
2011-12-22 21:32:29 +00:00
Thomas Goyne
236173ed22
Add myself to the primary authors in the About dialog
...
Originally committed to SVN as r6144.
2011-12-22 21:32:19 +00:00
Thomas Goyne
be3e9dae68
Update the value of the zoom dropdown when the detached video dialog is resized
...
Originally committed to SVN as r6143.
2011-12-22 21:32:09 +00:00
Thomas Goyne
43b6d910fb
Resize the detached video dialog to the specified size when the video zoom is changed. Closes #493 .
...
Originally committed to SVN as r6142.
2011-12-22 21:31:57 +00:00
Thomas Goyne
477dd8a2f6
Try to preserve the value of the styles dropdown across undo/redo
...
Originally committed to SVN as r6139.
2011-12-22 21:31:29 +00:00
Thomas Goyne
95ad8c1fba
Fix the single-line-commit optimization
...
Originally committed to SVN as r6138.
2011-12-22 21:31:18 +00:00
Thomas Goyne
1c2abeae30
Stop coalescing changes made in the edit box after ten seconds of no changes
...
Originally committed to SVN as r6137.
2011-12-22 21:31:09 +00:00
Thomas Goyne
fd35224cb5
Stop coalescing changes for undo when the active line changes
...
Originally committed to SVN as r6136.
2011-12-22 21:31:01 +00:00
Thomas Goyne
f0e352f382
Update the view menu after the display mode has been automatically updated due to opening video or audio. Closes #1344 .
...
Originally committed to SVN as r6135.
2011-12-22 21:30:49 +00:00
Thomas Goyne
5eb516f8d9
In non-WITH_STARTUPLOG builds, send startup log events to the standard logging system rather than discard them
...
Originally committed to SVN as r6134.
2011-12-22 21:30:40 +00:00
Thomas Goyne
046d8a6822
Use wxEventBlocker rather than manually enabling and disabling the event handler in SubsEditBox
...
Originally committed to SVN as r6133.
2011-12-22 21:30:32 +00:00
Thomas Goyne
e5707ca6eb
Don't use the ms time value of the Duration time edit control when in frame mode, as with vfr this may not actually represent a consisten number of frames
...
Originally committed to SVN as r6132.
2011-12-22 21:30:22 +00:00
Thomas Goyne
2c324de29c
Fix use of an uninitialized value in the time edit control when the frame number can't be parsed
...
Originally committed to SVN as r6131.
2011-12-22 21:30:14 +00:00
Thomas Goyne
2fdbd86a7f
Add aegisub.decode_path, which simply wraps StandardPaths::DecodePath
...
Originally committed to SVN as r6130.
2011-12-22 21:30:05 +00:00
Thomas Goyne
4a3f2b8412
Add aegisub.keyframes, which returns a table with all of the frame numbers which are keyframes
...
Originally committed to SVN as r6129.
2011-12-22 21:29:56 +00:00
Thomas Goyne
f974fdb1b2
Delete aegisub.parse_tag_data and aegisub.unparse_tag_data
...
Originally committed to SVN as r6128.
2011-12-22 21:29:47 +00:00
Thomas Goyne
29460b97b9
Rearrange VideoContext::Reset to fix error on shutdown
...
Originally committed to SVN as r6127.
2011-12-22 21:29:38 +00:00
Thomas Goyne
4133806fe7
Allow opening video with no working subtitle providers enabled
...
Originally committed to SVN as r6126.
2011-12-22 21:29:29 +00:00
Thomas Goyne
3cdc27c894
Normalize the value of the time edit controls when they lose focus. Updates #512 .
...
Originally committed to SVN as r6125.
2011-12-22 21:29:18 +00:00
Thomas Goyne
5cbd35e749
Simplify some AssTime-using code
...
Originally committed to SVN as r6124.
2011-12-22 21:29:09 +00:00
Thomas Goyne
71345af81a
Overload operator int() on AssTime and remove GetMS/SetMS
...
Originally committed to SVN as r6123.
2011-12-22 21:28:51 +00:00
Thomas Goyne
de9583004d
Uncrustify AssTime
...
Originally committed to SVN as r6122.
2011-12-22 21:28:41 +00:00
Thomas Goyne
e36759a3b2
Remove the undocumented milisecond precision option
...
Originally committed to SVN as r6121.
2011-12-22 21:28:32 +00:00
Thomas Goyne
a91f6f7880
Use agi::vfr::Framerate in FractionalTime rather than a numerator\denominator pair
...
Originally committed to SVN as r6119.
2011-12-22 21:28:13 +00:00
Thomas Goyne
ab68b4b080
Delete unused SMPTE parsing code
...
Originally committed to SVN as r6118.
2011-12-22 21:28:04 +00:00
Thomas Goyne
3b83b9e31b
Delete SubtitleFormat::FPSRational and just use FractionalTime
...
Originally committed to SVN as r6117.
2011-12-22 21:27:53 +00:00
Thomas Goyne
ac6e9fd022
Use unrounded rational time in microdvd subtitle format
...
Originally committed to SVN as r6116.
2011-12-22 21:27:45 +00:00
Thomas Goyne
7bb749b51f
Return the name of the command found or an empty string if none from Hotkey::Scan rather than using an out reference
...
Originally committed to SVN as r6112.
2011-12-22 21:27:06 +00:00
Thomas Goyne
a16da9ffdd
Get lua CFLAGS/LIBS from pkg-config when possible
...
Originally committed to SVN as r6109.
2011-12-22 21:26:39 +00:00
Thomas Goyne
d02cf5c99f
Handle wxMouseCaptureLostEvent in the color picker
...
Originally committed to SVN as r6108.
2011-12-22 21:26:30 +00:00
Thomas Goyne
4c31490d41
Use PCMAudioProvider to read from the cache in HDAudioProvider as it's far faster than the naive logic previously used
...
Originally committed to SVN as r6107.
2011-12-22 21:26:21 +00:00
Thomas Goyne
f2c62dad3d
Factor out a bunch of duplicated code in the configure script for pkg-config based optional dependencies and use the pkg-config name for all WITH_* defines
...
Originally committed to SVN as r6104.
2011-12-22 21:25:49 +00:00
Thomas Goyne
975bb7b26f
Delete pointless empty destructor in DummyAudioProvider
...
Originally committed to SVN as r6103.
2011-12-22 21:25:38 +00:00
Thomas Goyne
a5fce1d1be
Fix off-by-one error in DummyAudioProvider::GetAudio
...
Originally committed to SVN as r6102.
2011-12-22 21:25:29 +00:00
Thomas Goyne
0892de62a8
Don't let audio markers snap to themselves
...
Originally committed to SVN as r6101.
2011-12-22 21:25:19 +00:00
Thomas Goyne
5e9339611b
Return a pair of SplineCurves from SplineCurve::Split rather than mutating the arguments, as it doesn't actually work in-place
...
Originally committed to SVN as r6100.
2011-12-22 21:25:08 +00:00
Thomas Goyne
400b8252e9
Don't block loading styles from scripts with only a Default style
...
Originally committed to SVN as r6099.
2011-12-22 21:25:00 +00:00
Thomas Goyne
f809fa4104
Put OSS CFLAGS in their own variable rather than modifying CPPFLAGS
...
Originally committed to SVN as r6098.
2011-12-22 21:24:51 +00:00
Thomas Goyne
71109a87e1
Replace most inappropriate uses of LDFLAGS with LIBS
...
Originally committed to SVN as r6097.
2011-12-22 21:24:40 +00:00
Thomas Goyne
965a292a05
Increase max precision in the rotation tools to four digits so that rotations over 100 degrees aren't rounded to ints
...
Originally committed to SVN as r6090.
2011-12-22 21:23:26 +00:00
Thomas Goyne
d9ab41468c
In the cross visual tool, apply the same roundning rules to the coordinates set on double-click as for the displayed coordinates
...
Originally committed to SVN as r6089.
2011-12-22 21:23:17 +00:00
Thomas Goyne
25f4e4b426
Set the current frame in the Jump To dialog correctly
...
Originally committed to SVN as r6088.
2011-12-22 21:23:07 +00:00
Thomas Goyne
ff32be592f
Make FractionalTime less weird
...
Originally committed to SVN as r6086.
2011-12-22 21:22:49 +00:00
Thomas Goyne
7a2c461825
Clean up ass_time.h a little
...
Originally committed to SVN as r6085.
2011-12-22 21:22:40 +00:00
Thomas Goyne
ec63fad7c5
Make help buttons fall back to the docs wiki if the scraped html files aren't available locally
...
Originally committed to SVN as r6084.
2011-12-22 21:22:31 +00:00
Thomas Goyne
207ca88c5c
Set modification mask correctly when appending lines
...
Originally committed to SVN as r6080.
2011-12-22 21:21:55 +00:00
Thomas Goyne
f78d52448e
Fix appending and deleting rows via the subtitles object index syntax
...
Originally committed to SVN as r6079.
2011-12-22 21:21:47 +00:00
Thomas Goyne
38ffdc4135
Improve error message when a field is missing from a subtitle line
...
Originally committed to SVN as r6078.
2011-12-22 21:21:38 +00:00
Thomas Goyne
776c7e69a8
When appending lines from a lua script, always append the new line to the end of the appropriate section, creating the section if needed
...
Originally committed to SVN as r6077.
2011-12-22 21:21:29 +00:00
Thomas Goyne
464f652ea4
Eliminate a bunch of weird bogusness with various environment variables
...
Originally committed to SVN as r6076.
2011-12-22 21:21:20 +00:00
Thomas Goyne
8796a605ba
Use non-recursive make for libresrc and command so that dependencies can actually be set correctly. Fixes parallel builds.
...
Originally committed to SVN as r6071.
2011-12-22 21:20:34 +00:00
Thomas Goyne
55f8cb3685
Add option to disable rendering the sample averages in the waveform renderer
...
Originally committed to SVN as r6063.
2011-12-22 21:19:21 +00:00
Thomas Goyne
0201b8ea9b
Add dumb special casing to DialogSearchReplace so that replacing '$' with 'str' with regular expressions enabled results in 'str' being appended once rather than 1000 times.
...
Originally committed to SVN as r6062.
2011-12-22 21:19:12 +00:00
Thomas Goyne
3ecc731ff3
Fix non-precompiled-header compilation
...
Originally committed to SVN as r6061.
2011-12-22 21:19:02 +00:00
Thomas Goyne
21f94ae72e
Validate the value passed to AssTime's constructor rather than allowing the creation of bad times
...
Originally committed to SVN as r6060.
2011-12-22 21:18:54 +00:00
Thomas Goyne
515ed54f1d
Use a single-line text edit for TimeEdit on wxGTK as the unspecified bugs appear to have been fixed
...
Originally committed to SVN as r6059.
2011-12-22 21:18:45 +00:00
Thomas Goyne
6a24046b91
Set -fno-var-tracking for command/icon.cpp, as gcc uses an extremely large amount of memory compiling that file otherwise
...
Originally committed to SVN as r6058.
2011-12-22 21:18:36 +00:00
Thomas Goyne
51d88c675f
Actually use FFTW3_CFLAGS and FFTW3_LDFLAGS
...
Originally committed to SVN as r6057.
2011-12-22 21:18:26 +00:00
Thomas Goyne
3a069b7f60
Clean up TimeEdit
...
Remove some unused or constant arguments and simplify some overly
convoluted logic.
Check for whether timecodes are open rather than whether video is open
to determine if by-frame mode is enabled.
Operate on a project context rather than using VideoContext::Get().
Use non-event-generating setter methods rather than a boolean ready
variable.
Make all member variables private and add setters rather than relying on
the client code calling Update when appropriate.
Eliminate flickering in overwrite mode.
Originally committed to SVN as r6056.
2011-12-22 21:18:16 +00:00
Thomas Goyne
70d703255b
Skip unprocessed key events in the time edit control so that it doesn't eat hotkeys
...
Originally committed to SVN as r6055.
2011-12-22 21:18:07 +00:00
Thomas Goyne
cd3b9bfa37
Enable propagation of key events so that hotkeys work regardless of what's focused
...
Originally committed to SVN as r6054.
2011-12-22 21:17:58 +00:00
Thomas Goyne
59273bac4a
Reenable the assertion failure handler
...
Originally committed to SVN as r6053.
2011-12-22 21:17:49 +00:00
Thomas Goyne
28e8f0b640
Use wxGetApp() rather than wxTheApp plus a cast
...
Originally committed to SVN as r6052.
2011-12-22 21:17:40 +00:00
Thomas Goyne
92949bc965
Remove AegisubApp::Get, as wxGetApp() does the same thing
...
Originally committed to SVN as r6051.
2011-12-22 21:17:30 +00:00
Thomas Goyne
3e539835b7
Use wxDECLARE_APP rather than the deprecated DECLARE_APP
...
Originally committed to SVN as r6050.
2011-12-22 21:17:21 +00:00
Thomas Goyne
f1ff18545a
Make more of AegisubApp's methods private
...
Originally committed to SVN as r6049.
2011-12-22 21:17:12 +00:00
Thomas Goyne
2ec3ff157b
Kill AegisubApp::OpenURL. It makes no sense for the top level application object to be doing this and it doesn't even save any code.
...
Originally committed to SVN as r6048.
2011-12-22 21:17:02 +00:00
Thomas Goyne
ce62990d91
Don't wrap the declaration of AegisubApp::HandleEvent in a ifdef check for wxUSE_EXCEPTIONS as we require that wx be built with exception support
...
Originally committed to SVN as r6047.
2011-12-22 21:16:53 +00:00