Fix wxString::Format assertion failure when opening subtitles from Matroska

git-svn-id: svn+ssh://aegisub/var/svn/aegisub/trunk@6714 93549f3f-7f0a-0410-a4b3-e966c9c94f04
Fix a few places where 32-bit fseek/ftell were used in the Matroska reader code

git-svn-id: svn+ssh://aegisub/var/svn/aegisub/trunk@6715 93549f3f-7f0a-0410-a4b3-e966c9c94f04
Reduce the Matroska read-ahead to 1KB

We only read subtitles, which are individually very small and generally
have video frames between them, resulting in most of the 65 KB
previously read being wasted. On an arbitrary test file this speeds up
subtitle reading from a cold cache by ~25%, and ~60% from warm.

git-svn-id: svn+ssh://aegisub/var/svn/aegisub/trunk@6716 93549f3f-7f0a-0410-a4b3-e966c9c94f04
Add the header background color to the preferences dialog

git-svn-id: svn+ssh://aegisub/var/svn/aegisub/trunk@6717 93549f3f-7f0a-0410-a4b3-e966c9c94f04
Move the Next Line on Commit logic to the commit command so that other commands can do different things

git-svn-id: svn+ssh://aegisub/var/svn/aegisub/trunk@6718 93549f3f-7f0a-0410-a4b3-e966c9c94f04
Add commit commands which always stay and always advance regardless of the auto advance setting

git-svn-id: svn+ssh://aegisub/var/svn/aegisub/trunk@6719 93549f3f-7f0a-0410-a4b3-e966c9c94f04
Add audio/commit/default command

This command commits the current line, advances to the next line (even
if Auto Next on Commit is disabled), and resets the next line's time to
the default timing as if the next line was zero-timed. Add a default
hotkey of Shift-G, but don't bother with a toolbar button for now as
demand for this turned out to be fairly low.

Closes #946.

git-svn-id: svn+ssh://aegisub/var/svn/aegisub/trunk@6720 93549f3f-7f0a-0410-a4b3-e966c9c94f04
Add option to draw lines at each second in the audio display

git-svn-id: svn+ssh://aegisub/var/svn/aegisub/trunk@6721 93549f3f-7f0a-0410-a4b3-e966c9c94f04
Eliminate excess spacing from CellSkip

git-svn-id: svn+ssh://aegisub/var/svn/aegisub/trunk@6722 93549f3f-7f0a-0410-a4b3-e966c9c94f04
Implement audio/play/toggle (default hotkey B)

git-svn-id: svn+ssh://aegisub/var/svn/aegisub/trunk@6723 93549f3f-7f0a-0410-a4b3-e966c9c94f04
Process hotkeys in wxEVT_CHAR_HOOK rather than wxEVT_KEY_DOWN

Char hook events propagate by default, removing the need for the event
filter to make key down events propagate, which was causing some funny
issues.

On Windows, the char hook handler runs before menu accelerators, fixing
a bug where Default context hotkeys would override more specific ones
when they appeared on a menu. Unfortunately, this is not the case on
GTK, so the dumb accelerator-disabling hack is still required.

git-svn-id: svn+ssh://aegisub/var/svn/aegisub/trunk@6724 93549f3f-7f0a-0410-a4b3-e966c9c94f04
Bump required version of wx to 2.9.3

Although EVT_CHAR_HOOK was added in 2.9.2, it does not behave in the
required way until 2.9.3.

git-svn-id: svn+ssh://aegisub/var/svn/aegisub/trunk@6725 93549f3f-7f0a-0410-a4b3-e966c9c94f04
Fix the width of the adjacent bias slider in the TPP dialog on wxGTK. Closes #1477.

git-svn-id: svn+ssh://aegisub/var/svn/aegisub/trunk@6726 93549f3f-7f0a-0410-a4b3-e966c9c94f04
Fix formatting string assertion failure in the search/replace dialog. Closes #1478.

git-svn-id: svn+ssh://aegisub/var/svn/aegisub/trunk@6727 93549f3f-7f0a-0410-a4b3-e966c9c94f04
Move the auto4 script factories to a local non-heap static to reduce memory leak report noise

git-svn-id: svn+ssh://aegisub/var/svn/aegisub/trunk@6728 93549f3f-7f0a-0410-a4b3-e966c9c94f04
Fix race condition on shutdown that could result in the program not completely exiting on Windows

git-svn-id: svn+ssh://aegisub/var/svn/aegisub/trunk@6729 93549f3f-7f0a-0410-a4b3-e966c9c94f04
Add WebM to the list of supported video formats

git-svn-id: svn+ssh://aegisub/var/svn/aegisub/trunk@6730 93549f3f-7f0a-0410-a4b3-e966c9c94f04
Split Lead In and Lead Out into separate passes in the TPP

This makes it so that if there is a gap between two lines but not enough
space for both the full lead-in and lead-out to be added, adding lead-in
to the second line will be prioritized over adding lead-out to the first
line, which is usually the desired result.

git-svn-id: svn+ssh://aegisub/var/svn/aegisub/trunk@6731 93549f3f-7f0a-0410-a4b3-e966c9c94f04
Scroll 1/3 of the audio display per mouse wheel click rather than 120 pixels

This is what 2.1.x did (except this actually handles nonstandard wheel
deltas) and is generally far more usable.

git-svn-id: svn+ssh://aegisub/var/svn/aegisub/trunk@6732 93549f3f-7f0a-0410-a4b3-e966c9c94f04
Join concatenated lines with a space rather than \N

git-svn-id: svn+ssh://aegisub/var/svn/aegisub/trunk@6733 93549f3f-7f0a-0410-a4b3-e966c9c94f04