Commit graph

493 commits

Author SHA1 Message Date
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
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
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
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
Amar Takhar
89284f5a1c Sprinkle const to remove warnings.
Originally committed to SVN as r3460.
2009-09-02 08:28:30 +00:00
Amar Takhar
2bd2b7f3a3 Add empty {}'s after while statements to silence warnings (and for safety!
Originally committed to SVN as r3459.
2009-09-02 08:26:52 +00:00
Amar Takhar
a16c8ed838 Add parentheses to silence warning. (and for clarity)
Originally committed to SVN as r3458.
2009-09-02 08:23:18 +00:00
Amar Takhar
24c7ceb0ab Add parentheses to silence warning. (and for clarity)
Originally committed to SVN as r3457.
2009-09-02 08:21:09 +00:00
Amar Takhar
aacc50702f Add empty {}'s after while statements to silence warnings (and for safety!
Originally committed to SVN as r3456.
2009-09-02 08:19:24 +00:00
Amar Takhar
586f2297fc Add const to langs[] to silence warnings.
Originally committed to SVN as r3455.
2009-09-02 08:18:11 +00:00
Amar Takhar
eceb72d95e Add (const char*) to silence warning to strcmp.
Originally committed to SVN as r3454.
2009-09-02 08:10:59 +00:00
Amar Takhar
eb807fea3d Add (char *) before string constant to silence warning. to ass_read_memory.
Originally committed to SVN as r3453.
2009-09-02 08:06:51 +00:00
Amar Takhar
77e2eaef04 Comment two unused variables to silence warnings.
Originally committed to SVN as r3452.
2009-09-02 08:04:45 +00:00
Amar Takhar
aef7375ddb * Add a new define WITH_EXCEPTIONS to allow exception handling to be forced on when in debug mode.
* Add --enable-debug-exceptions to set WITH_EXCEPTIONS.
 * Fix precompiled header msg using AC_RESULT. (forgot this in the original patch)

Originally committed to SVN as r3451.
2009-09-02 07:59:17 +00:00
Grigori Goronzy
a9b80dea4c Update libass and adjust to API changes.
Update the internal libass copy to git commit cf7c6e4c and fix the
libass provider; libass types were renamed.

Originally committed to SVN as r3446.
2009-09-02 01:23:51 +00:00
Niels Martin Hansen
64c642c142 Revert r3431, it breaks the clipboard on Windows and is in fact also incorrect usage of the primary selection in X11 context. (I have never heard of anyone claiming clipboard usage not working on X11 before.)
This comment is in `include/wx/clipbrd.h`:
{{{
    // this allows to choose whether we work with CLIPBOARD (default) or
    // PRIMARY selection on X11-based systems
    //
    // on the other ones, working with primary selection does nothing: this
    // allows to write code which sets the primary selection when something is
    // selected without any ill effects (i.e. without overwriting the
    // clipboard which would be wrong on the platforms without X11 PRIMARY)
}}}
Note that it says that primary selection enabled causes the clipboard to do nothing on platforms that have no concept of primary selection, such as Windows and Mac.

On X11 the primary selection should only reflect an active selection of text (or similar) that the user has performed, and the contents of the primary selection buffer will essentially change all the time as the user changes selection. When the user chooses to explicitly copy something to the clipboard (as is the case with Aegisub, the only operation supported by us currently) the data is placed in a less ephemeral buffer which is the actual clipboard, separate from the primary selection, allowing the user to change the primary selection further without affecting the clipboard.

Originally committed to SVN as r3443.
2009-08-28 21:45:01 +00:00
Niels Martin Hansen
b1225cdd1f Correct a use of wx event handling, which should also make FrameMain not require friend access to AudioDisplay.
Originally committed to SVN as r3442.
2009-08-28 21:15:39 +00:00
Amar Takhar
28a79d49ac Whoops, I nuked the reference counter initilisation by accident. in r3440.
Originally committed to SVN as r3441.
2009-08-25 05:31:20 +00:00
Amar Takhar
3eff6459cb * Clean up doxygen comments.
* Fix spacing between blocks.
 * Add some debugging info.

Originally committed to SVN as r3440.
2009-08-25 05:17:07 +00:00
Amar Takhar
e0f84274b0 Add the languages button that was missed in r3437.
Originally committed to SVN as r3439.
2009-08-22 03:59:09 +00:00
Amar Takhar
3de6c63ddd Reformat the 'Enter aspect ratio' text to be formatted as a block rather than a very wide string that looked silly.
Originally committed to SVN as r3438.
2009-08-22 03:56:02 +00:00
Amar Takhar
775c73de29 Add new icons from Kaverin.
Originally committed to SVN as r3437.
2009-08-22 03:51:00 +00:00
Amar Takhar
0def838ef2 Add modified buttons from r3435.
Originally committed to SVN as r3436.
2009-08-22 03:50:12 +00:00
Amar Takhar
8ba5aa27be Move stream position info into it's own struct.. Looks like a few globals can't be helped due to how the AudioPlayer class is designed. If I have to use globals I'll atleast make them easier to manage.. Updates #997.
Originally committed to SVN as r3434.
2009-08-21 21:40:18 +00:00
Amar Takhar
5ea99a65e7 Remove unused global 'stopping' and remove unused mutex code. Updates #997.
Originally committed to SVN as r3433.
2009-08-21 20:28:43 +00:00
Amar Takhar
2df6b2fd38 Remove 'playing' global in favour of an IsPlaying function that uses Pa_IsStreamActive(). Updates #997.
Originally committed to SVN as r3432.
2009-08-21 20:08:58 +00:00
Amar Takhar
f5a9af6a6c Call wxTheClipboard->UsePrimarySelection(true) when using wxClipboard, without getting into detail clipboard work very differently on X11. Without calling this copying to the clipboard won't work. I've just put it after every use of ->Open, this is safe as in every case Close() is called right after. This will fix clipboard copying on all unices.
Originally committed to SVN as r3431.
2009-08-20 02:31:33 +00:00
Amar Takhar
50d9dbd4f1 Add detach_video_menu and show_overscan_menu_checked <- this one isn't in use as you can't Check() a menu item that has a bitmap, we need to figure out an alternate solution. This probably involves flipping the bitmap to our own of a checkmark.
Originally committed to SVN as r3430.
2009-08-19 07:03:39 +00:00
Amar Takhar
2bf5f6656e Commit modified buttons from r3428.
Originally committed to SVN as r3429.
2009-08-19 06:48:50 +00:00
Amar Takhar
b2f4c07de9 PNG versions from r3426.
Originally committed to SVN as r3427.
2009-08-18 06:23:06 +00:00
Amar Takhar
58965afc9a * Delete find_replace_button and find_next_button (these were blank anyway) and replace them with find_next_menu and find_replace_menu.
* Add new buttons open_audio_menu, open_audio_from_video_menu, close_audio_menu and close_video_menu.

Originally committed to SVN as r3425.
2009-08-18 01:28:15 +00:00
Amar Takhar
5cfa19f6b9 Add png versions of the modified SVG buttons from r3423.
Originally committed to SVN as r3424.
2009-08-18 01:24:00 +00:00
Niels Martin Hansen
f3e84bea88 Some more cache management stuff for the audio rendering.
Originally committed to SVN as r3421.
2009-08-16 16:22:59 +00:00
Niels Martin Hansen
4526b0dc43 Try to get around G++'s dislike of my iterators by using an integer index instead.
Originally committed to SVN as r3419.
2009-08-16 04:31:29 +00:00
Amar Takhar
b37310e286 Add a bunch of new icons from Kaverin.
Originally committed to SVN as r3418.
2009-08-16 03:54:44 +00:00
Niels Martin Hansen
56b40bc67a Will GCC like me better if I sprinkle some 'typename' around?
Originally committed to SVN as r3417.
2009-08-16 03:50:41 +00:00
Niels Martin Hansen
c97f91c137 Fix compilation errors on GCC.
Also fix a bug in the block cache where it wasn't the sorted order of the macroblocks by access count that was used in determining which ones to kill off.

Originally committed to SVN as r3415.
2009-08-16 01:10:20 +00:00
Niels Martin Hansen
e9e3b2d107 Change AudioRenderer to use DataBlockCache.
Originally committed to SVN as r3414.
2009-08-16 00:28:26 +00:00
Niels Martin Hansen
d29d267cce Did I say we were going to use a B+ tree for caching stuff? No I didn't, I never said so!
(Revert r3411 and r3410.)

Originally committed to SVN as r3413.
2009-08-15 21:56:28 +00:00
Niels Martin Hansen
76d94ec94c Add DataBlockCache template class. It parses but I don't know if it compiles yet.
Updates #951, #965, #990.

Originally committed to SVN as r3412.
2009-08-15 21:48:58 +00:00
Amar Takhar
324094960b Add btree/*.h to _SOURCES.
Originally committed to SVN as r3411.
2009-08-15 04:21:50 +00:00
Niels Martin Hansen
60e2cf3790 Add Anton Fedoruk's B+ Tree implementation, intended to be used for for audio display caching among other things.
Originally committed to SVN as r3410.
2009-08-15 04:20:25 +00:00
Amar Takhar
3b1a722e5c Add a \n after Kaverins entry to wrap (noticed by kaverin).
Originally committed to SVN as r3409.
2009-08-14 05:18:20 +00:00
harukalover
34913135c9 Removed a condition which would make clicking on a line that was already selected never update the editbox, this was wrong since the line's text can be changed by functions outside of direct editing in the editbox (e.g. automation scripts)
Originally committed to SVN as r3408.
2009-08-14 05:08:29 +00:00
Amar Takhar
a31139a408 Reverse tooltips for the Cancel/Accept buttons in Split mode... I checked all of this carefully before I comitted, I guess I read what I wanted to see. (noticed by Kaverin)
Originally committed to SVN as r3407.
2009-08-14 04:57:32 +00:00
Amar Takhar
edc7b00b97 PNG versions of the modified buttons.
Originally committed to SVN as r3406.
2009-08-14 03:17:16 +00:00
Amar Takhar
bebc71ef53 Change how the Split/Join mode buttons work. Previously there was a weird hack used to change the text of the buttons when the various modes were used. When switching to icons this was no longer possible -- Well you could switch the bitmap dynamically but that's really gross. Instead the two pairs of buttons are put into their own BoxSizers which are Shown and Hidden when each mode is used.
Originally committed to SVN as r3404.
2009-08-14 03:11:34 +00:00
Thomas Goyne
696e76379e Make the hotkeys for the visual typesetting modes customizable. Closes #992
Originally committed to SVN as r3402.
2009-08-13 22:07:43 +00:00
Niels Martin Hansen
fd65666eb2 Forgot to change filenames in doxy comments when renaming audio_spectrum.*.
Originally committed to SVN as r3400.
2009-08-13 17:28:12 +00:00
Niels Martin Hansen
dcebd9be94 Add constructor and destructor to AudioRendererBitmapProvider base class.
GCC warned that it was missing a virtual destructor while having virtual methods.

Originally committed to SVN as r3399.
2009-08-13 16:14:41 +00:00
Niels Martin Hansen
f810fd20ce Rename audio_spectrum.* to audio_renderer_spectrum.* in preparation of converting the spectrum into a slave of AudioRenderer. See #951 and #990.
Originally committed to SVN as r3398.
2009-08-13 16:04:45 +00:00
Niels Martin Hansen
2a7e42c6a5 This should fix Mac builds failing on GL stuff.
Originally committed to SVN as r3396.
2009-08-13 00:35:45 +00:00
Niels Martin Hansen
09e27f5df3 Add two missing functions to audio_renderer.cpp to finally make it compile!
Originally committed to SVN as r3395.
2009-08-13 00:14:36 +00:00
Niels Martin Hansen
80364aaf01 Also forgot a wx include for wxMemoryDC in audio_renderer.cpp.
Originally committed to SVN as r3394.
2009-08-13 00:05:38 +00:00
Niels Martin Hansen
29f1272843 Uh oops, audio_renderer.cpp was including <set> instead of <map>...
Originally committed to SVN as r3393.
2009-08-13 00:04:16 +00:00
Niels Martin Hansen
5501c42cb0 Add (currently unused) AudioRendrer class and companions, see #951, #965 and #990.
Originally committed to SVN as r3390.
2009-08-12 23:42:53 +00:00
Niels Martin Hansen
0276b31225 Get rid of the unused and outdated changelog.txt.
Originally committed to SVN as r3389.
2009-08-11 18:21:58 +00:00
Amar Takhar
f8963ff875 Update a bunch of icons from Kaverin and add the final two karaoke buttons.
Originally committed to SVN as r3388.
2009-08-11 17:01:02 +00:00
Amar Takhar
86e14fc0cc Add an Icons by: Phlip Cash entry for Kaverin to the about dialogue.
Originally committed to SVN as r3387.
2009-08-11 07:20:36 +00:00
Amar Takhar
e046f753d9 Switch Karaoke mode button, join button and split button to new icons..
Originally committed to SVN as r3385.
2009-08-11 06:07:19 +00:00
Amar Takhar
24c25d01e3 Change the 'Commit' (text) button to button_audio_commit. (note: we really need to rename our icon reference/filenames)
Originally committed to SVN as r3384.
2009-08-11 05:50:11 +00:00
Amar Takhar
94965d1277 Add new icon: kara_timing_copier which replaces kanji_timer_button. Nothing has been changed other than the icon name. updates #870
Originally committed to SVN as r3383.
2009-08-11 05:35:25 +00:00
Amar Takhar
c945d3e8e4 Follow-up r3381 and adjust modified icons, also add new kara_* icons.
Originally committed to SVN as r3382.
2009-08-11 05:28:16 +00:00
Amar Takhar
2106a1950c Update png icons to the latest from r3379.. eventually we need to compare the uncompressed DATA entry to detect if an icon has really changed or not..
Originally committed to SVN as r3380.
2009-08-09 05:53:47 +00:00
Karl Blomster
65fb2e7efa Remove a pointless attempt to reindex a file in the ffms2 video provider. It didn't help anything, in fact it just caused crashes since the source object was free'd after the first attempt. Fixes #976.
Originally committed to SVN as r3377.
2009-08-07 20:16:13 +00:00
Karl Blomster
1a182098fc Document the Y4M video provider.
Originally committed to SVN as r3376.
2009-08-07 19:59:37 +00:00
Amar Takhar
c6c99a1fe6 Update icons, just two left find_button (binoculars) and the translation button (fish).
Originally committed to SVN as r3375.
2009-08-06 21:57:15 +00:00
Amar Takhar
27256ae44a Add libresrc.cpp, libresrc.h to CLEANFILES.
Originally committed to SVN as r3373.
2009-08-06 21:26:27 +00:00
Amar Takhar
02581bf1f1 Add a new option --enable-gcc-prec which will enable the use of gcc precompiled headers, this speeds up the build time (including one time builds) by several oders of magnitude. closes #975
Originally committed to SVN as r3369.
2009-08-06 04:35:35 +00:00
Amar Takhar
d899c816b8 Document kana_table.*
Originally committed to SVN as r3368.
2009-08-06 01:55:24 +00:00
Niels Martin Hansen
b6a63c15e6 Adjust throwing of exceptions to the new style documented in exception.h.
(Good thing nothing is catching these yet, and it's the only case of "new style" exceptions being used.)

Originally committed to SVN as r3365.
2009-08-05 20:52:44 +00:00
Niels Martin Hansen
c731a9b437 Document exception.h
Originally committed to SVN as r3364.
2009-08-05 20:51:32 +00:00
Karl Blomster
ad4a44a22b Document ffmpegsource_common.cpp/h.
Originally committed to SVN as r3363.
2009-08-05 11:21:00 +00:00
Amar Takhar
c5f0ee3767 Make sure ../libffms/include is included very early on so it is picked up before any version installed system-wide.
Originally committed to SVN as r3361.
2009-08-05 04:02:40 +00:00
Niels Martin Hansen
7f106eaf91 Document namespace Aegisub
Originally committed to SVN as r3360.
2009-08-05 02:17:13 +00:00
Karl Blomster
47f9492832 Change WITH_PORTAUDIO2 to WITH_PORTAUDIO; this renaming was actually done ages ago but never got changed in config/config_windows0.h because nobody builds with it on Windows.
Originally committed to SVN as r3359.
2009-08-04 21:17:33 +00:00
Niels Martin Hansen
f664a26b18 Rename Kanji Timer step 2: Rename things in docs (and include guard)
Updates #870.

Originally committed to SVN as r3358.
2009-08-04 02:00:30 +00:00
Niels Martin Hansen
96acbe33c3 Rename Kanji Timer step 1: Rename source files.
Updates #870.

Originally committed to SVN as r3357.
2009-08-04 01:53:26 +00:00
Thomas Goyne
755b40a966 Switch the safer autosaving to the standard method of writing to a different file then replacing the original.
Originally committed to SVN as r3354.
2009-08-02 20:39:36 +00:00
Thomas Goyne
cca0de98cb Make autosave create a temporary backup of the current autosave file before saving so that an error while saving is less likely to cause data loss.
Originally committed to SVN as r3353.
2009-08-02 20:32:53 +00:00
Amar Takhar
5ccf95b9df Document Hunspell.
Originally committed to SVN as r3352.
2009-08-01 04:37:29 +00:00
Amar Takhar
6bde901e5e Document about dialogue.
Originally committed to SVN as r3351.
2009-08-01 04:02:20 +00:00
Niels Martin Hansen
332168f596 Fix Doxygen for avisynth_wrap.
Originally committed to SVN as r3350.
2009-08-01 03:41:42 +00:00