moex3
808ead65bf
Fix crosshair drawing
...
I'm not sure about that scale_factor, i don't know how to test that
2022-03-02 15:01:57 -08:00
moex3
0ec0f20695
Fix mouse position bug when videoAr > displayAr
...
Crosshair drawing is broken when videoAr != displayAr
2022-03-02 15:01:56 -08:00
moex3
5f95f76671
Change tab to spaces
2022-03-02 15:01:55 -08:00
moex3
f3d796a3e3
Add menu item for resetting the video pan
2022-03-02 15:01:54 -08:00
moex3
e3949cdaa1
Add video panning
2022-03-02 15:01:48 -08:00
EleonoreMizo
bfcd8a3e2c
Merge branch 'master' into spectrum-frequency-mapping
2021-11-29 22:27:26 +01:00
woclass
e58e4a9149
Fix Mac dmg build ( #138 )
...
* [mac/build] update build steps
* [macos] bundle app
* [macos] build dmg
* [ci] setup macOS CI
* [i18n] TODO: rm WX locale files
* [deps] set main branch to main
* Fix osx-fix-libs.py
Create symbolic links, to make libicu happy
Rewrite the script in python3, as python2 is deprecated
* Add write permission before install_name_tool when doing osx-bundle
Fix wangqr/Aegisub#39
* Handle @loader_path in libboost on macOS
See wangqr/Aegisub#39
* [tools/mac] use python3
* [ci/mac] install & using system deps
* [ci/win] don't build fribidi:docs
* [ci/mac] trying openal-soft
* [ci/mac] use pulseaudio in CI
* [ci/win] only run aeg's test
* [ci/win] fix CI
* [ci/win] fix CI: not use dict `{}`
* [ci] run ci
* [ci/win] don't build docs
* [ci/win] remove args tail newline
* [ci/win] false->disabled
* Use md title format
Co-authored-by: Ryan Lucia <ryan@luciaonline.net>
* Recover file permissions.
* [ci/win] disable fontconfig
Co-Authored-By: Ryan Lucia <ryan@luciaonline.net>
* [ci/win] disable libass:fontconfig
Co-authored-by: wangqr <wangqr@wangqr.tk>
Co-authored-by: Ryan Lucia <ryan@luciaonline.net>
2021-10-12 03:37:49 -04:00
Myaamori
c43e4fba3c
meson: add Hunspell port
...
This moves the visibility logic (HUNSPELL_STATIC/BUILDING_LIBHUNSPELL)
to the build system. Only relevant on Windows.
2021-05-21 21:09:36 -04:00
Myaamori
3dfc553880
Fix faux bold logic in font collector for Fontconfig
...
Based on libass's logic (a requested weight of over 150 more than
the matching font).
2021-03-27 12:38:50 -04:00
Myaamori
4b2cd7f170
Convert OpenType weight to Fontconfig weight in font collector
...
Fixes #108
2021-03-27 12:38:50 -04:00
Ryan
d32ef75cba
meson: move executable to the root directory
2021-03-27 09:29:37 -04:00
Ryan
1246534b7b
Move AddSeparator to VisualTool::SetToolbar
...
Co-authored-by: wangqr <wangqr@wangqr.tk>
2021-03-27 08:09:11 -04:00
petzku
19429b0f6e
Fix negative margin handling ( closes #104 )
...
Previously, margins were clamped to 0..9999, but negative margins are
well supported by most renderers. In addition, previously lua
automations automations were able to produce these negative margin
values, and they would be saved correctly. However, re-opening the file
would clamp the values, and they could not be edited in the edit box.
This commit changes the clamping to be -9999..99999, and allows entering
(and editing) negative values in all relevant fields. In addition, this
makes the subtitle edit box margin fields take 5 characters instead of 4
to accommodate negative numbers up to 9999 (also the reason for raising
the upper bound).
2021-03-06 14:29:18 -05:00
Ryan Lucia
43751546f4
spectrum view: allow 32-bit wxBitmap
...
Required on MacOS
2021-02-22 14:29:14 -05:00
Myaamori
c6f4ea45aa
Let search field in Hotkeys menu expand horizontally
...
On Linux with wx 3.1 it was too small to use by default
2021-01-31 19:34:47 -05:00
Myaamori
ca7501c7ed
Remove unused alignment flags for combo boxes in resampler
...
Causes an assertion error with wx 3.1
2021-01-31 19:34:47 -05:00
Ryan
248785d7ad
meson: apply manifest on windows
2021-01-30 12:02:34 -05:00
Ryan
36b75b827d
meson: fix warnings, cleanup
2021-01-30 12:02:18 -05:00
Ryan
1ac52a24d6
meson: disable gdi_fontselect for now
...
This one continues to be controversial, so for now the plan will be to report issues upstream that come up as a result of this being removed
2021-01-30 08:58:45 -05:00
Ryan
7d9feca578
meson: add CSRI support
2021-01-30 08:57:39 -05:00
Ryan
d8c348e897
meson: standardized config defines to set integer 1
2021-01-30 08:56:01 -05:00
Ryan
f3958288ac
libresrc: put new wxBitmap constructor behind wx version check
...
Based off https://github.com/Aegisub/Aegisub/pull/175
2021-01-30 07:29:45 -05:00
Ryan
b8d1864a07
aegisub: ifdef wxBitmap constructor to scale on MacOS only
...
Quick fix to unblock the build; need better HiDPI handling across the board
2021-01-16 13:01:51 -05:00
Myaamori
b42da504a0
Save unexpanded path in font collector ( #79 )
...
Fixes #78
2021-01-16 06:13:37 -05:00
Ryan
8b8f4a3925
meson: bump minimum ffms2 version to 2.22
...
It's been out for 6 years, so this should be fairly safe. Also fix a build error that somehow snuck in during the merge
2021-01-16 05:31:08 -05:00
Ryan
d583744b69
Merge in work from TypesettingTools fork
2021-01-16 02:12:31 -05:00
Ryan
25a62f4f12
libass_gdi_fontselect: don't redefine NOMINMAX
...
It's now defined in the build system itself
2021-01-16 01:24:19 -05:00
Ryan Lucia
c487dd2bdb
Parially revert fffb138b81
...
I haven't checked whether reverting this breaks IME input, and if it doesn't what changed on wx's end. However, this is the commit that uses private symbols, and so reverting it lets us build against upstream wx. Even if this is a loss in functionality, for now it's fine.
2021-01-10 03:14:12 -05:00
Ryan
8cf4100c87
meson: fix resource file compilation
...
This enables video to load correctly in Windows builds
2021-01-10 03:14:12 -05:00
Ryan
72edb88982
meson: add Avisynth option, compile libass_gdi_fontselect
...
Sadly, building with Avisynth is still broken.
2021-01-10 03:14:12 -05:00
Ryan Lucia
89c788a4b3
autotools: remove remaining makefiles
2021-01-10 03:14:12 -05:00
Myaamori
aecf09a64d
Use wxSizer::RepositionChildren instead of RecalcSizes on wx 3.1.3+
2021-01-10 03:14:12 -05:00
Myaamori
93b2794c85
Correct wxStyledTextCtrl::StartStyling for wx 3.1
2021-01-10 03:14:12 -05:00
Ryan Lucia
e3826cb17e
meson: initial attempt to generate Aegisub.app on macOS
2021-01-10 03:14:12 -05:00
line0
2e613f5476
meson: flag aegisub as a GUI app
2021-01-10 03:14:12 -05:00
line0
bfdcbdefad
meson: add missing link dependencies on windows
2021-01-10 03:14:12 -05:00
line0
37230683fb
utils: work around missing C++11 char16_t overload in wx string conversion
2021-01-10 03:14:12 -05:00
line0
b6c0f2d544
meson: don't build fontconfig file lister on windows
2021-01-10 03:14:12 -05:00
line0
b8e2cf83fd
fix PCHs on VS2019
...
* separate PCH for C and C++
* acconf.h now included in PCHs on windows, too
* meson now auto-generates companion source files for PCH headers
2021-01-10 03:14:12 -05:00
Ryan Lucia
5e14a9265b
meson: attempt to wrangle dependencies
2021-01-10 03:14:12 -05:00
Ryan Lucia
3b2d770d74
Fix PCH usage
...
Hopefully this time in a way that doesn't ruin life for Unix folks!
2021-01-10 03:14:12 -05:00
Ryan Lucia
d2d3168904
meson: allow additional include directories for manually located deps
2021-01-10 03:14:12 -05:00
Ryan Lucia
9e284660b1
meson: add DirectSound detection
2021-01-10 03:14:12 -05:00
Ryan Lucia
cde5778283
Make spacing around colons consistent
2021-01-10 03:14:12 -05:00
Martin Herkt
ca3802e82a
Meson: respack.lua → respack.py; works out-of-tree
2021-01-10 03:14:12 -05:00
Martin Herkt
97b4dfb7f4
Meson: add install rules
2021-01-10 03:14:12 -05:00
Martin Herkt
8905921a2d
Initial port of the build system to Meson
...
Still some TODOs left. Probably only works on Linux for now.
2021-01-10 03:14:12 -05:00
EleonoreMizo
f9c8a7f6aa
Spectrum display improvement
...
– Selection of different frequency mappings for the spectrum display,
from linear (current default) to logarithmic.
– Field added in the preference page to select the frequency mapping
– New preference key to remember this setting:
Audio/Renderer/Spectrum/FreqCurve
– Consistent display with high sampling rates (> 48 kHz)
– Fixed time shift with high quality settings
2020-12-15 20:11:58 +01:00
Andrew Neth
d0bab1212c
Look for both system fonts and user fonts on Windows ( #64 )
...
* Look for both system fonts and user fonts on Windows
* Move repeated font registry reading code to separate function
* Pass the files vector to read_fonts_from_key as a reference
* Allocate a larger filename buffer when necessary while reading fonts from registry
2020-02-08 15:41:03 -05:00
Thomas Goyne
6f546951b4
Use appropriate DPI images in more places on macOS
2019-10-06 12:46:06 -07:00
Thomas Goyne
85f711fccc
Adjust the index of the drag subtool button for the addition of the separator
2019-09-28 18:13:44 -07:00
Thomas Goyne
5da48d0f30
Don't call Realize() before setting the toolbar
2019-09-28 18:13:44 -07:00
wangqr
e1a8ab1c10
fix: infinite recursion when loading video
...
In 888be0607f
some changes have been made to video_display.cpp which causes infinite recursion: the video display enables video/tool/cross tool when running VideoDisplay::Render() for the first time.
But when setting up the tool, the video box size is changed, which calls VideoDisplay::Render() again. So we need to set the tool BEFORE it modifies the box by "AddSeparator".
Fix wangqr/Aegisub#21
Co-authored-by: Charlie Jiang <cqjjjzr@126.com>
2019-09-28 21:13:01 -04:00
wangqr
6d4dd60ce8
Handle video flip and rotate metadata in ffms2
...
Fix Aegisub/Aegisub#149
2019-09-22 17:41:05 -07:00
wangqr
336745cdb2
In Properties dialog, create the button first
...
So the foucus goes to the OK button on init. This will let wxWidgets correctly handle the initial position of text in wxTextCtrl
Fix wangqr/Aegisub#6
2019-09-22 17:41:02 -07:00
wangqr
896011f535
Search user fonts in GDI font lister
...
Windows now allow user install fonts without admin. List HKCU for those fonts.
https://blogs.windows.com/windowsexperience/2018/06/27/announcing-windows-10-insider-preview-build-17704/
2019-09-22 17:41:02 -07:00
davste0816
72d0457bc8
Fix Move Down button in Export dialog
2019-09-22 17:41:02 -07:00
davste0816
073c06d812
Add .webm to extension list, add .eac3 as an audio format
...
Co-Authored-By: FichteFoll <fichtefoll2@googlemail.com>
2019-09-22 17:41:02 -07:00
davste0816
06798f2caf
Recognize .opus as an audio format, .h264 .hevc as video formats
2019-09-22 17:41:02 -07:00
wangqr
b3f0cb8953
Don't internally reset the selection after collected fonts
...
This creates an inconsistency between UI and internal mode.
Fix wangqr/Aegisub#10
2019-09-22 17:41:02 -07:00
wangqr
9ed381f498
Remove extra semicolon
2019-09-22 17:41:02 -07:00
wangqr
b429645006
visualSubToolBar now use same style as other toolbars
...
Previously visualSubToolBar has boarder while visualToolBar does not. So the width of the toolbar will change when toggling visualSubToolBar.
Now we remove the boarder so they have the same width. A separator is added at the top of visualToolBar instead to provide visual cue.
Fix wangqr/Aegisub#11
2019-09-22 17:41:02 -07:00
wangqr
0a2a07ba7e
Use absolute distance when scrolling audio box with mouse wheel
...
Instead of 1/3 screen per tick. So the distance of scroll no longer depends on the width of the audio box. Besides, 1/3 is feels to far for me when the audio box is wide.
See wangqr/Aegisub#5
2019-09-22 17:41:02 -07:00
wangqr
716c2eae0d
Remove the usage of dummy wxTimerEvent
2019-09-22 17:40:47 -07:00
wangqr
d7139c40c0
Remove call to wxSizer::CalcMin and wxSizer::RecalcSizes
...
As they are used internally by Layout and should not be called
directly.
2019-09-22 17:39:43 -07:00
wangqr
73ca9ace1c
Change the default fontsize and the list of resolutions
...
The default fontsize is changed to 48. While it still looks small
on the default 720p video, it is actually bigger than
20 / 480 * 720 = 30
Here 720p is the default video resolution after 837d5a41d7
. Some
common resolutions are also added to the preset list.
Fix wangqr/Aegisub#3
2019-09-22 17:39:43 -07:00
wangqr
38046516b3
Fix FFT first sample location
...
Fix wangqr/Aegisub#1
2019-09-22 17:39:43 -07:00
Ryan Lucia
293673fef1
Divorce stored TPP lead-in/out values from config
...
There's no real reason to link these as far as I can tell, and plenty of
valid reasons not to
2019-09-22 17:39:43 -07:00
Ryan Lucia
af5d34cc1d
Add configuration options for colors in visual typesetting tools
2019-09-22 17:39:43 -07:00
Ryan Lucia
1ce72a6d6e
Update default config to modern standards
2019-09-22 17:39:43 -07:00
Ryan Lucia
ebea3905cc
Use FFMS2 constant in place of magic number
2019-09-22 17:39:43 -07:00
Ryan Lucia
f2ca259a8b
Pass 0 to FFMS_Init
...
The argument is no longer used, and the docs specify to pass a value of 0 to avoid confusion
2019-09-22 17:39:43 -07:00
Ryan Lucia
04a193de4d
Point users at a functional bug tracker
2019-09-22 17:39:43 -07:00
Ryan Lucia
63d267d359
Fix line order when splitting after current frame
2019-09-22 17:39:43 -07:00
Ryan Lucia
b2dd50e910
Use proper event for DoubleUpdater
...
Previously changes weren't recognized because the event bound was for integers
2019-09-22 17:39:43 -07:00
Ryan Lucia
66a3748f97
Remove dead forums link
2019-09-22 17:39:43 -07:00
Ryan Lucia
bc649b6063
Make translation assistant skipping whitespace an explicit setting
2019-09-22 17:39:43 -07:00
Ryan Lucia
30286e7035
Remove Force BT.601 option and update color matrix guessing
2019-09-22 17:39:43 -07:00
Ryan Lucia
d660f7f2b0
Add support for setting status bar text from Lua
2019-09-22 17:39:43 -07:00
wangqr
d0c05fbcde
Update about dialog
2019-09-22 17:39:43 -07:00
wangqr
17215edc31
Fix build warnings
2019-09-22 17:39:43 -07:00
wangqr
5d4973a5f6
Fix millisecond to centisecond convertion
...
Fix Aegisub/Aegisub#94
2019-09-22 17:12:05 -07:00
wangqr
d89c1ce900
Change some text box size to make it looks better on HiDPI
2019-09-22 17:12:05 -07:00
scx
547b17fc22
Fix crashing when picking language
...
Aegisub crashes immediately after selecting any language
from the end of the list (above the 100th position).
This is because it can support no more than 100 languages.
This patch extends this limit up to 1000 languages (locales).
Fixes #131
2019-09-22 19:34:23 -04:00
scx
c3c446a8d6
Fixes for Boost 1.69.0
2019-09-22 19:33:36 -04:00
darealshinji
7094bd1e20
Add configure option to enable portable builds on Linux
2019-09-22 19:26:50 -04:00
scx
67d9fd9aa4
DataBlockCache: Fix crash in cache invalidation ( #142 )
...
The original version uses a reverse iterator,
whose .base() is invalid after KillMacroBlock() erases it.
2019-09-22 19:19:56 -04:00
scx
cb0af6ca35
Fix crash on right click due to no spell checker
...
See: #131
2019-09-22 19:17:39 -04:00
Ryan Lucia
d9bd7def0b
Fix autotools lua detection
2019-09-08 18:36:58 -04:00
Ryan Lucia
5005d6d2a2
Set visual tool default feature color correctly
...
Fixes #50
2019-05-16 18:10:43 -04:00
Ryan Lucia
fb02d6855c
Fix compilation on Mojave
2019-05-16 17:41:18 -04:00
davste0816
c2085d139c
Fix Move Down button in Export dialog
2019-05-12 11:56:13 -04:00
davste0816
b107077b20
Add .webm to extension list, add .eac3 as an audio format
...
Co-Authored-By: FichteFoll <fichtefoll2@googlemail.com>
2019-05-12 11:55:48 -04:00
davste0816
0e6b492735
Recognize .opus as an audio format, .h264 .hevc as video formats
2019-05-12 11:55:48 -04:00
Martin Herkt
a78f5d2760
DataBlockCache: Fix crash in cache invalidation
...
Fixes #33
2019-05-03 20:51:23 -04:00
FichteFoll
75fc5f38d7
Adjust boost gil header paths for boost 1.69
...
boost/gil.hpp was added in 1.68 and boost/gil/gil_all.hpp removed in
1.69.
2019-01-31 19:47:00 -05:00
Ryan Lucia
3ba7358bfe
Use FFMS2 constant in place of magic number
2019-01-07 21:48:50 -05:00
Ryan Lucia
a1ec3767e4
Remove compatibility with old versions of FFMS2
...
2.22 was released oct 2015, so I think a more recent version is a fairly safe assumption
2019-01-07 21:48:50 -05:00
Ryan Lucia
ad52260665
Ensure FFMS always indexes video tracks
...
Matching historical behavior with DoIndexing, which is assumed throughout the codebase
2019-01-07 21:48:50 -05:00
Ryan Lucia
9638bfbef4
Update ffmpeg and ffms2
2019-01-07 21:48:49 -05:00
Thomas Goyne
ebc76c8a11
Update ffmpeg and ffms2
2018-11-23 09:22:18 -08:00
Ryan Lucia
26ccf0b8e5
Divorce stored TPP lead-in/out values from config
...
There's no real reason to link these as far as I can tell, and plenty of
valid reasons not to
2018-11-17 19:27:25 -05:00
Ryan Lucia
08ebcf4693
Remove assdraw from default toolbar
2018-11-17 17:54:17 -05:00
Ryan Lucia
a9eba14df5
Remove assdraw and forums from default menu
...
Reflects changes previously made to remove those elements from Aegisub
2018-11-17 15:57:48 -05:00
Jan Beich
d8336d2fed
Keep using std::distance after Boost 1.68
...
src/search_replace_engine.cpp:256:14: error: call to
'distance' is ambiguous
count += distance(
^~~~~~~~
/usr/include/c++/v1/iterator:511:1: note: candidate function [with _InputIter =
boost::u32regex_iterator<std::__1::__wrap_iter<const char *> >]
distance(_InputIter __first, _InputIter __last)
^
/usr/local/include/boost/iterator/distance.hpp:49:9: note: candidate function [with SinglePassIterator =
boost::u32regex_iterator<std::__1::__wrap_iter<const char *> >]
distance(SinglePassIterator first, SinglePassIterator last)
^
2018-07-09 20:17:59 +00:00
Ryan Lucia
fe0dd3e095
Merge remote-tracking branch 'upstream/master' into tstools
2018-05-31 04:26:15 -04:00
Ryan Lucia
d4e99700d4
Remove ambiguity over distance function call
2018-05-31 04:22:43 -04:00
Marcin Kurczewski
a4bde47c5c
Fix MRU menus ( #48 )
...
Broken in 9bbfdddde0
. I don't understand
why the author made such a change, so I left their solution with #ifdef
guard.
2018-05-28 21:24:23 +02:00
Thomas Goyne
4fdc5efb69
Explicitly declare DataBlockCache as moveable to make vs17 happy
2018-05-25 22:32:27 +02:00
Ryan Lucia
a621072e7d
Add support for WWXD keyframes in qpfile format
2018-05-10 03:28:51 -04:00
Ryan Lucia
747525142a
Pass 0 to FFMS_Init
...
The argument is no longer used, and the docs specify to pass a value of 0 to avoid confusion
2018-05-07 19:24:47 -04:00
Ryan Lucia
3eaa56fc18
Point users at a functional bug tracker
2018-05-07 18:09:42 -04:00
Ryan Lucia
e516ab6e32
Fix line order when splitting after current frame
2018-05-07 18:09:42 -04:00
Ryan Lucia
4d048e3c90
Add configuration options for colors in visual typesetting tools
2018-05-07 18:09:40 -04:00
Ryan Lucia
50a18c7942
Use proper event for DoubleUpdater
...
Previously changes weren't recognized because the event bound was for integers
2018-04-30 02:38:14 -04:00
Ryan Lucia
dbd7dd8ba1
Remove shitty joke
...
The default message here is an old joke in extremely poor taste, and best replaced in the config
2018-04-30 02:38:14 -04:00
Ryan Lucia
2f500cd480
Remove dead forums link
2018-04-30 02:38:14 -04:00
Ryan Lucia
95d96f938b
Make translation assistant skipping whitespace an explicit setting
2018-04-30 02:38:14 -04:00
Ryan Lucia
3bcc7269be
Remove Force BT.601 option and update color matrix guessing
2018-04-30 02:38:14 -04:00
Ryan Lucia
10814a7d0b
Add support for setting status bar text from Lua
2018-04-30 02:38:11 -04:00
Ryan Lucia
8cc3a35dd4
Update default config to modern standards
2018-04-29 16:36:21 -04:00
sidneys
d4461f65be
fix(updated-macos-build): prefix icu method calls (icu::BreakIterator, icu::Locale, icu::UnicodeString)
2018-03-31 02:58:27 +02:00
therealfun
f6a2ac08a6
Makefiles: replace the use of subst macro with patsubst ( #56 )
...
$(subst .c,.o,...) replaces '.c' with '.o' everywhere in pathnames. For
example, renaming the "Aegisub" folder to "Aegisub.cool" will make the
build system generate "Aegisub.oool/.../.o" objects.
https://www.gnu.org/software/make/manual/make.html#Text-Functions
2018-03-05 09:28:29 -08:00
rr-
4791222ab3
Add support for reading waveform selection in LUA
2018-03-03 12:51:49 -08:00
rr-
21f704f138
Fix joining as karaoke
2018-03-03 12:50:01 -08:00
Rodger Combs
61028916c8
main: fix warning
2018-01-27 11:35:18 -08:00
Rodger Combs
16d57dac79
OpenAL: destroy context when not in use
...
This prevents the CoreAudio thread from spinning when paused on macOS
2018-01-27 11:34:58 -08:00
Rodger Combs
5a3b7301c6
find/replace: handle enter key in input fields
2018-01-27 11:34:24 -08:00
Rodger Combs
a88835e253
find/replace: bring window to front when activated
2018-01-27 11:34:05 -08:00
Thomas Goyne
3bc5e8f04f
Remove pointless explicit heights for the audio sliders
...
The containing sizer overrides them instantly, but for whatever reason
supplying them breaks things on macOS.
2017-07-07 16:46:52 -07:00
Thomas Goyne
70edb03b2a
Fix some audio display rendering quirks on retina OS X
2017-07-04 10:51:08 -07:00
Martin Herkt
8d3ad9ff68
dialog_about: only include build date with credit ( #45 )
...
The build date is largely irrelevant and prevents reproducible builds.
Make it optional.
2017-05-22 07:43:30 -07:00
Maxime Gauduin
dd67db47cb
Fix compilation against icu 59.1 ( #46 )
2017-05-08 19:01:47 -07:00
Martin Herkt
3594ade719
build: sort wildcard results for repeatable builds ( #44 )
2017-03-30 10:08:30 -07:00
Ryan Lucia
3e2c165852
Properly set colorspace when loading video
...
FFMS2 originally would automatically attempt to guess the color space
if not manually specified, but this was removed in
7c2e08109d
and Aegisub never adapted to the change
2017-03-25 12:13:10 -07:00
Niels Martin Hansen
b118fe7e7a
Fix STL header writing (really)
...
The vsnprintf call must be passed the buffer size, not the target string size. Shortening the string to field length happens in the memcpy.
2016-05-18 21:56:34 +02:00
Thomas Goyne
0e8bc44539
Work around more places where VC++ generates null pointers-to-members
2016-04-09 08:36:50 -07:00
Thomas Goyne
101cd8e1e5
Fix compilation with old versions of ffms2
2016-04-08 13:29:32 -07:00
Thomas Goyne
7a6da26be6
Fix compilation on X11-using platforms
2016-04-08 12:14:28 -07:00
Thomas Goyne
dba8f1c062
Use Uniscribe to check glyph coverage of non-BMP characters rather than just skipping them
2016-04-08 11:24:26 -07:00
Thomas Goyne
15adac519d
Update to the new indicator API for Scintilla as 3.4 dropped the old one
2016-04-08 11:24:25 -07:00
Thomas Goyne
1aa9215e7f
Use FFMS_DoIndexing2 when using a recent version of ffms2
...
And clean up the audio track selection logic a bit.
2016-04-08 11:24:21 -07:00
Thomas Goyne
95f3f30d53
Remove pointless braces
2016-04-08 11:24:16 -07:00
Thomas Goyne
b8fa7e010b
Don't init COM for FFMS2
...
FFMS2 no longer uses COM for anything.
2016-04-08 11:24:14 -07:00
Thomas Goyne
8823476275
Work around bad codegen from VC++2015 update 2
2016-04-08 11:24:11 -07:00
Thomas Goyne
2720d8c0dc
Fix OS X compilation
2016-03-18 19:42:32 -07:00
Thomas Goyne
9bbfdddde0
Add the standard OS X "Window" menu
2016-03-13 16:33:53 -07:00
Thomas Goyne
cac4ba910d
Fix more incorrect sizer flags
2016-03-13 16:33:53 -07:00
Thomas Goyne
26fea0e123
Fix skipping over existing spaces when exporting to EBU STL
...
ac5f40a543
made it so that the N in \N was
skipped, but broke the space case, resulting in two spaces between each
word.
Closes #1887 .
2016-03-05 16:35:01 -08:00
Thomas Goyne
b2687e893b
Fix member variable initialization order
2016-03-05 16:35:01 -08:00
Thomas Goyne
4c15d0ba84
Add support for running respack.lua with system Lua
2016-03-05 10:51:26 -08:00
Thomas Goyne
0ed6dd46fb
Add support for using system LuaJIT rather than the bundled copy
...
Closes #1904 .
2016-03-05 10:51:16 -08:00
Thomas Goyne
45315476bd
Switch to a maintained fork of universalchardet
2016-02-09 20:29:29 -08:00
Thomas Goyne
a315ce6903
Fix assert failure when opening with no args
2016-02-08 06:59:49 -08:00
Thomas Goyne
28eb475fc2
Actually use the list of filenames in AegisubApp::OpenFiles()
2016-01-10 19:47:26 -08:00
Thomas Goyne
bb3e0de728
Handle i/o errors when indexing fonts for GDI
2016-01-10 19:47:25 -08:00
Thomas Goyne
3c381b6c55
Handle fonts that are marked as bold but have the same weight as the normal variant
2016-01-02 15:42:26 -08:00
Thomas Goyne
761a121452
Fix the weight of fonts that use 1-10
2016-01-02 15:42:26 -08:00
Thomas Goyne
596332763b
Use the Windows Family Name for family name matching
2016-01-02 15:42:26 -08:00
Thomas Goyne
e13a39f302
Try to better match GDI's weight penalty
2016-01-02 15:42:26 -08:00
Thomas Goyne
b9a56cb870
Prioritize family name matches over postscript name matches
2016-01-02 15:42:25 -08:00
Thomas Goyne
278b7621cf
Assume that fonts which CT won't give the OS/2 table for are Regular
2016-01-02 15:42:25 -08:00
Thomas Goyne
f2b3b69b3f
Read the weight from the OS/2 table rather than asking CoreText
...
The weights reported by CT are only occasionally correlated with the
OS/2 weights, and GDI uses the latter.
2016-01-02 15:42:25 -08:00
Thomas Goyne
f824d2c56b
Remove OS X and Windows support from the fontconfig file lister
2016-01-02 15:42:25 -08:00
Thomas Goyne
b1cb16c7f8
Do a better job of picking the best match from CoreText
2016-01-02 15:42:25 -08:00
Thomas Goyne
d152af1f14
Deduplicate matched paths from CoreText
2016-01-02 15:42:25 -08:00
Thomas Goyne
2527204515
Get the filesystem representation of urls rather than an absolute url
2016-01-02 15:42:25 -08:00
Thomas Goyne
63bb585db6
Enable ARC for the coretext font lister
2016-01-02 15:42:24 -08:00
Thomas Goyne
973f0b09fc
Add a basic CoreText-based fonts collector backend
2016-01-02 15:42:24 -08:00
Thomas Goyne
f8c3504898
Remove the OS X fontconfig init logic from the libass provider
2016-01-02 15:42:24 -08:00
Thomas Goyne
9b815ac8cc
Fix a crash when reattaching video
...
The window close event propagates up to the detached window's parent, so
the handler for the parent window closing needs to filter it out.
2016-01-02 13:48:00 -08:00
Thomas Goyne
0b2d0d40d5
Ensure that the fonts collector destination label gets wrapped on OS X
2015-12-29 20:12:52 -08:00
Thomas Goyne
4f34784370
Set the initial control state when the fonts collector dialog is opened correctly
2015-12-29 20:12:32 -08:00
Thomas Goyne
f481a7f5fb
Use the correct upper bound for restoring the font collector modes
2015-12-29 20:12:29 -08:00
Thomas Goyne
e8cdfc57a9
Make FcMode an enum class and simplify the data flow
2015-12-29 20:12:24 -08:00
Thomas Goyne
e5a6abd215
Add a GDI-based font selector for libass
...
This deliberately doesn't perform any font substitutions as the sort of
people that use libass on Windows tend to perfer to manually pick
fonts with the correctly glyphs.
2015-12-29 20:08:07 -08:00
Thomas Goyne
e06385b6d4
Remove unused includes from subtitles_provider_libass.cpp
2015-12-29 20:08:05 -08:00
Thomas Goyne
913b8438f3
Fix Windows x64 compilation
2015-12-29 19:55:58 -08:00
Thomas Goyne
3b13260ca1
Use murmur3 to explicitly hash the font index keys
...
This significantly improves performance by avoiding the need to
construct std::strings of the things to be hashed, eliminating a bunch
of memory allocations and copies.
2015-12-29 12:38:01 -08:00
Thomas Goyne
879661a379
Only index the first kilobyte of font files to speed up indexing
2015-12-29 12:38:00 -08:00
Thomas Goyne
82f250dbbb
Fix the checks for fake bold/italic
...
EnumFontFamiliesEx doesn't actually use the lfItalic andlfWeight fields,
so we have to check separately.
2015-12-29 12:38:00 -08:00
Thomas Goyne
ddc5cd155f
Add a GDI-based fonts collector backend
2015-12-29 12:38:00 -08:00
Thomas Goyne
afed3dca21
Fix compilation on Linux
2015-12-21 19:57:49 -08:00
Thomas Goyne
3747705a43
Select the OpenGL context when destroying VideoDisplay
...
This is needed to destroy the correct things when there are multiple
active opengl displays.
2015-12-21 17:46:38 -08:00
Thomas Goyne
c8d02de3db
Allow coalescing undo over autosaves
2015-12-21 17:46:38 -08:00
Thomas Goyne
52dbb482af
Make next_commit_id a member variable rather than a static
...
Multiple instances of SubsController should not share it.
2015-12-21 17:46:38 -08:00
Thomas Goyne
2032ab8ea3
Handle multiple simultaneous OpenAL audio players in one process
2015-12-21 17:46:38 -08:00
Thomas Goyne
75804da4ea
Set the closed marker even on 64-bit OS X
2015-12-21 17:46:38 -08:00
Thomas Goyne
5f89a64f07
Adjust the menu text on OS X to better match the HIG
2015-12-21 17:46:38 -08:00
Thomas Goyne
f28e46c2e3
Add a Close command to the file menu on OS X
2015-12-21 17:46:37 -08:00
Thomas Goyne
ead12de8b6
Actually close all windows on quit
2015-12-21 17:18:07 -08:00
Thomas Goyne
84b0f1e043
Mostly adopt the standard OS X document-based UI model on OS X
2015-12-21 17:18:04 -08:00
Thomas Goyne
0f17784548
Actually open a new window in the New Window command
2015-12-21 17:17:54 -08:00
Thomas Goyne
8de8724660
Support creating multiple main windows
...
This is not yet actually exposed in any way in the UI.
2015-12-21 17:17:51 -08:00
Thomas Goyne
f5f5439808
Add context-specific path tokens
...
?video, ?audio, and ?script are not global.
2015-12-21 17:17:48 -08:00
Thomas Goyne
932937c343
Shut up a missing override warning
2015-12-21 17:17:46 -08:00
Thomas Goyne
e757618b32
Use an explicit operator bool for Vector2D
2015-12-21 17:17:42 -08:00
Thomas Goyne
d253388c8e
Perform autosaves on a background thread rather than blocking the UI
2015-12-21 17:17:33 -08:00
Thomas Goyne
f811f7e363
Select the "Time" radio on startup
2015-11-29 20:11:14 -08:00
Thomas Goyne
1d00bd834d
Fix typo that made the color picker's cursor appear in the wrong place in RGB modes
2015-11-29 20:11:14 -08:00
Thomas Goyne
9112cc8cf9
Fix some invalid sizer flags
2015-11-29 20:11:14 -08:00
Thomas Goyne
4542204b3a
Fix undefined behavior in DataBlockCache::SetBlockCount()
...
Left-shifting negative signed numbers is UB (and pointlessly complex
here anyway).
2015-11-29 20:11:14 -08:00
Thomas Goyne
652a250189
Add an error message for when creating the Lua state fails
2015-11-29 20:11:14 -08:00
Thomas Goyne
f7661dbd78
Explicitly default AssAttachment's copy constructor
2015-11-29 20:11:14 -08:00
Thomas Goyne
85a820918f
Fix a crash when opening a new file when the grid is not scrolled to the top
2015-09-13 18:49:46 +02:00
Thomas Goyne
4366e59353
Update to Visual Studio 2015
2015-07-30 19:20:10 -07:00
Thomas Goyne
017bbe1e59
Delay showing the font indexing dialog for 250ms
...
Helps avoid ugly flickering when no indexing is required, but fontconfig
is taking a long time to load the cache.
2015-07-28 20:46:02 -07:00
Thomas Goyne
9ae508730d
Remove some incorrect and ignored sizer flags
2015-07-28 20:46:02 -07:00
Thomas Goyne
d5dde6cff2
Reduce error-handling bloat a bit
2015-07-28 16:22:48 -07:00
Thomas Goyne
fefa31eb47
Improve code coverage of tests
2015-07-28 14:30:03 -07:00
Thomas Goyne
09b2736103
Mark a bunch of things as overriding virtual functions
2015-07-28 14:30:02 -07:00
Thomas Goyne
74ac2ab1fe
Extract some more find/replace logic to libaegisub
2015-07-27 10:29:22 -07:00
Thomas Goyne
97bf5c77c3
Explicitly allow unicode text when pasting
2015-05-31 11:49:29 -07:00
Thomas Goyne
42429d4930
Remove incorrect sizer flags
2015-05-31 11:49:29 -07:00
Thomas Goyne
ba9f5a78d4
Include the stack trace for errors in automation validation functions
2015-05-09 13:58:32 -07:00
Thomas Goyne
ff874fadf9
Reduce nesting
2015-05-09 13:58:23 -07:00
Thomas Goyne
a5c87908e1
Set the new active line correctly after splitting by karaoke
2015-05-09 13:58:15 -07:00
Thomas Goyne
0ccac34cb0
Fix crash when splitting lines by karaoke
...
Defer the deletion of the old lines until after the commit as is now
done for everything that deletes selected lines.
2015-05-09 13:58:12 -07:00
Thomas Goyne
d2958e6aca
Set the Row for dialogue lines added to keep the file non-empty
2015-05-09 11:28:18 -07:00
Thomas Goyne
40ae2cdc35
Fix snapping audio markers when dragging inactive line markers with ctrl
...
We do need to check if the inactive markers are in the active set when
ctrl-dragging, as otherwise there'll always be a marker 0 pixels away to
snap to. Fortunately when ctrl-dragging all of the the markers involved
are by definition very close together, so it would be very difficult to
have enough markers to check for this to be a performance issue.
Closes #1823 .
2015-03-01 11:13:43 -08:00
Thomas Goyne
801a8915d1
Use the untranslated context name for new hotkeys
...
Closes #1855 .
2015-02-28 14:39:06 -08:00
Thomas Goyne
d6982426c6
Merge pull request #26 from tophf/rot-angle-fix
...
Style editor: accept -360..360deg range
2015-02-28 14:28:44 -08:00
9adefaf01e5bf6426d838cd20eae582d2b6ba647
af9fe934c7
Pass all font attachments to font renderer
...
See #1805 .
2015-02-27 01:16:35 +03:00
9adefaf01e5bf6426d838cd20eae582d2b6ba647
4f9713cb20
Style editor: accept -360..360deg range
...
People tend to use 270deg not knowing|remembering it's equal to -90deg
2015-02-26 22:40:21 +03:00
Thomas Goyne
5cedf16edd
Use the custom lua error handler during macro load
2015-02-15 08:19:23 -08:00
Thomas Goyne
879788fe83
Eliminate some gratuitous exceptions
2015-02-15 08:19:10 -08:00
Thomas Goyne
0416188235
Eliminate a pointless menu refresh when opening subtitle files
2015-02-15 08:19:05 -08:00
Thomas Goyne
acb9b8adac
Reinitialize libass every time the font is changed in the style editor
...
libass doesn't free any font data it requests until the ass_renderer is
destroyed, so recreate it every time the font is changed to avoid
holding on to extremely large amounts of data when the user quickly
switches between fonts.
Closes #1320 .
2015-02-08 09:13:53 -08:00
Thomas Goyne
9f196adc2e
Replace boost::tokenizer with agi::Split
2015-02-08 08:11:22 -08:00
Thomas Goyne
5d8aeb8b40
Replace most remaining uses of boost::split with agi::Split
2015-02-08 08:11:14 -08:00
Thomas Goyne
2269dbcfe0
Reuse previously calculated string widths
2015-02-07 14:56:48 -08:00
Thomas Goyne
427037a552
Reimplement boost::split_iterator to make it less slow
...
boost::split_iterator type-erases the predicate, which makes it require
a virtual call per character (!) along with a heap allocation. As it
turns out we only ever need one predicate (comparing to a single
character), so replace it with a split_iterator that just does that.
2015-02-07 14:56:27 -08:00
Thomas Goyne
d8bd9904d8
Avoid running the extradata parsing regex unnecessarily
2015-02-07 14:56:20 -08:00
Thomas Goyne
bddf44ddde
Eliminate a bunch of memory allocations when getting column widths
2015-02-01 20:09:40 -08:00
Thomas Goyne
8c1b20e651
Speed up grid painting with many unique effects/actors a bit
2015-02-01 20:09:35 -08:00
Thomas Goyne
79fb5cb3fe
Fix crash when deleting the last dialogue line from automation
2015-01-26 19:22:59 -08:00
Thomas Goyne
7300a1bf2d
Remove some redundant .get()s
2015-01-26 19:22:59 -08:00
Niels Martin Hansen
def24c25b3
Fix EBU STL writing on non-MSVC runtimes
...
MSVC 2013 and earlier have the _snprintf() function fill fields
completely, eliding the NUL character, if the printed string is
as long as or longer than the given buffer size. This is not the
case in POSIX snprintf(), it always ensures the string is terminated.
This causes several fields in GSI to become truncated and contain
NUL characters which should not appear there.
2015-01-26 19:19:42 +01:00
Niels Martin Hansen
d0296618a6
Sort Automation menu items by display name
2015-01-25 00:35:42 +01:00
Niels Martin Hansen
88d8573d4c
Fix crash when loading a dialogue line missing extradata
2015-01-20 21:22:24 +01:00
Niels Martin Hansen
ebb3811942
Fix #1843
2015-01-14 00:46:02 +01:00
Niels Martin Hansen
b4516e4754
Fix #1844 , eliminate pointers so typeid behaves
...
Only the bare type is considered polymorphic/habving a vtable
so therefore applying typeid to a pointer type doesn't behave
as intended.
2015-01-14 00:35:26 +01:00
Niels Martin Hansen
f0a5abad01
AssKaraoke can safely take a const AssDialogue*
2015-01-14 00:21:25 +01:00
Niels Martin Hansen
e9f0999c01
Include seconds in log timestamps on Windows
2015-01-14 00:21:23 +01:00
Thomas Goyne
57edbafdda
Replace uses of wxThreadEvent with a statically typed event
2015-01-01 10:24:01 -08:00
Thomas Goyne
ef4424f5e2
Eliminate implicit std::string <-> wxString conversions
...
On Windows these don't use UTF-8 and so are broken.
2015-01-01 10:24:00 -08:00
Thomas Goyne
26050bd4e0
Actually use CPPFLAGS_BOOST when building src/aegisub
2015-01-01 10:24:00 -08:00
Thomas Goyne
3c59ea9a0a
Remove AegisubApp::HandleEvent
...
OnExceptionInMainLoop covers the same functionality.
2015-01-01 10:24:00 -08:00
Thomas Goyne
2a33b35f60
Give Pen an out-of-line destructor
2015-01-01 10:24:00 -08:00
Thomas Goyne
ab35c41a93
Move AudioDisplayInteractionObject to audio_display.cpp
2015-01-01 10:24:00 -08:00
Thomas Goyne
4502a9893d
Make some virtual destructors protected instead
2015-01-01 10:23:59 -08:00
Thomas Goyne
b6edf58651
Eliminate some object file bloat
2015-01-01 10:23:59 -08:00
Thomas Goyne
1d82a75595
Add a missing static
2015-01-01 10:23:59 -08:00
Thomas Goyne
62186e916a
Anchor AssAttachment's vtable
2015-01-01 10:23:59 -08:00
Thomas Goyne
0e1c566628
Move tool_translation_assistant_insert into the anonymous namespace
2014-12-28 20:31:48 -08:00
Thomas Goyne
a7042486c0
Anchor AssStyle's vtable
2014-12-28 20:31:33 -08:00
Thomas Goyne
625bd7a767
Avoid having to include preferences.h in app.cpp
2014-12-28 20:28:33 -08:00
Thomas Goyne
0f324a22f1
Fix a pile of places where abs() was used on floats
2014-12-28 19:30:32 -08:00
Thomas Goyne
a6b1639320
Extract some bits that don't need to be templated from templates
...
Cuts compile time by about 10% and shrinks the final binary a little.
2014-12-28 16:46:38 -08:00
Thomas Goyne
372b9fe115
Eliminate a pointless set that only ever had zero or one entries
2014-12-28 16:46:37 -08:00
Thomas Goyne
5201773a3b
Slightly optimize returning strings to lua from ffi functions
2014-12-28 16:46:37 -08:00
Thomas Goyne
010f6c4f79
Debloatify some stuff
2014-12-28 12:30:01 -08:00
Thomas Goyne
76afcdafa1
Eliminate uses of dynamic_cast on everything but GUI widgets
2014-12-28 12:29:54 -08:00
Thomas Goyne
c313f32384
Special-case all lines being selected in validate_adjoinable
...
GetSortedSelection is kinda slow with large selections and all lines
being selected is an easy thing to special-case.
2014-12-24 16:59:11 -08:00
Thomas Goyne
84bd682e2e
Make it harder for automation script to leave no lines selected
2014-12-24 16:12:21 -08:00
Thomas Goyne
1fd44ea8da
Add subtitles.script_resolution()
...
Returns the values from the headers if they're present, or does the
insane Gabest-logic if one or both are missing.
2014-12-24 15:10:12 -08:00
Thomas Goyne
c43bf1e822
Limit the range to be painted in the audio display to what is visible
2014-12-21 11:31:21 -08:00
Thomas Goyne
71ee37cd71
Slather around more const
2014-12-21 11:31:17 -08:00
Khaled Hosny
d4057418da
Fix build with latest Visual Studio
...
This fiixes:
error C2797: list initialization inside member initializer list or
non-static data member initializer is not implemented
http://msdn.microsoft.com/en-us/library/dn793970.aspx
2014-11-23 15:30:27 +02:00
Thomas Goyne
a9208a592b
Update the selection and scroll position after opening subtitles from video
2014-11-22 13:27:06 -08:00
Thomas Goyne
1a4634003f
Fix crash on a certain kind of malformed shift times history file
2014-11-22 13:21:58 -08:00
Martin Herkt
cf55299017
Fix crash in block cache aging
...
Bug introduced in e2a11f2d90
2014-11-12 06:21:53 +01:00
Derek Buitenhuis
c871aaf153
srt: Factor out last goto
...
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2014-11-05 13:56:53 +00:00
Thomas Goyne
3d228536f5
Only update the YCbCr Matrix when resampling if it was actually changed
2014-10-12 15:45:13 -07:00
Thomas Goyne
ed03cd9735
Fix compilation without fftw3
2014-10-12 15:23:58 -07:00
Thomas Goyne
c41e97cec1
Skip the [Aegisub Project Garbage] and [Aegisub Extradata] sections when exporting to ASS
2014-09-20 11:52:44 -07:00
Thomas Goyne
9e6d5d7d9c
Optimize Extradata handling a bit
2014-09-06 09:47:29 -07:00
Thomas Goyne
8567d9a573
Use more make_unqiue
2014-08-31 08:11:12 -07:00
Thomas Goyne
9ebb8d7df1
Silence a warning
2014-08-31 08:11:12 -07:00
Thomas Goyne
e4368d59e4
Fix loading subtitles extradata from matroska files
2014-08-30 08:11:39 -07:00
Thomas Goyne
54a7d43cf1
Use EnumFontFamiliesEx to try to find the correct match when fontconfig gives several options
...
Fixes collection of ITC Cheltenham, ITC Tiffany, Zurich, Delicious,
Jacoby, Segoe WP, Agilita LT, and a bunch of dumb improperly modified
fonts I have lying around.
Closes #1806 .
2014-08-24 16:53:59 -07:00
Thomas Goyne
580386b229
Use FcFontSetSort rather than FcFontSetMatch
...
For whatever reason FcFontSetMatch sometimes returns something other
than the first result of FcFontSetSort, and every time they different
either FcFontSetMatch is wrong or they're both wrong.
Fixes collection of Adobe Jenson Pro and Arno Pro.
2014-08-24 16:53:54 -07:00
torque
3c12fc69f3
Perform extradata deduplication on add.
...
Checks all existing extradata keys and values to ensure that the set
that is being added doesn't already exist.
2014-08-24 12:06:22 -07:00
Thomas Goyne
d7fe7e3580
Make SubsController ensure files are non-empty on commit
...
There have been a bunch of recurring problems with things not handling
zero dialogue lines or zero styles very well, so add one to the file on
commit if needed.
Closes #1814 .
2014-08-24 08:02:43 -07:00
Thomas Goyne
9ec4059096
Handle json parsing errors when loading shift times history
...
Closes #1802 .
2014-08-24 07:42:57 -07:00
Thomas Goyne
6159f1587d
Update wx
...
Removes the need for the RTL hacks in BaseGrid as the bugs have been
fixed properly in wx.
2014-08-23 15:56:32 -07:00
Thomas Goyne
20470ea682
Actually register the SSA subtitle format
2014-08-10 06:52:58 -07:00
Thomas Goyne
5b47758539
Convert the clipboard module to the ffi
2014-07-28 15:52:37 -07:00
Thomas Goyne
77ecff1cba
Eliminate a pointless multimap in the cache cleaner
2014-07-28 12:09:48 -07:00
Thomas Goyne
51b92390b6
Fix a bunch of float <-> double conversion warnings
2014-07-28 12:09:48 -07:00
Thomas Goyne
ec407bbd7f
Don't use std::min/max in mid()
...
VC++'s optimizer completely falls down on it for whatever reason.
2014-07-28 12:09:48 -07:00
Thomas Goyne
24b8db522a
Remove unused things in block_cache.h
2014-07-28 12:09:47 -07:00
Thomas Goyne
e2a11f2d90
Speed up aging the block cache
...
Keep track of the total size rather than recalculating it every time as
calculating the size actually takes while.
2014-07-28 12:09:47 -07:00
Thomas Goyne
641f1e2e81
Simplify AudioSpectrumCacheBlockFactory a little
2014-07-28 12:09:47 -07:00
Thomas Goyne
7a3110015e
Change AudioDisplay::style_ranges to a vector
...
This is faster in all cases except for repainting a very small part of
the display with a very large number of range transitions and simplifies
the code a bit.
2014-07-28 12:09:47 -07:00
Thomas Goyne
c9e4cea8ad
Fix handling for automation debug formatting errors
...
One spot was missed when converting stuff over to using error_Tag rather
than lua_error for stack unwinding on errors.
2014-07-26 20:38:56 -07:00
Thomas Goyne
de686bdb6f
Remove the automation thread priority stuff
...
It hasn't actually been used for anything for a while, and if a single
normal-priority thread can make your system unresponsive it's time to
upgrade to an OS that's isn't garbage.
2014-07-23 15:29:55 -07:00
Thomas Goyne
d61a9664c6
Write a BOM at the beginning of subtitles to make unpatched VSFilter happy
...
Closes #1795 .
2014-07-23 15:29:54 -07:00
Thomas Goyne
771525ae6f
Make AssFixStylesFilter usable statically
...
Trivially speeds up ProcFrame as constructing export filters isn't free
due to that it has to look up the translatable strings.
2014-07-14 10:10:22 -07:00
Thomas Goyne
97c59e2630
Fix non-pch compilation
2014-07-14 10:10:22 -07:00
darealshinji
3c772dd649
fix Linux build
2014-07-12 01:31:26 +02:00
Thomas Goyne
a9019421f1
Fix memory leak in aegisub.text_extents on Windows
...
The old object returned by SelectObject has to be made active again
before the DC is destroyed or it doesn't get deleted.
2014-07-11 09:26:59 -07:00
Thomas Goyne
06367d5cd9
Don't convert encoding names to lowercase when writing files
...
Not only is it unnecessary, but it actively breaks the mapping of
user-friendly encoding names in the Export dialog to the real encoding
names.
Closes #1789 .
2014-07-11 09:26:59 -07:00
Thomas Goyne
548fbd814b
Fix a use-after-free when a SubsEditCtrl is destroyed while the thesaurus is loading
2014-07-11 09:26:58 -07:00
Thomas Goyne
4dc38447dc
Check the return value from lua_open()
...
It always fails when running under valgrind because valgrind does not
implement mmap functionality that LuaJIT requires.
2014-07-11 09:26:58 -07:00
Thomas Goyne
bffbae0ed9
Fix vc++ compilation
2014-07-10 12:55:38 -07:00
Thomas Goyne
bf03904fb8
Change the default ffms audio error handling mode to ignore
...
Truncating the file at the first decoding error seems to cause a lot of
confusion, especially since the UI doesn't mention that it happened
anywhere.
2014-07-10 11:44:57 -07:00
Thomas Goyne
2df4c4c194
Use wxDCFontChanger correctly
...
Fixes the audio display timeline font changing based on what else is
being painted.
2014-07-10 11:44:56 -07:00
Thomas Goyne
585e9489d9
Move some of the audio provider machinery to libaegisub
...
And add tests.
2014-07-10 11:44:56 -07:00
Thomas Goyne
e942a7f0f7
Fix int overflow when saving audio clips
2014-07-08 16:38:33 -07:00
Thomas Goyne
e713f741a4
Make some functions static
2014-07-08 16:38:16 -07:00
Thomas Goyne
e60197962a
Fix buffer overflow when getting text extents
...
lfFaceName needs to be null-terminated, so only copy up to 31 characters
into the buffer.
2014-07-08 09:23:19 -07:00
Thomas Goyne
8a5b4ae3a3
Fix keycode mapping for backspace, enter, tab and escape
2014-07-08 09:23:19 -07:00
Thomas Goyne
6c0752035c
Slightly optimize AssDialogue serialization
2014-07-07 08:40:38 -07:00
Thomas Goyne
935c6bc3a7
Store hotkeys in a less dumb format
2014-07-06 19:25:49 -07:00
Thomas Goyne
3b34ed9a77
Move AssTime to libaegisub and add tests
2014-07-06 19:25:49 -07:00
Thomas Goyne
8c7fd37aa9
Clean up the SRT reader/writer a bit
2014-07-06 19:25:49 -07:00
Thomas Goyne
8576c4993f
Fix SRT timestamp parsing
2014-07-06 19:25:48 -07:00
Thomas Goyne
dd70da35d4
Remove some cruft from the fonts collector
2014-07-06 19:25:48 -07:00
Thomas Goyne
e924db1fda
Store open dialogs in an unsorted vector
...
Even if every dialog in the program was open at once, linearly searching
a vector is quite fast enough.
2014-07-06 19:25:48 -07:00
Thomas Goyne
d9016cc8ea
Debloat and slightly speed up the MRU code
2014-07-06 19:25:48 -07:00
Thomas Goyne
518342b919
Make the hotkey code a bit less bloated
2014-07-06 19:25:48 -07:00
Thomas Goyne
df8ad34838
Eliminate pointless runtime datastructures for CalltipProvider
...
And add some tests and make it actually work correctly.
2014-07-04 20:37:36 -07:00
Thomas Goyne
d56868e820
Fiddle with the dependency info for libresrc to hopefully work better
2014-07-02 18:20:11 -07:00
Thomas Goyne
a084f02a2d
Fix a case where the found text would not be selected with find/replace
...
SubsTextEditCtrl::SetTextTo needs to update the selection via the text
selection controller or the text selection controller will have an
outdated cached state until the UpdateUI event is processed, which
soemtimes resulted in it not actually setting the selection when it
needed to be.
2014-07-01 20:16:17 -07:00
Thomas Goyne
abcd2bd61b
Modernize the EBU STL writer a bit
2014-07-01 20:16:17 -07:00
Thomas Goyne
0f42155ca2
Make all of the syntax highlighter colors customizable
...
Closes #1782 .
2014-07-01 12:25:22 -07:00
Thomas Goyne
71b74a6e86
Remove -D__STDC_FORMAT_MACROS from CXXFLAGS
...
The inttypes defines are no longer used anywhere due to that agi::Format
doesn't require them.
2014-07-01 12:22:39 -07:00
Derek Buitenhuis
14f9814bba
srt: Factor out a goto statement
...
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2014-06-30 17:05:30 +01:00
Thomas Goyne
e1d56f9294
Update all selected lines when dragging the origin in the rotate tools
2014-06-29 11:42:55 -07:00
Thomas Goyne
5989226422
Fix crash when loading video from drag&drop is cancelled
2014-06-29 11:42:46 -07:00
Thomas Goyne
a38793497f
Drop support for the DirectX SDK and require the Windows 8 SDK for DirectSound
2014-06-29 10:45:27 -07:00
Thomas Goyne
e53b2dab6b
Eliminate a string copy for @ fonts in the fonts collector
2014-06-29 10:45:27 -07:00
Thomas Goyne
c50d80cf24
Fix enabling/disabling the default script resolution edit boxes in the preferences dialog
2014-06-29 10:45:26 -07:00
Thomas Goyne
4c88449e4c
Make UnknownElement moveable and not copyable
...
And remove the unused comparison functionality.
2014-06-29 10:45:26 -07:00
Thomas Goyne
4c0e578eda
Rewrite the remaining bits of json::Writer
2014-06-29 10:45:26 -07:00
Thomas Goyne
13fe4fe9ff
Actually load the platform config rather than the default config twice
2014-06-28 19:49:39 -07:00
Thomas Goyne
b7a8dea753
Remove a pointless static bool
2014-06-28 19:49:39 -07:00
Thomas Goyne
dab67c6267
Enable the Apply button in the preferences dialog after a color is changed
2014-06-27 11:15:48 -07:00
Thomas Goyne
4accc988b3
Make the main edit box's background color customizable
...
Closes #1042 .
Closes Aegisub/Aegisub#12 .
2014-06-27 11:15:48 -07:00
Thomas Goyne
ce629c2393
Add the help page for the resolution mismatch dialog
2014-06-27 11:15:48 -07:00
Thomas Goyne
6e40f4f920
Don't automatically select all control handle in the vector clip tool
...
This was originally done because there was no easy way to select them
all otherwise, but box selection of handles has been supported for a
while now.
2014-06-26 17:24:54 -07:00
Thomas Goyne
e48e8cef84
Load files dropped on the window asynchronously
2014-06-26 17:24:54 -07:00
Thomas Goyne
03443818f0
Pass UTF-8 paths to hunspell now that it supports them
2014-06-26 16:50:43 -07:00
Thomas Goyne
3c57dda9ac
Update to hunspell 1.3.3
2014-06-26 16:50:43 -07:00
Thomas Goyne
69781f0a88
Enable compression for the 256x256 icon
...
Bumps 200KB off the executable.
2014-06-24 13:14:20 -07:00
Thomas Goyne
6661c6a808
Fix use-after-frees when opening files from the MRU lists
...
Pass the paths to open by value to avoid ending up with a dangling
reference to a path stored in the MRU list which has been invalidated by
adding or removing items.
Closes #1777 .
2014-06-23 16:40:43 -07:00
Thomas Goyne
4ce1283bbb
Fix handling of thesaurus words with only a single suggestion
...
When there's only one suggestion for a given word the part of speech
appears in the suggested replacement, which needs to be stripped.
Closes #1776 .
2014-06-23 16:40:43 -07:00
Thomas Goyne
961e6dab88
Select the last token when double-clicking past the end of the text in the edit box
2014-06-20 10:45:13 -07:00
Thomas Goyne
5f981e40f1
Add dependency on libresrc headers to all of the src objects
2014-06-17 20:48:59 -07:00