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