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
Thomas Goyne
a66cc26706
Remove all calls to wxKeyEvent::StopPropagation. Key events don't propagate by default and even if they did, events which are marked as processed don't propagate further.
...
Originally committed to SVN as r6046.
2011-12-22 21:16:43 +00:00
Thomas Goyne
ed51e7b668
Fix memory leak when deleting or cutting rows
...
Originally committed to SVN as r6045.
2011-12-22 21:16:34 +00:00
Thomas Goyne
79fa487678
Delete the DVD subtitle format. It didn't work and it's been years since anyone last touched it.
...
Originally committed to SVN as r6044.
2011-12-22 21:16:23 +00:00
Thomas Goyne
ef32c75609
Also remove empty attachment sections not at the end of the file
...
Originally committed to SVN as r6043.
2011-12-22 21:16:14 +00:00
Thomas Goyne
921f6c3bcf
Remove empty attachment sections from the file while deleting attachments rather than when the dialog is closed to remove a redundant undo point
...
Originally committed to SVN as r6042.
2011-12-22 21:16:05 +00:00
Thomas Goyne
384d2bc9c2
Disable the Delete and Extract buttons in the attachment dialog after deleting the selected attachments
...
Originally committed to SVN as r6041.
2011-12-22 21:15:56 +00:00
Thomas Goyne
38e2403001
Factor out duplicated code in DialogAttachments
...
Originally committed to SVN as r6040.
2011-12-22 21:15:47 +00:00
Thomas Goyne
96aa9e2629
Use libaegisub io code in AssAttachment rather than wx's
...
Originally committed to SVN as r6039.
2011-12-22 21:15:37 +00:00
Thomas Goyne
00bc0c7ef8
Significantly clean up and simplify AssAttachment
...
Originally committed to SVN as r6038.
2011-12-22 21:15:28 +00:00
Thomas Goyne
eaf436657e
Factor out a bunch of duplicated code in AssStyle::Parse
...
Originally committed to SVN as r6037.
2011-12-22 21:15:19 +00:00
Thomas Goyne
9eaad5f0b1
Document most of AssStyle and remove some unused code
...
Originally committed to SVN as r6036.
2011-12-22 21:15:10 +00:00
Thomas Goyne
dbf3eea732
Remove pointless empty destructor from AssStyle
...
Originally committed to SVN as r6035.
2011-12-22 21:15:01 +00:00
Thomas Goyne
d28c4c4d8b
Kill AssEntry::Valid, as there wasn't actually any way to get a fully-constructed entry with it set to false
...
Originally committed to SVN as r6034.
2011-12-22 21:14:51 +00:00
Thomas Goyne
61767e4453
Disable the "Update video" checkbox in the search/replace dialog when video isn't open
...
Originally committed to SVN as r6033.
2011-12-22 21:14:42 +00:00
Thomas Goyne
404e0fda4f
Delete stuff in DialogSearchReplace
...
Originally committed to SVN as r6032.
2011-12-22 21:14:32 +00:00
Thomas Goyne
ac9b09b847
Jump to the end of the video rather than the frame before the current one when trying to seek to the next keyframe after the last keyframe
...
Originally committed to SVN as r6031.
2011-12-22 21:14:24 +00:00
Thomas Goyne
bf7e4d5cc1
Fix bug where seeking to the next keyframe would actually seek to the keyframe after the next keyframe
...
Originally committed to SVN as r6030.
2011-12-22 21:14:15 +00:00
Thomas Goyne
95fe6a523f
Actually use the selection foreground color for selected rows in the grid
...
Originally committed to SVN as r6029.
2011-12-22 21:14:06 +00:00
Thomas Goyne
6ee6e10117
Fix infinite loop when switching between the \pos and \move icons in the visual subtoolbar
...
Originally committed to SVN as r6028.
2011-12-22 21:13:57 +00:00
Thomas Goyne
2edc5c41e1
Remove kludges to force options to doubles
...
Originally committed to SVN as r6019.
2011-12-22 21:12:37 +00:00
Thomas Goyne
d0ee3029de
Make the MRU tests significantly less worthless
...
Originally committed to SVN as r6008.
2011-12-22 21:10:50 +00:00
Thomas Goyne
a78417177a
Move cajun implementations from .inl files included by the headers to .cpp files
...
Originally committed to SVN as r6004.
2011-12-22 21:10:10 +00:00
Thomas Goyne
2439381c33
Fix misspelled word in the crash log
...
Originally committed to SVN as r6002.
2011-12-22 21:09:51 +00:00
Thomas Goyne
34a87b1c1e
Silence a pile of /W4 warnings
...
Originally committed to SVN as r6001.
2011-12-22 21:09:31 +00:00
Thomas Goyne
c0cfe8afce
Make Vector2D's default constructor initialize to the invalid value rather than a seemingly valid value. Fixes a few cases where uninitialized vectors were used as if they were initialized.
...
Originally committed to SVN as r5987.
2011-12-06 23:13:06 +00:00
Thomas Goyne
1a68f12dcb
Fix rendering errors with the cross visual tool and detached video
...
Originally committed to SVN as r5977.
2011-12-06 20:07:57 +00:00
Thomas Goyne
ffa811c8bc
Add "App/Auto/Load Linked Files" to the preferences dialog
...
Originally committed to SVN as r5976.
2011-12-06 19:59:04 +00:00
Thomas Goyne
6ff233b5ac
Convert audio samples to doubles rather than floats when using FFTW
...
Originally committed to SVN as r5975.
2011-12-06 19:58:54 +00:00
Thomas Goyne
5d8a802e8a
Allocate memory for fftw with fftw_alloc_real/fftw_alloc_complex rather than fftw_malloc
...
Originally committed to SVN as r5974.
2011-12-06 19:58:44 +00:00
Thomas Goyne
b4e3208405
Fix off-by-one error causing rendering errors in the vector clip visual tool when bezier curves are used
...
Originally committed to SVN as r5973.
2011-12-06 18:08:33 +00:00
Thomas Goyne
388580e0cc
Add spaces between the components of bezier curves
...
Originally committed to SVN as r5972.
2011-12-06 18:08:23 +00:00
Thomas Goyne
904e0769b1
Remove unused paramters to VideoDisplay::UpdateSize
...
Originally committed to SVN as r5971.
2011-12-06 00:18:13 +00:00
Thomas Goyne
880ea8848c
Document some of VideoContext's members
...
Originally committed to SVN as r5970.
2011-12-06 00:18:04 +00:00
Thomas Goyne
e49486201d
Eliminate the duplication between VideoContext::videoName and VideoContext::videoFile
...
Originally committed to SVN as r5969.
2011-12-06 00:17:54 +00:00
Thomas Goyne
2fa16a78c6
Move snapshot saving from VideoContext to the commands
...
Originally committed to SVN as r5968.
2011-12-06 00:17:45 +00:00
Thomas Goyne
8a7f4038c1
Make the video provider owned solely by ThreadedFrameSource rather than in a shared_ptr stored in several places
...
Originally committed to SVN as r5967.
2011-12-06 00:17:36 +00:00
Thomas Goyne
59fdab5fe7
Remove VideoContext::nextFrame as it's unused
...
Originally committed to SVN as r5966.
2011-12-06 00:17:25 +00:00
Thomas Goyne
c26e61f209
Remove the audio resync code from VideoContext. It didn't actually work with the threaded video provider and should be unneccesary as video now always plays back at full speed (dropping frames if needed).
...
Originally committed to SVN as r5965.
2011-12-05 05:27:05 +00:00
Thomas Goyne
8ab9ba77ae
Remove the prohibition against seeking while video is playing and just do Stop; Seek; Play as the slider already did in some cases
...
Originally committed to SVN as r5964.
2011-12-05 05:26:58 +00:00
Thomas Goyne
f95f1f13cf
Don't block key events on the video slider when video is playing, as this makes stopping the video rather awkward and it's unneccesary
...
Originally committed to SVN as r5963.
2011-12-05 05:26:52 +00:00
Thomas Goyne
2e40652265
Simplify video playback logic
...
Originally committed to SVN as r5962.
2011-12-05 05:26:45 +00:00
Thomas Goyne
1f534bc757
Kill VideoContext::playMutex. I assume it was a relic from the old threaded video display code as it's completely pointless.
...
Originally committed to SVN as r5961.
2011-12-05 05:26:38 +00:00
Thomas Goyne
73ee949d55
Fix bounds checking in the rectangular clip visual tool with detached video
...
Originally committed to SVN as r5960.
2011-12-05 03:22:33 +00:00
Thomas Goyne
009d99407b
Force a relayout of the video display after switching visual tools. Fixes a bug where the subtoolbar would sometimes appear in the wrong place.
...
Originally committed to SVN as r5959.
2011-12-05 01:45:08 +00:00
Thomas Goyne
48d412468e
Make the log dialog not insane and crashy
...
Originally committed to SVN as r5958.
2011-12-02 04:36:06 +00:00
Thomas Goyne
95a329a1e2
Flush the clipboard on exit so that it isn't cleared
...
Originally committed to SVN as r5957.
2011-12-02 04:35:59 +00:00
Thomas Goyne
59ddcab360
Add Ctrl-Shift-S as a default hotkey for Save As
...
Originally committed to SVN as r5956.
2011-12-01 21:59:35 +00:00
Thomas Goyne
df3d3cd409
Fix assertion failure when opening the Jump To dialog on 64-bit linux
...
Originally committed to SVN as r5955.
2011-12-01 04:22:55 +00:00
Thomas Goyne
d6ba00883e
Fix infinite loop when opening video with wxgtk
...
Originally committed to SVN as r5954.
2011-12-01 03:47:19 +00:00
Thomas Goyne
90582c0b15
Use NumValidator to ensure only numbers are typed in the frames box of the jump to dialog. Updates #1319 .
...
Originally committed to SVN as r5953.
2011-12-01 00:43:48 +00:00
Thomas Goyne
157c03ce63
Load the colors for the audio display timeline from the audio colorscheme
...
Originally committed to SVN as r5952.
2011-11-30 21:04:46 +00:00
Thomas Goyne
7bfdc78b72
Load the colors for the audio display scrollbar from the audio colorscheme
...
Originally committed to SVN as r5951.
2011-11-30 21:04:37 +00:00
Thomas Goyne
fa15f0800e
Make audio color schemes selectable in the preferences dialog
...
Originally committed to SVN as r5950.
2011-11-30 21:04:28 +00:00
Thomas Goyne
1a4d116617
Add green audio color scheme similar to the default waveform colors in 2.1. Currently only actually usable by manually editing the config file.
...
Originally committed to SVN as r5949.
2011-11-30 21:04:18 +00:00
Thomas Goyne
9cb7b23345
Get color scheme names from the config rather than hardcoding it
...
Originally committed to SVN as r5948.
2011-11-30 21:04:09 +00:00
Thomas Goyne
598a85c6cd
Move color scheme definitions to the config file
...
Originally committed to SVN as r5947.
2011-11-30 21:03:57 +00:00
Thomas Goyne
f0e98151f1
Close audio if an error occurs while announcing the opened audio as the program is probably in an inconsistent state
...
Originally committed to SVN as r5946.
2011-11-30 04:28:03 +00:00
Thomas Goyne
b4d2bba7a2
Fix the name of the Resample Resolution dialog's help page
...
Originally committed to SVN as r5945.
2011-11-30 03:46:44 +00:00
Thomas Goyne
adb5963fbd
Cast size_ts used in format strings to ints instead as there isn't actually a portable way to format them.
...
Originally committed to SVN as r5944.
2011-11-30 02:44:27 +00:00
Thomas Goyne
f9e8175cb8
Fix wxString::Format assertion failures in 64-bit builds
...
Originally committed to SVN as r5943.
2011-11-30 02:38:42 +00:00
Thomas Goyne
a47f51080c
Also define __STDC_FORMAT_MACROS for commands
...
Originally committed to SVN as r5942.
2011-11-30 02:16:01 +00:00
Thomas Goyne
9203f17f4d
Implement the Lock Scroll on Cursor option in the audio display
...
Originally committed to SVN as r5941.
2011-11-30 00:40:32 +00:00
Thomas Goyne
c6b97612ae
Delay creation of the audio renderer until audio is actually opened
...
Originally committed to SVN as r5940.
2011-11-30 00:40:22 +00:00
Thomas Goyne
8632d5ce75
Remove some unreachable code in SubtitleFormat::AskForFPS
...
Originally committed to SVN as r5939.
2011-11-29 23:26:31 +00:00
Thomas Goyne
500b8b66d8
Make a few of FrameMain's members local to InitContents
...
Originally committed to SVN as r5938.
2011-11-29 23:18:42 +00:00
Thomas Goyne
b993c02dee
Move AegisubFileDropTarget to frame_main.cpp. It's under ten lines of code so there's really no point in having two separate files for it.
...
Originally committed to SVN as r5936.
2011-11-29 23:18:24 +00:00
Thomas Goyne
bad20c2898
Delete aegisub/src/command/header
...
Originally committed to SVN as r5935.
2011-11-29 23:18:15 +00:00
Thomas Goyne
eaba8eb177
Define __STDC_FORMAT_MACROS for all files in the Makefile and vc10 project, as was already done in the vc9 project. There's a decent number of files which need it and we don't have any naming conflicts with it so there's no reason not to.
...
Originally committed to SVN as r5933.
2011-11-29 23:17:58 +00:00
Thomas Goyne
0e260409fd
Remove unused OnKeyDown method from DialogSearchReplace
...
Originally committed to SVN as r5932.
2011-11-29 23:17:49 +00:00
Thomas Goyne
19503ef4f8
Simplify HelpButton and add some error handling
...
Originally committed to SVN as r5931.
2011-11-29 23:17:40 +00:00
Thomas Goyne
3f90614fd0
Delete static_bmp.[h|cpp] as it isn't actually used anywhere
...
Originally committed to SVN as r5930.
2011-11-29 23:17:31 +00:00
Thomas Goyne
a445512970
Remove out-of-date comment in auto4_lua.cpp
...
Originally committed to SVN as r5929.
2011-11-29 23:17:20 +00:00
Thomas Goyne
371bda4f2b
Move standard windows libraries from setup.cpp to the project. Updates #949 .
...
Originally committed to SVN as r5927.
2011-11-28 22:45:27 +00:00
Thomas Goyne
7e1ef51b8e
Remove wx libraries from setup.cpp. Updates #949 .
...
Originally committed to SVN as r5926.
2011-11-28 22:45:16 +00:00
Thomas Goyne
66f3a3ce55
Fix integer overflow in the matroska subtitle loader which resulted in meaningless progress reporting
...
Originally committed to SVN as r5925.
2011-11-28 22:16:58 +00:00
Thomas Goyne
cce9cb3c47
Fix unintended lowercasing of all strings returned from AssFile::GetScriptInfo
...
Originally committed to SVN as r5924.
2011-11-28 22:16:50 +00:00
Thomas Goyne
cdf05af92b
Refactor out a bunch of duplicated code in DialogProperties
...
Originally committed to SVN as r5923.
2011-11-28 22:16:41 +00:00
Thomas Goyne
303432a671
Default to zero when the initial value for a NumValidator is ""
...
Originally committed to SVN as r5922.
2011-11-28 22:16:33 +00:00
Thomas Goyne
ca91097b8f
Revamp script resolution setting logic
...
Rather than setting the default script resolution to 640x480, leave it
unset in new files. When video is opened, if the user has not already
manually set a script resolution, automatically use the video's
resolution as the script resolution. If the user has and the set
resolution is not a multiple of the video resolution, use the old prompt
for updating it.
This eliminates the confusing prompt about mismatched resolutions when
opening video with a new file while hopefully resulting in users using
the correct resolution more often.
Originally committed to SVN as r5921.
2011-11-28 22:16:22 +00:00
Thomas Goyne
f519a493c8
Increment PortAudio refcount even if it's currently initialized
...
Originally committed to SVN as r5920.
2011-11-28 20:02:07 +00:00
Thomas Goyne
3c83d7e326
Add portaudio device selection to the preferences dialog and filter the list of devices to only output devices
...
Originally committed to SVN as r5919.
2011-11-28 20:01:58 +00:00
Thomas Goyne
87496b8767
Finish rewriting the PortAudio player
...
Remove pointless volatiles.
Throw agi::Exception-derived exceptions rather than bare strings.
Eliminate pointless struct which wrapped a few member variables for no
apparent reason.
Use logging statements rather than printf.
Don't set an explicit frame buffer size as the audio providers are fine
with variable sizes and portaudio strongly recommends leaving it up to
the device to decide.
Closes #997 .
Originally committed to SVN as r5918.
2011-11-28 20:01:46 +00:00
Thomas Goyne
c55195e11c
Non-precomp-header compilation
...
Originally committed to SVN as r5917.
2011-11-25 22:12:15 +00:00
Thomas Goyne
e5e159d6b1
Throw agi::Exception derived exceptions from the OSS player rather than bare strings
...
Originally committed to SVN as r5916.
2011-11-25 19:30:42 +00:00
Thomas Goyne
5f7ca1c7a8
Store paths in the last used paths options rather than file names. Updates #1340 .
...
Originally committed to SVN as r5914.
2011-11-25 19:29:46 +00:00
Thomas Goyne
e095dc06cd
Hacks for Mac, LC_CTYPE must be "" and a wxSafeYield breaks something during FrameMain construction
...
Originally committed to SVN as r5913.
2011-11-25 19:29:17 +00:00
Thomas Goyne
0c5cb8e490
Have the "make adjacent" threshold in TPP have the end of the range be inclusive
...
Originally committed to SVN as r5912.
2011-11-25 19:28:50 +00:00
Thomas Goyne
56e6f7d5b2
Move ASS -> SRT tag conversion to the SRT subtitle format from AssDialogue
...
Originally committed to SVN as r5911.
2011-11-25 19:28:19 +00:00
Thomas Goyne
0992a839cc
Port new SRT parser from 2.1.9. Updates #1301 .
...
Originally committed to SVN as r5910.
2011-11-25 19:27:51 +00:00
Thomas Goyne
1452f1fbe3
Partially remove the Gtk/SCIM locale hack. Updates #1205 , #1248 .
...
Originally committed to SVN as r5909.
2011-11-25 19:27:19 +00:00
Thomas Goyne
6152716003
Make a few strings into format strings for translations. Closes #1093 .
...
Originally committed to SVN as r5908.
2011-11-25 19:26:48 +00:00
Thomas Goyne
7b46ce6380
Don't mark y4m tags as translatable
...
Originally committed to SVN as r5907.
2011-11-25 19:26:21 +00:00
Thomas Goyne
f3c10634d1
Move gl_text's OpenGL header inclusion to the cpp file
...
Originally committed to SVN as r5906.
2011-11-23 18:33:14 +00:00
Thomas Goyne
df50af52e8
Remove OpenGL headers from video_context as it doesn't touch OpenGL anymore
...
Originally committed to SVN as r5905.
2011-11-23 18:33:02 +00:00
Thomas Goyne
88b536f824
Make VideoOutGL's error checking even more completely overboard
...
Originally committed to SVN as r5904.
2011-11-23 18:32:50 +00:00
Thomas Goyne
dc8dbbb535
Make VideoContext::Reset private and use SetVideo to close the video so that the change gets announced properly
...
Originally committed to SVN as r5903.
2011-11-23 18:32:37 +00:00
Thomas Goyne
eb2a6e14fa
Fix a crash caused by the video display recieving a paint event before the first video frame is ready
...
Originally committed to SVN as r5902.
2011-11-23 18:32:23 +00:00
Thomas Goyne
893ec95841
Don't load the FPS from Aegisub keyframes. The format breaks vfr and setting the fps should be done with timecode files.
...
Originally committed to SVN as r5900.
2011-11-20 17:35:00 +00:00
Thomas Goyne
908d1cadae
Pass the audio renderer absolute coordinates rather than relative so that audio actually scrolls
...
Originally committed to SVN as r5898.
2011-11-20 04:25:05 +00:00
Thomas Goyne
d67cc6032b
Fix portaudio player compilation
...
Originally committed to SVN as r5897.
2011-11-20 03:43:52 +00:00
Thomas Goyne
cead5f92df
fix non-precomp header compilation
...
Originally committed to SVN as r5896.
2011-11-20 03:30:00 +00:00
Thomas Goyne
7998677612
Fix wxGTK assertion failure
...
Originally committed to SVN as r5895.
2011-11-19 05:07:41 +00:00
Thomas Goyne
563a544150
Reload audio when the cache type is changed
...
Originally committed to SVN as r5894.
2011-11-19 04:57:14 +00:00
Thomas Goyne
9a53dc0440
Eliminate some unused variables
...
Originally committed to SVN as r5893.
2011-11-19 04:46:45 +00:00
Thomas Goyne
236ea4261d
Reload audio when the player or provider is changed
...
Originally committed to SVN as r5892.
2011-11-19 01:14:42 +00:00
Thomas Goyne
43d41def4f
Add missing file audio_rendering_style.h
...
Originally committed to SVN as r5891.
2011-11-19 01:14:33 +00:00
Thomas Goyne
70ba90f024
Clean up the OpenAL audio player a bit
...
Remove pointless volatile modifiers from member variables (there aren't
even any threads involved).
Eliminate all heap memory allocation during playback.
Move comments into the doxygen comments and add some more.
Throw typed exceptions.
Originally committed to SVN as r5889.
2011-11-19 01:14:13 +00:00
Thomas Goyne
70fcece459
Don't create the audio timing controller until audio is actually opened
...
Originally committed to SVN as r5888.
2011-11-18 22:58:22 +00:00
Thomas Goyne
92e10c80a2
Add markers and styling ranges in the audio display for inactive lines. Closes #1327 .
...
Originally committed to SVN as r5887.
2011-11-18 22:58:12 +00:00
Thomas Goyne
3cf1718ef6
Add support for the inactive color scheme to the audio renderers
...
Originally committed to SVN as r5886.
2011-11-18 22:58:02 +00:00
Thomas Goyne
e3b15bf587
Only connect to signals in AudioDisplay when audio is actually open
...
Originally committed to SVN as r5885.
2011-11-18 22:57:54 +00:00
Thomas Goyne
725a334860
Add Inactive style to Icy Blue
...
Originally committed to SVN as r5884.
2011-11-18 22:57:45 +00:00
Thomas Goyne
1eedb0c3d4
Replace InitIcyBlue_Normal and InitIcyBlue_Selected with a single method which takes an audio rendering style as a parameter
...
Originally committed to SVN as r5883.
2011-11-18 22:57:36 +00:00
Thomas Goyne
13a281e9dc
Extract the color lookup in AudioColorScheme to a seperate method
...
Originally committed to SVN as r5882.
2011-11-18 22:57:26 +00:00
Thomas Goyne
262a74dc6f
Remove old audio display color options which have been replaced by the audio color schemes
...
Originally committed to SVN as r5881.
2011-11-18 22:57:17 +00:00
Thomas Goyne
f4a975d64c
Remove unnecessary explicit 'inline'
...
Originally committed to SVN as r5880.
2011-11-18 22:57:07 +00:00
Thomas Goyne
af9be4afa6
Remove #undef min/max as NOMINMAX is now defined by the project
...
Originally committed to SVN as r5879.
2011-11-18 22:56:58 +00:00
Thomas Goyne
8d28b44773
Get audio styling ranges from the timing controller. Based on a patch by jfs.
...
Originally committed to SVN as r5878.
2011-11-18 22:56:45 +00:00
Thomas Goyne
262d5195c5
Add access keys for nearly all things which support them and were missing them. Closes #1070 .
...
Originally committed to SVN as r5877.
2011-11-18 18:49:09 +00:00
Thomas Goyne
2c2bb54e11
Add access keys for most entries in the main menu bar and eliminate a few duplicates. Updates #1078 .
...
Originally committed to SVN as r5876.
2011-11-18 05:00:20 +00:00
Thomas Goyne
0db92549d7
Eliminate some probably spurious uninitialized variable warnings
...
Originally committed to SVN as r5875.
2011-11-18 04:06:03 +00:00
Thomas Goyne
c119d2d84b
Don't try to use the active line in a handler for COMMIT_NEW as it may not be valid
...
Originally committed to SVN as r5874.
2011-11-18 04:04:35 +00:00
Thomas Goyne
28c7e7dec3
Bind wxEVT_SIZE in the video display even when attached. There doesn't seem to be any reason not to and it fixes some bugs with resizing the main window.
...
Originally committed to SVN as r5873.
2011-11-18 01:20:47 +00:00
Thomas Goyne
ff03168f4c
Show decimals in the cross visual tool only when the video resolution is greater than the script resolution
...
Originally committed to SVN as r5872.
2011-11-17 18:21:30 +00:00
Thomas Goyne
f863e28479
Add Select All to the subtitles menu. Closes #1226 .
...
Originally committed to SVN as r5871.
2011-11-17 03:58:05 +00:00
Thomas Goyne
8831de5774
Modify a few strings to ease translations
...
Originally committed to SVN as r5870.
2011-11-17 02:21:46 +00:00
Thomas Goyne
bf285cfa50
Make the undo/redo strings more localization-friendly. Closes #1104 .
...
Originally committed to SVN as r5869.
2011-11-17 02:19:10 +00:00
Thomas Goyne
1590b2a65e
Add validator to the subtitle save command to check if there are actually unsaved changes
...
Originally committed to SVN as r5868.
2011-11-16 22:43:56 +00:00
Thomas Goyne
14c9d8ec87
Fix validate method for the subtitle/select/visible command
...
Originally committed to SVN as r5867.
2011-11-16 22:43:45 +00:00
Thomas Goyne
2cb234b414
Change the default for Video/Check Script Res to 1 (Ask). Closes #1138 .
...
Originally committed to SVN as r5866.
2011-11-16 21:59:48 +00:00
Thomas Goyne
da09d71239
Expand text boxes in the preferences dialog to fill available space
...
Originally committed to SVN as r5865.
2011-11-16 21:59:39 +00:00
Thomas Goyne
a6ecf821c9
Add some options to the preferences dialog
...
Originally committed to SVN as r5864.
2011-11-16 21:59:31 +00:00
Thomas Goyne
88e5392d37
Remove a few unused options
...
Originally committed to SVN as r5863.
2011-11-16 21:59:22 +00:00
Thomas Goyne
0f2cea4226
Fix the option name for max undo levels in the preferences dialog
...
Originally committed to SVN as r5862.
2011-11-16 21:59:12 +00:00
Thomas Goyne
95a1071a1b
Add the script file name to the close confirmation dialog. Closes #879 .
...
Originally committed to SVN as r5861.
2011-11-16 21:58:58 +00:00
Thomas Goyne
de03dfd8a8
Add an option to disable keyframes in the audio display only in karaoke mode. Closes #644 .
...
Originally committed to SVN as r5860.
2011-11-16 19:56:09 +00:00
Thomas Goyne
91a62836a5
Move the keyframe marker provider from the audio controller to the timing controllers
...
Originally committed to SVN as r5859.
2011-11-16 19:56:00 +00:00
Thomas Goyne
29518f585a
Move AudioMarkerProviderKeyframes from audio_controller.cpp to its own header/source files
...
Originally committed to SVN as r5858.
2011-11-16 19:55:49 +00:00
Thomas Goyne
75d471c538
Remove unneeded overloaded operators for AudioMarkerKeyframe
...
Originally committed to SVN as r5857.
2011-11-16 19:55:40 +00:00
Thomas Goyne
672f420d6c
Fix race conditions in the dsound2 player that occasionally resulted in audio playback stopping instantly
...
Originally committed to SVN as r5856.
2011-11-16 19:55:31 +00:00
Thomas Goyne
b16f1a0698
Use scoped_ptr to store the worker thread in DirectSoundPlayer2
...
Originally committed to SVN as r5855.
2011-11-16 19:55:22 +00:00
Thomas Goyne
f45d9f8e2d
Make pointlessly protected members of DirectSourcePlayer2 private
...
Originally committed to SVN as r5854.
2011-11-16 19:55:13 +00:00
Thomas Goyne
539dc2fbe4
Don't try to handle exceptions thrown by delete
...
Originally committed to SVN as r5853.
2011-11-16 19:55:04 +00:00
Thomas Goyne
a5f6e0588e
Move doxygen comments in the dsound2 player to the declarations from the defitions
...
Originally committed to SVN as r5852.
2011-11-16 19:54:55 +00:00
Thomas Goyne
554a61daf5
Remove redundant wxLogErrors in DirectSoundPlayer2 that the scripted conversion to the new logging system missed
...
Originally committed to SVN as r5851.
2011-11-16 19:54:45 +00:00
Thomas Goyne
3dd5cbd31d
Check for COMMIT_NEW in the visual tools correctly
...
Originally committed to SVN as r5850.
2011-11-16 19:54:35 +00:00
Thomas Goyne
55fc6c753e
Round scales to ints as VSFilter doesn't actually support nonint scales so it's just pointless ugliness
...
Originally committed to SVN as r5849.
2011-11-16 19:54:25 +00:00
Thomas Goyne
4be9c302d3
Fix rendering of the clip visual tools with detached video
...
Originally committed to SVN as r5847.
2011-11-12 01:23:40 +00:00
Thomas Goyne
51149104d9
Make all of VideoBox's members private
...
Originally committed to SVN as r5846.
2011-11-12 01:23:29 +00:00
Thomas Goyne
feb752c24c
Store the video display and slider in the context directly rather than going through the video box. Fxes a crash when detaching video.
...
Originally committed to SVN as r5845.
2011-11-12 01:23:18 +00:00
Thomas Goyne
d4ee9da474
Flip the y axis in the scale tool so that moving the mouse up increases size
...
Originally committed to SVN as r5843.
2011-11-12 01:22:45 +00:00
Thomas Goyne
c4369a092f
Fix wxGTK assertion failure when opening the TPP dialog
...
Originally committed to SVN as r5842.
2011-11-09 03:47:26 +00:00
Thomas Goyne
a0b74f4424
Fix wxGTK assertion failure in audio_karaoke.cpp
...
Originally committed to SVN as r5841.
2011-11-09 02:29:36 +00:00
Thomas Goyne
4bd34ee32f
Actually compile ffms and libass providers when they're enabled
...
Originally committed to SVN as r5838.
2011-11-08 06:06:43 +00:00
Thomas Goyne
c763026bfc
Explicitly declare a storage location for AudioDisplayScrollbar::min_width
...
Originally committed to SVN as r5837.
2011-11-08 04:53:51 +00:00
Thomas Goyne
c04af51c86
Include lua.hpp rather than the .h versions on non-windows as lua is normally compiled as C, not C++
...
Originally committed to SVN as r5831.
2011-11-08 01:18:16 +00:00
Thomas Goyne
89541a949f
Actually hide override tags in hide tags mode. Closes #1360 .
...
Originally committed to SVN as r5830.
2011-11-08 00:25:02 +00:00
Thomas Goyne
dc380c5848
Refactor BaseGrid painting a bit
...
Originally committed to SVN as r5829.
2011-11-08 00:24:53 +00:00
Thomas Goyne
8e81fd07ed
Move everything but the subtitle modification utility functions from SubtitlesGrid to BaseGrid. There never has been a clean division of responsibilities between them and the split mostly just made things awkward.
...
Originally committed to SVN as r5828.
2011-11-08 00:24:41 +00:00
Thomas Goyne
2f394a7792
Fix compilation with clang (but not linking because wxAny is currently broken with it)
...
Originally committed to SVN as r5826.
2011-11-07 06:18:34 +00:00
Thomas Goyne
8b5545c98f
Finish porting the alsa player from 2.1.9 so that it actually compiles
...
Originally committed to SVN as r5825.
2011-11-07 05:24:46 +00:00
Thomas Goyne
0aa553eb7c
compilation fixes
...
Originally committed to SVN as r5824.
2011-11-07 04:14:09 +00:00
Thomas Goyne
be77dc8307
Mostly rewrite the visual tools and related classes
...
Convert all coordinates within the visual tools to Vector2D, which has
been significantly extended. Eliminates a lot of issues with accumulated
rounding errors and simplifies a lot of code.
Modernize the visual tools' interactions with the rest of Aegisub by
connecting to signals directly rather than routing everything through
the video display and converting the main visual tool mode toolbar to
the command system.
Extract all references to OpenGL from the visual tools and move them to
OpenGLWrapper as a first step towards making it possible to implement an
alternative video renderer. In the process, eliminate all uses of OpenGL
immediate mode.
Fix a bunch of minor issues and general instability.
Originally committed to SVN as r5823.
2011-11-06 17:18:20 +00:00
Thomas Goyne
2e5cbf079e
Update ?script after save as
...
Originally committed to SVN as r5822.
2011-11-06 17:18:14 +00:00
Thomas Goyne
e9e02539ac
Fix crash when setting hotkeys
...
Originally committed to SVN as r5820.
2011-11-06 17:18:02 +00:00
Thomas Goyne
abaf8fc2c4
Non-precompiled-header compilation fix
...
Originally committed to SVN as r5819.
2011-11-04 19:42:59 +00:00
Thomas Goyne
84c545b978
Return const references from OptionValue::GetList* rather than taking an output parameter. Eliminates some copies of lists and makes the calling code less awkward.
...
Originally committed to SVN as r5816.
2011-11-04 19:42:31 +00:00
Thomas Goyne
05059732f9
Replace incorrect uses of bitwise or with logical or
...
Originally committed to SVN as r5814.
2011-11-04 19:42:12 +00:00
Thomas Goyne
6e2e87c0b5
Fix incorrect lowercasing in AssFile::GetScriptInfo
...
Originally committed to SVN as r5811.
2011-11-04 19:41:43 +00:00
Thomas Goyne
f48bc59694
Add locks around CSRI operations as VSFilter isn't even vaguely threadsafe
...
Originally committed to SVN as r5810.
2011-11-04 05:11:31 +00:00
Thomas Goyne
29f0786c81
Update the video box time boxes when the active line changes
...
Originally committed to SVN as r5809.
2011-11-04 05:11:24 +00:00
Thomas Goyne
4d2a2c618e
Set the user agent used for the update checker requests rather than leaving it as 'wxWidgets 2.x'
...
Originally committed to SVN as r5808.
2011-11-03 22:50:54 +00:00
Thomas Goyne
2cbe7455bb
Don't set icons for check and radio menu items as checked icons aren't supported yet
...
Originally committed to SVN as r5807.
2011-11-03 00:29:23 +00:00
Thomas Goyne
ccebd521c6
Fix errors in update checker resulting from trying to use the wrong option type
...
Originally committed to SVN as r5805.
2011-10-29 05:12:19 +00:00
Thomas Goyne
dedccc1f58
Handle errors when opening audio via the MRU menu
...
Originally committed to SVN as r5804.
2011-10-29 04:31:05 +00:00
Thomas Goyne
52a2316934
Don't display an error message if the user cancels audio loading
...
Originally committed to SVN as r5803.
2011-10-29 04:30:58 +00:00
Thomas Goyne
31a3b9aae0
Do nothing if video is played with no video loaded rather than crashing
...
Originally committed to SVN as r5802.
2011-10-29 04:30:52 +00:00
Thomas Goyne
402ba0e89d
Fix loading subtitles from matroska files
...
Originally committed to SVN as r5801.
2011-10-29 04:16:31 +00:00
Thomas Goyne
6315192e2b
Don't reuse buffers in the audio provider converters, as it isn't thread-safe to do so and making it thread-safe would hurt performance more than the extra allocations
...
Originally committed to SVN as r5800.
2011-10-29 03:47:02 +00:00
Thomas Goyne
085560b8c8
Use a single class for all audio endian and bit-depth conversion as while it's slower than the specialized ones, it isn't significantly so
...
Originally committed to SVN as r5798.
2011-10-29 03:46:51 +00:00
Thomas Goyne
f9408031b6
Add support for 24-64 bit audio. Based on a patch by SAPikachu. Updates #1292 .
...
Originally committed to SVN as r5797.
2011-10-29 03:46:44 +00:00
Thomas Goyne
7f06849531
Rewrite the audio format converters, splitting each conversion into its own class
...
Originally committed to SVN as r5796.
2011-10-29 03:46:36 +00:00