Thomas Goyne
9a21c13cbe
Use agi::scoped_holder to close files in mkvwrap
2013-10-05 15:41:22 -07:00
Thomas Goyne
bbd4cbef78
Fix shifting contiguous selections downward
...
Reverse iterators behave differently from regular iterators when
swapping (regular iterators continue to point at the same elements,
while reverse iterators do not), so instead use regular iterators with a
negative step for shifting down.
2013-09-30 17:01:15 -07:00
Thomas Goyne
921d5ed01a
Only paint the margin values in the grid if they're non-zero
...
Showing zero is mildly misleading since it's actually default margin
rather than no margin, and this makes it much easier to spot the rows
where there's actually an interesting value.
2013-09-27 18:02:54 -07:00
Thomas Goyne
04435a13a3
Remove some unused AudioPlayer methods
2013-09-26 20:31:20 -07:00
Thomas Goyne
703b1fc3a7
Extract common stuff for wrapper audio providers to a base class
2013-09-26 20:18:29 -07:00
Thomas Goyne
07ad40dd3f
Improve audio loading progress reporting
...
Even without the animation the reported progress was an average of 1.5
blocks behind the actual progress, and with the animation it was two
blocks behind. Assuming constant-speed audio decoding it should now be
nearly accurate (it still ignores that the last block may be smaller
than the rest).
2013-09-26 19:01:18 -07:00
Thomas Goyne
932747e70a
Make progress bars less jerky
2013-09-26 16:13:32 -07:00
Thomas Goyne
382708132c
Update indexing progress less often
...
wxTheApp->QueueEvent is sufficiently slow that updating the progress
could sometimes take longer than the actual indexing.
2013-09-26 16:13:24 -07:00
Thomas Goyne
a28aafcdab
Fix crash when cancelling an automation script
2013-09-24 07:45:50 -07:00
Thomas Goyne
7651e83314
Fix setting selection/active line from automation scripts
...
The error handling function is under the results of the called function,
not at the top of the stack, so lua_pop was removing the wrong thing.
2013-09-23 14:15:45 -07:00
Thomas Goyne
8c7ec3a3b6
Don't build tests in release configuration
2013-09-22 19:06:58 -07:00
Thomas Goyne
260b37ba8e
Fix line numbers for moonscript files in error messages
2013-09-22 18:44:03 -07:00
Thomas Goyne
646e5deb52
Canonicalize Automation script file names for nicer errors
2013-09-22 17:40:27 -07:00
Thomas Goyne
2be9218560
Double the size of the Automation log window
2013-09-21 16:20:19 -07:00
Thomas Goyne
32990fce49
Don't try to add stack traces to non-string errors
2013-09-21 16:12:19 -07:00
Thomas Goyne
ec7d75d1ae
Fix an occasional crash when loading Automation scripts
...
cmd::reg and AssExportFilterChain::Register are not thread-safe, so
guard them with a mutex.
2013-09-21 15:59:28 -07:00
Thomas Goyne
f1ed0e4313
Fix display of automation errors on startup
...
The wxLogger isn't created until it's needed by the main thread, so any
errors logged on a background thread before the logger was first used on
the main thread were simply being discarded. Fix this by forcing the
creation of the logger very early in the startup process.
2013-09-21 12:52:11 -07:00
Thomas Goyne
ced3dd7a7e
Improve error reporting when an automation script fails to load
...
Cut down on the amount of redundant information displayed so that the
actual error is visible.
2013-09-21 12:10:37 -07:00
Thomas Goyne
1a8fbf35f1
Improve lua stack trace display
2013-09-21 11:22:58 -07:00
Thomas Goyne
8fade74026
Actually trim whitespace when combining lines
...
regex_replace does not mutate the string in place.
2013-09-21 11:21:25 -07:00
Thomas Goyne
e315ceb236
Print the stack trace on lua errors
2013-09-21 09:44:44 -07:00
Thomas Goyne
d81e2f45ac
Add an option to ignore whitespace for the character counter
2013-09-20 07:43:33 -07:00
Thomas Goyne
ac09590389
Devirtualize OptionValue::GetName
2013-09-20 06:51:04 -07:00
Thomas Goyne
bd88cde436
Remove agi::OptionValue::GetDefault*
...
They aren't actually used for much of anything.
2013-09-20 06:51:04 -07:00
Thomas Goyne
cb549e5aa9
Significantly speed up dragging lots of vector clip control points
2013-09-18 16:18:38 -07:00
Thomas Goyne
8d5a54ff5e
Fix crash when smoothing freehand curves
2013-09-18 15:59:01 -07:00
Thomas Goyne
6a6c983f19
Add box selection to the move mode of the vector clip tool
...
Closes #1404 .
2013-09-18 15:52:48 -07:00
Thomas Goyne
c62ebf7e8b
Use std::to_wstring rather than wxString::Format("%d", ...)
...
std::to_wstring is significantly faster and is a bit shorter.
2013-09-18 08:32:30 -07:00
Thomas Goyne
64ecd29169
Switch to using an intrusive list for the visual tool features
...
Slightly improves performance and eliminates a bunch of really clunky
passing around and storing of iterators.
2013-09-17 16:23:36 -07:00
Thomas Goyne
b4ba31fe45
Bump dependency versions
2013-09-17 09:09:57 -07:00
Thomas Goyne
6cd6ee9845
Use auto more places
2013-09-17 07:51:07 -07:00
Thomas Goyne
0d50820178
Clean up BaseGrid a little
2013-09-17 07:51:06 -07:00
Thomas Goyne
e5afaf8a45
Handle subtitle lines pasted into the edit box
...
If the text being pasted can be parsed as ASS dialogue events, then do
so even if the edit box is focused since it's rather unlikely that
the user actually wants ASS subtitle events in their subs.
2013-09-16 11:02:20 -07:00
Thomas Goyne
5787ca4ae0
Cache widths of strings in SetColumnWidths
2013-09-16 10:43:56 -07:00
Thomas Goyne
079ccc728d
Significantly speed up resizing the window with large files open
...
SetColumnWidths can take a long time to run and the only column that can
change width on resize is the last one, so only update that.
2013-09-16 10:26:41 -07:00
Thomas Goyne
bb89378b7f
Skip empty lines in the kanji timer
2013-09-16 09:43:57 -07:00
Thomas Goyne
98048c135a
Shut up clang analyzer warning
2013-09-16 08:40:27 -07:00
Thomas Goyne
e72e183f27
Remove incorrect ! in check for changed calltip position
2013-09-16 07:58:06 -07:00
Thomas Goyne
af2028e971
Pass unique_ptrs around by value
2013-09-16 06:43:17 -07:00
Thomas Goyne
40a0d8b2f7
Actually delete the lines in AssFile's destructor
2013-09-15 16:58:04 -07:00
Thomas Goyne
bfc7f56e20
Only go back one line rather than two
2013-09-15 15:37:49 -07:00
Thomas Goyne
80c9f67ce8
Rewrite the auto-matcher for the karaoke timing copier
...
Operate on characters rather than bytes in the dialog so that it
actually works with Kanji.
Rewrite the auto-matcher to handle more cases and add unit tests for it.
2013-09-15 14:52:16 -07:00
Thomas Goyne
3e3bd37a26
Switch to using Bind for DialogKanjiTimer events
2013-09-14 08:26:59 -07:00
Thomas Goyne
1d7334c129
Disable the wxGTK accelerator workaround for wx 2.9.5
...
Unsurprisingly the munging around with the menu bar implementation
details has resulted in things breaking, but fortunately the problem it
was working around (#1314 ) appears to have been fixed entirely.
Closes #1628 .
2013-09-01 13:34:53 -07:00
Thomas Goyne
2a35763a8a
Add Backspace to the table of key names. Closes #1631 .
2013-09-01 12:27:42 -07:00
Thomas Goyne
51b21576cc
Support duplicate order numbers in Matroska files
...
Such files are pretty broken, but apparently other stuff allows it.
2013-08-26 17:25:26 -07:00
Thomas Goyne
f427c4574d
Revert "Don't invert horizontal scroll on the audio display on OS X"
...
This has been fixed upstream.
2013-08-20 12:20:37 -07:00
Thomas Goyne
0b210673f9
Zoom into the mouse's position in the audio display
...
Rather than pinning the time at the center of the audio display, pin the
time at the mouse's position since that's the area the user probably
cares about. If the mouse is not over the audio display (such as if the
user is adjusting the zoom via the sliders rather than the mouse wheel),
just use the center as it used to.
2013-08-20 12:11:39 -07:00
Thomas Goyne
1f5b98b11d
Bump ffmpeg and boost versions
2013-08-19 12:51:19 -07:00
Thomas Goyne
b4c2349b88
Switch git submodules to git:// rather than ssh
...
Fetching stuff via ssh requires a Github account.
2013-08-19 12:51:19 -07:00