Thomas Goyne
a16da9ffdd
Get lua CFLAGS/LIBS from pkg-config when possible
...
Originally committed to SVN as r6109.
2011-12-22 21:26:39 +00:00
Thomas Goyne
d02cf5c99f
Handle wxMouseCaptureLostEvent in the color picker
...
Originally committed to SVN as r6108.
2011-12-22 21:26:30 +00:00
Thomas Goyne
4c31490d41
Use PCMAudioProvider to read from the cache in HDAudioProvider as it's far faster than the naive logic previously used
...
Originally committed to SVN as r6107.
2011-12-22 21:26:21 +00:00
Thomas Goyne
70dce930e6
Remove maintainer mode, as it didn't actually do anything (since we don't use automake)
...
Originally committed to SVN as r6106.
2011-12-22 21:26:12 +00:00
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
Thomas Goyne
3097dc634e
Only automatically convert json objects to other types when they are uninitialized
...
Originally committed to SVN as r6005.
2011-12-22 21:10:22 +00:00
Thomas Goyne
a78417177a
Move cajun implementations from .inl files included by the headers to .cpp files
...
Originally committed to SVN as r6004.
2011-12-22 21:10:10 +00:00
Thomas Goyne
c601351a50
Silence a pile of prefast warnings in cajun
...
Originally committed to SVN as r6003.
2011-12-22 21:10:00 +00:00
Thomas Goyne
2439381c33
Fix misspelled word in the crash log
...
Originally committed to SVN as r6002.
2011-12-22 21:09:51 +00:00
Thomas Goyne
34a87b1c1e
Silence a pile of /W4 warnings
...
Originally committed to SVN as r6001.
2011-12-22 21:09:31 +00:00
Thomas Goyne
c36cd32127
Disable forced inclusion of the precompiled header for C files in x64 builds
...
Originally committed to SVN as r5989.
2011-12-07 00:19:51 +00:00
Thomas Goyne
1b43e05907
Add configure check for FFTW
...
Originally committed to SVN as r5988.
2011-12-06 23:48:18 +00:00
Thomas Goyne
c0cfe8afce
Make Vector2D's default constructor initialize to the invalid value rather than a seemingly valid value. Fixes a few cases where uninitialized vectors were used as if they were initialized.
...
Originally committed to SVN as r5987.
2011-12-06 23:13:06 +00:00
Thomas Goyne
f48c2a444d
Enable precompiled headers by default
...
Originally committed to SVN as r5985.
2011-12-06 21:59:20 +00:00
Thomas Goyne
6d62437c42
Combine --disable-check-wx-opengl and --disable-check-wx-stc into a single configure flag named --disable-slow-wx-checks
...
Originally committed to SVN as r5984.
2011-12-06 21:59:10 +00:00
Thomas Goyne
1a68f12dcb
Fix rendering errors with the cross visual tool and detached video
...
Originally committed to SVN as r5977.
2011-12-06 20:07:57 +00:00
Thomas Goyne
ffa811c8bc
Add "App/Auto/Load Linked Files" to the preferences dialog
...
Originally committed to SVN as r5976.
2011-12-06 19:59:04 +00:00
Thomas Goyne
6ff233b5ac
Convert audio samples to doubles rather than floats when using FFTW
...
Originally committed to SVN as r5975.
2011-12-06 19:58:54 +00:00
Thomas Goyne
5d8a802e8a
Allocate memory for fftw with fftw_alloc_real/fftw_alloc_complex rather than fftw_malloc
...
Originally committed to SVN as r5974.
2011-12-06 19:58:44 +00:00
Thomas Goyne
b4e3208405
Fix off-by-one error causing rendering errors in the vector clip visual tool when bezier curves are used
...
Originally committed to SVN as r5973.
2011-12-06 18:08:33 +00:00
Thomas Goyne
388580e0cc
Add spaces between the components of bezier curves
...
Originally committed to SVN as r5972.
2011-12-06 18:08:23 +00:00
Thomas Goyne
904e0769b1
Remove unused paramters to VideoDisplay::UpdateSize
...
Originally committed to SVN as r5971.
2011-12-06 00:18:13 +00:00
Thomas Goyne
880ea8848c
Document some of VideoContext's members
...
Originally committed to SVN as r5970.
2011-12-06 00:18:04 +00:00
Thomas Goyne
e49486201d
Eliminate the duplication between VideoContext::videoName and VideoContext::videoFile
...
Originally committed to SVN as r5969.
2011-12-06 00:17:54 +00:00
Thomas Goyne
2fa16a78c6
Move snapshot saving from VideoContext to the commands
...
Originally committed to SVN as r5968.
2011-12-06 00:17:45 +00:00
Thomas Goyne
8a7f4038c1
Make the video provider owned solely by ThreadedFrameSource rather than in a shared_ptr stored in several places
...
Originally committed to SVN as r5967.
2011-12-06 00:17:36 +00:00
Thomas Goyne
59fdab5fe7
Remove VideoContext::nextFrame as it's unused
...
Originally committed to SVN as r5966.
2011-12-06 00:17:25 +00:00
Thomas Goyne
c26e61f209
Remove the audio resync code from VideoContext. It didn't actually work with the threaded video provider and should be unneccesary as video now always plays back at full speed (dropping frames if needed).
...
Originally committed to SVN as r5965.
2011-12-05 05:27:05 +00:00
Thomas Goyne
8ab9ba77ae
Remove the prohibition against seeking while video is playing and just do Stop; Seek; Play as the slider already did in some cases
...
Originally committed to SVN as r5964.
2011-12-05 05:26:58 +00:00
Thomas Goyne
f95f1f13cf
Don't block key events on the video slider when video is playing, as this makes stopping the video rather awkward and it's unneccesary
...
Originally committed to SVN as r5963.
2011-12-05 05:26:52 +00:00
Thomas Goyne
2e40652265
Simplify video playback logic
...
Originally committed to SVN as r5962.
2011-12-05 05:26:45 +00:00
Thomas Goyne
1f534bc757
Kill VideoContext::playMutex. I assume it was a relic from the old threaded video display code as it's completely pointless.
...
Originally committed to SVN as r5961.
2011-12-05 05:26:38 +00:00
Thomas Goyne
73ee949d55
Fix bounds checking in the rectangular clip visual tool with detached video
...
Originally committed to SVN as r5960.
2011-12-05 03:22:33 +00:00
Thomas Goyne
009d99407b
Force a relayout of the video display after switching visual tools. Fixes a bug where the subtoolbar would sometimes appear in the wrong place.
...
Originally committed to SVN as r5959.
2011-12-05 01:45:08 +00:00
Thomas Goyne
48d412468e
Make the log dialog not insane and crashy
...
Originally committed to SVN as r5958.
2011-12-02 04:36:06 +00:00
Thomas Goyne
95a329a1e2
Flush the clipboard on exit so that it isn't cleared
...
Originally committed to SVN as r5957.
2011-12-02 04:35:59 +00:00
Thomas Goyne
59ddcab360
Add Ctrl-Shift-S as a default hotkey for Save As
...
Originally committed to SVN as r5956.
2011-12-01 21:59:35 +00:00
Thomas Goyne
df3d3cd409
Fix assertion failure when opening the Jump To dialog on 64-bit linux
...
Originally committed to SVN as r5955.
2011-12-01 04:22:55 +00:00
Thomas Goyne
d6ba00883e
Fix infinite loop when opening video with wxgtk
...
Originally committed to SVN as r5954.
2011-12-01 03:47:19 +00:00
Thomas Goyne
90582c0b15
Use NumValidator to ensure only numbers are typed in the frames box of the jump to dialog. Updates #1319 .
...
Originally committed to SVN as r5953.
2011-12-01 00:43:48 +00:00
Thomas Goyne
157c03ce63
Load the colors for the audio display timeline from the audio colorscheme
...
Originally committed to SVN as r5952.
2011-11-30 21:04:46 +00:00
Thomas Goyne
7bfdc78b72
Load the colors for the audio display scrollbar from the audio colorscheme
...
Originally committed to SVN as r5951.
2011-11-30 21:04:37 +00:00
Thomas Goyne
fa15f0800e
Make audio color schemes selectable in the preferences dialog
...
Originally committed to SVN as r5950.
2011-11-30 21:04:28 +00:00
Thomas Goyne
1a4d116617
Add green audio color scheme similar to the default waveform colors in 2.1. Currently only actually usable by manually editing the config file.
...
Originally committed to SVN as r5949.
2011-11-30 21:04:18 +00:00
Thomas Goyne
9cb7b23345
Get color scheme names from the config rather than hardcoding it
...
Originally committed to SVN as r5948.
2011-11-30 21:04:09 +00:00
Thomas Goyne
598a85c6cd
Move color scheme definitions to the config file
...
Originally committed to SVN as r5947.
2011-11-30 21:03:57 +00:00
Thomas Goyne
f0e98151f1
Close audio if an error occurs while announcing the opened audio as the program is probably in an inconsistent state
...
Originally committed to SVN as r5946.
2011-11-30 04:28:03 +00:00
Thomas Goyne
b4d2bba7a2
Fix the name of the Resample Resolution dialog's help page
...
Originally committed to SVN as r5945.
2011-11-30 03:46:44 +00:00
Thomas Goyne
adb5963fbd
Cast size_ts used in format strings to ints instead as there isn't actually a portable way to format them.
...
Originally committed to SVN as r5944.
2011-11-30 02:44:27 +00:00
Thomas Goyne
f9e8175cb8
Fix wxString::Format assertion failures in 64-bit builds
...
Originally committed to SVN as r5943.
2011-11-30 02:38:42 +00:00
Thomas Goyne
a47f51080c
Also define __STDC_FORMAT_MACROS for commands
...
Originally committed to SVN as r5942.
2011-11-30 02:16:01 +00:00
Thomas Goyne
9203f17f4d
Implement the Lock Scroll on Cursor option in the audio display
...
Originally committed to SVN as r5941.
2011-11-30 00:40:32 +00:00
Thomas Goyne
c6b97612ae
Delay creation of the audio renderer until audio is actually opened
...
Originally committed to SVN as r5940.
2011-11-30 00:40:22 +00:00
Thomas Goyne
8632d5ce75
Remove some unreachable code in SubtitleFormat::AskForFPS
...
Originally committed to SVN as r5939.
2011-11-29 23:26:31 +00:00
Thomas Goyne
500b8b66d8
Make a few of FrameMain's members local to InitContents
...
Originally committed to SVN as r5938.
2011-11-29 23:18:42 +00:00
Thomas Goyne
dfc68a4db9
Make the int/double option type detection slightly less broken
...
Choosing between int and double based on whether the default value is an
int is dumb and broken enough, but with the "ceil" the detection didn't
even work for negative numbers.
Originally committed to SVN as r5937.
2011-11-29 23:18:34 +00:00
Thomas Goyne
b993c02dee
Move AegisubFileDropTarget to frame_main.cpp. It's under ten lines of code so there's really no point in having two separate files for it.
...
Originally committed to SVN as r5936.
2011-11-29 23:18:24 +00:00
Thomas Goyne
bad20c2898
Delete aegisub/src/command/header
...
Originally committed to SVN as r5935.
2011-11-29 23:18:15 +00:00
Thomas Goyne
1374813ee7
Update out-of-date messages about audio players in the configure script
...
Originally committed to SVN as r5934.
2011-11-29 23:18:07 +00:00
Thomas Goyne
eaba8eb177
Define __STDC_FORMAT_MACROS for all files in the Makefile and vc10 project, as was already done in the vc9 project. There's a decent number of files which need it and we don't have any naming conflicts with it so there's no reason not to.
...
Originally committed to SVN as r5933.
2011-11-29 23:17:58 +00:00
Thomas Goyne
0e260409fd
Remove unused OnKeyDown method from DialogSearchReplace
...
Originally committed to SVN as r5932.
2011-11-29 23:17:49 +00:00
Thomas Goyne
19503ef4f8
Simplify HelpButton and add some error handling
...
Originally committed to SVN as r5931.
2011-11-29 23:17:40 +00:00
Thomas Goyne
3f90614fd0
Delete static_bmp.[h|cpp] as it isn't actually used anywhere
...
Originally committed to SVN as r5930.
2011-11-29 23:17:31 +00:00
Thomas Goyne
a445512970
Remove out-of-date comment in auto4_lua.cpp
...
Originally committed to SVN as r5929.
2011-11-29 23:17:20 +00:00
Thomas Goyne
d061e81ada
Disable LTCG in debug builds
...
Originally committed to SVN as r5928.
2011-11-28 23:57:33 +00:00
Thomas Goyne
371bda4f2b
Move standard windows libraries from setup.cpp to the project. Updates #949 .
...
Originally committed to SVN as r5927.
2011-11-28 22:45:27 +00:00
Thomas Goyne
7e1ef51b8e
Remove wx libraries from setup.cpp. Updates #949 .
...
Originally committed to SVN as r5926.
2011-11-28 22:45:16 +00:00
Thomas Goyne
66f3a3ce55
Fix integer overflow in the matroska subtitle loader which resulted in meaningless progress reporting
...
Originally committed to SVN as r5925.
2011-11-28 22:16:58 +00:00
Thomas Goyne
cce9cb3c47
Fix unintended lowercasing of all strings returned from AssFile::GetScriptInfo
...
Originally committed to SVN as r5924.
2011-11-28 22:16:50 +00:00
Thomas Goyne
cdf05af92b
Refactor out a bunch of duplicated code in DialogProperties
...
Originally committed to SVN as r5923.
2011-11-28 22:16:41 +00:00
Thomas Goyne
303432a671
Default to zero when the initial value for a NumValidator is ""
...
Originally committed to SVN as r5922.
2011-11-28 22:16:33 +00:00
Thomas Goyne
ca91097b8f
Revamp script resolution setting logic
...
Rather than setting the default script resolution to 640x480, leave it
unset in new files. When video is opened, if the user has not already
manually set a script resolution, automatically use the video's
resolution as the script resolution. If the user has and the set
resolution is not a multiple of the video resolution, use the old prompt
for updating it.
This eliminates the confusing prompt about mismatched resolutions when
opening video with a new file while hopefully resulting in users using
the correct resolution more often.
Originally committed to SVN as r5921.
2011-11-28 22:16:22 +00:00
Thomas Goyne
f519a493c8
Increment PortAudio refcount even if it's currently initialized
...
Originally committed to SVN as r5920.
2011-11-28 20:02:07 +00:00
Thomas Goyne
3c83d7e326
Add portaudio device selection to the preferences dialog and filter the list of devices to only output devices
...
Originally committed to SVN as r5919.
2011-11-28 20:01:58 +00:00
Thomas Goyne
87496b8767
Finish rewriting the PortAudio player
...
Remove pointless volatiles.
Throw agi::Exception-derived exceptions rather than bare strings.
Eliminate pointless struct which wrapped a few member variables for no
apparent reason.
Use logging statements rather than printf.
Don't set an explicit frame buffer size as the audio providers are fine
with variable sizes and portaudio strongly recommends leaving it up to
the device to decide.
Closes #997 .
Originally committed to SVN as r5918.
2011-11-28 20:01:46 +00:00
Thomas Goyne
c55195e11c
Non-precomp-header compilation
...
Originally committed to SVN as r5917.
2011-11-25 22:12:15 +00:00
Thomas Goyne
e5e159d6b1
Throw agi::Exception derived exceptions from the OSS player rather than bare strings
...
Originally committed to SVN as r5916.
2011-11-25 19:30:42 +00:00
Thomas Goyne
4b51c34497
Fiddle with some compiler settings
...
Originally committed to SVN as r5915.
2011-11-25 19:30:16 +00:00
Thomas Goyne
5f7ca1c7a8
Store paths in the last used paths options rather than file names. Updates #1340 .
...
Originally committed to SVN as r5914.
2011-11-25 19:29:46 +00:00
Thomas Goyne
e095dc06cd
Hacks for Mac, LC_CTYPE must be "" and a wxSafeYield breaks something during FrameMain construction
...
Originally committed to SVN as r5913.
2011-11-25 19:29:17 +00:00
Thomas Goyne
0c5cb8e490
Have the "make adjacent" threshold in TPP have the end of the range be inclusive
...
Originally committed to SVN as r5912.
2011-11-25 19:28:50 +00:00
Thomas Goyne
56e6f7d5b2
Move ASS -> SRT tag conversion to the SRT subtitle format from AssDialogue
...
Originally committed to SVN as r5911.
2011-11-25 19:28:19 +00:00
Thomas Goyne
0992a839cc
Port new SRT parser from 2.1.9. Updates #1301 .
...
Originally committed to SVN as r5910.
2011-11-25 19:27:51 +00:00
Thomas Goyne
1452f1fbe3
Partially remove the Gtk/SCIM locale hack. Updates #1205 , #1248 .
...
Originally committed to SVN as r5909.
2011-11-25 19:27:19 +00:00
Thomas Goyne
6152716003
Make a few strings into format strings for translations. Closes #1093 .
...
Originally committed to SVN as r5908.
2011-11-25 19:26:48 +00:00
Thomas Goyne
7b46ce6380
Don't mark y4m tags as translatable
...
Originally committed to SVN as r5907.
2011-11-25 19:26:21 +00:00
Thomas Goyne
f3c10634d1
Move gl_text's OpenGL header inclusion to the cpp file
...
Originally committed to SVN as r5906.
2011-11-23 18:33:14 +00:00
Thomas Goyne
df50af52e8
Remove OpenGL headers from video_context as it doesn't touch OpenGL anymore
...
Originally committed to SVN as r5905.
2011-11-23 18:33:02 +00:00
Thomas Goyne
88b536f824
Make VideoOutGL's error checking even more completely overboard
...
Originally committed to SVN as r5904.
2011-11-23 18:32:50 +00:00
Thomas Goyne
dc8dbbb535
Make VideoContext::Reset private and use SetVideo to close the video so that the change gets announced properly
...
Originally committed to SVN as r5903.
2011-11-23 18:32:37 +00:00
Thomas Goyne
eb2a6e14fa
Fix a crash caused by the video display recieving a paint event before the first video frame is ready
...
Originally committed to SVN as r5902.
2011-11-23 18:32:23 +00:00
Thomas Goyne
3c9864e888
Fix MRU test compilation
...
Originally committed to SVN as r5901.
2011-11-20 17:35:07 +00:00
Thomas Goyne
893ec95841
Don't load the FPS from Aegisub keyframes. The format breaks vfr and setting the fps should be done with timecode files.
...
Originally committed to SVN as r5900.
2011-11-20 17:35:00 +00:00
Thomas Goyne
2f85e5b398
Fix osx reporter compilation. Patch by torque. Closes #1366 .
...
Originally committed to SVN as r5899.
2011-11-20 17:34:52 +00:00
Thomas Goyne
908d1cadae
Pass the audio renderer absolute coordinates rather than relative so that audio actually scrolls
...
Originally committed to SVN as r5898.
2011-11-20 04:25:05 +00:00
Thomas Goyne
d67cc6032b
Fix portaudio player compilation
...
Originally committed to SVN as r5897.
2011-11-20 03:43:52 +00:00
Thomas Goyne
cead5f92df
fix non-precomp header compilation
...
Originally committed to SVN as r5896.
2011-11-20 03:30:00 +00:00
Thomas Goyne
7998677612
Fix wxGTK assertion failure
...
Originally committed to SVN as r5895.
2011-11-19 05:07:41 +00:00
Thomas Goyne
563a544150
Reload audio when the cache type is changed
...
Originally committed to SVN as r5894.
2011-11-19 04:57:14 +00:00
Thomas Goyne
9a53dc0440
Eliminate some unused variables
...
Originally committed to SVN as r5893.
2011-11-19 04:46:45 +00:00
Thomas Goyne
236ea4261d
Reload audio when the player or provider is changed
...
Originally committed to SVN as r5892.
2011-11-19 01:14:42 +00:00
Thomas Goyne
43d41def4f
Add missing file audio_rendering_style.h
...
Originally committed to SVN as r5891.
2011-11-19 01:14:33 +00:00
Thomas Goyne
275f32dfcf
Remove audio_player_manager.h from the vc9 project as it hasn't existed for quite a while
...
Originally committed to SVN as r5890.
2011-11-19 01:14:24 +00:00
Thomas Goyne
70ba90f024
Clean up the OpenAL audio player a bit
...
Remove pointless volatile modifiers from member variables (there aren't
even any threads involved).
Eliminate all heap memory allocation during playback.
Move comments into the doxygen comments and add some more.
Throw typed exceptions.
Originally committed to SVN as r5889.
2011-11-19 01:14:13 +00:00
Thomas Goyne
70fcece459
Don't create the audio timing controller until audio is actually opened
...
Originally committed to SVN as r5888.
2011-11-18 22:58:22 +00:00
Thomas Goyne
92e10c80a2
Add markers and styling ranges in the audio display for inactive lines. Closes #1327 .
...
Originally committed to SVN as r5887.
2011-11-18 22:58:12 +00:00
Thomas Goyne
3cf1718ef6
Add support for the inactive color scheme to the audio renderers
...
Originally committed to SVN as r5886.
2011-11-18 22:58:02 +00:00
Thomas Goyne
e3b15bf587
Only connect to signals in AudioDisplay when audio is actually open
...
Originally committed to SVN as r5885.
2011-11-18 22:57:54 +00:00
Thomas Goyne
725a334860
Add Inactive style to Icy Blue
...
Originally committed to SVN as r5884.
2011-11-18 22:57:45 +00:00
Thomas Goyne
1eedb0c3d4
Replace InitIcyBlue_Normal and InitIcyBlue_Selected with a single method which takes an audio rendering style as a parameter
...
Originally committed to SVN as r5883.
2011-11-18 22:57:36 +00:00
Thomas Goyne
13a281e9dc
Extract the color lookup in AudioColorScheme to a seperate method
...
Originally committed to SVN as r5882.
2011-11-18 22:57:26 +00:00
Thomas Goyne
262a74dc6f
Remove old audio display color options which have been replaced by the audio color schemes
...
Originally committed to SVN as r5881.
2011-11-18 22:57:17 +00:00
Thomas Goyne
f4a975d64c
Remove unnecessary explicit 'inline'
...
Originally committed to SVN as r5880.
2011-11-18 22:57:07 +00:00
Thomas Goyne
af9be4afa6
Remove #undef min/max as NOMINMAX is now defined by the project
...
Originally committed to SVN as r5879.
2011-11-18 22:56:58 +00:00
Thomas Goyne
8d28b44773
Get audio styling ranges from the timing controller. Based on a patch by jfs.
...
Originally committed to SVN as r5878.
2011-11-18 22:56:45 +00:00
Thomas Goyne
262d5195c5
Add access keys for nearly all things which support them and were missing them. Closes #1070 .
...
Originally committed to SVN as r5877.
2011-11-18 18:49:09 +00:00
Thomas Goyne
2c2bb54e11
Add access keys for most entries in the main menu bar and eliminate a few duplicates. Updates #1078 .
...
Originally committed to SVN as r5876.
2011-11-18 05:00:20 +00:00
Thomas Goyne
0db92549d7
Eliminate some probably spurious uninitialized variable warnings
...
Originally committed to SVN as r5875.
2011-11-18 04:06:03 +00:00
Thomas Goyne
c119d2d84b
Don't try to use the active line in a handler for COMMIT_NEW as it may not be valid
...
Originally committed to SVN as r5874.
2011-11-18 04:04:35 +00:00
Thomas Goyne
28c7e7dec3
Bind wxEVT_SIZE in the video display even when attached. There doesn't seem to be any reason not to and it fixes some bugs with resizing the main window.
...
Originally committed to SVN as r5873.
2011-11-18 01:20:47 +00:00
Thomas Goyne
ff03168f4c
Show decimals in the cross visual tool only when the video resolution is greater than the script resolution
...
Originally committed to SVN as r5872.
2011-11-17 18:21:30 +00:00
Thomas Goyne
f863e28479
Add Select All to the subtitles menu. Closes #1226 .
...
Originally committed to SVN as r5871.
2011-11-17 03:58:05 +00:00
Thomas Goyne
8831de5774
Modify a few strings to ease translations
...
Originally committed to SVN as r5870.
2011-11-17 02:21:46 +00:00
Thomas Goyne
bf285cfa50
Make the undo/redo strings more localization-friendly. Closes #1104 .
...
Originally committed to SVN as r5869.
2011-11-17 02:19:10 +00:00
Thomas Goyne
1590b2a65e
Add validator to the subtitle save command to check if there are actually unsaved changes
...
Originally committed to SVN as r5868.
2011-11-16 22:43:56 +00:00
Thomas Goyne
14c9d8ec87
Fix validate method for the subtitle/select/visible command
...
Originally committed to SVN as r5867.
2011-11-16 22:43:45 +00:00
Thomas Goyne
2cb234b414
Change the default for Video/Check Script Res to 1 (Ask). Closes #1138 .
...
Originally committed to SVN as r5866.
2011-11-16 21:59:48 +00:00
Thomas Goyne
da09d71239
Expand text boxes in the preferences dialog to fill available space
...
Originally committed to SVN as r5865.
2011-11-16 21:59:39 +00:00
Thomas Goyne
a6ecf821c9
Add some options to the preferences dialog
...
Originally committed to SVN as r5864.
2011-11-16 21:59:31 +00:00
Thomas Goyne
88e5392d37
Remove a few unused options
...
Originally committed to SVN as r5863.
2011-11-16 21:59:22 +00:00
Thomas Goyne
0f2cea4226
Fix the option name for max undo levels in the preferences dialog
...
Originally committed to SVN as r5862.
2011-11-16 21:59:12 +00:00
Thomas Goyne
95a1071a1b
Add the script file name to the close confirmation dialog. Closes #879 .
...
Originally committed to SVN as r5861.
2011-11-16 21:58:58 +00:00
Thomas Goyne
de03dfd8a8
Add an option to disable keyframes in the audio display only in karaoke mode. Closes #644 .
...
Originally committed to SVN as r5860.
2011-11-16 19:56:09 +00:00
Thomas Goyne
91a62836a5
Move the keyframe marker provider from the audio controller to the timing controllers
...
Originally committed to SVN as r5859.
2011-11-16 19:56:00 +00:00
Thomas Goyne
29518f585a
Move AudioMarkerProviderKeyframes from audio_controller.cpp to its own header/source files
...
Originally committed to SVN as r5858.
2011-11-16 19:55:49 +00:00
Thomas Goyne
75d471c538
Remove unneeded overloaded operators for AudioMarkerKeyframe
...
Originally committed to SVN as r5857.
2011-11-16 19:55:40 +00:00
Thomas Goyne
672f420d6c
Fix race conditions in the dsound2 player that occasionally resulted in audio playback stopping instantly
...
Originally committed to SVN as r5856.
2011-11-16 19:55:31 +00:00
Thomas Goyne
b16f1a0698
Use scoped_ptr to store the worker thread in DirectSoundPlayer2
...
Originally committed to SVN as r5855.
2011-11-16 19:55:22 +00:00
Thomas Goyne
f45d9f8e2d
Make pointlessly protected members of DirectSourcePlayer2 private
...
Originally committed to SVN as r5854.
2011-11-16 19:55:13 +00:00
Thomas Goyne
539dc2fbe4
Don't try to handle exceptions thrown by delete
...
Originally committed to SVN as r5853.
2011-11-16 19:55:04 +00:00
Thomas Goyne
a5f6e0588e
Move doxygen comments in the dsound2 player to the declarations from the defitions
...
Originally committed to SVN as r5852.
2011-11-16 19:54:55 +00:00
Thomas Goyne
554a61daf5
Remove redundant wxLogErrors in DirectSoundPlayer2 that the scripted conversion to the new logging system missed
...
Originally committed to SVN as r5851.
2011-11-16 19:54:45 +00:00
Thomas Goyne
3dd5cbd31d
Check for COMMIT_NEW in the visual tools correctly
...
Originally committed to SVN as r5850.
2011-11-16 19:54:35 +00:00
Thomas Goyne
55fc6c753e
Round scales to ints as VSFilter doesn't actually support nonint scales so it's just pointless ugliness
...
Originally committed to SVN as r5849.
2011-11-16 19:54:25 +00:00
Thomas Goyne
4be9c302d3
Fix rendering of the clip visual tools with detached video
...
Originally committed to SVN as r5847.
2011-11-12 01:23:40 +00:00
Thomas Goyne
51149104d9
Make all of VideoBox's members private
...
Originally committed to SVN as r5846.
2011-11-12 01:23:29 +00:00
Thomas Goyne
feb752c24c
Store the video display and slider in the context directly rather than going through the video box. Fxes a crash when detaching video.
...
Originally committed to SVN as r5845.
2011-11-12 01:23:18 +00:00
Thomas Goyne
0b742ef3c1
Add operator unspecified-bool-type to agi::scoped_ptr
...
Originally committed to SVN as r5844.
2011-11-12 01:23:09 +00:00
Thomas Goyne
d4ee9da474
Flip the y axis in the scale tool so that moving the mouse up increases size
...
Originally committed to SVN as r5843.
2011-11-12 01:22:45 +00:00
Thomas Goyne
c4369a092f
Fix wxGTK assertion failure when opening the TPP dialog
...
Originally committed to SVN as r5842.
2011-11-09 03:47:26 +00:00
Thomas Goyne
a0b74f4424
Fix wxGTK assertion failure in audio_karaoke.cpp
...
Originally committed to SVN as r5841.
2011-11-09 02:29:36 +00:00
Thomas Goyne
4bd34ee32f
Actually compile ffms and libass providers when they're enabled
...
Originally committed to SVN as r5838.
2011-11-08 06:06:43 +00:00
Thomas Goyne
c763026bfc
Explicitly declare a storage location for AudioDisplayScrollbar::min_width
...
Originally committed to SVN as r5837.
2011-11-08 04:53:51 +00:00
Thomas Goyne
3a80292762
Increase required wx version to 2.9.2
...
Originally committed to SVN as r5836.
2011-11-08 04:14:03 +00:00
Thomas Goyne
2d61579a65
Remove the AC_LIB_RPATH hack as it breaks gettext detection and generates a million warnings
...
Originally committed to SVN as r5835.
2011-11-08 04:12:47 +00:00
Thomas Goyne
06932668ee
Wrap the code argument to AC_*_IFELSE with AC_LANG_SOURCE
...
Originally committed to SVN as r5834.
2011-11-08 04:06:31 +00:00
Thomas Goyne
1073b3f7f0
Remove bogus (and pointless) initialization in the glibc iconv-backed converter
...
Originally committed to SVN as r5833.
2011-11-08 03:44:46 +00:00
Thomas Goyne
bf70b14dfa
Add GL to the reporter's LDFLAGS
...
Originally committed to SVN as r5832.
2011-11-08 03:43:01 +00:00
Thomas Goyne
c04af51c86
Include lua.hpp rather than the .h versions on non-windows as lua is normally compiled as C, not C++
...
Originally committed to SVN as r5831.
2011-11-08 01:18:16 +00:00
Thomas Goyne
89541a949f
Actually hide override tags in hide tags mode. Closes #1360 .
...
Originally committed to SVN as r5830.
2011-11-08 00:25:02 +00:00
Thomas Goyne
dc380c5848
Refactor BaseGrid painting a bit
...
Originally committed to SVN as r5829.
2011-11-08 00:24:53 +00:00
Thomas Goyne
8e81fd07ed
Move everything but the subtitle modification utility functions from SubtitlesGrid to BaseGrid. There never has been a clean division of responsibilities between them and the split mostly just made things awkward.
...
Originally committed to SVN as r5828.
2011-11-08 00:24:41 +00:00
Thomas Goyne
14d734298e
Add -lrt to the test for ALSA
...
Originally committed to SVN as r5827.
2011-11-07 15:50:52 +00:00
Thomas Goyne
2f394a7792
Fix compilation with clang (but not linking because wxAny is currently broken with it)
...
Originally committed to SVN as r5826.
2011-11-07 06:18:34 +00:00
Thomas Goyne
8b5545c98f
Finish porting the alsa player from 2.1.9 so that it actually compiles
...
Originally committed to SVN as r5825.
2011-11-07 05:24:46 +00:00
Thomas Goyne
0aa553eb7c
compilation fixes
...
Originally committed to SVN as r5824.
2011-11-07 04:14:09 +00:00
Thomas Goyne
be77dc8307
Mostly rewrite the visual tools and related classes
...
Convert all coordinates within the visual tools to Vector2D, which has
been significantly extended. Eliminates a lot of issues with accumulated
rounding errors and simplifies a lot of code.
Modernize the visual tools' interactions with the rest of Aegisub by
connecting to signals directly rather than routing everything through
the video display and converting the main visual tool mode toolbar to
the command system.
Extract all references to OpenGL from the visual tools and move them to
OpenGLWrapper as a first step towards making it possible to implement an
alternative video renderer. In the process, eliminate all uses of OpenGL
immediate mode.
Fix a bunch of minor issues and general instability.
Originally committed to SVN as r5823.
2011-11-06 17:18:20 +00:00
Thomas Goyne
2e5cbf079e
Update ?script after save as
...
Originally committed to SVN as r5822.
2011-11-06 17:18:14 +00:00
Thomas Goyne
5176ae4407
Flush hotkeys after they're modified
...
Originally committed to SVN as r5821.
2011-11-06 17:18:08 +00:00
Thomas Goyne
e9e02539ac
Fix crash when setting hotkeys
...
Originally committed to SVN as r5820.
2011-11-06 17:18:02 +00:00
Thomas Goyne
abaf8fc2c4
Non-precompiled-header compilation fix
...
Originally committed to SVN as r5819.
2011-11-04 19:42:59 +00:00
Thomas Goyne
092ecafe58
Make ConfigVisitor::AddOptionValue less dumb
...
Originally committed to SVN as r5818.
2011-11-04 19:42:50 +00:00
Thomas Goyne
8fcd3daf28
Rewrite the array config visitor so that it doesn't need the OptionValueList base class
...
Originally committed to SVN as r5817.
2011-11-04 19:42:40 +00:00
Thomas Goyne
84c545b978
Return const references from OptionValue::GetList* rather than taking an output parameter. Eliminates some copies of lists and makes the calling code less awkward.
...
Originally committed to SVN as r5816.
2011-11-04 19:42:31 +00:00
Thomas Goyne
ba2794b2fe
Replace some const strings with const references to strings
...
Originally committed to SVN as r5815.
2011-11-04 19:42:21 +00:00
Thomas Goyne
05059732f9
Replace incorrect uses of bitwise or with logical or
...
Originally committed to SVN as r5814.
2011-11-04 19:42:12 +00:00
Thomas Goyne
579203989b
Remove pointless explicit empty constructors from OptionValue base classes
...
Originally committed to SVN as r5813.
2011-11-04 19:42:04 +00:00
Thomas Goyne
723d3b9780
Pass const references into OptionValue::SetList* rather than const values
...
Originally committed to SVN as r5812.
2011-11-04 19:41:54 +00:00
Thomas Goyne
6e2e87c0b5
Fix incorrect lowercasing in AssFile::GetScriptInfo
...
Originally committed to SVN as r5811.
2011-11-04 19:41:43 +00:00
Thomas Goyne
f48bc59694
Add locks around CSRI operations as VSFilter isn't even vaguely threadsafe
...
Originally committed to SVN as r5810.
2011-11-04 05:11:31 +00:00
Thomas Goyne
29f0786c81
Update the video box time boxes when the active line changes
...
Originally committed to SVN as r5809.
2011-11-04 05:11:24 +00:00
Thomas Goyne
4d2a2c618e
Set the user agent used for the update checker requests rather than leaving it as 'wxWidgets 2.x'
...
Originally committed to SVN as r5808.
2011-11-03 22:50:54 +00:00
Thomas Goyne
2cbe7455bb
Don't set icons for check and radio menu items as checked icons aren't supported yet
...
Originally committed to SVN as r5807.
2011-11-03 00:29:23 +00:00
Thomas Goyne
6a31f840a6
Fix crash when slots disconnect from a signal in response to that signal
...
Originally committed to SVN as r5806.
2011-11-03 00:29:13 +00:00
Thomas Goyne
ccebd521c6
Fix errors in update checker resulting from trying to use the wrong option type
...
Originally committed to SVN as r5805.
2011-10-29 05:12:19 +00:00
Thomas Goyne
dedccc1f58
Handle errors when opening audio via the MRU menu
...
Originally committed to SVN as r5804.
2011-10-29 04:31:05 +00:00
Thomas Goyne
52a2316934
Don't display an error message if the user cancels audio loading
...
Originally committed to SVN as r5803.
2011-10-29 04:30:58 +00:00
Thomas Goyne
31a3b9aae0
Do nothing if video is played with no video loaded rather than crashing
...
Originally committed to SVN as r5802.
2011-10-29 04:30:52 +00:00
Thomas Goyne
402ba0e89d
Fix loading subtitles from matroska files
...
Originally committed to SVN as r5801.
2011-10-29 04:16:31 +00:00
Thomas Goyne
6315192e2b
Don't reuse buffers in the audio provider converters, as it isn't thread-safe to do so and making it thread-safe would hurt performance more than the extra allocations
...
Originally committed to SVN as r5800.
2011-10-29 03:47:02 +00:00
Thomas Goyne
af3f160f43
Increase msvc heap limit to 130 so that the precompiled header is buildable
...
Originally committed to SVN as r5799.
2011-10-29 03:46:57 +00:00
Thomas Goyne
085560b8c8
Use a single class for all audio endian and bit-depth conversion as while it's slower than the specialized ones, it isn't significantly so
...
Originally committed to SVN as r5798.
2011-10-29 03:46:51 +00:00
Thomas Goyne
f9408031b6
Add support for 24-64 bit audio. Based on a patch by SAPikachu. Updates #1292 .
...
Originally committed to SVN as r5797.
2011-10-29 03:46:44 +00:00
Thomas Goyne
7f06849531
Rewrite the audio format converters, splitting each conversion into its own class
...
Originally committed to SVN as r5796.
2011-10-29 03:46:36 +00:00
Thomas Goyne
9a8fb66fbf
Remove an unused variable in BaseGrid::UpdateMaps
...
Originally committed to SVN as r5795.
2011-10-28 20:40:53 +00:00
Thomas Goyne
f48f17cd0b
Implement the hotkey page of the preferences dialog
...
Originally committed to SVN as r5794.
2011-10-28 20:40:43 +00:00
Thomas Goyne
6c995e7780
Add support for modifying hotkeys while the program is running
...
Originally committed to SVN as r5793.
2011-10-28 20:40:32 +00:00
Thomas Goyne
cba0b1edb8
Add a function to get a list of all registered command names
...
Originally committed to SVN as r5792.
2011-10-28 20:40:20 +00:00
Thomas Goyne
ffa622d698
Fix compilation without precompiled headers
...
Originally committed to SVN as r5791.
2011-10-28 20:15:10 +00:00
Thomas Goyne
0a04b62d1d
Add a long overload to UnknownElement for gcc
...
Originally committed to SVN as r5790.
2011-10-28 20:13:58 +00:00
Thomas Goyne
f9f84b18f7
Use the error style for the entire thing-that-can't-be-a-tag-name rather than just the first character when a backslash is followed by garbage in an override block
...
Originally committed to SVN as r5786.
2011-10-26 02:48:08 +00:00
Thomas Goyne
48070be3a3
Move the audio display mouse wheel handling to the audio box so that it can update the horizontal zoom scrollbar
...
Originally committed to SVN as r5785.
2011-10-25 20:28:30 +00:00
Thomas Goyne
b4ace668de
Only display the cursor time in the audio display when it's enabled
...
Originally committed to SVN as r5784.
2011-10-25 20:28:19 +00:00
Thomas Goyne
17b9347562
Add mouse wheel forwarding to ScintillaTextCtrl as wxSTC uses the scroll wheel
...
Originally committed to SVN as r5783.
2011-10-25 19:41:06 +00:00
Thomas Goyne
9ed1653aae
Add mouse wheel forwarding code to FrameMain for when focus is on something that doesn't handle scroll events
...
Originally committed to SVN as r5782.
2011-10-25 19:40:57 +00:00
Thomas Goyne
1741ce93f6
Factor out the mouse wheel forwarding code in the audio display to a function used by the audio display, video display and subtitles grid, and make it actually work
...
Originally committed to SVN as r5781.
2011-10-25 19:40:45 +00:00
Thomas Goyne
be75262f73
Reload scripts through their manager so that the menu is aware of changes
...
Originally committed to SVN as r5780.
2011-10-25 19:02:01 +00:00
Thomas Goyne
ec9d50a43a
Set shadow_w to the correct value in AssStyle's copy constructor
...
Originally committed to SVN as r5779.
2011-10-25 19:01:53 +00:00
Thomas Goyne
f6c8c83f5a
Obey the option to disable the keyframe markers in the audio display
...
Originally committed to SVN as r5778.
2011-10-25 19:01:41 +00:00
Thomas Goyne
7476dfd9c6
Use GetScriptInfoAsInt in AssFile::GetResolution
...
Originally committed to SVN as r5777.
2011-10-25 01:16:56 +00:00
Thomas Goyne
af19dad6ea
Remove pointless try\catch in AssFile;GetScriptInfoAsInt (wx functions don't throw exceptions)
...
Originally committed to SVN as r5776.
2011-10-25 01:16:47 +00:00
Thomas Goyne
2ad0342103
Make AssFile::GetScriptInfo slightly less dumb
...
Originally committed to SVN as r5775.
2011-10-25 01:16:36 +00:00
Thomas Goyne
5c487ae75f
Don't apply the changes from an automation macro if an error occured
...
Originally committed to SVN as r5774.
2011-10-25 01:15:03 +00:00
Thomas Goyne
3a218c9dd4
Only set video zoom when loading associated video if it's actually present in the file
...
Originally committed to SVN as r5772.
2011-10-24 20:18:25 +00:00
Thomas Goyne
10464e4617
Kill AegisubApp::OnMouseWheel. It breaks the mouse wheel in dialogs, and it didn't actually work at the moment and isn't really the right way to handle mouse wheel forwarding in the first place
...
Originally committed to SVN as r5771.
2011-10-24 20:18:16 +00:00
Thomas Goyne
5e01f09b30
Refactor DialogAutomation::OnInfo
...
Originally committed to SVN as r5770.
2011-10-24 20:18:07 +00:00
Thomas Goyne
7f7aba1bcf
Make cmd::Command::name const
...
Originally committed to SVN as r5769.
2011-10-24 20:17:57 +00:00
Thomas Goyne
4e1e68c88b
Allow adding multiple scripts at once in the automation dialog
...
Originally committed to SVN as r5768.
2011-10-24 20:17:48 +00:00
Thomas Goyne
5cb7bdcbaf
Set the event object for colour button click events. Fixes a bug where colour buttons in automation dialogs were completely broken.
...
Originally committed to SVN as r5767.
2011-10-24 20:17:40 +00:00
Thomas Goyne
374a43cd8b
Simplify and speed up the hsl and hsv slider creation code in the color picker dialog
...
Originally committed to SVN as r5766.
2011-10-24 20:17:30 +00:00
Thomas Goyne
c1de03210d
Set the style dropdown's value after undo
...
Originally committed to SVN as r5763.
2011-10-23 17:00:32 +00:00
Thomas Goyne
f29e889776
Always update column widths after a new line is added or removed
...
Originally committed to SVN as r5762.
2011-10-23 17:00:26 +00:00
Thomas Goyne
f875938ee4
Don't report a user cancel when the user clicks on the 'Close' button after completion in the progress dialog
...
Originally committed to SVN as r5761.
2011-10-23 17:00:21 +00:00
Thomas Goyne
1364527681
Fix error when trying to insert to the end of the file from auto4lua
...
Originally committed to SVN as r5760.
2011-10-23 17:00:14 +00:00
Thomas Goyne
d4e17dde2e
Factor out the idea of a pen bound to options to a utility class
...
Originally committed to SVN as r5759.
2011-10-19 04:19:01 +00:00
Thomas Goyne
62f37772a3
Fix a pile of issues that resulted in the Actor box not working at all
...
Originally committed to SVN as r5758.
2011-10-19 04:05:09 +00:00
Thomas Goyne
035445e93a
When the cursor is in a comment block, insert override tags at the beginning of the block rather than inside the comment
...
Originally committed to SVN as r5757.
2011-10-19 03:24:10 +00:00
Thomas Goyne
4009d24e73
Return an approriately-sized empty icon from icon::get if no icon exists
...
Originally committed to SVN as r5756.
2011-10-18 00:10:02 +00:00
Thomas Goyne
1da6f46cb2
Log a warning in icon::get if the icon doesn't exist rather than using printf
...
Originally committed to SVN as r5755.
2011-10-18 00:09:51 +00:00
Thomas Goyne
c7d0ce60ee
Make the style editor commit its own changes. Fixes some issues where changes made in the style editor would fail to update the rest of the program.
...
Originally committed to SVN as r5754.
2011-10-17 22:00:58 +00:00
Thomas Goyne
a75aa7a633
Eliminate a bunch of pointlessness in json::Writer
...
Originally committed to SVN as r5753.
2011-10-17 22:00:49 +00:00
Thomas Goyne
dd46c7af7f
Completely ditch json::Array and json::Object's custom implementations and switch to typedefs to STL types.
...
Originally committed to SVN as r5752.
2011-10-17 22:00:38 +00:00
Thomas Goyne
4e8848c110
Eliminate a bunch of now unneccesary explicit casts to/from json types
...
Originally committed to SVN as r5751.
2011-10-17 22:00:28 +00:00
Thomas Goyne
b4fa4e6f0c
Expose all std::deque members in json::Array
...
Originally committed to SVN as r5750.
2011-10-17 22:00:18 +00:00
Thomas Goyne
0dee6ea223
Add some convenience overloads to UnknownElement's constructor
...
Originally committed to SVN as r5749.
2011-10-17 22:00:09 +00:00
Thomas Goyne
36280b7a2b
Kill TrivialType_T as it's completely pointless
...
Originally committed to SVN as r5748.
2011-10-17 21:59:59 +00:00
Thomas Goyne
9dc9047c11
Change json::Object's backing store from a list to a map. Cajun used list to preserve order, but json objects do not guarantee that order will be preserved
...
Originally committed to SVN as r5747.
2011-10-17 21:59:47 +00:00
Thomas Goyne
2f64a116a7
Make cajun containers implement the STL container interfaces rather than being retarded special snowflakes
...
Originally committed to SVN as r5746.
2011-10-17 21:59:35 +00:00
Thomas Goyne
85bfb91f73
Add cajun headers to the vc9 libaegisub project
...
Originally committed to SVN as r5745.
2011-10-17 21:59:24 +00:00
Thomas Goyne
2f43ef2fca
Clean up the color picker dialog somewhat
...
Originally committed to SVN as r5744.
2011-10-17 17:52:49 +00:00
Thomas Goyne
04e385b4d5
Fix potential crash when opening the colorpicker dialog caused by use of an uninitialized variable
...
Originally committed to SVN as r5743.
2011-10-17 17:52:40 +00:00
Thomas Goyne
8daa6cfdc2
When setting the start or end time of a subtitle line to the current video frame, if the resulting line duration would be less than one frame also update the other time
...
Originally committed to SVN as r5742.
2011-10-17 17:52:31 +00:00
Thomas Goyne
6895e91e7c
Fix validation for Make Lines Continuous
...
Originally committed to SVN as r5741.
2011-10-17 17:52:22 +00:00
Thomas Goyne
cc9cc6d713
Use FFMS_SetOutputFormatV2 with sufficiently recent FFMS2 rather than the deprecated FFMS_SetOutputFormatV
...
Originally committed to SVN as r5740.
2011-10-17 17:52:11 +00:00
Thomas Goyne
98777eff4e
Use the per-platform default audio player from configure rather than always defaulting to portaudio
...
Originally committed to SVN as r5738.
2011-10-12 23:08:29 +00:00
Thomas Goyne
bb4c10a140
Make the audio play commands stop the video like in 2.1.x
...
Originally committed to SVN as r5737.
2011-10-12 23:08:20 +00:00
Thomas Goyne
bf5e504c59
Combine duplicated commands time/snap/frame and time/frame/current into one command that actually works
...
Originally committed to SVN as r5736.
2011-10-12 23:08:11 +00:00
Thomas Goyne
54f359f91b
Enable the correct shift amount text box when opening the shift times dialog rather than always enabling the time one
...
Originally committed to SVN as r5735.
2011-10-12 23:08:02 +00:00
Thomas Goyne
b7efafe3b8
Fix calculation of the time column widths
...
Originally committed to SVN as r5734.
2011-10-12 23:07:38 +00:00
Thomas Goyne
98786aecba
Fix the spelling of 'Choose...' in the preferences dialog
...
Originally committed to SVN as r5733.
2011-10-11 04:33:41 +00:00
Thomas Goyne
306664d16e
Make the browse and font pick buttons in the preferences dialog actually work, and delete BrowseButton as it's no longer used by anything.
...
Originally committed to SVN as r5732.
2011-10-11 00:06:44 +00:00
Thomas Goyne
91ab2ee9ba
Make option names not dumb and wrong
...
Originally committed to SVN as r5731.
2011-10-11 00:06:34 +00:00
Thomas Goyne
a3d9deddb9
Fix endless recursion between SubsTextEditCtrl::UpdateCallTip and UpdateStyle
...
Originally committed to SVN as r5730.
2011-10-11 00:06:25 +00:00
Thomas Goyne
557e61722b
Kill DialogStyleEditor::OnChooseFont, which has been unused for over four years
...
Originally committed to SVN as r5729.
2011-10-11 00:06:13 +00:00
Thomas Goyne
7dfaa6427c
Implement the video position marker in the audio display
...
Originally committed to SVN as r5728.
2011-10-10 21:04:23 +00:00
Thomas Goyne
a260a998b3
Convert newlines to \N when pasting rather than trying to clean them up later
...
Originally committed to SVN as r5727.
2011-10-10 20:59:04 +00:00
Thomas Goyne
6e30ff633c
Fix compilation without precompiled headers
...
Originally committed to SVN as r5726.
2011-10-10 19:30:11 +00:00
Thomas Goyne
fdf74309a5
Don't revert changes to the filename made when undoing. Updates #1345 .
...
Originally committed to SVN as r5725.
2011-10-10 17:29:35 +00:00
Thomas Goyne
eb947b3914
Remove dead code in AssFile::CanSave
...
Originally committed to SVN as r5724.
2011-10-10 17:29:26 +00:00
Thomas Goyne
e91834d667
Fix a few colourbutton issues in DialogStyleEditor
...
Originally committed to SVN as r5723.
2011-10-10 17:29:17 +00:00
Thomas Goyne
bd18ad11cb
Fix bug making it impossible to modify styles via the style editor
...
Originally committed to SVN as r5722.
2011-10-10 17:29:09 +00:00
Thomas Goyne
882ee76d59
Eliminate large amounts of duplicated code in DialogStyleEditor
...
Originally committed to SVN as r5721.
2011-10-10 17:28:59 +00:00
Thomas Goyne
cbcc581cea
Use PersistLocation for saving and restoring DialogStyleEditor's position
...
Originally committed to SVN as r5720.
2011-10-10 17:28:48 +00:00
Thomas Goyne
9ccd06b610
Uninvert playing the first/last 500ms of the selection
...
Originally committed to SVN as r5709.
2011-10-01 18:35:37 +00:00
Thomas Goyne
ac37a080c4
Change edit/search_replace to edit/find_replace in the default menu
...
Originally committed to SVN as r5708.
2011-10-01 18:35:31 +00:00
Thomas Goyne
a8caf35ebe
Fix flipped subtitles with libass + avisynth
...
Originally committed to SVN as r5707.
2011-10-01 18:35:25 +00:00
Thomas Goyne
8624f923d9
Add edit box font face and size to the preferences dialog
...
Originally committed to SVN as r5706.
2011-10-01 18:35:19 +00:00
Thomas Goyne
3ff8591c22
Add a third period to ellipses with only two
...
Originally committed to SVN as r5705.
2011-10-01 18:35:12 +00:00
Thomas Goyne
9b00fad2fc
Include the column headers in the column width calculations in BaseGrid
...
Originally committed to SVN as r5704.
2011-10-01 18:35:06 +00:00
Thomas Goyne
3dc0ed6c56
Use CmdDown in BaseGrid rather than #ifdefs
...
Originally committed to SVN as r5703.
2011-10-01 18:35:00 +00:00
Thomas Goyne
c199bd6d18
Only forward scroll wheel events to siblings and not parents to work around wx weirdness
...
Originally committed to SVN as r5702.
2011-10-01 18:34:49 +00:00
Thomas Goyne
5be401a1de
Rename edit/search_replace to edit/find_replace for consistency
...
Originally committed to SVN as r5701.
2011-09-30 23:51:41 +00:00
Thomas Goyne
76467584bb
Rearrange FrameMain's constructor so that the frame is shown before the updates check and files are loaded. Fixes some ugliness and a bug where the detached video dialog wasn't being parented correctly
...
Originally committed to SVN as r5700.
2011-09-30 20:43:04 +00:00
Thomas Goyne
e2ea5598fc
Remove a pointless sizer around the video box
...
Originally committed to SVN as r5699.
2011-09-30 20:42:55 +00:00
Thomas Goyne
87290be48e
Use Close rather than Destroy when closing the detached video dialog via the command
...
Originally committed to SVN as r5698.
2011-09-30 20:42:46 +00:00
Thomas Goyne
da6a208062
Bind wxEVT_LEFT_DCLICK in VideoDisplay so the cross and drag visual tools work
...
Originally committed to SVN as r5697.
2011-09-30 20:42:37 +00:00
Thomas Goyne
ce1783a868
Fix crash on commit in karaoke mode when autocommit is off
...
Originally committed to SVN as r5696.
2011-09-30 20:42:28 +00:00
Thomas Goyne
529f61e655
Allow overriding the aspect ratio when video is detached
...
Originally committed to SVN as r5695.
2011-09-30 20:42:20 +00:00
Thomas Goyne
3776051f96
Make the karaoke syllable table from aegisub.parse_karaoke_data zero-based for backward compatibility
...
Originally committed to SVN as r5694.
2011-09-30 20:42:09 +00:00
Thomas Goyne
5c75c9f708
Implement the audio scroll commands
...
Originally committed to SVN as r5693.
2011-09-30 20:41:56 +00:00
Thomas Goyne
597dd4bb8e
Don't try to detach on video open if the video is already detached
...
Originally committed to SVN as r5692.
2011-09-30 20:41:44 +00:00
Thomas Goyne
bdcc2ec170
Defriend VideoContext and AudioProvider
...
Originally committed to SVN as r5691.
2011-09-30 20:41:33 +00:00
Thomas Goyne
ea2525cd00
Remove unneccesary forward declarations from video_context.h
...
Originally committed to SVN as r5690.
2011-09-30 20:41:22 +00:00
Thomas Goyne
8bda12596a
Increase the minimum width of the thumb in the audio display scrollbar
...
Originally committed to SVN as r5689.
2011-09-30 20:41:10 +00:00
Thomas Goyne
8f918a59c2
Add some missing customizable subtitle grid colors to the preferences dialog
...
Originally committed to SVN as r5688.
2011-09-30 20:40:58 +00:00
Thomas Goyne
d5c4a9bec6
Get line start and end marker colors in dialogue mode from options
...
Originally committed to SVN as r5687.
2011-09-30 20:40:44 +00:00
Thomas Goyne
c4544839e9
Explicitly set the size of ColourButton as the default looks somewhat odd with wx trunk
...
Originally committed to SVN as r5686.
2011-09-29 20:27:50 +00:00
Thomas Goyne
546ced012a
Fix option names for syntax highlighting colors
...
Originally committed to SVN as r5685.
2011-09-29 20:27:40 +00:00
Thomas Goyne
0f8bafb432
Change default color for the end of line marker in the audio display to blue
...
Originally committed to SVN as r5684.
2011-09-29 20:27:32 +00:00
Thomas Goyne
62181365b9
Default to 25 FPS if there are too few frames in a video to compute the FPS
...
Originally committed to SVN as r5683.
2011-09-29 20:27:23 +00:00
Thomas Goyne
32463efb08
Fix crash when trying to open audio from file with no audio tracks
...
Originally committed to SVN as r5682.
2011-09-29 20:27:13 +00:00
Thomas Goyne
7b1dea1a7a
Eliminate flickering when moving the mouse over the karaoke split/join bar
...
Originally committed to SVN as r5681.
2011-09-29 18:17:37 +00:00
Thomas Goyne
ab52f9a441
Move most of the autosave logic to AssFile and only autosave if there's actually been changes since the last autosave
...
Originally committed to SVN as r5680.
2011-09-29 18:17:27 +00:00
Thomas Goyne
00dd477a40
Remove unused method FrameMain::OnSubtitlesSave
...
Originally committed to SVN as r5679.
2011-09-29 18:17:17 +00:00
Thomas Goyne
08307674a0
Make AudioBox responsible for showing and hiding the karaoke bar, and make it shift the subs box down rather than shrink the audio display
...
Originally committed to SVN as r5678.
2011-09-29 05:33:10 +00:00
Thomas Goyne
094a6d081c
Move the audio box height management code from FrameMain to AudioBox
...
Originally committed to SVN as r5677.
2011-09-29 05:33:04 +00:00
Thomas Goyne
c211975b65
Remove unused window IDs in AudioBox
...
Originally committed to SVN as r5676.
2011-09-29 05:32:58 +00:00
Thomas Goyne
fca7657e60
Don't let the user drag the audio sash below the bottom of the window as it's rather hard to drag back afterwards
...
Originally committed to SVN as r5675.
2011-09-29 04:38:34 +00:00
Thomas Goyne
a00a3047cb
Save and restore the height of the audio display across sessions
...
Originally committed to SVN as r5674.
2011-09-29 04:38:27 +00:00
Thomas Goyne
6beb266c15
Use the end of line marker style for the end marker in karaoke mode rather than the start of line style
...
Originally committed to SVN as r5673.
2011-09-29 04:38:22 +00:00
Thomas Goyne
9b9482b96f
Set the subs box's style and size correctly
...
Originally committed to SVN as r5672.
2011-09-29 04:38:15 +00:00
Thomas Goyne
9ad1434f37
Don't rely on ADL for std algorithms called on wxArrayInt as wxArrayInt doesn't always inherit from std::vector
...
Originally committed to SVN as r5671.
2011-09-29 02:33:22 +00:00
Thomas Goyne
34a7f16214
Skip over invalid entries in the MRU file rather than crashing on startup
...
Originally committed to SVN as r5670.
2011-09-29 00:37:18 +00:00
Thomas Goyne
c328bdfa5f
Fix typo that resulted in automation macros not being able to set undo points
...
Originally committed to SVN as r5669.
2011-09-29 00:10:22 +00:00
Thomas Goyne
0f605b358f
Make the automation dialog resizable
...
Originally committed to SVN as r5668.
2011-09-28 21:38:18 +00:00
Thomas Goyne
6a49b5392d
Write MRU data to disk whenever a change is made rather than only on program exit
...
Originally committed to SVN as r5667.
2011-09-28 19:52:46 +00:00
Thomas Goyne
5411a57b3c
Add the command name for macros to the information popup in the automation dialog
...
Originally committed to SVN as r5666.
2011-09-28 19:52:37 +00:00
Thomas Goyne
dbca576d50
Require that macros defined in a single script have unique names
...
Originally committed to SVN as r5665.
2011-09-28 19:52:28 +00:00
Thomas Goyne
c632a662b2
Change the naming scheme for lua commands to 'automation/lua/[Script File Name]/[Macro Name]'
...
Originally committed to SVN as r5664.
2011-09-28 19:52:20 +00:00
Thomas Goyne
799c18e22d
Remove unused includes in auto4_lua.cpp
...
Originally committed to SVN as r5663.
2011-09-28 19:52:11 +00:00
Thomas Goyne
1e13670c70
Improve error handling in LuaModuleLoader and don't keep trying to load modules after one has been found
...
Originally committed to SVN as r5662.
2011-09-28 19:52:02 +00:00
Thomas Goyne
d3ea9236cf
Correct closing audio in FrameMain::OnSubtitlesOpen
...
Originally committed to SVN as r5661.
2011-09-28 19:51:53 +00:00
Thomas Goyne
77d02d269d
Eliminate a use of VideoContext::Get in AudioMarkerProviderKeyframes
...
Originally committed to SVN as r5660.
2011-09-28 19:51:44 +00:00
Thomas Goyne
6bf4a95428
Add a subtitles save slot to AudioController which stores the audio URI in the subtitles
...
Originally committed to SVN as r5659.
2011-09-28 19:51:35 +00:00
Thomas Goyne
74ae9189a2
Set ?audio to the path to the currently open audio file
...
Originally committed to SVN as r5658.
2011-09-28 19:51:26 +00:00
Thomas Goyne
9fc0b33cdf
Add opened audio files to the audio mru list
...
Originally committed to SVN as r5657.
2011-09-28 19:51:18 +00:00
Thomas Goyne
d863d4379b
Implement Audio/Auto/Scroll option
...
Originally committed to SVN as r5656.
2011-09-28 19:51:09 +00:00
Thomas Goyne
976061747d
Fix setting of filename when saving the subtitles
...
Originally committed to SVN as r5655.
2011-09-28 19:50:59 +00:00
Thomas Goyne
bfcd76c4aa
Add missing #include <algorithm> to scoped_ptr.h
...
Originally committed to SVN as r5654.
2011-09-28 19:50:50 +00:00
Thomas Goyne
5a49abb2eb
Fix bug in BaseGrid::GetSelection that resulted in row 0 always being selected
...
Originally committed to SVN as r5653.
2011-09-28 19:50:41 +00:00
Thomas Goyne
bb72ec980e
Actually select the new line when a new dialogue line is added due to the user switching to the next line from the edit box
...
Originally committed to SVN as r5652.
2011-09-28 19:50:32 +00:00
Thomas Goyne
94998f4283
Update ths column widths in BaseGrid when the number of digits in the row number changes
...
Originally committed to SVN as r5651.
2011-09-28 19:50:24 +00:00
Thomas Goyne
b55ff3f803
Switch auto4lua to a transactional model which applies changes to the subtitle file only if a macro runs to completion without errors or the user cancelling. Significantly improves behavior when the user cancels and fixes a race condition caused by committing on threads other than the GUI thread.
...
Originally committed to SVN as r5650.
2011-09-28 19:50:14 +00:00
Thomas Goyne
28afc48ca5
Eliminate an uninitialized variable warning
...
Originally committed to SVN as r5649.
2011-09-28 19:50:06 +00:00
Thomas Goyne
d419c7a447
Implement the Automation menu
...
Originally committed to SVN as r5648.
2011-09-28 19:49:56 +00:00
Thomas Goyne
5bb5f146a7
Make the project context available to lua C functions so that they can use that instead of VideoContext::Get()
...
Originally committed to SVN as r5647.
2011-09-28 19:49:47 +00:00
Thomas Goyne
dfef9191f9
Move the creation of the progress dialog for the audio caches to AudioProvider and just pass the BackgroundRunner to the caches. This still isn't the right place to be creating it, but this removes the UI-dependency for both caches.
...
Originally committed to SVN as r5646.
2011-09-28 19:49:37 +00:00
Thomas Goyne
a9dc1f045d
Remove "Config" from the name of ScriptConfigDialog and friends as they're used for more than just config, and clean up the implementations.
...
Originally committed to SVN as r5645.
2011-09-28 19:49:27 +00:00
Thomas Goyne
59d11f4cc4
Make it so auto4lua macros can have an IsActive function. Probably not very useful at the moment.
...
Originally committed to SVN as r5644.
2011-09-28 19:49:18 +00:00
Thomas Goyne
60ea67661a
Do a better job of setting the module load path in LuaAssFile
...
Originally committed to SVN as r5643.
2011-09-28 19:49:09 +00:00
Thomas Goyne
8ba559b7f7
Clean up Automation4::ScriptManager
...
Originally committed to SVN as r5642.
2011-09-28 19:48:58 +00:00
Thomas Goyne
eec3d64221
Make automation macros standard commands and remove the Automation4::Feature base class as it's no longer a useful abstraction.
...
Originally committed to SVN as r5641.
2011-09-28 19:48:47 +00:00
Thomas Goyne
492a0d3046
Make Automation4::Script mostly pure abstract and clean up the implementation of LuaScript
...
Originally committed to SVN as r5640.
2011-09-28 19:48:37 +00:00
Thomas Goyne
c09259c93d
Throw typed exceptions in automation rather than strings
...
Originally committed to SVN as r5639.
2011-09-28 19:48:28 +00:00
Thomas Goyne
6d0e44baad
Use LocalScriptManager::Reload rather than looping over the scripts manually in the am/manager command
...
Originally committed to SVN as r5638.
2011-09-28 19:48:20 +00:00
Thomas Goyne
af9315f1aa
Remove some lingering unused automation things in frame_main
...
Originally committed to SVN as r5637.
2011-09-28 19:48:11 +00:00
Thomas Goyne
f970508e67
Add the ability to unregister commands and clarify who owns command objects
...
Originally committed to SVN as r5636.
2011-09-28 19:48:02 +00:00
Thomas Goyne
8aca250fd0
Kill cmd::id and friends. It didn't work correctly as ids weren't stable and only VideoBox still used it
...
Originally committed to SVN as r5635.
2011-09-28 19:47:53 +00:00
Thomas Goyne
53b6765dd8
Redesign DialogProgress
...
Add agi::ProgressSink and agi::BackgroundRunner interfaces to libaegisub
which represent a generic progress sink and a thing which calls funtions
that need progress sinks. Make DialogProgress implement
agi::BackgroundRunner, invoking the passed function on a worker thread
and giving it a progress sink to update the dialog with.
Rewrite Automation4::ProgressSink, LuaThreadedCall and all related
classes to be based on agi::ProgressSink. Automation now simply uses
DialogProgress (although that's merely an implementation detail) and
adds a single method to route dialog opening from the worker thread to
the GUI thread.
Originally committed to SVN as r5634.
2011-09-28 19:47:40 +00:00
Thomas Goyne
5439c6dae6
Remove some old video options from default_config.json
...
Originally committed to SVN as r5633.
2011-09-28 19:47:31 +00:00
Thomas Goyne
f341a63f14
Delete all the unused things in MatroskaWrapper (i.e. most of it), fix some derpy things, and make it throw typed exceptions.
...
Originally committed to SVN as r5632.
2011-09-28 19:47:21 +00:00
Thomas Goyne
2ca9392942
Set more finely-grained commit types from LuaAssFile rather than always using COMMIT_NEW
...
Originally committed to SVN as r5631.
2011-09-28 19:47:12 +00:00
Thomas Goyne
08a61c7fd4
Refactor LuaAssFile's implementation
...
Switch to 1-based indices to match Lua rather than converting back and
forth all over the place.
Eliminate a bunch of duplicated code.
Fix a few memory leaks.
Automatically set an undo point at the end of a macro if there are any
uncommited changes.
Originally committed to SVN as r5630.
2011-09-28 19:47:03 +00:00
Thomas Goyne
df100fb5a5
Pass a project context to AssExportFilter::GetConfigDialogWindow so that export filters don't have to use things like AssFile::top and VideoContext::Get
...
Originally committed to SVN as r5629.
2011-09-28 19:46:53 +00:00
Thomas Goyne
9ce579e187
Document and clean up a bunch of exporter related things. Break some friendships, and add a getter for export filter names.
...
Originally committed to SVN as r5628.
2011-09-28 19:46:41 +00:00
Thomas Goyne
cec07012e7
Add auto4_lua_factory.h to the vc9 project
...
Originally committed to SVN as r5627.
2011-09-28 19:46:32 +00:00
Thomas Goyne
dfc18afd34
Replace custom karaoke parsing code in LuaAssFile with AssKaraoke
...
Originally committed to SVN as r5626.
2011-09-28 19:46:23 +00:00
Thomas Goyne
1329245a21
Clean up the automation dialog and don't let the user load the same script twice
...
Originally committed to SVN as r5625.
2011-09-28 19:46:14 +00:00
Thomas Goyne
53c0b6ff3a
Clean up and document ScriptFactory, and add a function to get the full wildcard string for all registered automation engines
...
Originally committed to SVN as r5624.
2011-09-28 19:46:05 +00:00
Thomas Goyne
7680d6c246
Move the local script logic from FrameMain to a new LocalScriptManager
...
Originally committed to SVN as r5623.
2011-09-28 19:45:55 +00:00
Thomas Goyne
3029436a2d
Drop some AS5-specific stuff in LuaAssfile
...
Originally committed to SVN as r5622.
2011-09-28 19:45:47 +00:00
Thomas Goyne
0a91be1c7c
Unconditionally enable building automation even if there are no enabled engines as there isn't really any reason not to and the defines uglify the code.
...
Originally committed to SVN as r5621.
2011-09-28 19:45:35 +00:00
Thomas Goyne
66e826edb3
Split LuaProgressSink into its own cpp file to cut down on the bloatedness of auto4_lua.cpp
...
Originally committed to SVN as r5620.
2011-09-28 19:45:25 +00:00
Thomas Goyne
0b6ef72242
Rewrite LuaScriptReader, making it simpler and adding support for more charsets
...
Originally committed to SVN as r5619.
2011-09-28 19:45:16 +00:00
Thomas Goyne
432abc309b
Remove WITH_OLD_HUNSPELL. 1.2.0 is four years old and the configure script doesn't even support older versions that would require WITH_OLD_HUNSPELL
...
Originally committed to SVN as r5618.
2011-09-28 19:45:07 +00:00
Thomas Goyne
4ec507f814
Clean up SubtitleFormat
...
Document all of the SubtitleFormat methods.
Add default implementations of CanReadFile and CanWriteFile that check
against the appropriate wildcard list.
Clean up and simplify a lot of very odd code.
Throw typed exceptions in all subtitle readers rather than strings.
Originally committed to SVN as r5617.
2011-09-28 19:44:53 +00:00
Thomas Goyne
156885b56d
Make AudioTimingControllerDialogue operate on a project context
...
Originally committed to SVN as r5616.
2011-09-28 19:44:44 +00:00
Thomas Goyne
a25c5c1909
Rewrite the subtitles edit control's syntax highlighting
...
Simplify and clean up the parsing code to better represent how VSFilter
actually handles many odd edge cases as well as making it significantly
faster.
Use an enum for syntax style IDs rather than magic numbers.
Add styles for comments, draw mode and karaoke templater variables
rather than reusing other styles and move some hardcoded style
information to the config file.
Operate on the utf-8 representation of the edit box text rather than a
wxString, as it's both faster and simpler.
Originally committed to SVN as r5615.
2011-09-28 19:44:34 +00:00
Thomas Goyne
67ab06e830
Add an optional argument to AssFile::Commit which indicates that only a single line was changed. Currently used only to cut down on file copies when coalescing.
...
Originally committed to SVN as r5614.
2011-09-28 19:44:24 +00:00
Thomas Goyne
c936306593
Rewrite nearly everything related to karaoke
...
Move most karaoke parsing/serializing/editing code to AssKaraoke rather
than being scattered all over the place, and add much better support for
non-karaoke override tags and comments.
Add a karaoke timing controller.
Redesign the karaoke syllable split/join interface to have a single mode
from which both splitting and joining can be done rather than separate
split and join modes.
Only show the karaoke split/join bar when karaoke mode is enabled.
Closes #886 , #987 , #1190 .
Originally committed to SVN as r5613.
2011-09-28 19:44:07 +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
Niels Martin Hansen
7250b89cbd
MSBuild project updates.
...
Originally committed to SVN as r5603.
2011-09-15 14:50:08 +00:00
Thomas Goyne
088976554c
Fix non-precomp-header compilation
...
Originally committed to SVN as r5602.
2011-09-15 06:12:26 +00:00
Thomas Goyne
d70fb7fe2d
Fix compilation errors
...
Originally committed to SVN as r5601.
2011-09-15 06:03:13 +00:00
Thomas Goyne
683dd6c0a9
Kill BaseGrid::SelectVisible
...
Originally committed to SVN as r5600.
2011-09-15 05:17:43 +00:00
Thomas Goyne
11c40188c2
Eliminate some old selection code in BaseGrid
...
Originally committed to SVN as r5599.
2011-09-15 05:17:36 +00:00
Thomas Goyne
05da23b22f
Mostly detangle the edit box from the subtitles grid
...
Originally committed to SVN as r5598.
2011-09-15 05:17:29 +00:00
Thomas Goyne
3c4191e649
Kill SubtitlesGrid::SetSubsToVideo
...
Originally committed to SVN as r5597.
2011-09-15 05:17:22 +00:00
Thomas Goyne
0c4eb020a4
Rewrite the shift times dialog, detangling it from the grid and making it modeless, and add support for characters outside the local charset in the shift history file path. Closes #1269 .
...
Originally committed to SVN as r5596.
2011-09-15 05:17:14 +00:00
Thomas Goyne
1f095b0a01
Remove the SubsEditBox from the context in favor of the SubsEditTextCtrl as it was the only public member of SubsEditBox
...
Originally committed to SVN as r5595.
2011-09-15 05:17:07 +00:00
Thomas Goyne
d022d2ae56
Eliminate pointless (and slow) setting of the edit box to its current text
...
Originally committed to SVN as r5594.
2011-09-15 05:17:00 +00:00
Thomas Goyne
5b3b821696
Always keep the active line visible in the grid
...
Originally committed to SVN as r5593.
2011-09-15 05:16:54 +00:00
Thomas Goyne
1cc5d4001a
Rewrite the selection dialog, detangling it from SubtitlesGrid and making it modeless
...
Originally committed to SVN as r5592.
2011-09-15 05:16:47 +00:00
Thomas Goyne
584f36a744
Detangle the spellchecker dialog from the subtitles grid, make it modelss, and fix a lot of edges cases
...
Originally committed to SVN as r5591.
2011-09-15 05:16:41 +00:00
Thomas Goyne
934a5b24eb
Refine the commit types
...
Switch to a bitmask with much more finely-grained information about what
changed in the commit, fixing a few potential correctness problems and
significantly improving the performance of several scenarios where commits
are spammed very frequently.
Originally committed to SVN as r5590.
2011-09-15 05:16:32 +00:00
Thomas Goyne
3f05fe6b3e
Add support for labels in the audio display
...
Originally committed to SVN as r5589.
2011-09-15 05:16:26 +00:00
Thomas Goyne
3e708eab10
Slightly simplify parts of AudioDisplay
...
Originally committed to SVN as r5588.
2011-09-15 05:16:18 +00:00
Thomas Goyne
e5d660e281
Hide visual tools while video is playing. Closes #1336 .
...
Originally committed to SVN as r5586.
2011-09-02 00:03:40 +00:00
Thomas Goyne
182b57bd0f
Fix compilation with precompiled headers off
...
Originally committed to SVN as r5579.
2011-08-31 04:23:18 +00:00
Thomas Goyne
d82e2bb496
Use wxEVT_CONTEXT_MENU for context menus rather than right button down so that the context menu key works correctly. Updates #1238 .
...
Originally committed to SVN as r5578.
2011-08-31 04:17:37 +00:00
Thomas Goyne
1c4410bb87
Make middle-click on the audio display seek the video to the clicked on time
...
Originally committed to SVN as r5577.
2011-08-31 04:17:31 +00:00
Thomas Goyne
02d4ee0cec
Revert when the dialogue timing controller is created to avoid broken behavior when leaving karaoke mode
...
Originally committed to SVN as r5576.
2011-08-31 04:17:24 +00:00
Thomas Goyne
7155ace1d9
Fix merge error in ass_file.h
...
Originally committed to SVN as r5573.
2011-08-27 07:28:04 +00:00
Thomas Goyne
0de3ce42d5
Speed up BlockCache::Age somewhat
...
Originally committed to SVN as r5572.
2011-08-27 06:52:49 +00:00
Thomas Goyne
03d7849d12
Significantly speed up grid painting, especially when only some columns need to be repainted
...
Originally committed to SVN as r5571.
2011-08-27 06:52:42 +00:00
Thomas Goyne
b8a1674c27
Remove some cruft from ScintillaTextCtrl and make SetUnicodeStyling significantly faster
...
Originally committed to SVN as r5570.
2011-08-27 06:52:35 +00:00
Thomas Goyne
ccf9f64818
Make Assfile::SetScriptInfo slightly less slow
...
Originally committed to SVN as r5569.
2011-08-27 06:42:10 +00:00
Thomas Goyne
e12bcc6aef
Bind VideoContext::OnFileSave to the file save signal rather than the commit signal
...
Originally committed to SVN as r5568.
2011-08-27 06:42:03 +00:00
Thomas Goyne
b14b2eceea
Update the Makefile and vc2010 project
...
Originally committed to SVN as r5567.
2011-08-27 06:37:03 +00:00
Thomas Goyne
2006995645
Revert pending changes when audio is opened to fix problems with stale data
...
Originally committed to SVN as r5566.
2011-08-27 06:30:56 +00:00
Thomas Goyne
a45b971b3a
Redesign ToggleBitmap to operate on a command
...
Originally committed to SVN as r5565.
2011-08-27 06:30:49 +00:00
Thomas Goyne
3ecfd34bd3
Convert the audio toolbar over to the new dynamic toolbar system
...
Originally committed to SVN as r5564.
2011-08-27 06:30:42 +00:00
Thomas Goyne
fc0db4fc36
Convert the VideoDisplay context menu over to the new menu system
...
Originally committed to SVN as r5563.
2011-08-27 06:30:35 +00:00
Thomas Goyne
e2f464c94f
Add commands for the video display context menu items
...
Originally committed to SVN as r5562.
2011-08-27 06:30:29 +00:00
Thomas Goyne
ca6d5b1f3e
Rearrange VideoDisplay's privates to make them a bit less randomly ordered and switch from auto_ptr to scoped_ptr
...
Originally committed to SVN as r5561.
2011-08-27 06:30:23 +00:00
Thomas Goyne
bc70429ffb
Remove #pragma once from subs_grid.h
...
Originally committed to SVN as r5560.
2011-08-27 06:30:16 +00:00
Thomas Goyne
41119ff6fc
Convert the subtitles grid context menu over to the new menu system
...
Originally committed to SVN as r5559.
2011-08-27 06:30:10 +00:00
Thomas Goyne
017a6aa27d
Do stuff to the AVS video provider
...
Remove the Matroska keyframe/timecode loading code, as opening MKVs via
Avisynth is dumb and didn't work very well anyway.
Fix framerate reporting by actually bothering to read the video
information before trying to use it.
Kill the VFW wrapper and just put the code in the avisynth video source.
If reading the keyframes from an avi file fails just warn the user
rather than refuse to load the video.
Originally committed to SVN as r5558.
2011-08-27 06:30:03 +00:00
Thomas Goyne
27867421b2
Fix some whitespace in frame_main.cpp
...
Originally committed to SVN as r5557.
2011-08-27 06:29:57 +00:00
Thomas Goyne
fb1e6fcbaf
Delete some obsolete event handling in FrameMain
...
Originally committed to SVN as r5556.
2011-08-27 06:29:51 +00:00
Thomas Goyne
5d07756838
Kill FrameMain::HasASSDraw as it's no longer used
...
Originally committed to SVN as r5555.
2011-08-27 06:29:45 +00:00
Thomas Goyne
626df4db05
Rewrite the dynamic menu generation code
...
Remove hardcoded assumptions about where in the menu items are and
instead bind menu items directly to commands so that customizing the
menu actually works.
Add support for user menu files that override the default one.
Add better support for multiple menus so that all of the menus can
potentially be created by the dynamic menu system rather than just the
main menu bar.
Add support for commands whose names change based on the current project
state so that undo and redo can work properly.
Simplify the menu json format and make commands responsible for
controlling what type of menu item is created rather than allowing
nonsensical configurations.
The Automation menu is currently not implemented.
Originally committed to SVN as r5554.
2011-08-27 06:29:36 +00:00
Thomas Goyne
319b454bb8
Add hotkeys to the tooltip for toolbar items
...
Originally committed to SVN as r5538.
2011-08-17 05:32:27 +00:00
Thomas Goyne
d3e7f02597
Update the video box time boxes when detached video is first opened
...
Originally committed to SVN as r5537.
2011-08-17 05:32:21 +00:00
Thomas Goyne
20258438ec
Fix incorrect initial size of the detached video dialog
...
Originally committed to SVN as r5536.
2011-08-17 05:32:15 +00:00
Thomas Goyne
0c1794a93f
Don't silently fail to start up if a config file is invalid
...
Originally committed to SVN as r5535.
2011-08-17 05:32:09 +00:00
Thomas Goyne
330411c94a
Add some special cases to line_iterator that makes it significantly faster in common cases
...
Originally committed to SVN as r5534.
2011-08-17 05:32:01 +00:00
Thomas Goyne
561216d4c8
Make hotkey::check take a project context and make FrameMain::context private
...
Originally committed to SVN as r5532.
2011-07-29 23:16:55 +00:00
Thomas Goyne
ef26170214
Rearrange FrameMain deinitialization so that things which depend on the project context are guaranteed to be destroyed before the context
...
Originally committed to SVN as r5531.
2011-07-29 23:16:46 +00:00
Thomas Goyne
65368c5f35
Detangle FrameMain and DialogDetachedVideo
...
Originally committed to SVN as r5530.
2011-07-29 23:16:36 +00:00
Thomas Goyne
3f50ce6d46
Delete FrameMain::LoadVFR as it's not longer used by anything
...
Originally committed to SVN as r5529.
2011-07-29 23:16:24 +00:00
Thomas Goyne
59755b5bb5
Add command to toggle medusa mode and fix the command names for many hotkeys
...
Originally committed to SVN as r5528.
2011-07-27 22:59:11 +00:00
Thomas Goyne
6d8d1a48d3
Disable precompiled headers for the C files in release builds and not just debug
...
Originally committed to SVN as r5527.
2011-07-27 22:59:01 +00:00
Thomas Goyne
1cacc33d2d
Simplify version.cpp
...
Originally committed to SVN as r5526.
2011-07-27 22:52:37 +00:00
Thomas Goyne
3a4c48d8df
Fix compilation without precompiled headers
...
Originally committed to SVN as r5525.
2011-07-27 17:21:39 +00:00
Thomas Goyne
db965eb766
Unbreak tag hiding in the grid
...
Originally committed to SVN as r5524.
2011-07-27 05:54:25 +00:00
Thomas Goyne
d937bd80e7
Make opening audio from video actually work
...
Originally committed to SVN as r5523.
2011-07-27 05:36:42 +00:00
Thomas Goyne
0cc902487d
Remove a now-bogus sanity check on thread count in the ffms video provider
...
Originally committed to SVN as r5522.
2011-07-27 05:36:36 +00:00
Thomas Goyne
d3ab35a61f
Use PersistLocation for DialogColorPicker
...
Originally committed to SVN as r5521.
2011-07-27 05:36:30 +00:00
Thomas Goyne
833c35f6ae
Use PersistLocation for DialogStyleManager
...
Originally committed to SVN as r5520.
2011-07-27 05:36:24 +00:00
Thomas Goyne
fc46b25726
Rewrite the translation assisant and make it work again
...
Originally committed to SVN as r5519.
2011-07-27 05:36:15 +00:00
Thomas Goyne
07b77203f1
Rewrite the styling assisant as changes to other parts of Aegisub have made almost all of it broken
...
Originally committed to SVN as r5518.
2011-07-27 05:36:09 +00:00
Thomas Goyne
f906c3dcd2
Factor DialogDetachedVideo's position persistance logic into a seperate class so that it can be used for other dialogs.
...
Originally committed to SVN as r5517.
2011-07-27 05:36:02 +00:00
Thomas Goyne
3c18ed542c
Clean up libaegisub includes
...
Consistently use the C++ names for headers rather than a combination of the
C and C++ names.
Remove empty LAGI_PRE blocks.
Remove checks for both AGI_PRE and LAGI_PRE and change a check for only
AGI_PRE to LAGI_PRE.
Originally committed to SVN as r5516.
2011-07-26 22:25:21 +00:00
Thomas Goyne
ead31761db
Include lagi_pre.h in agi_pre.h and remove all duplicates
...
This eliminates some duplicated logic and potential tr1/non-tr1 header
mismatches, and removes the need for the #if defined(AGI_PRE) ||
defined(LAGI_PRE) guard that was used in a few of the libaegisub headers.
Originally committed to SVN as r5515.
2011-07-26 22:25:10 +00:00
Thomas Goyne
665cddf235
Remove some duplicated includes in lagi_pre.h
...
Originally committed to SVN as r5514.
2011-07-26 22:24:59 +00:00
Thomas Goyne
2ca6a04543
Remove the C++-only check from agi_pre.h and just don't include it in the C files
...
Originally committed to SVN as r5513.
2011-07-26 22:24:48 +00:00
Thomas Goyne
12318ced75
Remove the include guard from agi_pre.h as it seems to have magically become unnessesary
...
Originally committed to SVN as r5512.
2011-07-26 22:24:38 +00:00
Thomas Goyne
e92d6f6f65
Don't pass CXXFLAGS to the compiler when compiling .c files
...
Originally committed to SVN as r5511.
2011-07-26 22:24:26 +00:00
Thomas Goyne
263d161d26
Don't pointlessly store a copy of the default hotkeys json in memory
...
Originally committed to SVN as r5510.
2011-07-26 20:26:09 +00:00
Thomas Goyne
8e975941b7
Fix inconsistant usage of 'Enter' and 'Return' by switching everything to 'Enter'
...
Originally committed to SVN as r5509.
2011-07-26 19:53:08 +00:00
Thomas Goyne
af484a469d
Make get_hotkey_str_first more likely to return the desired hotkey when multiple are available
...
Originally committed to SVN as r5508.
2011-07-26 19:52:57 +00:00
Thomas Goyne
dd38e1f07f
Don't swallow errors when parsing json and make agi::json_util::file actually work
...
Originally committed to SVN as r5507.
2011-07-26 19:52:47 +00:00
Thomas Goyne
dabcdb2e8b
Uninvert hotkey::Scan's return value
...
Originally committed to SVN as r5506.
2011-07-26 19:52:36 +00:00
Thomas Goyne
ffe8c7a5d6
Only enable the 'Always' hotkey context when medusa mode is on
...
Originally committed to SVN as r5505.
2011-07-26 19:52:25 +00:00
Thomas Goyne
7deebf759b
Remove the concept of disabled hotkeys; it's unnessesary and wasn't actually used
...
Originally committed to SVN as r5504.
2011-07-26 19:52:15 +00:00
Thomas Goyne
acd26c4c48
Fiddle with the log output format so that Visual Studio's parser reads it correctly
...
Originally committed to SVN as r5503.
2011-07-26 19:52:07 +00:00
Thomas Goyne
87abcddd87
Make the MRU code not so bizzarely overcomplicated
...
Originally committed to SVN as r5502.
2011-07-26 19:51:56 +00:00
Thomas Goyne
7824348f10
Include the name of the option in the exception thrown when an option is not found
...
Originally committed to SVN as r5501.
2011-07-26 19:51:47 +00:00
Thomas Goyne
a33da9cba5
Replace all uses of std::cout in libaegisub with logging statements and eliminate a lot of nonsense in the windows implementation of acs::Check
...
Originally committed to SVN as r5500.
2011-07-26 19:51:38 +00:00
Thomas Goyne
64a3cc94ae
Fix error checking in agi::util::strtoi
...
Originally committed to SVN as r5499.
2011-07-26 19:51:28 +00:00
Thomas Goyne
5a9fe91899
Fix swapped expected and actual values in some of the util tests
...
Originally committed to SVN as r5498.
2011-07-26 19:51:19 +00:00
Thomas Goyne
231adad93f
Implement agi::util::freespace for Windows
...
Originally committed to SVN as r5497.
2011-07-26 19:51:07 +00:00
Thomas Goyne
6f22088b06
Update libass include path to not look for the now nonexistant in-repo copy
...
Originally committed to SVN as r5494.
2011-07-20 20:09:03 +00:00
Thomas Goyne
52e60f09dc
Fix path to config.h in path.cpp
...
Originally committed to SVN as r5493.
2011-07-20 20:08:51 +00:00
Thomas Goyne
4e0725104d
Set default decoding threads for ffms to -1 so that it decides the number automatically
...
Originally committed to SVN as r5492.
2011-07-20 19:17:56 +00:00
Niels Martin Hansen
b60e3a5bd4
Rename another clashing file in libaegisub.
...
Originally committed to SVN as r5490.
2011-07-18 01:08:41 +00:00
Niels Martin Hansen
89b97a55be
Update and simplify project files for recent changes.
...
Originally committed to SVN as r5489.
2011-07-18 00:43:38 +00:00
Thomas Goyne
85b46bceff
Fix required version of FFMS2
...
Originally committed to SVN as r5486.
2011-07-16 18:43:22 +00:00
Thomas Goyne
72bc33fda3
Fix compilation errors with precompiled headers disabled
...
Originally committed to SVN as r5484.
2011-07-16 06:42:55 +00:00
Thomas Goyne
0616b39ffe
Fix a pile of warnings
...
Originally committed to SVN as r5483.
2011-07-16 05:01:36 +00:00
Thomas Goyne
b509cb0be5
s/WITH_/HAVE_ in src/Makefile so that libass and ffms are actually used when present
...
Originally committed to SVN as r5482.
2011-07-16 03:52:30 +00:00
Thomas Goyne
8ccc0acc9d
Fix reporter compilation errors
...
Originally committed to SVN as r5481.
2011-07-16 03:36:42 +00:00
Thomas Goyne
eea30df7db
Kill in-repo libass and ffms and clean up some old cruft in the configure script
...
Originally committed to SVN as r5480.
2011-07-16 03:36:28 +00:00
Thomas Goyne
da3e7e4d88
Only register the assdraw command on windows when assdraw is present
...
Originally committed to SVN as r5479.
2011-07-15 23:44:03 +00:00
Thomas Goyne
3d22da9fbc
Skip invalid commands when constructing the toolbar and menu rather than exploding
...
Originally committed to SVN as r5478.
2011-07-15 23:43:52 +00:00
Thomas Goyne
c32e372dd4
Fix leak of the Options object in agi::Path and potential overwriting of the config file with an out of date version on shutdown
...
Originally committed to SVN as r5477.
2011-07-15 17:36:53 +00:00
Thomas Goyne
26695a8cc8
Eliminate memory leak in menu code
...
Originally committed to SVN as r5476.
2011-07-15 17:36:44 +00:00
Thomas Goyne
5c7a848f21
Delete the menu on shutdown
...
Originally committed to SVN as r5475.
2011-07-15 17:36:35 +00:00
Thomas Goyne
be8d841577
Delete built in export filters on exit
...
Originally committed to SVN as r5474.
2011-07-15 17:36:26 +00:00
Thomas Goyne
faecc3304d
Delete all commands on shutdown
...
Originally committed to SVN as r5473.
2011-07-15 17:36:17 +00:00
Thomas Goyne
a8a30d6ac1
Fix hotkey memory leaks
...
Originally committed to SVN as r5472.
2011-07-15 17:36:06 +00:00
Thomas Goyne
1e2abbd45a
Fix leak of all icon bitmaps
...
Originally committed to SVN as r5471.
2011-07-15 17:24:05 +00:00
Thomas Goyne
7842ccbeb1
Kill SubtitlesGrid::SetVideoToSubs
...
Originally committed to SVN as r5470.
2011-07-15 04:25:23 +00:00
Thomas Goyne
e75ea7d2e8
Default to 16x16 icons if the requested size is invalid
...
The options system currently doesn't support constraints beyond those
forced by the type system, making it easy to set the icon size to a
value which would make it impossible to get to the preferences dialog to
fix it.
Originally committed to SVN as r5469.
2011-07-15 04:06:29 +00:00
Thomas Goyne
88f0659307
Rewrite the toolbar generation code
...
The old toolbar code didn't actually support any nontrivial
customization of toolbars, as it had a hardcoded list of commands which
would be enabled or disabled, and the checks for enabling/disabling
toolbar buttons was done only in the specific situations which those
commands used.
Make icon size a user customizable option and add support for
dynamically changing it at runtime.
Originally committed to SVN as r5468.
2011-07-15 04:06:23 +00:00
Thomas Goyne
f4d44f7c18
Move the zoom box from the main toolbar to the video box
...
Originally committed to SVN as r5467.
2011-07-15 04:06:16 +00:00
Thomas Goyne
b93bb888e3
Use IsActive in frame_main
...
Originally committed to SVN as r5466.
2011-07-15 04:06:10 +00:00
Thomas Goyne
2b9d47b9fe
Add IsActive method to commands to indicate whether or not a radio/checkbox is currently selected
...
Originally committed to SVN as r5465.
2011-07-15 04:06:03 +00:00
Thomas Goyne
ec2c36c743
Add type flags to commands
...
Originally committed to SVN as r5464.
2011-07-15 04:05:56 +00:00
Thomas Goyne
0af7ae7fca
Clean up frame_main a bit
...
Delete some pointless comments, move documentation to the header, and
extend it a bit
Sort prototypes in the header
Move event IDs out of the header
Remove a few unused includes
Assorted cosmetic changse
Originally committed to SVN as r5463.
2011-07-15 04:05:49 +00:00
Thomas Goyne
95cadb5226
Clean up base_grid a bit
...
Reduce the visibilty of many members and document some of them
Cut down on recreation of wxPen and wxBrush objects in DrawImage,
probably speeding up painting somewhat
Simplify handling of extendRow
Move event IDs to base_grid.cpp
Remove worthless comments and dead code
Assorted cosmetic changes
Originally committed to SVN as r5462.
2011-07-15 04:05:43 +00:00
Thomas Goyne
fdb6d108f8
Use agi::Context::Validate for the main frame's menus and toolbar
...
Originally committed to SVN as r5461.
2011-07-15 04:05:37 +00:00
Thomas Goyne
ef4bfb1535
use agi::Context::Validate for subsgrid context menu item validation
...
Originally committed to SVN as r5460.
2011-07-15 04:05:31 +00:00
Thomas Goyne
f098e2fac8
Add an optional Validate method to commands
...
Originally committed to SVN as r5459.
2011-07-15 04:05:22 +00:00
Thomas Goyne
d405b061df
Eliminate a lot of unnessesary includes of subs_grid.h
...
Originally committed to SVN as r5458.
2011-07-15 04:05:15 +00:00
Thomas Goyne
1d51dd20d2
Return a const reference from GetSelectedSet rather than copying it on every call
...
Originally committed to SVN as r5457.
2011-07-15 04:05:09 +00:00
Thomas Goyne
2eb4c856e8
Simplify and clean up command management code
...
Originally committed to SVN as r5456.
2011-07-15 04:05:01 +00:00
Thomas Goyne
e6dc86212b
Use the active line rather than first selected line in SubsEditBox
...
Originally committed to SVN as r5455.
2011-07-15 04:04:54 +00:00
Thomas Goyne
4d924b3f27
Move line joining from SubtitlesGrid to the commands
...
Originally committed to SVN as r5454.
2011-07-15 04:04:48 +00:00
Thomas Goyne
b25066e3c3
Remove a write-only variable in option.cpp
...
Originally committed to SVN as r5453.
2011-07-15 04:04:42 +00:00
Thomas Goyne
6ec63cdde1
Clean up libaegisub includes
...
Remove cajun includes from all public headers and the precompiled header
Add a pile of missing standard library headers used in multiple files
to lagi_pre
Originally committed to SVN as r5452.
2011-07-15 04:04:34 +00:00
Thomas Goyne
48fbedd25b
Remove pointless #pragma onces
...
Originally committed to SVN as r5451.
2011-07-15 04:04:28 +00:00
Thomas Goyne
7e5e82090f
Remove incorrect inclusions of config.h in headers
...
Originally committed to SVN as r5450.
2011-07-15 04:04:21 +00:00
Thomas Goyne
256e098aa7
Remove header include order requirements
...
Originally committed to SVN as r5449.
2011-07-15 04:04:13 +00:00
Thomas Goyne
63538d125e
Implement lead in/out commands
...
Originally committed to SVN as r5448.
2011-07-15 04:04:07 +00:00
Thomas Goyne
401f026180
Fix crash when detaching video
...
Originally committed to SVN as r5447.
2011-07-15 04:04:01 +00:00
Thomas Goyne
0cb42343e0
Fix the video zoom dropdown
...
Originally committed to SVN as r5446.
2011-07-15 04:03:54 +00:00
Thomas Goyne
9c97544fc5
Temporary hack to make the visual typesetting tool mode hotkeys work
...
Originally committed to SVN as r5445.
2011-07-15 04:03:48 +00:00
Thomas Goyne
3df2885ce5
Temporary hack to make automation macros work
...
Originally committed to SVN as r5444.
2011-07-15 04:03:42 +00:00
Thomas Goyne
b5a02e202e
Rename libaegisub/windows/util.cpp so that it's actually used
...
Originally committed to SVN as r5443.
2011-07-15 04:03:36 +00:00
Thomas Goyne
67e9384ef4
Remove a bunch of pointless consts from agi::Path and rename the windows implementation so that it's actually used
...
Originally committed to SVN as r5442.
2011-07-15 04:03:28 +00:00
Niels Martin Hansen
9d1cdab638
Merge rewritten ALSA player from 2.1.9. Closes #1106 .
...
Not tested for compileability, and should probably also have printf's converted to logging statements.
Originally committed to SVN as r5421.
2011-06-12 00:45:02 +00:00
Niels Martin Hansen
a98cfb7685
Merge r5409 from 2.1.9, see #1300 .
...
Originally committed to SVN as r5410.
2011-06-06 21:12:00 +00:00
Niels Martin Hansen
23510dcac8
Merge kara-templater remember/recall functions from 2.1.9. Updates #1277 .
...
Originally committed to SVN as r5378.
2011-04-26 08:42:05 +00:00
Grigori Goronzy
e67b0ea54b
wxGTK: do not freeze/thaw the main frame window
...
On certain configurations, this is problematic, because windows
sometimes are not thaw()'ed correctly, leading to an interface
that doesn't update. This is a workaround that simply disables all
freeze/thaw on the main frame. I haven't noticed any performance
issues.
Originally committed to SVN as r5373.
2011-02-23 13:14:48 +00:00
Amar Takhar
d6d06b53eb
Add Audio/OSS/Device option required by the OSS audio player.
...
Originally committed to SVN as r5372.
2011-02-23 05:14:25 +00:00
Amar Takhar
c53492edcd
Remove <sys/param.h> and <sys/mount.h> from common/util.cpp this stems from my accident involving placing code meant for unix/util.cpp into unix/common.cpp which was partially fixed in r5366.
...
Originally committed to SVN as r5371.
2011-02-23 03:34:23 +00:00
Amar Takhar
96f24d6c25
Move sys/param.h under ifndef _WIN32, I need to be more vigilant against including Unix headers in Windows builds.
...
Originally committed to SVN as r5370.
2011-02-23 03:29:30 +00:00
Amar Takhar
6ee90d4bb1
Add <vector>
...
Originally committed to SVN as r5369.
2011-02-23 03:24:08 +00:00
Grigori Goronzy
28e1acfeba
libaegisub: do not free string returned by getenv()
...
getenv() returns a string that is part of internal process data and
should never be modified and/or free()'d.
Originally committed to SVN as r5368.
2011-02-23 00:55:48 +00:00
Grigori Goronzy
066ec3014a
libaegisub: use statvfs instead of statfs
...
statvfs is the portable POSIX defined interface and is supported on all
major UNIX platforms.
Originally committed to SVN as r5367.
2011-02-23 00:54:18 +00:00
Karl Blomster
7db22972a7
sys/mount.h and statfs(2) do not exist on windows
...
Originally committed to SVN as r5366.
2011-02-22 19:03:03 +00:00
Karl Blomster
387fbdfdea
fix xml parsing error in libaegisub project
...
Originally committed to SVN as r5355.
2011-02-22 01:26:46 +00:00
Niels Martin Hansen
27839f92ac
Fix #1018 properly, make sure the colour values are brought into 0-255 range and rounded.
...
Originally committed to SVN as r5354.
2011-02-22 00:54:20 +00:00
Amar Takhar
c0cf0c6a06
Add progress support back to HD Audio Cache with the new ProgressSink from libaegisub. Currently AudioProviderFactory::GetProvider() takes the ProgressSinkFactory however this should probably be moved up to the constructor for AudioProviderFactory. We'll see what the best option is when the others come around it's trivial to change.
...
Originally committed to SVN as r5347.
2011-02-11 03:47:18 +00:00
Amar Takhar
8240d3e6b6
Add util::freespace to check for free space on a path. (with tests)
...
Originally committed to SVN as r5346.
2011-02-10 23:55:59 +00:00
Amar Takhar
bbc0f6f859
Document some utility methods.
...
Originally committed to SVN as r5345.
2011-02-10 02:47:41 +00:00
Amar Takhar
3a1487cf6f
Finish removing wx from yuv4mpeg...
...
Originally committed to SVN as r5344.
2011-02-10 02:31:42 +00:00
Amar Takhar
2c6abb9a98
Instead of throwing return 0 for invalid values. This happens anyway if the input is invalid so it makes the most sense to return 0 for invalid ranges.
...
Originally committed to SVN as r5343.
2011-02-10 01:36:25 +00:00
Amar Takhar
ef7b3c04e3
Add <climits>
...
Originally committed to SVN as r5342.
2011-02-10 01:33:34 +00:00
Amar Takhar
106b331cb0
Mostly convert yuv4mpeg.cpp -- a little bit of parsing is left which I will take care of shortly.
...
Originally committed to SVN as r5341.
2011-02-10 01:33:14 +00:00
Amar Takhar
3522c0b4bd
Add a strtoi function. (with unit tests)
...
Originally committed to SVN as r5340.
2011-02-10 00:41:15 +00:00
Amar Takhar
6615d3981f
Add <locale>.
...
Originally committed to SVN as r5339.
2011-02-09 23:56:24 +00:00
Amar Takhar
453381e613
Add a small test for str_lower.
...
Originally committed to SVN as r5338.
2011-02-09 23:43:57 +00:00
Amar Takhar
c33afffa03
Init agi::log::log.
...
Originally committed to SVN as r5337.
2011-02-09 23:37:18 +00:00
Amar Takhar
34e0eb837d
Hand edit the libaegisub vcproj to include common/util.cpp
...
Originally committed to SVN as r5336.
2011-02-09 22:32:51 +00:00
Amar Takhar
75e07c7aa7
Add a short method to make an std::string lowercase.
...
Originally committed to SVN as r5335.
2011-02-09 22:31:44 +00:00
Amar Takhar
6d96457555
Remove "Font/Cache/FontConfig" in lieu of "Cache/FontConfig" and add "Cache/FFmpegSource".
...
Originally committed to SVN as r5334.
2011-02-09 21:57:31 +00:00
Niels Martin Hansen
7638375282
Get rid of a few unused variable warnings.
...
Originally committed to SVN as r5333.
2011-02-09 21:56:10 +00:00
Niels Martin Hansen
bc002d749c
Make Windows path.cpp actually build. Still not really tested.
...
Originally committed to SVN as r5332.
2011-02-09 21:55:40 +00:00
Niels Martin Hansen
acbe4bbb34
Add a bunch of new files to the libaegisub msbuild.
...
Originally committed to SVN as r5331.
2011-02-09 21:55:03 +00:00
Amar Takhar
a118487afa
Remove cache cleaning code from ffms, I'll eventually write something in libaegisub as we need cache cleaning for other areas too. (debug log, crash logs etc)
...
Originally committed to SVN as r5330.
2011-02-09 21:53:37 +00:00
Amar Takhar
ce912335f1
Fix and de wxify video_manager.cpp.
...
Originally committed to SVN as r5329.
2011-02-09 04:41:40 +00:00
Amar Takhar
7d2594b134
s/Video/FFmpegSourceVideoProvider/, originally I was planning something different now we're moving all media-related code, also add missing GetDecoderName() method which was somehow removed by accident in a previous revision.
...
Originally committed to SVN as r5328.
2011-02-09 04:41:15 +00:00
Amar Takhar
83fd95c605
Some fixes to libmedia/video.h
...
Originally committed to SVN as r5327.
2011-02-09 02:30:48 +00:00
Amar Takhar
ae7d00a57e
Fix and de-wxify audio_manager.cpp
...
Originally committed to SVN as r5326.
2011-02-09 02:28:43 +00:00
Amar Takhar
185721837b
s/Audio/FFmpegSourceAudioProvider/, originally I was planning something different now we're moving all media-related code, also replace missing public identifier from the class decleration.
...
Originally committed to SVN as r5325.
2011-02-09 02:28:24 +00:00
Amar Takhar
c603c21b86
Print a message to the user and exit(1) if HOME is not set in the users environment.
...
Originally committed to SVN as r5324.
2011-02-08 22:40:55 +00:00
Amar Takhar
436ea23e4c
Instantiate agi::Path, I have no idea if this works on windows since my build is still broken and jfs' code is untested. If someone else doesn't get to it I'll see about fixing my build and making it work. (if it's even broken...)
...
Originally committed to SVN as r5323.
2011-02-08 05:05:54 +00:00
Amar Takhar
355ad91105
* Instead of ~ use getenv("HOME") to get the users home directory.
...
* Fix Locale() to return P_LOCALE
* Change data and doc values to P_DATA and P_DOC.
Originally committed to SVN as r5322.
2011-02-08 04:22:52 +00:00
Amar Takhar
961c1245f7
Remove const in path.cpp (missed in r5320)
...
Originally committed to SVN as r5321.
2011-02-08 03:53:34 +00:00
Amar Takhar
bf05289495
* Remove misplaced const on a void method.
...
* Forward declare Options to avoid including options.h in the header.
Originally committed to SVN as r5320.
2011-02-08 03:48:00 +00:00
Niels Martin Hansen
7ae6e6da88
Completely untested implementation of agi::Path for Windows.
...
Originally committed to SVN as r5319.
2011-02-08 00:21:42 +00:00
Amar Takhar
78ed8e3694
Add stub path file for Windows and hand-edit vcproj to include the file.
...
Originally committed to SVN as r5318.
2011-02-07 18:02:26 +00:00
Amar Takhar
b3c5bb6e92
Add corrected default_path.json which should have been in r5315.
...
Originally committed to SVN as r5317.
2011-02-07 18:02:04 +00:00
Amar Takhar
0a54e9ca06
Fix inclusion of config.h, when I was writing this I added a relative path directly to acconf.h
...
Originally committed to SVN as r5316.
2011-02-07 17:36:24 +00:00
Amar Takhar
a35962923f
Finish agi::Path so we can actually use it, our current path system is brutal and I needed this for libmedia. I'll be adding OS X support shortly: someone else will have to figure out what to do with windows it's completely trivial see unix/path.cpp and check libaegisub/path.h for the return values.
...
Originally committed to SVN as r5315.
2011-02-07 16:39:49 +00:00
Amar Takhar
7b06c334aa
Add missing headers and change StdioProgressSink() to use std::cout and friends.
...
Originally committed to SVN as r5314.
2011-02-07 00:46:49 +00:00
Amar Takhar
e27c3e15b8
Add several progress factories to handle progress bars. The GUI version will come from code within aegisub.
...
Originally committed to SVN as r5313.
2011-02-07 00:12:57 +00:00
Amar Takhar
73913fb0b8
Remove mutex.h from common/log.cpp until the windows build is fixed.
...
Originally committed to SVN as r5312.
2011-02-06 20:45:46 +00:00
Amar Takhar
874950382c
s/acconf.h/config.h/ -- I forgot I actually fixed this when adding mutex.h so it was already working with the exception of the namespace change.
...
Originally committed to SVN as r5311.
2011-02-06 20:19:25 +00:00
Amar Takhar
4968fc2b55
Fix ram audio provider: this uses mutex.h (from google) in libaegisub and switches to use agi::io. The progress code has been stubbed out as well as a few path methods. There's no reason to guess at fixing them the only way to do it is after it's actually put into use.
...
Originally committed to SVN as r5310.
2011-02-06 19:52:50 +00:00
Amar Takhar
2edbc8c8c1
Fix mutex.h so we can actually use it.
...
Originally committed to SVN as r5309.
2011-02-06 19:50:59 +00:00
Amar Takhar
3d460ca31f
Fix video cache, just needed to stub out one option which will be made a param to the constructor.
...
Originally committed to SVN as r5308.
2011-02-06 19:28:17 +00:00
Amar Takhar
15dab81b91
Fix ram audio provider (this stubs out a few lines used for progress updating.
...
Originally committed to SVN as r5307.
2011-02-06 18:48:42 +00:00
Amar Takhar
2ce135b612
Copy colourspace.(c|h) into libmedia and hack out wx.
...
Originally committed to SVN as r5306.
2011-02-06 03:59:13 +00:00
Amar Takhar
0c15005cc2
Add files to media namespace.
...
Originally committed to SVN as r5305.
2011-02-06 03:32:18 +00:00
Amar Takhar
37bcd0cc12
Fix dummy and pcm audio providers.
...
Originally committed to SVN as r5304.
2011-02-06 03:14:18 +00:00
Amar Takhar
65d216e60d
Move dummy.h to dummy_audio.h
...
Originally committed to SVN as r5303.
2011-02-06 03:10:34 +00:00
Amar Takhar
f16fb6bb5f
Add fix convert and downmix audio providers.
...
Originally committed to SVN as r5302.
2011-02-06 03:09:59 +00:00
Amar Takhar
e55ad2ed4d
Add files to media namespace
...
Originally committed to SVN as r5301.
2011-02-06 03:08:51 +00:00
Amar Takhar
e18ad3768b
Switch namespace to media and use VideoProvider
...
Originally committed to SVN as r5300.
2011-02-06 03:02:45 +00:00
Amar Takhar
0ca6266c86
Add missing } to close the namespace.
...
Originally committed to SVN as r5299.
2011-02-06 03:02:13 +00:00
Amar Takhar
f8b4b30cf8
Various fixes:
...
* svn:ignore
* rename 'agi' namespace to 'media'
* Remove some hacks required before bringing in provider code.
Originally committed to SVN as r5298.
2011-02-06 02:58:49 +00:00
Amar Takhar
97abbf13ce
Remove exception.h, this used to be media.h in libaegisub however it's become moot after bringing in the provider headers from aegisub.
...
Originally committed to SVN as r5297.
2011-02-06 02:57:47 +00:00
Amar Takhar
f486f8dea8
Commit missed changes to libaegisub/Makefile to remove media code.
...
Originally committed to SVN as r5296.
2011-02-06 00:07:19 +00:00
Amar Takhar
ff602f7f2a
Copy aegisub/(video|audio)_provider.h to libmedia/(video|audio).h
...
Originally committed to SVN as r5295.
2011-02-06 00:04:55 +00:00
Amar Takhar
7a13a4fb10
Add Makefile, the precompiled header unfortunatly snuck into r5292 -- it's a verbatim copy from libaegisub.
...
Originally committed to SVN as r5294.
2011-02-05 23:49:26 +00:00
Amar Takhar
66b6fdcfc8
Move video_frame.cpp which was left out of r5292.
...
Originally committed to SVN as r5293.
2011-02-05 23:46:09 +00:00
Amar Takhar
511b37ee48
Move converted code out of libaegisub and into libmedia.
...
Originally committed to SVN as r5292.
2011-02-05 23:43:20 +00:00
Amar Takhar
72211ad685
Copy and rename files from src/ into libmedia/. A lot of these headers will have to go into include/*. At the moment there's no point sorting that out until we see the final relation and external api requirements. I'll first unhook all of this code from the UI to figure out what common changes are required then design the final changes for an api that the UI can use sanely.
...
Originally committed to SVN as r5290.
2011-02-05 23:34:12 +00:00
Amar Takhar
7508420000
Commit a WIP for fixing tinderbox distfile building.
...
Originally committed to SVN as r5287.
2011-02-05 22:23:31 +00:00
Amar Takhar
75711f8041
Add FFMPEG LDFLAGS to the reporter as now they're r equired to link libaegisub. It's not worth considering to split it until everything is moved over.
...
Originally committed to SVN as r5286.
2011-02-04 18:41:52 +00:00
Amar Takhar
ac2c6508dd
Strategically place comments to stub out AskForTrackSelection() and CleanCache().
...
Originally committed to SVN as r5285.
2011-02-03 18:12:42 +00:00
Amar Takhar
283eff76ac
Add LDFLAGS_POST to the shared library target.
...
Originally committed to SVN as r5284.
2011-02-03 18:09:08 +00:00
Amar Takhar
d59e0dd075
Add support for removing ffms support and properly link ffms into libaegisub.
...
Originally committed to SVN as r5283.
2011-02-03 18:08:41 +00:00
Amar Takhar
e46f83e672
Add -fPIC so ffms can be linked into a shared library.
...
Originally committed to SVN as r5282.
2011-02-03 18:08:11 +00:00
Amar Takhar
a733260603
Add missing headers.
...
Originally committed to SVN as r5281.
2011-02-03 17:15:38 +00:00
Amar Takhar
ac70f229dc
Re-license video_frame.(cpp|h) with permission of copyright holder (Rodrigo Braz Monteiro).
...
Originally committed to SVN as r5280.
2011-02-03 15:52:06 +00:00
Amar Takhar
ffff58d698
Compilation fixes now that ffmpegsource_common.cpp has been moved over. Everything compiles correctly now.
...
Originally committed to SVN as r5279.
2011-02-03 15:49:44 +00:00
Amar Takhar
b47dd1e220
Add mid() template to util namespace.
...
Originally committed to SVN as r5278.
2011-02-03 15:49:13 +00:00
Amar Takhar
bb4aa727d3
Add media/* to the build on Unix.
...
Originally committed to SVN as r5277.
2011-02-03 15:48:46 +00:00
Amar Takhar
36549ff724
Add media.h -- I'm not sure if this will be the perm name, it currently holds exception definitions.
...
Originally committed to SVN as r5276.
2011-02-03 15:48:18 +00:00
Amar Takhar
93ceb59b0f
Move ffmpegsource_common.(cpp|h) and change the license to fit the rest of libaegisub with permission of the current license holder (Karl Blomster)
...
Originally committed to SVN as r5275.
2011-02-03 15:47:43 +00:00
Amar Takhar
bcafbe2083
Move ffms_* files over to media/
...
Originally committed to SVN as r5274.
2011-02-03 01:18:43 +00:00
Amar Takhar
629b819e37
Move video_frame.(cpp|h) to libaegisub. The license has not been changed however I have an email sent to amz, I will change it once he responds.
...
Originally committed to SVN as r5273.
2011-02-03 01:18:14 +00:00
Amar Takhar
f5308fe65b
Move video_provider_ffmpegsource.(cpp|h) and change the license to fit the rest of libaegisub with permission of the current license holder (Karl Blomster)
...
Originally committed to SVN as r5272.
2011-02-03 01:17:15 +00:00
Amar Takhar
cddfe3ed20
Wrap code under the agi namespace.
...
Originally committed to SVN as r5271.
2011-02-02 23:23:48 +00:00
Amar Takhar
cacc3516c1
This should have gone into r5269: These files were re-licensed with permission of the original author. (Karl Blomster).
...
Originally committed to SVN as r5270.
2011-02-02 23:20:03 +00:00
Amar Takhar
1219b069b1
Copy audio_provider_ffmpegsource.(cpp|h) to ./ffms_audio.(cpp|h) and remove wx usage.. The plan is to move a/v support to libaegisub and write unit tests to make sure we can open/close/seek the "official" formats we want to support.
...
Originally committed to SVN as r5269.
2011-02-02 23:11:17 +00:00
Thomas Goyne
b3562eb917
Implement the overscan mask command
...
Originally committed to SVN as r5268.
2011-01-25 04:24:19 +00:00
Thomas Goyne
95c45b3102
Remove pointless #pragma once from video_box.h
...
Originally committed to SVN as r5267.
2011-01-23 07:48:15 +00:00
Thomas Goyne
8d968e4dd5
Move the code for updating the time/frame display boxes from VideoDisplay to VideoBox
...
Originally committed to SVN as r5266.
2011-01-23 07:48:07 +00:00
Thomas Goyne
091c8170f2
Make several of VideoDisplay's members private
...
Originally committed to SVN as r5265.
2011-01-23 07:47:59 +00:00
Thomas Goyne
14420102e4
Update the frame number display and visual typesetting tool when opening a new video
...
Originally committed to SVN as r5264.
2011-01-23 07:47:52 +00:00
Thomas Goyne
10c3a2ca16
Only bind wxEVT_COMMAND_MENU_SELECTED once rather than once per command as large numbers of event handlers make wx explode
...
Originally committed to SVN as r5263.
2011-01-23 06:45:03 +00:00
Thomas Goyne
88be46c657
Add missing #include <algorithm> in ass_export_filter.cpp
...
Originally committed to SVN as r5262.
2011-01-21 06:32:02 +00:00
Thomas Goyne
41f9426634
Make the "From Video" button in the framerate transform configuration actually do something
...
Originally committed to SVN as r5261.
2011-01-21 06:09:28 +00:00
Thomas Goyne
b851e50092
Open the correct dialog in tool/export
...
Originally committed to SVN as r5260.
2011-01-21 06:09:20 +00:00
Thomas Goyne
ab00aa74ea
Actually initialize the context in DialogResample
...
Originally committed to SVN as r5259.
2011-01-21 06:09:13 +00:00
Thomas Goyne
af92002d8c
Redesign export filters to not be static singletons, removing the need to jump through hoops to avoid static initialization order issues
...
Originally committed to SVN as r5258.
2011-01-21 06:09:04 +00:00
Thomas Goyne
83a461ca63
Port DialogVideoDetails to agi::Context
...
Originally committed to SVN as r5257.
2011-01-21 04:57:44 +00:00
Thomas Goyne
6ad2098749
Make VideoSlider use commands for its key events
...
Originally committed to SVN as r5256.
2011-01-21 04:57:36 +00:00
Thomas Goyne
1f79d89e5b
Port DialogJumpTo to agi::Context
...
Originally committed to SVN as r5255.
2011-01-21 04:57:28 +00:00
Thomas Goyne
e8b8f876bd
Eliminate some uses of VideoContext::Get()
...
Originally committed to SVN as r5254.
2011-01-21 04:57:21 +00:00
Thomas Goyne
9c07798cb5
Delete some dead code in FrameMain
...
Originally committed to SVN as r5253.
2011-01-21 04:57:12 +00:00
Thomas Goyne
71daddeeb2
Convert the video box buttons over to commands
...
Originally committed to SVN as r5252.
2011-01-20 05:58:01 +00:00
Thomas Goyne
b286339ce0
Eliminate a few uses of VideoContext::Get()
...
Originally committed to SVN as r5251.
2011-01-20 05:57:53 +00:00
Thomas Goyne
9ec1e1ba79
Explicitly set Collisions to the default (Normal) in the default file so that opening and closing the properties dialog on the default file is a no-op
...
Originally committed to SVN as r5250.
2011-01-20 05:57:46 +00:00
Thomas Goyne
79e11ef5cf
Convert the properties dialog over to operating on a context
...
Originally committed to SVN as r5249.
2011-01-20 05:57:38 +00:00
Thomas Goyne
5f0d5757be
Make NumValidator less bizzare
...
Originally committed to SVN as r5248.
2011-01-20 05:57:30 +00:00
Thomas Goyne
a8ebc1e456
Make AssFile handle autosaving on every commit itself rather than going through FrameMain
...
Originally committed to SVN as r5247.
2011-01-20 05:57:23 +00:00
Thomas Goyne
cecaff404b
Finish killing FrameMain::SaveSubtitles
...
Originally committed to SVN as r5246.
2011-01-20 05:57:15 +00:00
Thomas Goyne
5270a3bf3a
Remove withCharset parameter from FrameMain::SaveSubtitles as it was never used (saving with a charset is done by exporting)
...
Originally committed to SVN as r5245.
2011-01-20 05:57:08 +00:00
Thomas Goyne
1a26edc869
Delete FrameMain::SynchronizeProject as the last use of it was removed in r5207
...
Originally committed to SVN as r5244.
2011-01-20 05:56:59 +00:00
Niels Martin Hansen
0762422b20
Super fancy property pages for configuring the build in VC10. Doesn't want to display the defaults (properly) but that's not so important :)
...
Originally committed to SVN as r5243.
2011-01-19 06:40:23 +00:00
Niels Martin Hansen
dd24ffac89
Do some grouping of source files in the VC10 project file.
...
Originally committed to SVN as r5242.
2011-01-19 04:05:30 +00:00
Thomas Goyne
ccddf8eab1
Make hotkey::check return whether any hotkeys matched, and skip events which did not match any hotkeys
...
Originally committed to SVN as r5241.
2011-01-19 03:12:46 +00:00
Thomas Goyne
ec3d1a9d35
Don't try to reorder things by swapping entries in a set
...
Originally committed to SVN as r5240.
2011-01-18 06:01:29 +00:00
Thomas Goyne
2183442089
Remove the unmodifiered frame left/right hotkeys from default
...
Originally committed to SVN as r5239.
2011-01-18 05:13:34 +00:00
Thomas Goyne
45c33ab675
Add commands for the remaining subtitles grid hotkeys and remove SubtitlesGrid::OnKeyDown entirely
...
Originally committed to SVN as r5238.
2011-01-18 05:13:26 +00:00
Thomas Goyne
c3325cb543
Remove AegisubApp::OnKeyDown
...
It was an odd hack to ensure that medusa mode didn't mark keydown events
as processed (resulting in EVT_CHAR never triggering), but there should
be a better way to do this when we reintroduce global timing hotkeys.
Originally committed to SVN as r5237.
2011-01-18 03:42:51 +00:00
Thomas Goyne
a4da8c3a61
Update libffms to r411
...
Originally committed to SVN as r5236.
2011-01-18 00:51:38 +00:00
Thomas Goyne
3f9bead41a
Use the tr1 version of <tuple> when building with gcc
...
Originally committed to SVN as r5235.
2011-01-18 00:29:40 +00:00
Thomas Goyne
c9656381f1
Remove now-pointless #pragma once from audio_box.h
...
Originally committed to SVN as r5234.
2011-01-17 23:54:13 +00:00
Thomas Goyne
e0051e09e3
Use commands for most of the buttons in the audio box and add hotkey support
...
Originally committed to SVN as r5233.
2011-01-17 23:54:05 +00:00
Thomas Goyne
f79c9e57a0
Add commands for most of the audio box buttons/hotkeys
...
Originally committed to SVN as r5232.
2011-01-17 23:53:59 +00:00
Thomas Goyne
33d8dd2975
Update TooltipManager to work with commands
...
Originally committed to SVN as r5231.
2011-01-17 23:53:52 +00:00
Thomas Goyne
04a4c074b0
Add function to get the string representation of the hotkeys for a command, use it when generating the menu
...
Originally committed to SVN as r5230.
2011-01-17 23:53:46 +00:00
Thomas Goyne
cd4b032c25
Make agi::hotkey::Scan const
...
Originally committed to SVN as r5229.
2011-01-17 23:53:38 +00:00
Niels Martin Hansen
7713ea20e0
Produce a default config_windows.h file if one doesn't already exist.
...
Allow setting the BUILD_CREDIT define through a property page.
Originally committed to SVN as r5224.
2011-01-16 23:51:41 +00:00
Niels Martin Hansen
652a8c7806
Lump all the custom targets etc. for Aegisub into a single file, instead of using many.
...
Also, no custom project items needed anyway.
Originally committed to SVN as r5223.
2011-01-16 23:01:26 +00:00
Niels Martin Hansen
1e7718d30b
Run TSVN's SubWCRev as part of the build.
...
The detection of the tool location is tricky and doesn't seem to work entirely as it should. It Works For Me as it is now, though the property page setting doesn't show the correct default.
Originally committed to SVN as r5222.
2011-01-16 22:42:30 +00:00
Thomas Goyne
f2df585797
Move audio display hotkeys to the Audio category
...
Originally committed to SVN as r5221.
2011-01-16 08:50:00 +00:00
Thomas Goyne
a2af06f302
Fix a few errors in the default hotkeys
...
Originally committed to SVN as r5220.
2011-01-16 08:49:53 +00:00
Thomas Goyne
8c8b149236
Fix a few warnings in the reporter
...
Originally committed to SVN as r5219.
2011-01-16 07:18:06 +00:00
Thomas Goyne
be71a66600
Add command and AudioController support for saving audio clips
...
Originally committed to SVN as r5218.
2011-01-16 07:18:00 +00:00
Thomas Goyne
403d465475
Fix hotkeys with non-alphanumeric keys other than back, return, escape, space and delete
...
Originally committed to SVN as r5217.
2011-01-16 07:17:53 +00:00
Thomas Goyne
a1bd974969
Partially convert the subtitles grid's context menu over to using commands
...
Originally committed to SVN as r5216.
2011-01-16 07:17:46 +00:00
Thomas Goyne
df1dce3593
Kill SubtitlesGrid::ass and SubtitlesGrid::EditBox and convert everything that used them over to agi::Context
...
Originally committed to SVN as r5215.
2011-01-16 07:17:36 +00:00
Thomas Goyne
778338fa2b
Remove FrameMain::menuCreated
...
Originally committed to SVN as r5214.
2011-01-16 07:17:29 +00:00
Thomas Goyne
6c0db27fac
Remove some of FrameMain's friends
...
Originally committed to SVN as r5213.
2011-01-16 07:17:24 +00:00
Thomas Goyne
362e4c776b
Make a large chunk of FrameMain's members private
...
Originally committed to SVN as r5212.
2011-01-16 07:17:17 +00:00
Thomas Goyne
d84b768171
Remove the 'audio' and 'grid' public members from VideoContext and migrate everything that used them over to Context
...
Originally committed to SVN as r5211.
2011-01-16 07:17:08 +00:00
Thomas Goyne
169d3cd31c
Add the selection controller to the context
...
Originally committed to SVN as r5210.
2011-01-16 07:17:02 +00:00
Thomas Goyne
8544565c0e
Rearrange FrameMain initialization order to seperate context initialization and control creation a bit, and eliminate local pointers to non-view parts of the context
...
Originally committed to SVN as r5209.
2011-01-16 07:16:54 +00:00
Thomas Goyne
9f25b51a54
Rearrange context.h
...
Originally committed to SVN as r5208.
2011-01-16 07:16:48 +00:00
Thomas Goyne
7210ea17d8
Add pre-save signal to AssFile and move most of the logic in FrameMain::SaveSubtitles to slots for this signal
...
Originally committed to SVN as r5207.
2011-01-16 07:16:40 +00:00
Thomas Goyne
59300cbc27
Add a subtitle open signal and move most of the logic in FrameMain::LoadSubtitles to slots for this signal.
...
Originally committed to SVN as r5206.
2011-01-16 07:16:33 +00:00
Thomas Goyne
314a07c9ab
Move post-video-load logic from FrameMain::LoadVideo to FrameMain::OnVideoOpen, and open videos via VideoContext directly
...
Originally committed to SVN as r5205.
2011-01-16 07:16:27 +00:00
Thomas Goyne
1664faf159
Make SubtitlesGrid listen for changes to "Subtitle/Grid/Hide Overrides" rather than refreshing it from the command
...
Originally committed to SVN as r5204.
2011-01-16 07:16:21 +00:00
Thomas Goyne
bee57ccad3
Make DialogSpellChecker operate on a context rather than going through FrameMain
...
Originally committed to SVN as r5203.
2011-01-16 07:16:13 +00:00
Thomas Goyne
1aeded1a29
Make scoped_ptr's constructor explicit
...
Originally committed to SVN as r5202.
2011-01-16 07:16:07 +00:00
Thomas Goyne
71937757a2
Remove #pragma once from context.h and fix resulting compilation errors
...
Originally committed to SVN as r5201.
2011-01-16 07:16:00 +00:00
Thomas Goyne
64ebce6c0f
Move NextFrame and PrevFrame from VideoSlider to VideoContext
...
Originally committed to SVN as r5200.
2011-01-16 07:15:53 +00:00
Thomas Goyne
08ec92046f
Implement MRU commands
...
Originally committed to SVN as r5199.
2011-01-16 07:15:46 +00:00
Thomas Goyne
ecea389e62
Add macro for defining command groups (i.e. menus) as they're almost entirely boilerplate
...
Originally committed to SVN as r5198.
2011-01-16 07:15:40 +00:00
Thomas Goyne
583aed4533
Convert commands to structs to eliminate a line of boilerplate per command
...
Originally committed to SVN as r5197.
2011-01-16 07:15:32 +00:00
Thomas Goyne
9779eacbf1
Implement almost all stubbed-out commands other than the MRU ones
...
Originally committed to SVN as r5196.
2011-01-16 07:15:24 +00:00
Thomas Goyne
7afbce439d
AppName has to be set before ?user can be used
...
Originally committed to SVN as r5195.
2011-01-16 07:15:18 +00:00
Thomas Goyne
f604e0bacd
Add spacers to the main toolbar
...
Originally committed to SVN as r5194.
2011-01-16 07:15:11 +00:00
Thomas Goyne
77cb5b75b8
Disable the video details menu item when no video is loaded
...
Originally committed to SVN as r5193.
2011-01-16 07:15:05 +00:00
Thomas Goyne
685d4841dc
Wrap documentation in audio_timing.h at 80 columns
...
Originally committed to SVN as r5192.
2011-01-16 07:14:59 +00:00
Thomas Goyne
daa8c58cd8
Don't announce marker movements that update the styled ranges as well; it's redundant and the marker move signal is more useful as only non-interactive markers.
...
Originally committed to SVN as r5191.
2011-01-16 07:14:53 +00:00
Thomas Goyne
cc5952035e
Don't declare methods as virtual in a class not intended to be inherited from
...
Originally committed to SVN as r5190.
2011-01-16 07:14:47 +00:00
Thomas Goyne
84ffb4414a
Update vs2008 respack project
...
Originally committed to SVN as r5189.
2011-01-16 07:14:24 +00:00
Niels Martin Hansen
4c5d8f54ea
Forgot svn:keywords...
...
Originally committed to SVN as r5188.
2011-01-14 07:52:41 +00:00
Niels Martin Hansen
238f2dedb6
Custom property page for the respack tool, how cool!
...
Also include the standard targets later to make the projects stop spewing build status files into wrong dirs.
Originally committed to SVN as r5187.
2011-01-14 07:40:06 +00:00
Niels Martin Hansen
a7dd3611a2
Here's an MSBuild project file for Aegisub itself!
...
Originally committed to SVN as r5186.
2011-01-14 03:49:28 +00:00
Niels Martin Hansen
cda28d706b
More clean-up of the MSBuild projects. (The IDE hates me for this.)
...
Originally committed to SVN as r5185.
2011-01-14 03:47:57 +00:00
Niels Martin Hansen
6490faa5c5
Prevent CSRI helper library from causing linking apps (like aegisub.exe) to export symbols.
...
Originally committed to SVN as r5184.
2011-01-14 02:05:01 +00:00
Niels Martin Hansen
8b58a63bd5
CSRI helper library MSBuild project.
...
Originally committed to SVN as r5183.
2011-01-14 01:30:17 +00:00
Niels Martin Hansen
1e6ace134a
Respack produced invalid resources on Windows since it was opening files in text mode, causing newline conversions to happen.
...
Having it open files in binary mode instead fixes the problem.
Originally committed to SVN as r5182.
2011-01-14 01:29:47 +00:00
Niels Martin Hansen
59b8686fdc
MSBuild project for chardet.
...
Originally committed to SVN as r5181.
2011-01-14 01:08:47 +00:00
Niels Martin Hansen
73905fb1b5
Add some DirectX detection.
...
Originally committed to SVN as r5180.
2011-01-11 22:04:47 +00:00
Niels Martin Hansen
87ac25bfa7
Add some missing files to the libaegisub project. Make Lua compile as C++ to get C++ name mangling, as Aegisub expects that.
...
Originally committed to SVN as r5179.
2011-01-11 22:04:21 +00:00
Amar Takhar
585b108671
Takes exactly 3 arguments it's not a minimum.
...
Originally committed to SVN as r5178.
2011-01-11 21:50:27 +00:00
Amar Takhar
357adc07dc
Add some comments.
...
Originally committed to SVN as r5177.
2011-01-11 21:47:59 +00:00
Niels Martin Hansen
5d6730919d
Fix ResPack target not actually building the intended resource files.
...
Originally committed to SVN as r5176.
2011-01-11 21:36:13 +00:00
Niels Martin Hansen
f1121898b9
Update ResPack project, write ResPack target for MSBuild and add libresrc project that uses the ResPack target.
...
The ResPack target is not ideal, it will regenerate the source files even when they are up to date, if only the object files are outdated. This means that in batch builds, the source files will get regenerated for every platform/config built.
Originally committed to SVN as r5175.
2011-01-11 20:25:47 +00:00
Niels Martin Hansen
3974dfd1f2
Reorganise the property sheet includes to use a master include, and use properties to control inclusion of wxWidgets and Freetype, and any further deps.
...
Originally committed to SVN as r5174.
2011-01-11 18:15:31 +00:00
Amar Takhar
75b732bf60
Use lowercase filenames for OS X includes. HFS is case-insensitive and since I'm cross-compiling the OS X version from Linux it fails when you try to include files using uppercase names when they're actually lowercase.
...
Originally committed to SVN as r5173.
2011-01-11 17:52:17 +00:00
Niels Martin Hansen
a7954fc3e0
MSBuild project for libaegisub.
...
Originally committed to SVN as r5172.
2011-01-11 17:50:03 +00:00
Amar Takhar
f576bf912a
Add missing headers.
...
Originally committed to SVN as r5171.
2011-01-11 17:22:44 +00:00
Amar Takhar
a3534f2cae
Fix identifers, _misc is no longer used.
...
Originally committed to SVN as r5169.
2011-01-11 17:00:11 +00:00
Amar Takhar
3ce2b1d802
Fix build to use new method.
...
Originally committed to SVN as r5168.
2011-01-11 16:59:03 +00:00
Amar Takhar
1a9f9abbed
Add respack manifests.
...
Originally committed to SVN as r5167.
2011-01-11 16:58:47 +00:00
Amar Takhar
29f02c515b
Move buttons from 16/* and 24/* to button/*_(16|24).png. This is a closer representation of what they're like in-source and in the future we'll only have 1 version of each icon
...
Originally committed to SVN as r5166.
2011-01-11 16:57:44 +00:00
Amar Takhar
9d34dfb01c
Rewrite respack in pure C++, this is required to make cross-compiling sane.
...
Originally committed to SVN as r5165.
2011-01-11 16:55:15 +00:00
Amar Takhar
a02fee90c3
Add a quick script used for distfile building. I don't see any reason to support a pure makefile solution and make it unnecessarily complex. In the future if anyone feels they may want to use this build system I'll change it otherwise we'll use this for now.
...
Originally committed to SVN as r5164.
2011-01-10 21:33:58 +00:00
Amar Takhar
7a8829efdc
Remove Makefile.inc from EXTRA_DIST
...
Originally committed to SVN as r5163.
2011-01-10 21:32:54 +00:00
Amar Takhar
03ca62df22
Include dependency files into the Makefiles. This gives us dep tracking for headers.
...
Originally committed to SVN as r5162.
2011-01-10 21:27:39 +00:00
Niels Martin Hansen
0d6edabbdc
Prettify the property files a bit and add some real sample files for the userconfig dir.
...
Originally committed to SVN as r5161.
2011-01-10 17:46:15 +00:00
Niels Martin Hansen
5f7fbf48c6
Use project relative paths for source files, to work around this (possible) MSBuild bug:
...
https://connect.microsoft.com/VisualStudio/feedback/details/635294/using-absolute-path-in-clcompile-item-prevents-property-pages-from-showing
Originally committed to SVN as r5160.
2011-01-10 01:27:12 +00:00
Niels Martin Hansen
231220cc63
Oops, left in an Import that shouldn't be there anyway.
...
Originally committed to SVN as r5159.
2011-01-09 23:06:01 +00:00
Karl Blomster
a90d855950
update ffms2 to r409
...
Originally committed to SVN as r5158.
2011-01-09 21:47:46 +00:00
Niels Martin Hansen
a08eb28846
MSBuild projects for the contrib libraries, except CSRI.
...
There is an odd bug/glitch where it is impossible to view property pages for single source files through the VS 2010 IDE, but compilation works as intended.
Originally committed to SVN as r5157.
2011-01-09 08:01:57 +00:00
Niels Martin Hansen
95c2649721
Add a bunch more property files for MSBuild projects
...
Originally committed to SVN as r5156.
2011-01-09 07:08:36 +00:00
Amar Takhar
c2a81a5dd7
Add a cast to make x64 build on windows happy.
...
Originally committed to SVN as r5155.
2011-01-09 02:49:49 +00:00
Amar Takhar
e1a59d307e
* Fix iconv LDFLAGS for *bsd*
...
* Minor style fix for $GL_LIBS test.
* Fail if iconv isn't found.
* Fix variable name for the ! subtitle-found case which was over-writing the audio variable.
Originally committed to SVN as r5154.
2011-01-09 01:37:34 +00:00
Amar Takhar
73bd4f2398
* Remove awk check -- we haven't need it in over a year.
...
* Remove check for iconv.m4, I switched to custom code over a year ago.
Originally committed to SVN as r5153.
2011-01-09 01:36:18 +00:00
Amar Takhar
23d96d071c
Add missing property sheets to x64 build config.
...
Originally committed to SVN as r5152.
2011-01-09 00:47:06 +00:00
Niels Martin Hansen
a13e0ddedf
Clear out some warnings emitted by Visual C++ 2010.
...
On 32 bit VC 2010, std::streamsize is 64 bit while size_t is 32 bit.
Originally committed to SVN as r5151.
2011-01-08 21:58:48 +00:00
Niels Martin Hansen
abf9ee645b
std::basic_streambuf::_Sgetn_s was removed was Visual C++ 2010 for some reason.
...
Originally committed to SVN as r5150.
2011-01-08 21:54:31 +00:00
Karl Blomster
71928bc25b
update ffms2 to r407
...
Originally committed to SVN as r5149.
2011-01-08 20:32:18 +00:00
Amar Takhar
8f401a838a
Add utilities to a util:: namespace for clarity.
...
Originally committed to SVN as r5148.
2011-01-08 19:16:11 +00:00
Amar Takhar
68aa077add
Actually add util.(c|h) which should have been in r5146.
...
Originally committed to SVN as r5147.
2011-01-08 19:14:48 +00:00
Amar Takhar
93f8b84688
* Instantiate log class.
...
* Create new util file and add a config_path() function to get Aegisubs' configuration directory.
* Header cleanu
Originally committed to SVN as r5146.
2011-01-08 19:14:02 +00:00
Amar Takhar
3f110101aa
Ensure the proper cflags are set for common/charset_conv.cpp in libaegisub. Also fix iconv include path on *bsd.
...
Originally committed to SVN as r5145.
2011-01-08 17:46:46 +00:00
Amar Takhar
69af40edc6
Fix compilation of linux support in the reporter.
...
Originally committed to SVN as r5144.
2011-01-08 15:38:30 +00:00
Amar Takhar
55803684c3
Use -Wl for linker flags.
...
Originally committed to SVN as r5143.
2011-01-08 15:38:11 +00:00
Amar Takhar
4eeacb5ab9
Silence warning.
...
Originally committed to SVN as r5142.
2011-01-08 15:25:04 +00:00
Amar Takhar
c67fe6db5d
Re-add platform-specific headers and fix prototypes.
...
Originally committed to SVN as r5141.
2011-01-08 15:24:35 +00:00
Amar Takhar
9d5a2b41b5
Add missing headers and sort.
...
Originally committed to SVN as r5140.
2011-01-08 15:18:58 +00:00
Amar Takhar
ef76d4b91b
Remove debug printf.
...
Originally committed to SVN as r5139.
2011-01-08 15:17:11 +00:00
Amar Takhar
7155e550ad
Update for change of paths.
...
Originally committed to SVN as r5138.
2011-01-08 14:22:23 +00:00
Amar Takhar
1530115458
Add libaegisub to solution.
...
Originally committed to SVN as r5137.
2011-01-08 14:22:12 +00:00
Amar Takhar
319ac2d4bb
Catch all exceptions when deciding whether to load the default config.
...
Originally committed to SVN as r5136.
2011-01-08 12:13:24 +00:00
Amar Takhar
0d7b2c6e76
Add missing headers when not using precompiled header support. Some minor formatting in libaegisub/common/hotkey.cpp.
...
Originally committed to SVN as r5135.
2011-01-08 12:10:40 +00:00
Amar Takhar
c95d92c2ca
Add a temp conditional to avoid exceptions when a command doesn't exist since the hotkeys aren't fully converted.
...
Originally committed to SVN as r5134.
2011-01-06 15:33:55 +00:00
Thomas Goyne
b56b641122
MSVC hurfs a blurf when two files in the same project have the same name
...
Originally committed to SVN as r5133.
2011-01-05 18:40:46 +00:00
Thomas Goyne
e450cb3e7e
Fix include paths
...
Originally committed to SVN as r5132.
2011-01-05 18:40:37 +00:00
Thomas Goyne
c6b65d8b82
Remove deleted files from the projects and add the new files
...
Originally committed to SVN as r5131.
2011-01-05 18:40:30 +00:00
Thomas Goyne
813aab2473
Add default_hotkey.json, default_menu.json, default_path.json, and default_toolbar.json to respack's post-build event.
...
Originally committed to SVN as r5130.
2011-01-05 18:40:24 +00:00
Amar Takhar
1ac31c65bf
Remove medusa commands, they don't technically exist anymore as we call it "global timing mode" now.
...
Originally committed to SVN as r5129.
2011-01-05 14:19:11 +00:00
Amar Takhar
2804e0cb52
Actually trigger a hotkey if it exists.
...
Originally committed to SVN as r5128.
2011-01-05 14:07:23 +00:00
Amar Takhar
9915fb1c3b
Add a depedency for libresrc on the 'command' subdir to ensure it's built first.
...
Originally committed to SVN as r5127.
2011-01-05 13:36:13 +00:00
Amar Takhar
167f09a610
Merge the dynamic menu, hotkey and toolbar branch to trunk. This doesn't include Windows support as vs2008 was being a major pain. This involves revisions r4921:4950, r4961:5002, r5005:5006, r5008:5056, r5062:5065, r5072, r5081:5082, r5087, r5096:5110, r5124:5125. Updates #1258 .
...
Originally committed to SVN as r5126.
2011-01-05 13:00:46 +00:00
Amar Takhar
cdc73b17d2
Add support for bitmask options to Options. First one is to avoid flushing the config to disk which we don't want to happen when the reporter uses Options to read config values.
...
Originally committed to SVN as r5123.
2011-01-04 04:24:40 +00:00
Amar Takhar
010f3c14e5
Fix reading of aegisub config values.
...
Originally committed to SVN as r5122.
2011-01-04 04:23:51 +00:00
Amar Takhar
a0e760c9da
Replace all instances of wxString with std::string where possible.
...
Originally committed to SVN as r5121.
2011-01-04 00:22:55 +00:00
Amar Takhar
4d3c89eebf
Cache wxGL* values to speed up GL probes, also delete locale in ~Platform().
...
Originally committed to SVN as r5120.
2011-01-03 16:14:43 +00:00
Amar Takhar
99aff7254f
* wxString is really annoying.
...
* Build JSON tree.
Originally committed to SVN as r5119.
2011-01-03 15:46:21 +00:00
Amar Takhar
c041bb8884
* Remove all vestiges of XML.
...
* Generate the report in the constructor.
Originally committed to SVN as r5118.
2011-01-03 14:28:24 +00:00
Amar Takhar
22c797a5d1
Fix some longstanding bugs now that I understand wxWidgets better.
...
Originally committed to SVN as r5116.
2011-01-03 14:11:53 +00:00
Amar Takhar
f04d721228
Remove the name map, it's no longer required.
...
Originally committed to SVN as r5115.
2011-01-03 13:43:39 +00:00
Amar Takhar
7514812a25
Convert rest of the values to JSON.
...
Originally committed to SVN as r5114.
2011-01-03 13:33:53 +00:00
Amar Takhar
4118580bb6
Add JSON stubs, remove a bunch of now obsolete code.
...
Originally committed to SVN as r5113.
2011-01-03 13:20:53 +00:00
Amar Takhar
e35badd20a
Convert more groups to JSON and simplify source further.
...
Originally committed to SVN as r5112.
2011-01-03 13:02:16 +00:00
Amar Takhar
5985c60ded
First stab at converting the reporter to use JSON and updating it to a saner design.
...
Originally committed to SVN as r5111.
2011-01-03 12:00:12 +00:00
Amar Takhar
efe88823c7
Add missing header.
...
Originally committed to SVN as r5091.
2011-01-02 02:37:05 +00:00
Amar Takhar
96a567086c
Remove calls to wxPrintf and replace them with LOG_E().
...
Originally committed to SVN as r5090.
2011-01-02 02:33:24 +00:00
Amar Takhar
64f60e0215
Add missing header, thanks.. closes #1255
...
Originally committed to SVN as r5089.
2011-01-02 01:44:54 +00:00
Thomas Goyne
d282b425c0
Update the audio display when keyframes are loaded/unloaded
...
Originally committed to SVN as r5086.
2010-12-31 23:53:42 +00:00
Thomas Goyne
7347c09ac0
Use Bind rather than Connect in AudioController
...
Originally committed to SVN as r5085.
2010-12-31 23:53:36 +00:00
Thomas Goyne
cf89403a5b
Listen for timecode load signals in AudioMarkerProviderKeyframes
...
Originally committed to SVN as r5084.
2010-12-31 23:53:30 +00:00
Thomas Goyne
4fdad923ad
Timecodes and keyframes are always sorted, so fix some code that assumed they could be unsorted
...
Originally committed to SVN as r5083.
2010-12-31 23:53:23 +00:00
Thomas Goyne
17c07cc131
Add timecodes opened signal to VideoContext
...
Originally committed to SVN as r5080.
2010-12-31 21:03:18 +00:00
Thomas Goyne
824294078f
Move YUV -> RGB conversion to VideoProviderYUV4MPEG and remove support for formats other than RGB32 from AegiVideoFrame
...
Originally committed to SVN as r5079.
2010-12-31 21:03:11 +00:00
Thomas Goyne
833e69b09f
Replace MIN/MAX/MID with std::min/std::max/mid
...
Originally committed to SVN as r5078.
2010-12-31 21:03:03 +00:00
Thomas Goyne
c6a823c731
Remove duplicate inclusion of several files in the project
...
Originally committed to SVN as r5077.
2010-12-31 21:02:56 +00:00
Thomas Goyne
5920c3124b
Make agi::Signal uncopyable
...
Originally committed to SVN as r5076.
2010-12-31 21:02:49 +00:00
Thomas Goyne
a566955047
Rename signals.h to signal.h
...
Originally committed to SVN as r5075.
2010-12-31 21:02:42 +00:00
Thomas Goyne
7c2e4e5115
Add tests for agi::keyframe
...
Originally committed to SVN as r5074.
2010-12-31 21:02:31 +00:00
Thomas Goyne
edff7d6a2d
Rewrite keyframe loading and saving code and move it to libaegisub
...
Originally committed to SVN as r5073.
2010-12-31 21:02:17 +00:00
Thomas Goyne
ea93f6afba
Remove pointless performance hurting call to glFinish
...
Originally committed to SVN as r5071.
2010-12-30 22:19:42 +00:00
Thomas Goyne
5370f3fa04
Make ThreadedFrameSource never lock jobMutex and fileMutex at the same time. Moderately improves responsiveness of the audio display while video is loaded.
...
Originally committed to SVN as r5070.
2010-12-30 22:19:36 +00:00
Thomas Goyne
ca8b6d8525
Wrap docs in audio_controller.h at 80 columns rather than 100
...
Originally committed to SVN as r5069.
2010-12-30 22:19:30 +00:00
Thomas Goyne
f3d1bc23bd
Reduce the amount of repainting done when the selection changes to a new one that doesn't overlap the old selection
...
Originally committed to SVN as r5068.
2010-12-30 22:19:24 +00:00
Thomas Goyne
364f398c5f
Kill VideoContext::keyframesRevision, which is no longer used
...
Originally committed to SVN as r5067.
2010-12-30 22:19:18 +00:00
Thomas Goyne
4684d5c4f8
Only refresh the audio portion of the audio display when markers are moved. Fixes bug where the timeline would sometimes be bold.
...
Originally committed to SVN as r5066.
2010-12-30 22:19:12 +00:00
Thomas Goyne
a64dc820a4
Remove VideoDisplay's border as on Windows it's rendered on top of the client area, hiding part of the video and throwing off hit detection for the visual tools
...
Originally committed to SVN as r5061.
2010-12-30 19:13:53 +00:00
Thomas Goyne
5f0ba21e30
Fix bug where the first gl glyph in each row after the first would be overwritten, resulting in the incorrect number being shown in the cross visual tool
...
Originally committed to SVN as r5060.
2010-12-30 19:13:45 +00:00
Thomas Goyne
73c0515954
Add handling for invalid timecode errors when opening video
...
Originally committed to SVN as r5059.
2010-12-29 19:35:45 +00:00
Thomas Goyne
bd7ac88f6b
Apply container audio delay when the FFMS2 version used supports it. Closes #1251 .
...
Originally committed to SVN as r5058.
2010-12-29 06:27:02 +00:00
Thomas Goyne
ce2adcea79
Revert r4828 as I decided to fix it in FFMS2 instead.
...
Originally committed to SVN as r5057.
2010-12-29 06:26:56 +00:00
Amar Takhar
ceb2bebf2c
Library links should not have absolute paths (from Nikoli on freenode.)
...
Originally committed to SVN as r5007.
2010-12-14 21:02:20 +00:00
Amar Takhar
45c971da68
Add a note about DESTDIR= support
...
Originally committed to SVN as r5004.
2010-12-14 18:53:17 +00:00
Amar Takhar
7b7b15f0a1
Include stdint.h for uintptr_t, it's odd that I've never had a problem with this on the several platforms I've built on, which excluded Gentoo of course.
...
Originally committed to SVN as r5003.
2010-12-14 18:17:49 +00:00
Thomas Goyne
36ded6ef89
Disable events while processing all file change events in SubsEditBox as apparently wxComboBox::Clear triggers change events on some platforms
...
Originally committed to SVN as r4960.
2010-12-12 00:34:02 +00:00
Thomas Goyne
fc9607cbb1
Disable deprecation warnings in libass on windows
...
Originally committed to SVN as r4959.
2010-12-12 00:33:55 +00:00
Thomas Goyne
017c09489b
Add missing config.h include in ass_drawing.c
...
Originally committed to SVN as r4958.
2010-12-12 00:33:48 +00:00
Niels Martin Hansen
ba6fded1cd
Make sure Windows builds don't get min and max macros defined from WinDef.h.
...
Originally committed to SVN as r4957.
2010-12-11 18:27:28 +00:00
Niels Martin Hansen
d188673e7c
Remove #ifdef block around #include "agi_pre.h", as it causes the VC10 compiler to explode. Hopefully this won't break build somewhere else.
...
Originally committed to SVN as r4956.
2010-12-11 16:52:12 +00:00
Niels Martin Hansen
60b3ea15c3
Switch _WINDOWS for _WIN32, as _WINDOWS doesn't seem to be defined using MSVC 2010 headers. On the other hand, _WIN32 is always defined by the compiler.
...
Originally committed to SVN as r4955.
2010-12-11 16:47:03 +00:00
Niels Martin Hansen
d63a646c2a
Small beginnings of MSBuild-based build system, for Visual Studio 2010/Windows 7.1 SDK.
...
So far proof of concept building just the respack program, using a semi-generalised form of finding wxWidgets. For it to find wxWidgets, a user configuration needs to be placed in the userconfig dir, see readme.txt.
Originally committed to SVN as r4954.
2010-12-11 16:35:22 +00:00
Amar Takhar
a2513f03a7
Add a check for tools/osx-bundle.sed, if it doesn't exist it will create 0 byte files, strange things can happen.
...
Originally committed to SVN as r4953.
2010-12-11 01:32:59 +00:00
Amar Takhar
572e27f681
Add LDFLAGS to the link line for shared libraries, this fixes the build on OSX. (and should have been there anyway)
...
Originally committed to SVN as r4952.
2010-12-11 01:32:24 +00:00
Amar Takhar
52497737cd
Fixup osx-bundle.sh:
...
* Remove libtool hack
* Fix locale installation now that intltool is gone.
* Some pretty-print cleanups.
Originally committed to SVN as r4951.
2010-12-10 23:05:05 +00:00
Amar Takhar
063cd0480d
OS X also needs typename to be defined within the template, that makes Windows,BSD and OS X, it's better to exclude platforms when we hit them.
...
Originally committed to SVN as r4920.
2010-12-08 18:58:10 +00:00
Amar Takhar
944eaa535e
Remove universalchardet headers from the precompiled header. For some reason this was causing issues with compliation on FreeBSD, rather than investigate why I removed it since it's used by exactly 1 file (charset_ucd.cpp). If it's going to cause one problem now it may cause another later that we may not notice.
...
Originally committed to SVN as r4919.
2010-12-08 14:32:30 +00:00
Amar Takhar
b0eb1dfe7c
Add missing source files to Makefile.
...
Originally committed to SVN as r4918.
2010-12-08 14:31:24 +00:00
Amar Takhar
5d73bcc598
Remove common/option_value.cpp it was converted to use signals in r4899.
...
Originally committed to SVN as r4917.
2010-12-08 14:21:45 +00:00
Amar Takhar
32bb692521
Define typename in the Signal template for FreeBSD as well. I'm not sure why this is required (yet) but we may need it on other platforms as well.
...
Originally committed to SVN as r4916.
2010-12-08 14:20:53 +00:00
Amar Takhar
819a298246
Add -Wno-variadic-macros to silence "warning: anonymous variadic macros were introduced in C99" with GCC.
...
Originally committed to SVN as r4915.
2010-12-08 13:35:33 +00:00
Thomas Goyne
a6a4132ab5
Make the audio timing controller commit changes made
...
Originally committed to SVN as r4914.
2010-12-08 08:10:00 +00:00
Thomas Goyne
e1e98d0ddd
Only refresh the time columns of the subtitle grid when times change
...
Originally committed to SVN as r4913.
2010-12-08 08:09:55 +00:00
Thomas Goyne
27cb511556
Make blank audio actually blank
...
Originally committed to SVN as r4912.
2010-12-08 08:09:49 +00:00
Thomas Goyne
a6236fa20c
Only work around wxMac bugs on wxMac
...
Originally committed to SVN as r4911.
2010-12-08 08:09:44 +00:00
Thomas Goyne
30cd87bcb3
When zooming, fix the center sample in place
...
Originally committed to SVN as r4910.
2010-12-08 08:09:37 +00:00
Thomas Goyne
82eddf53ea
Remove redundant checks in SampleRange::overlaps
...
Originally committed to SVN as r4909.
2010-12-08 08:09:30 +00:00
Thomas Goyne
b134428668
Store the URL of opened audio files
...
Originally committed to SVN as r4908.
2010-12-08 08:09:25 +00:00
Thomas Goyne
3345797ff6
Use signals in AudioController and AudioTimingController
...
Originally committed to SVN as r4907.
2010-12-08 08:09:16 +00:00
Thomas Goyne
3bb1f590d7
Sabotage the once lovely friendship between FrameMain and AudioBox and use an option listener instead
...
Originally committed to SVN as r4906.
2010-12-08 08:09:11 +00:00
Thomas Goyne
5f39b99b78
Make AudioDisplay use scoped_ptr for pointers it owns
...
Originally committed to SVN as r4905.
2010-12-08 08:09:05 +00:00
Thomas Goyne
7f076bbbc9
Fix crash on exit
...
Originally committed to SVN as r4904.
2010-12-08 08:09:00 +00:00
Amar Takhar
c15777f844
Merge audio_display_rewrite branch to trunk. This is not a complete work, don't expect to time anything for a while.
...
Originally committed to SVN as r4903.
2010-12-08 03:36:10 +00:00
Thomas Goyne
0e6d8631fd
Add scoped_ptr.h
...
Originally committed to SVN as r4902.
2010-12-07 19:09:37 +00:00
Thomas Goyne
6d2b941e76
Rework how committing changes works
...
Rather than everything having to separately commit changes to the ass
and then tell the subs grid to notify various parts of Aegisub about the
changes, committing the AssFile now triggers an event which objects
listen for.
AssFile::Commit now also has an argument to indicate what sorts of
changes were made to the file. For now these types are very broad.
Originally committed to SVN as r4901.
2010-12-07 19:09:28 +00:00
Thomas Goyne
d9006b0eb4
Make VideoContext use events for some of its communication with other objects
...
Originally committed to SVN as r4900.
2010-12-07 19:09:21 +00:00
Thomas Goyne
13f052317e
Convert OptionValue over to agi::signal
...
Originally committed to SVN as r4899.
2010-12-07 19:09:15 +00:00
Thomas Goyne
4fc1ff6ad6
Add simple signal/slot implementation loosly based on boost.sigal
...
Originally committed to SVN as r4898.
2010-12-07 19:09:08 +00:00
Amar Takhar
31e2828517
Add -D__STDC_FORMAT_MACROS to ffmpegsource_common.o, this should have been in r4896, comitted from the wrong machine...
...
Originally committed to SVN as r4897.
2010-12-05 23:26:28 +00:00
Amar Takhar
09274c4a1b
Remove -D__STDC_FORMAT_MACROS from CXXFLAGS.
...
Originally committed to SVN as r4896.
2010-12-05 23:08:11 +00:00
Amar Takhar
5a635ebdb3
Merge r4855-4894 from the new_build_system branch. This still has rough spots and some of the dependency relations haven't been expressed but it works, and it's much better than what we had before as it kills off automake, libtool, gettext (package not library), intltool usage.
...
Originally committed to SVN as r4895.
2010-12-05 19:12:42 +00:00
Amar Takhar
d6e9ee9487
Add <memory> for auto_ptr
...
Originally committed to SVN as r4854.
2010-11-29 10:17:12 +00:00
Thomas Goyne
12bf2a595d
Disable analysis on build for libaegisub as it results in versions of Visual Studio that do not support /analyze rebuilding the entire project every time.
...
Originally committed to SVN as r4852.
2010-11-21 05:14:11 +00:00
Thomas Goyne
d840c9eaae
Put libaegisub win32/debug intermediate files in the standard location
...
Originally committed to SVN as r4851.
2010-11-21 05:13:57 +00:00
Amar Takhar
b68fc9b68b
Add a stub config.h to satisfy matroskaparser.c.
...
Originally committed to SVN as r4850.
2010-11-20 05:22:00 +00:00
Thomas Goyne
3d85cacae0
Apply the export transform when sending subtitles to the provider on the video worker thread rather than the GUI thread
...
Originally committed to SVN as r4849.
2010-11-18 06:15:41 +00:00
Thomas Goyne
c571f64f86
Fix compilation error on unix when using internal libass
...
Originally committed to SVN as r4848.
2010-11-18 04:31:38 +00:00
Thomas Goyne
ea5a042046
Cache the list of dictionary languages
...
Originally committed to SVN as r4847.
2010-11-18 03:00:08 +00:00
Thomas Goyne
75285192a3
Add overloaded operator-> to agi::line_iterator
...
Originally committed to SVN as r4846.
2010-11-17 05:44:02 +00:00
Thomas Goyne
1bb8d16a45
Rewrite HunspellSpellChecker
...
Add support for loading dictionaries from both the user's dictionary
path and the application's install path
Fix some issues with loading and saving the user's customized dictionary
Originally committed to SVN as r4845.
2010-11-17 05:43:56 +00:00
Thomas Goyne
1214290e90
Change default path to dictionaries to ?user/dictionaries (from ?user/dictionary) to match 2.1.x
...
Originally committed to SVN as r4844.
2010-11-17 05:43:48 +00:00
Thomas Goyne
1b8b53c14e
Pass a double pointer rather than a reference to a pointer to wait_for_cache_thread. Fixes endless 'caching' of fonts on linux.
...
Originally committed to SVN as r4843.
2010-11-11 05:29:13 +00:00
Thomas Goyne
1f894561c3
Actually set options' default values
...
Originally committed to SVN as r4842.
2010-11-11 04:48:37 +00:00
Thomas Goyne
7a38c1c06e
Add some bounds checking in the preferences dialog
...
Originally committed to SVN as r4841.
2010-11-11 04:48:29 +00:00
Thomas Goyne
6a186d0bcb
Add vcproj for libass and fix msvc compilation errors
...
Originally committed to SVN as r4840.
2010-11-11 04:48:20 +00:00
Thomas Goyne
5be8ee5c0e
Update libass to d8a0fe5984d9bc6d7827026215d21ada3dda7b71 and update LICENSE to reflect that libass is now ISCL
...
Originally committed to SVN as r4839.
2010-11-11 04:48:08 +00:00
Thomas Goyne
c0c82505c7
Fix compilation when no subtitle providers are enabled
...
Originally committed to SVN as r4838.
2010-11-10 03:35:07 +00:00
Thomas Goyne
598624772d
Quote targetpath in respack's build event so it works when the path to the aegisub checkout has spaces in it
...
Originally committed to SVN as r4837.
2010-11-10 03:34:59 +00:00
Karl Blomster
d134eda2e8
compilation fix
...
Originally committed to SVN as r4836.
2010-11-09 21:22:58 +00:00
Karl Blomster
d6dde4ec73
update ffms2 to r354
...
Originally committed to SVN as r4835.
2010-11-09 19:55:23 +00:00
Thomas Goyne
6affce0581
Make OPT_GET return a const OptionValue* and add OPT_SUB/OPT_UNSUB for subscribing to option changes
...
Originally committed to SVN as r4834.
2010-11-08 05:08:24 +00:00
Thomas Goyne
469bd3e165
Fix bug where the grid headers sometimes used the collision text color
...
Originally committed to SVN as r4833.
2010-11-08 02:52:54 +00:00
Thomas Goyne
e738847eb2
Update the edit box after splitting a line
...
Originally committed to SVN as r4832.
2010-11-08 02:28:32 +00:00
Karl Blomster
f34d37d091
remove assorted forgotten traces of the splash screen
...
Originally committed to SVN as r4831.
2010-11-07 19:32:40 +00:00
Karl Blomster
26b9985d3d
Use Tahoma 8pt as default grid font. This is what got used in earlier versions.
...
Originally committed to SVN as r4830.
2010-11-06 19:51:36 +00:00
Karl Blomster
65b5907a4c
Get rid of the splash screen. If you want it back, you better make it a) not broken, and b) actually useful as a startup diagnostics tool. If you can't do both, get out.
...
Originally committed to SVN as r4829.
2010-11-06 19:44:21 +00:00
Thomas Goyne
50f8389615
Add support for delay in FFmpegSourceAudioProvider as FFMS2 only handles it automatically in the avisynth plugin
...
Originally committed to SVN as r4828.
2010-11-04 04:58:27 +00:00
Thomas Goyne
a73091ef5c
Coalesce visual tool changes
...
Originally committed to SVN as r4827.
2010-11-01 04:36:13 +00:00
Thomas Goyne
516b2cec93
Only let AssTime be set to a valid time rather than handling invalid times on display
...
Originally committed to SVN as r4826.
2010-10-27 21:17:41 +00:00
Thomas Goyne
6432ea1f94
Remove the realtime visual tool option, as the threaded video display makes it pointless
...
Originally committed to SVN as r4825.
2010-10-26 04:12:10 +00:00
Thomas Goyne
3174f995fa
Prioritize the fontconfig font lister over the freetype one when both freetype and fontconfig are available
...
Originally committed to SVN as r4824.
2010-10-22 18:25:02 +00:00
Thomas Goyne
4af788be1a
Fix font collector crash
...
Originally committed to SVN as r4823.
2010-10-20 01:56:28 +00:00
Thomas Goyne
7189dfb1a1
Make the choice between the freetype and fontconfig listers entirely based on the defined setttings rather than platform
...
Originally committed to SVN as r4822.
2010-10-20 01:56:22 +00:00
Thomas Goyne
da7f1ef96c
Make defining WITH_FONTCONFIG on windows actually do something
...
Originally committed to SVN as r4821.
2010-10-20 00:41:48 +00:00
Thomas Goyne
36a102e558
Improve error reporting when an error occurs during startup
...
Originally committed to SVN as r4820.
2010-10-20 00:28:37 +00:00
Thomas Goyne
c6f20504cb
Fix memory leak in libass provider
...
Originally committed to SVN as r4819.
2010-10-20 00:28:28 +00:00
Thomas Goyne
49a57729ef
Always load initialize fontconfig on a worker thread so that installing a font then opening a new video does not block the GUI thread
...
Originally committed to SVN as r4818.
2010-10-17 02:36:28 +00:00
Thomas Goyne
7ce2e8f389
Update the \move/pos toggle button's icon when it's clicked
...
Originally committed to SVN as r4817.
2010-10-16 20:23:54 +00:00
Thomas Goyne
a278901e13
Update the time relative to frame box when the subtitle file is changed to reflect timing changes immediately
...
Originally committed to SVN as r4816.
2010-10-16 20:11:53 +00:00
Thomas Goyne
9083776b9c
Update the color spectrum view when a recently used color is selected in the color picker
...
Originally committed to SVN as r4815.
2010-10-16 20:11:48 +00:00
Thomas Goyne
3c02917e20
Fix flipped video when switching between avs and ffms2 providers
...
Originally committed to SVN as r4814.
2010-10-16 20:11:43 +00:00
Thomas Goyne
f7f7699aed
Save the video's timecodes if external timecodes aren't loaded
...
Originally committed to SVN as r4813.
2010-10-16 20:11:37 +00:00
Thomas Goyne
67df3608be
Fix crashes when opening a file with zero valid lines
...
Originally committed to SVN as r4812.
2010-10-16 20:11:32 +00:00
Thomas Goyne
97089a7683
Don't destroy the progress dialog when audio loading is cancelled as it's destroyed automatically
...
Originally committed to SVN as r4811.
2010-10-16 20:11:26 +00:00
Thomas Goyne
420f28adf8
If the user changes the active row in the middle of searching, search from the new active row even if it's after the last found row. Closes #1004
...
Originally committed to SVN as r4810.
2010-10-15 16:58:50 +00:00
Karl Blomster
49cdd10ffd
fix a bug in kara-templater.lua on behalf of jfs.
...
Originally committed to SVN as r4808.
2010-10-15 14:33:10 +00:00
Thomas Goyne
f4577a8b3a
Don't format libass messages which won't be logged
...
Originally committed to SVN as r4807.
2010-10-11 20:48:29 +00:00
Thomas Goyne
ef7abaf1b6
Add new dialogue lines immediately after the last dialogue line in the file rather than at the end of the file
...
Originally committed to SVN as r4806.
2010-10-11 20:06:31 +00:00
Thomas Goyne
aee6b0a540
Make AssAttachment::GetEntryData const so that it's actually called
...
Originally committed to SVN as r4805.
2010-10-11 20:06:26 +00:00
Thomas Goyne
a41aeb8421
Fix minor layout issues in the dummy video dialog
...
Originally committed to SVN as r4804.
2010-10-11 20:06:20 +00:00
Thomas Goyne
84f646b88b
Fix bug where changing the script resolution would not update the current visual tool
...
Originally committed to SVN as r4803.
2010-10-11 20:06:15 +00:00
Thomas Goyne
2324a1f197
Add a blank line between each group when writing ass files
...
Originally committed to SVN as r4802.
2010-10-11 20:06:09 +00:00
Thomas Goyne
7d2c7c5881
Don't add garbage AssEntries for blank lines in the file. Fixes some issues with sorting lines.
...
Originally committed to SVN as r4801.
2010-10-11 20:06:04 +00:00
Thomas Goyne
fcba0c8e2a
Update grid column widths after opening a new subtitle file.
...
Originally committed to SVN as r4800.
2010-10-11 20:05:59 +00:00
Thomas Goyne
dade679145
Select new styles in the styles manager when they are created.
...
Originally committed to SVN as r4799.
2010-10-11 20:05:52 +00:00
Thomas Goyne
ed9968e172
Don't pointlessly batch single selection changes when find/replacing. Fixes bug where find would select the wrong part of the line.
...
Originally committed to SVN as r4798.
2010-10-11 20:05:46 +00:00
Thomas Goyne
b4739d2aee
gcc 4.5 compilation fixes
...
Originally committed to SVN as r4797.
2010-10-11 04:25:02 +00:00
Thomas Goyne
1fbe7b4f1e
Increase the size of the buffer used for formatting messages from libass as they can occasionally be longer than 256 characters
...
Originally committed to SVN as r4796.
2010-10-08 06:06:50 +00:00
Thomas Goyne
82ca2a4b70
Fix issues with the edit box buttons and omitted tag parameters
...
Originally committed to SVN as r4795.
2010-10-08 06:06:44 +00:00
Thomas Goyne
8545446baa
Make select all not take quadratic time
...
Originally committed to SVN as r4794.
2010-10-08 06:06:38 +00:00
Thomas Goyne
4bf3b44cc0
Add missing swap in ThreadedFrameSource::ProcFrame that resulted in the full subtitle file never being loaded
...
Originally committed to SVN as r4793.
2010-10-08 06:06:32 +00:00
Thomas Goyne
682fd9406c
Check for both forward and back slashes in the windows version of util::DirName
...
Originally committed to SVN as r4792.
2010-10-07 17:18:00 +00:00
Thomas Goyne
1dedfb18cd
Shift timecodes so that frame 0 always starts at time 0, as nothing related to audio supports non-zero start times
...
Originally committed to SVN as r4791.
2010-09-23 03:06:22 +00:00
Thomas Goyne
7586f28ffe
Fix overflow handling in AssTime::GetAssFormatted
...
Originally committed to SVN as r4790.
2010-09-23 03:06:15 +00:00
Thomas Goyne
35b9769092
Pass around shared_ptrs to newly allocated AegiVideoFrames rather than pointers into a buffer of AegiVideoFrames in ThreadedFrameSource
...
Originally committed to SVN as r4789.
2010-09-15 22:10:48 +00:00
Thomas Goyne
dca2bd43fe
Rearrange ThreadedFrameSource::Entry to allow the use of wxMutexLocker
...
Originally committed to SVN as r4788.
2010-09-15 22:10:42 +00:00
Amar Takhar
d3fca38ee7
Disable installing the assert handler until I find time to figure out how I can call the default handler which provides the popup / some handy debug tools.
...
Originally committed to SVN as r4787.
2010-09-15 05:19:01 +00:00
Thomas Goyne
fd5c1ecffc
Fix writing of newlines on windows in charsets wider than one byte
...
Originally committed to SVN as r4786.
2010-09-15 05:00:12 +00:00
Thomas Goyne
84b8877d1d
Clean up AssFile::Load, eliminating some redundant checks, and fixing a few situations where the undo stack could be left in an inconsistant state
...
Originally committed to SVN as r4785.
2010-09-15 02:46:19 +00:00
Karl Blomster
9108ea9b00
Don't try to coalesce undo operations when there aren't any undo operations to coalesce with. Fixes a crash when opening .txt files.
...
Originally committed to SVN as r4784.
2010-09-15 01:00:18 +00:00
Karl Blomster
0c2b40dc60
Revert r4782 since it wasn't needed if you do the project file right.
...
Originally committed to SVN as r4783.
2010-09-15 00:18:21 +00:00
Karl Blomster
3bdba76549
I have no idea what kind of enterprising faggot broke this but apparently we need __STDC_FORMAT_MACROS now. I hope this breaks on some other platform, that would be hilarious.
...
Originally committed to SVN as r4782.
2010-09-15 00:01:59 +00:00
Karl Blomster
035694c9ae
I came, I saw, I hurfed a durf about macro redefinitions
...
Originally committed to SVN as r4781.
2010-09-14 23:53:22 +00:00
Amar Takhar
6f63041156
Redirect assertions to the logging system. This doesn't create a popup dialogue like the default method does. If someone actually wants that to happen let me know and I'll write something.
...
Originally committed to SVN as r4780.
2010-09-14 22:05:19 +00:00
Amar Takhar
01e1a34d43
Make setup.sh a little more robust when resetting the data/ directory.
...
Originally committed to SVN as r4779.
2010-09-11 17:48:54 +00:00
Thomas Goyne
c33c5f647d
Fix crash when iconv Roundtrip test fails
...
Originally committed to SVN as r4778.
2010-09-10 03:31:20 +00:00
Thomas Goyne
98305250df
Fix compilation of tests on OS X
...
Originally committed to SVN as r4777.
2010-09-10 03:31:13 +00:00
Thomas Goyne
3512c4e1fe
Clean up handling of fallbacks and improve behavior somewhat with glibc iconv
...
Originally committed to SVN as r4776.
2010-09-09 06:47:50 +00:00
Thomas Goyne
9780243586
Add NOMINMAX to the libaegisub project
...
Originally committed to SVN as r4775.
2010-09-09 06:47:45 +00:00
Thomas Goyne
81709164b3
Make the detection of BOM sizes actually work
...
Originally committed to SVN as r4774.
2010-09-09 06:47:29 +00:00
Thomas Goyne
6f7daef630
Bump version number to 3.0 in tests/Makefile.am
...
Originally committed to SVN as r4773.
2010-09-09 04:05:20 +00:00
Thomas Goyne
ac2bac6d00
Use agi::io::Save in TextFileWriter
...
Originally committed to SVN as r4772.
2010-09-08 20:03:48 +00:00
Thomas Goyne
2662a69b2e
Only autosave if there are unsaved changes to the file
...
Originally committed to SVN as r4771.
2010-09-08 20:03:20 +00:00
Thomas Goyne
7e72a9e0cf
Add background fontconfig cache updating
...
When the libass provider is enabled, initialize fontconfig on program
startup rather than waiting for the user to open a video. If the user
tries to open a video while the cache is still being updated, display a
"progress" dialog,
Updates #1115 .
Originally committed to SVN as r4768.
2010-09-01 06:50:35 +00:00
Thomas Goyne
f77f908611
Fix compilation without precompiled headers. Closes #1241
...
Originally committed to SVN as r4767.
2010-08-28 02:00:43 +00:00
Thomas Goyne
f37e1bf87a
Fix thread warnings on shutdown on unix
...
Originally committed to SVN as r4766.
2010-08-27 01:01:35 +00:00
Thomas Goyne
071ada7487
Add listener for the autosave timer
...
Originally committed to SVN as r4765.
2010-08-26 18:38:44 +00:00
Thomas Goyne
0248e7c754
Add listeners for most non-audio options that need them. Closes #1047 .
...
Originally committed to SVN as r4764.
2010-08-26 18:38:37 +00:00
Thomas Goyne
0704887ad4
Save the last viewed page of the preferences dialog
...
Originally committed to SVN as r4763.
2010-08-26 18:38:31 +00:00
Thomas Goyne
daa77301eb
Remove "Colour/Background/Modified" option, which was made irrelevant by r4699.
...
Originally committed to SVN as r4762.
2010-08-26 18:38:26 +00:00
Thomas Goyne
069581b9be
Make the preferences dialog actually update the configuration
...
Originally committed to SVN as r4761.
2010-08-26 18:38:20 +00:00
Thomas Goyne
5721003219
Split colors into two columns so that the preferences dialog is less awkwardly shaped
...
Originally committed to SVN as r4760.
2010-08-26 18:38:14 +00:00
Thomas Goyne
5d5f24cbd8
Remove Tip of the Day setting from default_config.json
...
Originally committed to SVN as r4759.
2010-08-26 18:38:09 +00:00
Thomas Goyne
f15dd92fb1
Change App/Auto/Check For Updates to a bool so that the correct control is used in the preferences dialog
...
Originally committed to SVN as r4758.
2010-08-26 18:38:03 +00:00
Thomas Goyne
27a7c41a44
Fix option name for auto-updates checkbox
...
Originally committed to SVN as r4757.
2010-08-26 18:37:46 +00:00
Thomas Goyne
80af629325
Remove dangling reference to boost files in the makefile
...
Originally committed to SVN as r4756.
2010-08-26 18:03:00 +00:00
Thomas Goyne
06f0c231b0
Make the advanced video options page a child of the advanced options
...
Originally committed to SVN as r4755.
2010-08-25 19:31:38 +00:00
Thomas Goyne
34c571b81b
Change the one use of boost::shared_ptr to std::tr1::shared_ptr and remove the local copy of boost::shared_ptr
...
Originally committed to SVN as r4754.
2010-08-25 19:31:31 +00:00
Thomas Goyne
574236875c
Fix assertion failure in 32-bit builds
...
Originally committed to SVN as r4753.
2010-08-25 19:31:26 +00:00
Thomas Goyne
a6abc79b95
Add inttypes.h to the precompiled header
...
Originally committed to SVN as r4752.
2010-08-25 19:31:20 +00:00
Thomas Goyne
459b9e317d
Display an error when the config file is corrupted rather than just crashing
...
Originally committed to SVN as r4751.
2010-08-25 19:31:11 +00:00
Amar Takhar
e6b41058d8
Remove duplicate inclusion of <libaegisub/log.h>.
...
Originally committed to SVN as r4750.
2010-08-22 21:22:49 +00:00
Amar Takhar
6742a17649
Add a workaround for [Hotkeys] header detection, all this code will go away when the Hotkeys are redone.
...
Originally committed to SVN as r4749.
2010-08-17 04:44:18 +00:00
Thomas Goyne
d83c59819f
Fix deadlock on pthreads-using platforms
...
Originally committed to SVN as r4748.
2010-08-16 03:06:28 +00:00
Amar Takhar
714fa65071
Rename 2.2 to 3.0 as this will now be the next version outside of 2.1.
...
Originally committed to SVN as r4747.
2010-08-15 18:40:58 +00:00