Niels Martin Hansen
d53c36e67f
Merge branch 'extradata'
...
Conflicts:
src/ass_parser.cpp
2014-04-25 17:22:15 +02:00
Thomas Goyne
d4fbe3040d
Preserve the insertion point (but not selection) when switching between lines
2014-04-25 08:00:45 -07:00
Niels Martin Hansen
f278c35f3f
Dynamically use either inline_string escaping or uuencoding for extradata
...
Since luabins generates binary data which grows up to 3x by escaping,
it's more efficient to uuencode that instead.
A marker is placed as the first character of the value field, either
'e' for inline_string escaped text, or 'u' for uuencoded binary data.
The key is always inline_string escaped, as it will typically be
human readable.
2014-04-25 16:04:08 +02:00
Thomas Goyne
7f289551ae
Remove -Wno-variadic-macros from CXXFLAGS
...
It's no longer nonstandard in C++11.
2014-04-23 15:29:23 -07:00
Thomas Goyne
6fc4c8da14
Move make_unique to its own header file
...
Rebuilding the entire project after touching util.h gets old fast.
2014-04-23 15:29:23 -07:00
Thomas Goyne
a30d6121fd
Don't block the UI while decoding audio for the caches
...
Simply zero the memory for audio which hasn't been decoded yet, modify
the audio renderer to avoid caching blocks which aren't ready yet, and
add a progress indiciator to the audio display scrollbar.
2014-04-22 12:34:20 -07:00
Thomas Goyne
6c6f60eb98
Add an option to ignore punctuation for the character counter
2014-04-18 20:11:38 -07:00
Thomas Goyne
2de95818db
Use ICU directly for character counting
...
ICU docs say not to create a new break iterator each time as
boost.locale does, and in fact creating the break iterator is about 90%
of the run time of the character counter, so use ICU directly and cache
the break iterator.
2014-04-18 20:11:38 -07:00
Thomas Goyne
af32733797
Move character count stuff to libaegisub
2014-04-18 20:11:38 -07:00
Thomas Goyne
5df871f599
Extract all of the column-specific logic from BaseGrid
2014-04-18 12:17:03 -07:00
Thomas Goyne
56699e4800
Mark move constructors as noexcept
...
Or just default them for non-MSVC when possible.
2014-04-17 11:46:28 -07:00
Thomas Goyne
09d0d039e0
Convert signal.h to variadic templates
2014-04-17 11:46:27 -07:00
Thomas Goyne
c8033c2ef7
Initialize the charset converter for the thesaurus sooner
...
Narrows the window of time for a crash-on-exit when the user exits while
a thesaurus is being loaded.
2014-04-16 08:15:31 -07:00
Thomas Goyne
1d5292fdee
Kill config.h and just force-include acconf.h in non-pch builds
2014-04-16 08:11:37 -07:00
Thomas Goyne
7fc78d40ab
Switch from boost::ptr_vector to a vector of unique_ptr
...
ptr_vector hasn't been updated for C++11, so despite being specifically
designed to store pointers to objects it's less safe and not really any
easier to use than a regular vector of unique_ptrs
2014-04-14 13:52:14 -07:00
Thomas Goyne
54fa37c855
Fix compilation on linux
...
Closes tgoyne/aegisub#4 .
2014-04-03 17:43:41 -07:00
Thomas Goyne
4adc7c78fc
Remove array indexing from UnknownElement
2014-04-01 09:19:30 -07:00
Thomas Goyne
ffb2fd2b9d
Remove redundant option not found exception type
2014-03-31 10:23:36 -07:00
Thomas Goyne
a050b43621
Define OptionValueMap with using rather than inheritence
2014-03-31 10:23:36 -07:00
Thomas Goyne
c59b9d59b8
Clean up OptionValue
...
Make the vtables less absurdly huge (knocks 100KB off aegisub32.exe),
eliminate some copies of the values when constructing the options, and
use an enum class for the value type.
2014-03-31 10:23:36 -07:00
Thomas Goyne
371f602100
Fix tests compilation
2014-03-31 10:23:36 -07:00
Thomas Goyne
14d64daf69
Fix crash on empty progress title on OS X
2014-03-26 09:24:47 -07:00
Thomas Goyne
821f54a372
Delay showing the font caching dialog until subtitles are actually rendered
2014-03-25 20:04:48 -07:00
Thomas Goyne
b1f132ec6f
Use a proper auto-deleting temp file for the HD audio cache
2014-03-23 08:14:35 -07:00
Thomas Goyne
66877105cb
Remove old cruft from the precompiled headers
2014-03-21 15:02:12 -07:00
Thomas Goyne
53188cca47
Expunge remaining references to <fstream> and <iostream>
2014-03-21 14:31:48 -07:00
Thomas Goyne
e1bc828e44
Don't wrap the default config json blobs in std::strings
2014-03-21 14:02:49 -07:00
Thomas Goyne
d615dcb30a
Replace all uses of strstream and stringstream with bufferstream
...
istringstream makes a copy of its input, which is not very nice for
performance. strstream doesn't do bounds checking, which is not very
nice for safety (and is deprecated).
2014-03-21 13:50:28 -07:00
Thomas Goyne
d454872c00
Use read_file_mapping for the thesaurus
2014-03-21 13:23:15 -07:00
Thomas Goyne
0268ffd345
Return a const char * from read_file_mapping::read
2014-03-21 13:23:12 -07:00
Thomas Goyne
18e5144977
Remove unused function in line_iterator
2014-03-21 09:47:05 -07:00
Thomas Goyne
3d21f00356
Use read_file_mapping for charset detection
2014-03-21 08:06:41 -07:00
Thomas Goyne
cb1f04481a
Use read_file_mapping for reading attachments
2014-03-21 07:44:22 -07:00
Thomas Goyne
5750a660c2
Open files with FILE_SHARE_READ on Windows
2014-03-21 07:23:44 -07:00
Thomas Goyne
6c14c9bee9
Extract the rest of the mmap logic from the PCM provider. Closes #934 .
2014-03-20 20:26:17 -07:00
Thomas Goyne
3222275750
Use boost.interprocess's mmap wrapper in the PCM provider
2014-03-20 20:25:44 -07:00
Thomas Goyne
3ef8fa9ec0
Make a for loop in uuencode less dumb
2014-03-18 13:41:26 -07:00
Thomas Goyne
7794680c1e
Really fix compilation with boost <= 1.55. Closes #1716 .
2014-03-14 07:14:13 -07:00
Thomas Goyne
21d87ff1ca
Remove some invalid finals that VC++ was okay with for some reason
2014-03-12 20:32:57 -07:00
Thomas Goyne
ea96c6e2ad
Make everything final that can be
...
Apparently gcc does use final for devirtualization.
2014-03-12 19:07:30 -07:00
Thomas Goyne
1745177b6c
Fix compilation with non-bleeding edge boost
2014-03-11 12:15:01 -07:00
Thomas Goyne
33a4a056a4
Move everything up a level since the root dir no longer has stuff
2014-03-11 12:14:57 -07:00