Commit graph

2974 commits

Author SHA1 Message Date
Thomas Goyne 2a316e5a55 Make BaseGrid::UpdateMaps far less slow 2014-03-04 20:20:51 -08:00
Thomas Goyne 9a347b0b29 Use splice rather than swaps to pop the undo stack 2014-03-04 13:54:34 -08:00
Thomas Goyne c02bdbcf9e Adjust the appears of the vector clip control handles
Make them significantly smaller to cover less of the video and fiddle
with the appearance to hopefully make them still visible enough.
2014-03-03 20:08:04 -08:00
Thomas Goyne 0f731bcf13 Cut the opacity of the vector clip tool's lines a bit 2014-03-03 19:04:20 -08:00
Thomas Goyne 1dbe7dd5f9 Return a rgba string for coloralpha lua controls 2014-03-02 07:24:06 -08:00
Thomas Goyne 261ceaf969 Pass nullptr for the codepage for ass_read_memory
Passing a codepage makes libass convert to UTF-8 even if it's already
UTF-8.
2014-03-02 07:16:23 -08:00
Thomas Goyne 2c4eaa8d45 Remove no-longer-used header variable in ass parser 2014-03-02 07:16:13 -08:00
Thomas Goyne 3c59903420 Work around an incorrect assertion in older versions of boost. Closes #1702. 2014-02-02 09:14:33 -08:00
Thomas Goyne 51218d5d57 Add resource strings for file associations
These weren't merged from 2.1.9 with the rest of the file association
code, which results in the installer trying to reference nonexistent
resources and things breaking.

Updates #1699.
2014-02-02 08:53:20 -08:00
Thomas Goyne 3d22784998 Make lines_to_delete a vector 2014-02-01 20:57:30 -08:00
Thomas Goyne 2d259bb27e Make deleterange not do totally incorrect things 2014-02-01 20:57:30 -08:00
Thomas Goyne df3957393c Set extendRow even when active_line doesn't change
After shift-clicking on the grid the row to extend from doesn't equal
the active line, and clicking on the current active line to deselect all
other lines need to update the extend row.
2014-02-01 20:57:30 -08:00
Thomas Goyne ab44e51edc Never ask to change the script resolution when opening dummy video 2014-02-01 16:57:13 -08:00
Thomas Goyne 4dd76012cd Move YCbCr Matrix header setting from subtitle save to video open 2014-02-01 16:56:32 -08:00
Thomas Goyne 89e3c45bd6 Use less ugly string formatting when resampling resolution 2014-02-01 08:26:12 -08:00
Thomas Goyne d4fb6f91e6 Resample \be and \blur when resampling resolution 2014-02-01 08:25:52 -08:00
Thomas Goyne b1ffffaa4c Delete unused button bitmaps 2014-01-19 18:35:17 -08:00
Thomas Goyne a7027a6bfa Hide visual tools for commented lines 2014-01-19 18:35:17 -08:00
Thomas Goyne cc829b2322 Build with all icon sizes enabled on Windows. Closes #1692. 2014-01-19 18:35:17 -08:00
Thomas Goyne 2de6a8b600 Fix codecvt errors on OS X
When launching Aegisub from Finder (but not via open), using the UTF-8
version of the locale breaks things for whatever reason, but fortunately
it's unneccesary as paths on OS X are always UTF-8 even if the locale
isn't.

Closes #1685.
2014-01-12 14:59:40 -08:00
Thomas Goyne 1c07f92d02 Don't modify the "YCbCr Matrix" header when dummy video is opened
Color matching to dummy video makes zero sense, and setting it to None
results in breakage when someone opens dummy video for an already
typeset script.

Closes #1690.
2014-01-11 15:47:28 -08:00
Thomas Goyne cf79e521e4 Fix potential crash when a thesaurus finishes loading 2014-01-11 07:48:27 -08:00
Thomas Goyne 5cfb76fe9a Reenable shift-enter in the translation assistant
Newlines in the text are converted to \N, so no reason not to allow it
there.

Closes #1691.
2014-01-11 07:47:19 -08:00
Thomas Goyne af544f05af Fix non-pch compilation 2014-01-11 07:28:38 -08:00
Thomas Goyne c19a1c7641 Delete unused copy-and-shift constructor for TimeRange 2014-01-11 07:28:23 -08:00
Thomas Goyne 3747d436cc Convert Factory to variadic templates 2014-01-06 08:19:39 -08:00
Thomas Goyne f71b380f01 Fix compilation with wx built with --enable-stl
--enable-stl replaces the implicit conversion to char/wchar_t* with one
to std::[w]string. This breaks conversions to boost::filesytem::path and
makes some ternaries ambiguous (which GCC helpfully reports as no
conversion existing rather than an ambiguous conversion).
2014-01-05 10:04:23 -08:00
Thomas Goyne 46315d872f Add a better error message when a hotkey is set for an invalid command 2014-01-03 16:56:18 -08:00
Thomas Goyne 40ddfa8e59 Fix typo in help text 2014-01-03 07:42:12 -08:00
Thomas Goyne dce9dbf211 Silence warnings from other people's code 2014-01-02 16:35:08 -08:00
Thomas Goyne 1cbf20f8ab Work around wxGTK issues with time edits
Modifying the contents of a text control after IM processing happens in
the same cycle of the event loop seems to be seriously broken. Work
around this by disabling IM processing for time edits, as it should
never be relevant for them anyway.

Closes #1679. Closes #1680.
2014-01-02 11:47:15 -08:00
Thomas Goyne 5298634721 Fix infinite loop of error messages when an invalid command is displayed in the hotkey editor 2014-01-01 19:20:50 -08:00
Thomas Goyne 5d38a9c585 Also return full paths from aegisub.dialog.save 2014-01-01 11:46:27 -08:00
Thomas Goyne 418e1cad98 Fix some warnings when compiling with gcc 2014-01-01 10:28:10 -08:00
Thomas Goyne 11581ccd28 Bump copyright years 2014-01-01 07:22:37 -08:00
Thomas Goyne 20b4515c24 Fix potential use-after-frees on redo
Don't delete the old copy of the file until after the new version is
committed to avoid a use-after-free when code tries to do things with
the active line in a COMMIT_NEW handler, as just trying to avoid doing
that hasn't really worked out.
2013-12-29 11:44:22 -08:00
Thomas Goyne 21b9fe1405 Replace the standard Lua include path entirely on Windows
The default Lua include path is encoded with the local charset rather
than UTF-8. This causes problems when the working directory includes
non-latin-1 characters which are valid in the local charset, as Aegisub
expects the string to be UTF-8. As the default path isn't very useful on
Windows (on other platforms it could potentially include things like
luarocks-installed modules), just clear it.

Closes #1676.
2013-12-27 14:52:01 -08:00
Thomas Goyne f0d35a1cf3 Retinafy the video display 2013-12-27 09:56:39 -08:00
Thomas Goyne c8368a500b Dynamically switch to the retina toolbar icons as appropriate 2013-12-27 09:29:53 -08:00
Thomas Goyne f4a6d90db4 Use retina icons for the main toolbar if first opened on a retina display 2013-12-27 09:29:53 -08:00
Thomas Goyne b4ed6a3b1a Add 48x48 and 64x64 icons 2013-12-27 09:29:53 -08:00
Thomas Goyne 55ff9bfd50 Simplify HelpButton a little
Switch to flat_map for trivially less memory usage and just use a global
map rather than a heap-allocated map since it's not
(de)initialization-order sensitive.
2013-12-26 17:43:55 -08:00
Thomas Goyne 6ca0349fc8 Simplify icon handling
Eliminate the pointless runtime command name -> icon map and just make
commands responsible for their icons. Don't bother predecoding and
caching icons since it wastes some RAM (~10 MB) and decoding icons takes
a trivial amount of time.

Fix a few places where icons were being set for the wrong command names.
2013-12-26 17:43:50 -08:00
Thomas Goyne f95f2dcd25 Refactor spellchecker language listing 2013-12-24 09:42:20 -08:00
Thomas Goyne dbf5af1d49 Load the thesaurus dictionary asynchronously 2013-12-24 09:26:29 -08:00
Thomas Goyne 6957cd76a6 Refactor thesaurus language listing a bit 2013-12-24 09:25:45 -08:00
Thomas Goyne c28a02a34d Don't overwrite alpha when using the color picker screen dropper 2013-12-24 09:23:32 -08:00
Thomas Goyne 45726bea3c Fix loading automation script names from subtitle files 2013-12-23 11:46:52 -08:00
Thomas Goyne 22e4a8bd58 Ignore errors when canonicalizing paths for automation
It's only being done to make the error reporting prettier, so it failing
shouldn't block the loading of the file.
2013-12-23 11:37:20 -08:00
Thomas Goyne 41ce8d7c31 More crash log writing fixes 2013-12-23 10:19:01 -08:00