Thomas Goyne
b1dbb9a94b
Decouple SearchReplaceEngine from DialogSearchReplace
2013-01-13 09:00:18 -08:00
Thomas Goyne
2f4cae46b4
Move the SearchReplaceEngine instance to the context
2013-01-11 08:53:36 -08:00
Thomas Goyne
a99428c49d
Extract options and MRU stuff from main.h
...
Nearly all of the files including main.h are doing so only for OPT_GET
and friends, which are rather unrelated to the main things that main.h
declares.
2013-01-09 16:48:31 -08:00
Thomas Goyne
6e3cc883b3
Replace most uses of type::iterator with auto
2012-12-22 15:35:13 -08:00
Thomas Goyne
d0f4d9df99
Replace all uses of lagi_wxString with to_wx
2012-12-22 15:18:38 -08:00
Thomas Goyne
1b15a753a1
Add .m4v to the list of video file extensions
...
It would be nice if this didn't require adding it in five different places...
2012-12-05 20:23:32 -08:00
Thomas Goyne
7090d2f513
Don't include wx/wx.h in subs_grid.h
2012-12-02 06:33:29 -08:00
Thomas Goyne
96cf5ea7ed
Kill the #ifndef AGI_PRE guards
...
They don't actually improve compilation performance and make it more
annoying to modify what things are in the precompiled header.
2012-12-02 06:33:29 -08:00
Thomas Goyne
67df64e879
Use range-based for loops in a bunch of places
2012-11-12 18:35:25 -08:00
Thomas Goyne
e44c47c863
Remove $Id$ markers since git doesn't support them
2012-10-25 17:39:49 -07:00
Thomas Goyne
ff6394c95e
Throw only real exceptions from subtitle io stuff
2012-10-25 17:39:49 -07:00
Thomas Goyne
9547bc4ef2
Move some stuff from AssFile::Load to FrameMain::LoadSubtitles
...
This is still not a very good place for it, but AssFile really shouldn't
be mucking around in global program state.
2012-10-16 09:53:28 -07:00
Thomas Goyne
a53432736c
Get wxMessageBox out of AssFile
2012-10-16 09:52:47 -07:00
Thomas Goyne
be94ab70f4
Extract cut/copy/delete lines logic from SubtitlesGrid
2012-10-14 18:57:57 -07:00
Thomas Goyne
a948924850
Add a TextSelectionController interface to avoid exposing the wxSTC edit directly in the context
2012-10-12 14:54:08 -07:00
Thomas Goyne
6943b868da
Handle file not found errors when opening linked audio from subtitles
2012-09-21 18:07:30 -07:00
Thomas Goyne
ffab39b21f
Don't automatically load audio from video if audio from that file is already open
2012-09-21 17:58:22 -07:00
Thomas Goyne
9f8e25ed0a
Force LC_CTYPE to en_US.UTF-8 on OS X
...
When run from an app bundle the locale environment variables are unset,
and the default locale settings are bogus as a result.
2012-08-26 19:15:48 -07:00
Thomas Goyne
f2035d76fc
Don't block the source of a drag-and-drop while the dropped audio/video are loading
...
Originally committed to SVN as r6953.
2012-08-04 16:31:44 +00:00
Thomas Goyne
de7dd7e07f
Use the video AR from the script rather than the video's AR when opening linked video
...
Originally committed to SVN as r6946.
2012-07-24 02:40:31 +00:00
Thomas Goyne
269a206053
Fix loading linked audio when automatic opening of audio from video is enabled
...
Originally committed to SVN as r6945.
2012-07-24 02:40:29 +00:00
Thomas Goyne
7d2fb49828
Make the update checker configurable
...
Move the server and base url to the build-time configuration options and make
it disablable entirely.
Originally committed to SVN as r6911.
2012-06-21 02:09:40 +00:00
Thomas Goyne
cde9a34425
osx: Add the full screen button to the main window
...
Originally committed to SVN as r6879.
2012-05-26 20:16:08 +00:00
Thomas Goyne
1da7502d6e
Remove pointless commented-out code
...
Originally committed to SVN as r6878.
2012-05-26 20:16:05 +00:00
Thomas Goyne
015d533556
Fix bad destruction order when exiting without closing the main window first
...
On OS X, when closing via Quit the document windows are not closed until
after OnExit is called, resulting the project context being destructed
after the global stuff, resulting in crashes on exit in some cases.
Originally committed to SVN as r6812.
2012-05-16 14:23:16 +00:00
Thomas Goyne
fc7164422c
Flush options after asking the first-startup questions
...
Originally committed to SVN as r6789.
2012-05-15 13:39:55 +00:00
Thomas Goyne
ba413fa64d
Rework destruction of FrameMain's children
...
wxCocoa doesn't like reparenting SubsGrid to NULL, so instead
recursively destroy all of FrameMain's children other than SubsGrid and
its parent. Fixes a crash on exit on OS X.
Originally committed to SVN as r6783.
2012-05-15 13:39:24 +00:00
Thomas Goyne
f724abd0b8
Add support for symlinking fonts rather than copying them in the fonts collector. Based on a patch by nodame.
...
Originally committed to SVN as r6755.
2012-05-10 14:18:47 +00:00
Thomas Goyne
742cbf16aa
Add WebM to the list of supported video formats
...
Originally committed to SVN as r6730.
2012-05-01 02:49:33 +00:00
Thomas Goyne
123f02f0fb
Process hotkeys in wxEVT_CHAR_HOOK rather than wxEVT_KEY_DOWN
...
Char hook events propagate by default, removing the need for the event
filter to make key down events propagate, which was causing some funny
issues.
On Windows, the char hook handler runs before menu accelerators, fixing
a bug where Default context hotkeys would override more specific ones
when they appeared on a menu. Unfortunately, this is not the case on
GTK, so the dumb accelerator-disabling hack is still required.
Originally committed to SVN as r6724.
2012-04-27 19:07:49 +00:00
Thomas Goyne
3c31c1a17a
Store the loaded audio file as a path relative to the subtitles, as is done with video
...
Originally committed to SVN as r6710.
2012-04-21 15:13:40 +00:00
Thomas Goyne
582e947c75
Fix errors when reattaching video with some video cards
...
With ATI cards, deleting a wxGLContext seems to invalidate ALL
wxGlContexts, rather than just things associated with the deleted one.
This resulted in video breaking after closing the detached video dialog,
as the embedded video display was trying to use an invalidated context.
To work around this, delete and recreate the context when reattaching
video.
Also recreate the visual typesetting tool as OpenGLText holds references
to textures created on construction.
Originally committed to SVN as r6646.
2012-04-03 17:38:38 +00:00
Thomas Goyne
c4a1a93b97
Center most of the message boxes over their parent windows
...
Originally committed to SVN as r6629.
2012-03-28 23:59:19 +00:00
Thomas Goyne
fccec60fec
Center the load/unload dialog over the main window
...
Originally committed to SVN as r6620.
2012-03-27 23:14:42 +00:00
Thomas Goyne
1d289bf8f8
Rework FrameMain::LoadList and OnSubtitlesOpen a bit
...
Fix some issues where a spurious load/unload dialog would be displayed
despite that nothing would be loaded even if the user selected yes, and
double-loading of audio when opening video and audio files with
automatic audio loading enabled.
Originally committed to SVN as r6618.
2012-03-27 04:23:45 +00:00
Thomas Goyne
b32515da80
Strip trailing whitespace from all cpp and h files
...
Originally committed to SVN as r6600.
2012-03-25 04:05:06 +00:00
Thomas Goyne
de9cc755d2
Stop key event propagation when checking for hotkeys to avoid checking keypresses that aren't hotkeys several times
...
Originally committed to SVN as r6577.
2012-03-12 23:34:34 +00:00
Thomas Goyne
43f461e846
Delete the dialog manager before the main frame as having modeless dialogs disappear after the main window is ugly
...
Originally committed to SVN as r6563.
2012-03-11 23:04:49 +00:00
Thomas Goyne
759b8433c1
Silence some clang warnings
...
Originally committed to SVN as r6558.
2012-03-10 02:16:08 +00:00
Thomas Goyne
36548b93b1
Add a dialog manager for modeless dialogs so that they don't have to all be stuffed into the context
...
Originally committed to SVN as r6553.
2012-03-09 00:23:41 +00:00
Thomas Goyne
41f2f67042
Make the automation manager dialog modeless
...
Originally committed to SVN as r6552.
2012-03-09 00:23:30 +00:00
Thomas Goyne
59447a942d
Make the style manager dialog modeless
...
Originally committed to SVN as r6547.
2012-03-08 04:17:42 +00:00
Thomas Goyne
d4e1c90a04
Force a repaint of the window after opening files from the command line. Closes #1419 .
...
Originally committed to SVN as r6475.
2012-02-15 21:24:00 +00:00
Thomas Goyne
3252503eaa
Check for updates after loading files passed on the command line as the update checker dialog interacts poorly with the loading modal dialogs
...
Originally committed to SVN as r6470.
2012-02-14 00:35:25 +00:00
Thomas Goyne
38c905d32a
Call Validate before invoking commands via hotkeys
...
Originally committed to SVN as r6448.
2012-02-07 01:22:23 +00:00
Thomas Goyne
eebcf34edb
Don't decode audio URIs stored on the script as it currently always stores the absolute path and the decoding breaks dummy audio URIs
...
Originally committed to SVN as r6429.
2012-02-01 23:59:32 +00:00
Thomas Goyne
fc96f1bd28
Swallow cancel exceptions thrown from opening audio from the script so that unrelated things aren't canceled
...
Originally committed to SVN as r6403.
2012-01-31 04:03:44 +00:00
Thomas Goyne
1f8005d8d1
Add option to hide the main toolbar. Updates #1399 .
...
Originally committed to SVN as r6340.
2012-01-22 23:44:24 +00:00
Thomas Goyne
d253620a96
Remove duplicate *.mov from video format filters
...
Originally committed to SVN as r6329.
2012-01-20 22:36:11 +00:00
Thomas Goyne
c83135cb9b
Add a few more a/v formats to the filters. Updates #1397 .
...
Originally committed to SVN as r6328.
2012-01-20 22:20:08 +00:00