Thomas Goyne
33a4a056a4
Move everything up a level since the root dir no longer has stuff
2014-03-11 12:14:57 -07: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
6fad60e58d
Use NSDMIs where applicable
2013-12-11 18:50:12 -08:00
Thomas Goyne
a7f4fb5b87
Run clang-modernize on things
2013-11-23 09:57:22 -08:00
Thomas Goyne
be8790942a
Change AssParameterClass to an enum class
2013-02-07 08:55:01 -08:00
Thomas Goyne
e115206998
Change VariableDataType to an enum class
2013-02-07 08:49:11 -08:00
Thomas Goyne
abf592e705
Add support for parsing alpha override parameters
2013-01-14 08:37:03 -08:00
Thomas Goyne
e19da4ffe7
Make the tag parameter parsing more forgiving of malformed input
2013-01-13 09:59:41 -08:00
Thomas Goyne
f8b717e9ac
Don't clear the body of \t tags when doing stuff to them
2013-01-13 09:00:18 -08:00
Thomas Goyne
d49758edbf
De-wxify AssOverride
2012-12-31 07:09:31 -08:00
Thomas Goyne
c6cd86f2da
Actually initialize AssOverrideParameter::omitted
2012-12-28 09:18:54 -08:00
Thomas Goyne
6e3cc883b3
Replace most uses of type::iterator with auto
2012-12-22 15:35:13 -08:00
Thomas Goyne
0b133de08f
Remove pointless empty destructors
...
An explicit empty destructor is only needed when a class has a smart
pointer to an incomplete type.
2012-12-11 09:06:21 -08:00
Thomas Goyne
8c2062f0c7
Store AssOverrideTags directly rather than a vector of pointers
2012-12-10 17:04:18 -08:00
Thomas Goyne
a0d3b8595f
Redesign AssOverrideParameter
...
Always store the original string form and convert it to the desired type
on demand. In most cases this is significantly faster as typically only
a few of the parameters in a line are actually read. In addition, this
makes it so that parameters which did not actually change are always
reserialized in their original form.
Delete VariableData as it's no longer used by anything.
Closes #1513 .
2012-12-10 14:41:11 -08:00
Thomas Goyne
205d408f3e
Move tag/param proto declarations to the cpp file
...
It's purely an implementation detail of the parser that should not be
exposed to the outside world.
2012-12-09 15:40:29 -08:00
Thomas Goyne
8cf47c38b6
Drop AssOverrideParameter::omitted since it's equivalent to the type being VARDATA_NONE
2012-12-09 10:36:13 -08:00
Thomas Goyne
d2a0a76ca9
Store AssOverrideParameters directly rather than a vector of pointers to them
2012-12-09 10:12:50 -08:00
Thomas Goyne
851f7f40e6
Make VariableData uncopyable but moveable
2012-12-09 10:12:50 -08:00
Thomas Goyne
28705000bb
Use boost::join in a handful of places
2012-12-07 08:25:47 -08:00
Thomas Goyne
0ac8df140c
Make the check for if an override tag needs parens less dumb
2012-12-07 08:12:45 -08:00
Thomas Goyne
c1ed667025
Add the curly braces in AssDialogueBlockOverride::GetText
...
All of the calling code added them, so there's no reason not to just do
it in one place.
2012-12-04 19:49:05 -08:00
Thomas Goyne
3949ccec24
Drop the position argument from ProcessParametersCallback since nothing needs it
2012-12-02 12:39:37 -08:00
Thomas Goyne
96cf5ea7ed
Kill the #ifndef AGI_PRE guards
...
They don't actually improve compilation performance and make it more
annoying to modify what things are in the precompiled header.
2012-12-02 06:33:29 -08:00
Thomas Goyne
e77e810bd8
Use emplace_back where applicable
2012-11-30 10:44:09 -08:00
Thomas Goyne
67df64e879
Use range-based for loops in a bunch of places
2012-11-12 18:35:25 -08:00
Thomas Goyne
e44c47c863
Remove $Id$ markers since git doesn't support them
2012-10-25 17:39:49 -07:00
Thomas Goyne
c7fd04a739
Rename ASS -> Ass in symbol names
...
Most types and functions used Ass, but a decent number used ASS, so make
them consistent.
2012-10-16 09:52:19 -07:00
Thomas Goyne
a0c92f83f9
Fix some PVS-Studio warnings
2012-10-12 14:51:30 -07:00
Thomas Goyne
b32515da80
Strip trailing whitespace from all cpp and h files
...
Originally committed to SVN as r6600.
2012-03-25 04:05:06 +00:00
Thomas Goyne
75ae053958
Make some stuff const
...
Originally committed to SVN as r6590.
2012-03-20 00:39:10 +00:00
Thomas Goyne
9cfe230682
Remove unused 'parent' member from AssDialogueBlock and make 'text' protected
...
Originally committed to SVN as r6165.
2011-12-26 22:21:08 +00:00
Thomas Goyne
7adbe07b4e
Silence a bunch of PREFast warnings
...
Originally committed to SVN as r6162.
2011-12-26 22:20:49 +00:00
Thomas Goyne
cc147d1660
Eliminate uses of c_str made unnecessary by changed to wxString::Format in wx 2.9
...
Originally committed to SVN as r5612.
2011-09-28 19:43:48 +00:00
Thomas Goyne
d990bbbb99
Eliminate all unnecessary uses of L and _T
...
Originally committed to SVN as r5611.
2011-09-28 19:43:11 +00:00
Thomas Goyne
46be23073e
Fix a few gcc warnings
...
Originally committed to SVN as r4722.
2010-08-02 20:25:29 +00:00
Thomas Goyne
e2f8e69612
Beat some semblance of sanity into ass_override and related files. Fixes a pile of crashes when tags are missing expected parameters.
...
Originally committed to SVN as r4581.
2010-06-24 01:24:43 +00:00
Thomas Goyne
166c95975b
Templatize VariableData's getters and setters
...
Originally committed to SVN as r4523.
2010-06-16 06:20:06 +00:00
Thomas Goyne
c290b6b811
Silence some prefast warnings
...
Originally committed to SVN as r4472.
2010-06-11 02:24:59 +00:00
Amar Takhar
931cc7f461
* Remove all instances of wxLogDebug and replace them with LOG_W, LOG_D, LOG_E and LOG_D_IF as required.
...
* Add LOG_(D|W|I)_IF for conditional logging.
Originally committed to SVN as r4465.
2010-06-08 23:21:39 +00:00
Thomas Goyne
38d922c57a
Remove time-consuming reparsing of the line in VisualTool::SetOverride
...
Originally committed to SVN as r4430.
2010-06-04 03:08:04 +00:00
Thomas Goyne
88f6bca9d7
Make ASS tag parsing ~50% faster.
...
Originally committed to SVN as r4429.
2010-06-04 03:07:58 +00:00
Thomas Goyne
4a31f0375f
Add \fs+ and \fs- to the ASS parser so they aren't killed by transforms. Updates #1007 .
...
Originally committed to SVN as r3838.
2009-12-01 01:27:32 +00:00
Amar Takhar
d348b4e33e
Fix all the headers in *.cpp, this includes:
...
* Wrapping all headers that are in agi_pre.h with AGI_PRE.
* Sorting alphabetically.
Originally committed to SVN as r3515.
2009-09-10 13:06:40 +00:00
Niels Martin Hansen
51288bc06d
Make a typedef of a function type, hoping to fix Doxygen warnings.
...
Originally committed to SVN as r3348.
2009-08-01 03:27:13 +00:00
Thomas Goyne
4472dfee12
Fix an assertion failure that happened whenever an ass override tag with too few parameters was parsed.
...
Originally committed to SVN as r3340.
2009-07-31 23:26:13 +00:00
Thomas Goyne
79e4065579
Add default values for the optional parameters of \move, fixing an assertion failure when they are not specified.
...
Originally committed to SVN as r3336.
2009-07-31 16:50:48 +00:00
Amar Takhar
2fd9b9d7e3
Fix a whole bunch of Doxygen warnings.
...
Originally committed to SVN as r3325.
2009-07-30 03:36:53 +00:00
Amar Takhar
6ee2f98349
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
...
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-29 22:59:22 +00:00