Amar Takhar
d348b4e33e
Fix all the headers in *.cpp, this includes:
...
* Wrapping all headers that are in agi_pre.h with AGI_PRE.
* Sorting alphabetically.
Originally committed to SVN as r3515.
2009-09-10 13:06:40 +00:00
Amar Takhar
79397825cf
Add missing wx/log.h, sort headers.
...
Originally committed to SVN as r3514.
2009-09-10 10:51:49 +00:00
Amar Takhar
7a8c5229fd
* Remove wxprec.h from all files other than agi_pre.h. Including this in various headers is useless as it includes wx.h which includes dozens of 'common' wx headers. With this we're unable to tell which files rely on which interfaces. This commit removes them and manually places in required headers as-needed.
...
* Update agi_pre.h to include some missing headers, also move required windowsheaders to the top of the list
* Use <> versus "" for the wx header in avisynth_wrap.cpp
* Remove xx/wx.h from agi_pre.h as it's included by wxprec.h.
Originally committed to SVN as r3513.
2009-09-10 10:26:50 +00:00
Amar Takhar
84996c927f
Add a whole slew of missing includes, prior to r3509 config_unix.h used to include stdwx.h, now that I'm fixing the headers I removed it which caused issues when not using precompiled headers.
...
Originally committed to SVN as r3512.
2009-09-10 05:25:25 +00:00
Amar Takhar
6a7e4769e3
Add several dozen more headers to agi_pre.h
...
Originally committed to SVN as r3510.
2009-09-10 04:29:04 +00:00
Amar Takhar
05ae13a8ab
* Rename stdwx.h to agi_pre.h as it doesn't include wx headers only, it's confusing.
...
* Rename include guard to AGI_PRE.
Originally committed to SVN as r3509.
2009-09-10 04:14:28 +00:00
Thomas Goyne
132d8ba3ac
Move #include "config.h" to before #define WX_PRE so that it does gets included at some point.
...
Originally committed to SVN as r3508.
2009-09-10 03:14:09 +00:00
Thomas Goyne
e0cc5fc038
Wrap wx includes with _CRT_SECURE_NO_WARNINGS to make msvc stop hurfing and durfing.
...
Originally committed to SVN as r3507.
2009-09-10 02:52:34 +00:00
Amar Takhar
bdbb8cc4ce
Wrap config.h with WX_PRE so it doesn't get included twice. stdwx.h requires it to be included.
...
Originally committed to SVN as r3506.
2009-09-10 02:42:06 +00:00
Amar Takhar
3c1b52eb69
Add 79 missing wx includes to stdwx.h, the build is much faster on unix, should be the same for windows.
...
Originally committed to SVN as r3505.
2009-09-10 02:32:55 +00:00
Amar Takhar
deeec2de18
Re-organise stdwx.h and sort alphabetically.
...
Originally committed to SVN as r3504.
2009-09-10 02:27:25 +00:00
Amar Takhar
925fa88c0c
* Remove #pragma once.
...
* Sort wx headers and wrap with #ifndef WX_PRE.
* Add missing heade rto stdwx.h.
M src/ass_attachment.h
M src/subs_grid.cpp
M src/ass_dialogue.cpp
M src/ass_attachment.cpp
M src/aegisub_endian.h
M src/audio_display.cpp
M src/audio_karaoke.cpp
M src/dialog_kara_timing_copy.cpp
M src/ass_dialogue.h
M src/text_file_writer.cpp
M src/stdwx.h
Originally committed to SVN as r3503.
2009-09-10 02:23:43 +00:00
Amar Takhar
d519f4589d
* Remove main.h from files that don't require it.
...
* Remove include guard in main.h as it's no longer required.
* Sort wx headers and wrap with #ifndef WX_PRE.
* Add #define WX_PRE to stdwx.h.
Originally committed to SVN as r3502.
2009-09-10 02:07:55 +00:00
Thomas Goyne
1a4e7375fd
Add some documentation to VideoDisplay and clean up the includes a bit.
...
Originally committed to SVN as r3501.
2009-09-10 01:41:34 +00:00
Grigori Goronzy
a4f844c048
Fix another typo in the German translation, patch by basti2k.
...
Originally committed to SVN as r3500.
2009-09-09 12:25:03 +00:00
Amar Takhar
0992a68488
Rewrite how wxStackWalker works:
...
* Change from fstream to wxFile.
* Create both text-based and xml based reports (for the reporter)
Originally committed to SVN as r3499.
2009-09-09 07:04:10 +00:00
Grigori Goronzy
5ab1eab906
OSS player: handle changing end position correctly
...
If the slider is moved to the playbar while the player is running,
the playback needs to be stopped. Handle this situation properly.
Additionally, select a low-latency buffer policy if possible (OSS4
only). This will make it possible to move the slide near the playbar
without stopping playback (the current writing position is always in
advance of the playback position by the buffer size!)
Originally committed to SVN as r3498.
2009-09-09 03:24:34 +00:00
Grigori Goronzy
9d0daf6821
Add OSS audio player
...
Tested on OSS4 (4front), FreeBSD 7.2 OSS and with ALSA's OSS emulation.
Bear with me, this is both my first serious C++ and OSS code.
Originally committed to SVN as r3497.
2009-09-08 22:06:07 +00:00
Amar Takhar
b258daa120
Add the new icons + new source paths to EXTRA_DIST, it was still set to the XPMs.
...
Originally committed to SVN as r3496.
2009-09-06 02:39:32 +00:00
Amar Takhar
a5730828d3
Remove __APPLE__ around SetBitmap() in AppendBitmapMenuItem, this gives us pretty icons in our menus on osx.
...
Originally committed to SVN as r3495.
2009-09-06 00:41:38 +00:00
Amar Takhar
ba87160fdc
Linux needs a specific wx-config path too for 2.9, this should fix ubuntu, debian is still broken.
...
Originally committed to SVN as r3494.
2009-09-06 00:01:06 +00:00
Amar Takhar
ea5bdad036
Set path to correct wx-config, this shouild fix disting on freebsd.
...
Originally committed to SVN as r3493.
2009-09-05 23:58:25 +00:00
Amar Takhar
6c08c50d92
Revert 3489 the issue is more complex than I originally thought. Updates #1009 .
...
Originally committed to SVN as r3490.
2009-09-05 20:19:13 +00:00
Amar Takhar
7bbf2e6ce8
* Add a check and warnming message if X_CFLAGS / X_LIBS isn't set (and a note that you need Imake)
...
* Remove two lines that have been commented for a year
* Fix some error message wording.
Originally committed to SVN as r3489.
2009-09-05 19:53:18 +00:00
Amar Takhar
c89dcae7fc
Don't attempt to draw a NULL bitmap, OSX doesn't like this. (i'd gather that none of the other platforms do either but on osx it causes a crash.
...
Originally committed to SVN as r3488.
2009-09-05 04:06:38 +00:00
Amar Takhar
53b3f8468c
Remove old MacRegisterDefaultTypeAndCreator that no longer wxist in wxCocoa. Add a note about how this is handled on unix and a todo item for fixing this on OSX.
...
Originally committed to SVN as r3487.
2009-09-05 03:56:45 +00:00
Amar Takhar
441e10c71f
Switch the mac buildslaves to use wxCocoa from wxMac (carbon).
...
Originally committed to SVN as r3486.
2009-09-05 02:38:27 +00:00
Amar Takhar
e545c96dc8
OSX doesn't like it when combo boxes are empty, so init styles to "Default" and actor to "Actor".
...
Originally committed to SVN as r3485.
2009-09-05 02:24:52 +00:00
Amar Takhar
2d96c5bf4b
Remove a bunch of __WXMAC__ entries that are no longer required.
...
* Options uses a TreeBook like every other platform
* Browse button now works in osx
* wxGLCanvas is now the same as windows/unix
Originally committed to SVN as r3484.
2009-09-05 01:16:23 +00:00
Amar Takhar
878f451d72
Remove an old hack required for wx2.8, this is no longer required for 2.9. Closes #850 .
...
Originally committed to SVN as r3483.
2009-09-04 05:12:49 +00:00
Amar Takhar
c494b694a0
Disable setting of .DS_Store for now.
...
Originally committed to SVN as r3482.
2009-09-04 02:38:30 +00:00
Amar Takhar
99f421bf73
Set the .DS_Store file in the temp dmg directory rather than after it's mounted. jfs reported finder crashing after updating to 10.5.8. Setting it this way should work and avoid the issue of .DS_Store changing randomly as a folder won't show up on the desktop like a mounted image will.
...
Originally committed to SVN as r3481.
2009-09-04 02:16:39 +00:00
Amar Takhar
5a12ee807b
Whoops, remove one last evil #pragma once that was left in while developing.
...
Originally committed to SVN as r3480.
2009-09-03 07:18:43 +00:00
Amar Takhar
ccf71021af
Sort the name map.
...
Originally committed to SVN as r3478.
2009-09-03 07:12:48 +00:00
Amar Takhar
ad542ab8fc
Drop the curl version from 7.19.2 to 7.18.2 beacuse debian/ubuntu have ancient versions installed.
...
Originally committed to SVN as r3477.
2009-09-03 07:10:57 +00:00
Amar Takhar
930f593d6a
dd the beginings of the Aegisub Reporter, this is my first C++ program from scratch. (yes, that's a disclaimer)
...
What's left to be done:
* Crash support. (only works for 'reports')
* UI cleanups.
* Interfacing with Aegisub to get proper metrics.
* OSX support.
* Windows support. (someone else will have to do this)
* Server-side code.
There's probably a lot of other things I'm forgetting, anyone is free to commit to this, if you want to make major changes let me know beforehand.
Originally committed to SVN as r3475.
2009-09-03 06:53:55 +00:00
Amar Takhar
1155d1bcf8
wxUSE_STACKWALKER is defined to 0/1, so #ifdef doesn't work. (noticed by plork)
...
Originally committed to SVN as r3474.
2009-09-03 06:03:38 +00:00
Amar Takhar
95812a6c79
Mark DecodePathMaybeRelative as depreciated this is a legacy function that's a pain and no longer required for 2.2 it needs to be removed eventually.
...
Originally committed to SVN as r3473.
2009-09-03 05:27:49 +00:00
Amar Takhar
78b0765608
Vastly simplify saving of backup .ass files when crashing.
...
* Remove "Autorecovery path" option, this should not be user configurable.
* Crashes are now saved as recovered/YYYY-MM-DD-HHMMSS_<name>.ass (no pruning)
Originally committed to SVN as r3472.
2009-09-03 05:27:11 +00:00
Amar Takhar
01df6ba169
Remove the dual exception messages and strip it down to 1 short one, removing all references to crashlog.txt.
...
Originally committed to SVN as r3471.
2009-09-02 20:46:15 +00:00
Amar Takhar
bf275da4de
Revert r3462, this is the same issue as described in r3466. Someone on windows will need to sort this out.
...
Originally committed to SVN as r3470.
2009-09-02 11:03:52 +00:00
Amar Takhar
65d2eda681
Silence warnings in MatroskaParser.c
...
Originally committed to SVN as r3469.
2009-09-02 10:06:25 +00:00
Amar Takhar
4aa6975a8d
Whoops, I mis-placed the parentheses in r3458.
...
Originally committed to SVN as r3468.
2009-09-02 10:04:36 +00:00
Amar Takhar
46c824442b
Remove useless typedef
...
Originally committed to SVN as r3467.
2009-09-02 10:04:03 +00:00
Amar Takhar
e1a23412ac
Revert r3461.. on unix iconv requires const char**, however for whatever reason msvc is complaining it can't convert it to char**. I have no idea why someone on windows will have to debug it.
...
Originally committed to SVN as r3466.
2009-09-02 09:40:52 +00:00
Amar Takhar
430286cf69
Silence warnings for the pulseaudio player.
...
Originally committed to SVN as r3465.
2009-09-02 09:00:03 +00:00
Amar Takhar
3aa7424998
Sprinkle const to remove warnings, add {} behind a while loop.
...
Originally committed to SVN as r3464.
2009-09-02 08:48:07 +00:00
Amar Takhar
7237e44291
Switch from long to wxCoord to remove warnings.
...
Originally committed to SVN as r3463.
2009-09-02 08:45:09 +00:00
Amar Takhar
256671d666
Add (const char**) cast to inptr in iconv to silence warning.
...
Originally committed to SVN as r3462.
2009-09-02 08:41:29 +00:00
Amar Takhar
a02a63c4e5
Sprinkle const to remove warnings.
...
Originally committed to SVN as r3461.
2009-09-02 08:31:58 +00:00