Thomas Goyne
ac498f75d5
Generate a configure error if a dependency explicitly enabled with --with cannot be found
...
Originally committed to SVN as r6105.
2011-12-22 21:26:03 +00:00
Thomas Goyne
f2c62dad3d
Factor out a bunch of duplicated code in the configure script for pkg-config based optional dependencies and use the pkg-config name for all WITH_* defines
...
Originally committed to SVN as r6104.
2011-12-22 21:25:49 +00:00
Thomas Goyne
975bb7b26f
Delete pointless empty destructor in DummyAudioProvider
...
Originally committed to SVN as r6103.
2011-12-22 21:25:38 +00:00
Thomas Goyne
a5fce1d1be
Fix off-by-one error in DummyAudioProvider::GetAudio
...
Originally committed to SVN as r6102.
2011-12-22 21:25:29 +00:00
Thomas Goyne
0892de62a8
Don't let audio markers snap to themselves
...
Originally committed to SVN as r6101.
2011-12-22 21:25:19 +00:00
Thomas Goyne
5e9339611b
Return a pair of SplineCurves from SplineCurve::Split rather than mutating the arguments, as it doesn't actually work in-place
...
Originally committed to SVN as r6100.
2011-12-22 21:25:08 +00:00
Thomas Goyne
400b8252e9
Don't block loading styles from scripts with only a Default style
...
Originally committed to SVN as r6099.
2011-12-22 21:25:00 +00:00
Thomas Goyne
f809fa4104
Put OSS CFLAGS in their own variable rather than modifying CPPFLAGS
...
Originally committed to SVN as r6098.
2011-12-22 21:24:51 +00:00
Thomas Goyne
71109a87e1
Replace most inappropriate uses of LDFLAGS with LIBS
...
Originally committed to SVN as r6097.
2011-12-22 21:24:40 +00:00
Thomas Goyne
48526bf341
Delete libmedia
...
It's nowhere close to working and just getting further away from working
as time goes on.
Originally committed to SVN as r6096.
2011-12-22 21:24:20 +00:00
Thomas Goyne
e2eb7255a9
Refactor the configure script a bit to remove the need for $found_player_audio
...
Originally committed to SVN as r6095.
2011-12-22 21:24:10 +00:00
Thomas Goyne
4ab6ca890a
Use AS_IF and AS_CASE rather than the shell script equivalents in the configure script
...
Originally committed to SVN as r6094.
2011-12-22 21:24:01 +00:00
Thomas Goyne
670d7dfcd4
Delete ax_openml.m4 as we no longer use openmp
...
Originally committed to SVN as r6093.
2011-12-22 21:23:52 +00:00
Thomas Goyne
f454801868
Update acx_pthread.m4 to the latest versions
...
Originally committed to SVN as r6092.
2011-12-22 21:23:43 +00:00
Thomas Goyne
6fbf5b057f
Remove references to a target archtecture from the configure script
...
Originally committed to SVN as r6091.
2011-12-22 21:23:35 +00:00
Thomas Goyne
965a292a05
Increase max precision in the rotation tools to four digits so that rotations over 100 degrees aren't rounded to ints
...
Originally committed to SVN as r6090.
2011-12-22 21:23:26 +00:00
Thomas Goyne
d9ab41468c
In the cross visual tool, apply the same roundning rules to the coordinates set on double-click as for the displayed coordinates
...
Originally committed to SVN as r6089.
2011-12-22 21:23:17 +00:00
Thomas Goyne
25f4e4b426
Set the current frame in the Jump To dialog correctly
...
Originally committed to SVN as r6088.
2011-12-22 21:23:07 +00:00
Thomas Goyne
b66357bfb8
Fix warning on x64 unix
...
Originally committed to SVN as r6087.
2011-12-22 21:22:58 +00:00
Thomas Goyne
ff32be592f
Make FractionalTime less weird
...
Originally committed to SVN as r6086.
2011-12-22 21:22:49 +00:00
Thomas Goyne
7a2c461825
Clean up ass_time.h a little
...
Originally committed to SVN as r6085.
2011-12-22 21:22:40 +00:00
Thomas Goyne
ec63fad7c5
Make help buttons fall back to the docs wiki if the scraped html files aren't available locally
...
Originally committed to SVN as r6084.
2011-12-22 21:22:31 +00:00
Thomas Goyne
8427958a1d
Fix spelling error in configure.in
...
Originally committed to SVN as r6083.
2011-12-22 21:22:22 +00:00
Thomas Goyne
1b40118172
Sort required versions in configure.in
...
Originally committed to SVN as r6082.
2011-12-22 21:22:13 +00:00
Thomas Goyne
fd78c51aa2
Mark things as disabled when --without-blah is passed to configure rather than --with-blah
...
Originally committed to SVN as r6081.
2011-12-22 21:22:05 +00:00
Thomas Goyne
207ca88c5c
Set modification mask correctly when appending lines
...
Originally committed to SVN as r6080.
2011-12-22 21:21:55 +00:00
Thomas Goyne
f78d52448e
Fix appending and deleting rows via the subtitles object index syntax
...
Originally committed to SVN as r6079.
2011-12-22 21:21:47 +00:00
Thomas Goyne
38ffdc4135
Improve error message when a field is missing from a subtitle line
...
Originally committed to SVN as r6078.
2011-12-22 21:21:38 +00:00
Thomas Goyne
776c7e69a8
When appending lines from a lua script, always append the new line to the end of the appropriate section, creating the section if needed
...
Originally committed to SVN as r6077.
2011-12-22 21:21:29 +00:00
Thomas Goyne
464f652ea4
Eliminate a bunch of weird bogusness with various environment variables
...
Originally committed to SVN as r6076.
2011-12-22 21:21:20 +00:00
Thomas Goyne
f430d02659
Don't check if iconv is enabled before checking if its argument needs to be const as it's a required dep which is always enabled
...
Originally committed to SVN as r6075.
2011-12-22 21:21:12 +00:00
Thomas Goyne
848f123a98
Fix some inconsistent formatting in configure.in
...
Originally committed to SVN as r6074.
2011-12-22 21:21:03 +00:00
Thomas Goyne
810ca07041
Remove unused $with_hunspell_version variable from configure script
...
Originally committed to SVN as r6073.
2011-12-22 21:20:54 +00:00
Thomas Goyne
863e7070a6
Add a bunch of missing config.h includes
...
Originally committed to SVN as r6072.
2011-12-22 21:20:44 +00:00
Thomas Goyne
8796a605ba
Use non-recursive make for libresrc and command so that dependencies can actually be set correctly. Fixes parallel builds.
...
Originally committed to SVN as r6071.
2011-12-22 21:20:34 +00:00
Thomas Goyne
7161b74be0
Use AS_HELP_STRING to generate configure help strings
...
Originally committed to SVN as r6070.
2011-12-22 21:20:24 +00:00
Thomas Goyne
8f24931e3a
Remove checks to see if things returned from pkg-config actually work. If pkg-config is returning garbage then there's something very wrong with the user's setup.
...
Originally committed to SVN as r6069.
2011-12-22 21:20:15 +00:00
Thomas Goyne
b12b3425e1
Check for missing OpenGL by inspecting $gl_no rather than GL_LIBS, which could theoretically be empty
...
Originally committed to SVN as r6068.
2011-12-22 21:20:07 +00:00
Thomas Goyne
96bf33a241
Delete worthless empty OpenGL tests
...
Originally committed to SVN as r6067.
2011-12-22 21:19:58 +00:00
Thomas Goyne
395381015e
Update to a version of AX_CHECK_GL that isn't ancient. Removes the need for --with-apple-opengl-framework.
...
Originally committed to SVN as r6066.
2011-12-22 21:19:49 +00:00
Thomas Goyne
17d220e7cd
Remove configure check for strlcpy, which we never actually use
...
Originally committed to SVN as r6065.
2011-12-22 21:19:41 +00:00
Thomas Goyne
76b8df425d
Add error message if X include path detection fails. Closes #1009 .
...
Originally committed to SVN as r6064.
2011-12-22 21:19:31 +00:00
Thomas Goyne
55f8cb3685
Add option to disable rendering the sample averages in the waveform renderer
...
Originally committed to SVN as r6063.
2011-12-22 21:19:21 +00:00
Thomas Goyne
0201b8ea9b
Add dumb special casing to DialogSearchReplace so that replacing '$' with 'str' with regular expressions enabled results in 'str' being appended once rather than 1000 times.
...
Originally committed to SVN as r6062.
2011-12-22 21:19:12 +00:00
Thomas Goyne
3ecc731ff3
Fix non-precompiled-header compilation
...
Originally committed to SVN as r6061.
2011-12-22 21:19:02 +00:00
Thomas Goyne
21f94ae72e
Validate the value passed to AssTime's constructor rather than allowing the creation of bad times
...
Originally committed to SVN as r6060.
2011-12-22 21:18:54 +00:00
Thomas Goyne
515ed54f1d
Use a single-line text edit for TimeEdit on wxGTK as the unspecified bugs appear to have been fixed
...
Originally committed to SVN as r6059.
2011-12-22 21:18:45 +00:00
Thomas Goyne
6a24046b91
Set -fno-var-tracking for command/icon.cpp, as gcc uses an extremely large amount of memory compiling that file otherwise
...
Originally committed to SVN as r6058.
2011-12-22 21:18:36 +00:00
Thomas Goyne
51d88c675f
Actually use FFTW3_CFLAGS and FFTW3_LDFLAGS
...
Originally committed to SVN as r6057.
2011-12-22 21:18:26 +00:00
Thomas Goyne
3a069b7f60
Clean up TimeEdit
...
Remove some unused or constant arguments and simplify some overly
convoluted logic.
Check for whether timecodes are open rather than whether video is open
to determine if by-frame mode is enabled.
Operate on a project context rather than using VideoContext::Get().
Use non-event-generating setter methods rather than a boolean ready
variable.
Make all member variables private and add setters rather than relying on
the client code calling Update when appropriate.
Eliminate flickering in overwrite mode.
Originally committed to SVN as r6056.
2011-12-22 21:18:16 +00:00
Thomas Goyne
70d703255b
Skip unprocessed key events in the time edit control so that it doesn't eat hotkeys
...
Originally committed to SVN as r6055.
2011-12-22 21:18:07 +00:00
Thomas Goyne
cd3b9bfa37
Enable propagation of key events so that hotkeys work regardless of what's focused
...
Originally committed to SVN as r6054.
2011-12-22 21:17:58 +00:00
Thomas Goyne
59273bac4a
Reenable the assertion failure handler
...
Originally committed to SVN as r6053.
2011-12-22 21:17:49 +00:00
Thomas Goyne
28e8f0b640
Use wxGetApp() rather than wxTheApp plus a cast
...
Originally committed to SVN as r6052.
2011-12-22 21:17:40 +00:00
Thomas Goyne
92949bc965
Remove AegisubApp::Get, as wxGetApp() does the same thing
...
Originally committed to SVN as r6051.
2011-12-22 21:17:30 +00:00
Thomas Goyne
3e539835b7
Use wxDECLARE_APP rather than the deprecated DECLARE_APP
...
Originally committed to SVN as r6050.
2011-12-22 21:17:21 +00:00
Thomas Goyne
f1ff18545a
Make more of AegisubApp's methods private
...
Originally committed to SVN as r6049.
2011-12-22 21:17:12 +00:00
Thomas Goyne
2ec3ff157b
Kill AegisubApp::OpenURL. It makes no sense for the top level application object to be doing this and it doesn't even save any code.
...
Originally committed to SVN as r6048.
2011-12-22 21:17:02 +00:00
Thomas Goyne
ce62990d91
Don't wrap the declaration of AegisubApp::HandleEvent in a ifdef check for wxUSE_EXCEPTIONS as we require that wx be built with exception support
...
Originally committed to SVN as r6047.
2011-12-22 21:16:53 +00:00
Thomas Goyne
a66cc26706
Remove all calls to wxKeyEvent::StopPropagation. Key events don't propagate by default and even if they did, events which are marked as processed don't propagate further.
...
Originally committed to SVN as r6046.
2011-12-22 21:16:43 +00:00
Thomas Goyne
ed51e7b668
Fix memory leak when deleting or cutting rows
...
Originally committed to SVN as r6045.
2011-12-22 21:16:34 +00:00
Thomas Goyne
79fa487678
Delete the DVD subtitle format. It didn't work and it's been years since anyone last touched it.
...
Originally committed to SVN as r6044.
2011-12-22 21:16:23 +00:00
Thomas Goyne
ef32c75609
Also remove empty attachment sections not at the end of the file
...
Originally committed to SVN as r6043.
2011-12-22 21:16:14 +00:00
Thomas Goyne
921f6c3bcf
Remove empty attachment sections from the file while deleting attachments rather than when the dialog is closed to remove a redundant undo point
...
Originally committed to SVN as r6042.
2011-12-22 21:16:05 +00:00
Thomas Goyne
384d2bc9c2
Disable the Delete and Extract buttons in the attachment dialog after deleting the selected attachments
...
Originally committed to SVN as r6041.
2011-12-22 21:15:56 +00:00
Thomas Goyne
38e2403001
Factor out duplicated code in DialogAttachments
...
Originally committed to SVN as r6040.
2011-12-22 21:15:47 +00:00
Thomas Goyne
96aa9e2629
Use libaegisub io code in AssAttachment rather than wx's
...
Originally committed to SVN as r6039.
2011-12-22 21:15:37 +00:00
Thomas Goyne
00bc0c7ef8
Significantly clean up and simplify AssAttachment
...
Originally committed to SVN as r6038.
2011-12-22 21:15:28 +00:00
Thomas Goyne
eaf436657e
Factor out a bunch of duplicated code in AssStyle::Parse
...
Originally committed to SVN as r6037.
2011-12-22 21:15:19 +00:00
Thomas Goyne
9eaad5f0b1
Document most of AssStyle and remove some unused code
...
Originally committed to SVN as r6036.
2011-12-22 21:15:10 +00:00
Thomas Goyne
dbf3eea732
Remove pointless empty destructor from AssStyle
...
Originally committed to SVN as r6035.
2011-12-22 21:15:01 +00:00
Thomas Goyne
d28c4c4d8b
Kill AssEntry::Valid, as there wasn't actually any way to get a fully-constructed entry with it set to false
...
Originally committed to SVN as r6034.
2011-12-22 21:14:51 +00:00
Thomas Goyne
61767e4453
Disable the "Update video" checkbox in the search/replace dialog when video isn't open
...
Originally committed to SVN as r6033.
2011-12-22 21:14:42 +00:00
Thomas Goyne
404e0fda4f
Delete stuff in DialogSearchReplace
...
Originally committed to SVN as r6032.
2011-12-22 21:14:32 +00:00
Thomas Goyne
ac9b09b847
Jump to the end of the video rather than the frame before the current one when trying to seek to the next keyframe after the last keyframe
...
Originally committed to SVN as r6031.
2011-12-22 21:14:24 +00:00
Thomas Goyne
bf7e4d5cc1
Fix bug where seeking to the next keyframe would actually seek to the keyframe after the next keyframe
...
Originally committed to SVN as r6030.
2011-12-22 21:14:15 +00:00
Thomas Goyne
95fe6a523f
Actually use the selection foreground color for selected rows in the grid
...
Originally committed to SVN as r6029.
2011-12-22 21:14:06 +00:00
Thomas Goyne
6ee6e10117
Fix infinite loop when switching between the \pos and \move icons in the visual subtoolbar
...
Originally committed to SVN as r6028.
2011-12-22 21:13:57 +00:00
Thomas Goyne
c27ee9fcb8
Disable gcc's unused value warning for tests as a very large number of tests generate it
...
Originally committed to SVN as r6027.
2011-12-22 21:13:48 +00:00
Thomas Goyne
b29606759a
Only include character encodings actually supported by the iconv implementation used in the list returned from GetEncodingsList
...
Originally committed to SVN as r6026.
2011-12-22 21:13:39 +00:00
Thomas Goyne
ebde064cb4
Set rpath for tests correctly
...
Originally committed to SVN as r6025.
2011-12-22 21:13:30 +00:00
Thomas Goyne
10255ae201
Overload operator<< for UnknownElement as gcc complains about abiguous calls otherwise
...
Originally committed to SVN as r6024.
2011-12-22 21:13:22 +00:00
Thomas Goyne
b0c17b9be2
FFTW 3.3 is required, not 3.2
...
Originally committed to SVN as r6023.
2011-12-22 21:13:13 +00:00
Thomas Goyne
78580c31ba
Fix spelling error in configure script
...
Originally committed to SVN as r6022.
2011-12-22 21:13:04 +00:00
Thomas Goyne
61b1741376
Remove all the json::Reader::Read overloads, as we never actually use them
...
Originally committed to SVN as r6021.
2011-12-22 21:12:55 +00:00
Thomas Goyne
ba1d1596de
Eliminate a pile of duplicated code in elements.cpp
...
Originally committed to SVN as r6020.
2011-12-22 21:12:46 +00:00
Thomas Goyne
2edc5c41e1
Remove kludges to force options to doubles
...
Originally committed to SVN as r6019.
2011-12-22 21:12:37 +00:00
Thomas Goyne
07da6f6f1b
Split json::Number into json::Double and json::Integer
...
Trying to decide whether an option should be an int or double after
discarding the differences between "1.0" and "1" simply isn't possible,
and even if an option was initialized correctly, if it was changed to a
round number it could get written as an int and break later.
Also convert cajun to tabs because three spaces to indent is terrible.
Originally committed to SVN as r6018.
2011-12-22 21:12:25 +00:00
Thomas Goyne
daff67b150
Simply log errors and continue when type errors occur while loading the user config file, rather than only loading the portion of the file before the error
...
Originally committed to SVN as r6017.
2011-12-22 21:12:15 +00:00
Thomas Goyne
d7ae51a5af
Remove some unused members of agi::Options
...
Originally committed to SVN as r6016.
2011-12-22 21:12:06 +00:00
Thomas Goyne
2f73b55b64
Delete agi::Options::DumpAll declaration, as the definition doesn't exist
...
Originally committed to SVN as r6015.
2011-12-22 21:11:57 +00:00
Thomas Goyne
4c3d191de8
Significantly simplify agi::Options::PutOption
...
Originally committed to SVN as r6014.
2011-12-22 21:11:46 +00:00
Thomas Goyne
56165305a4
Change the check for duplicate keys when writing the options file to an assertion as it can't actually happen
...
Originally committed to SVN as r6013.
2011-12-22 21:11:38 +00:00
Thomas Goyne
4823706206
Fix some spelling errors in comments in option.h
...
Originally committed to SVN as r6012.
2011-12-22 21:11:29 +00:00
Thomas Goyne
a7a159288f
Make agi::Options's one protected member private, as agi::Option is not designed to be inherited from
...
Originally committed to SVN as r6011.
2011-12-22 21:11:21 +00:00
Thomas Goyne
70a291d4d4
Add some tests for agi::Options
...
Originally committed to SVN as r6010.
2011-12-22 21:11:10 +00:00
Thomas Goyne
ef3414931f
Fix off-by-one error in MRU::GetEntry
...
Originally committed to SVN as r6009.
2011-12-22 21:11:01 +00:00
Thomas Goyne
d0ee3029de
Make the MRU tests significantly less worthless
...
Originally committed to SVN as r6008.
2011-12-22 21:10:50 +00:00
Thomas Goyne
522e634122
Simplify some uses of cajun types and eliminate some copies
...
Originally committed to SVN as r6007.
2011-12-22 21:10:41 +00:00
Thomas Goyne
9cbaa01e63
Update and significantly expand the cajun tests
...
Originally committed to SVN as r6006.
2011-12-22 21:10:32 +00:00