Thomas Goyne
038eb6e58b
Use the new much shorter event names
2013-12-11 18:50:12 -08:00
Thomas Goyne
7c68c81ea3
Remove #ifs for older versions of wx
2013-12-11 18:50:12 -08:00
Thomas Goyne
a7f4fb5b87
Run clang-modernize on things
2013-11-23 09:57:22 -08:00
Thomas Goyne
7a6fd4bb1e
Make saving transient UI state in the file optional
...
It significantly increases the amount of noise when tracking subtitle
files in source control.
Closes #1535 .
2013-10-07 17:57:16 -07:00
Thomas Goyne
d81e2f45ac
Add an option to ignore whitespace for the character counter
2013-09-20 07:43:33 -07:00
Thomas Goyne
af2028e971
Pass unique_ptrs around by value
2013-09-16 06:43:17 -07:00
Thomas Goyne
ae9f05d876
"Allow grid to take focus" -> "Focus grid on click"
...
The grid can still be focused via the keyboard, so the previous label
was misleading.
2013-08-17 15:10:17 -07:00
Thomas Goyne
e693fa97ba
Clean up the hotkey code a bit
2013-06-08 19:21:51 -07:00
Thomas Goyne
f21a72992b
Use unique_ptr for most non-wx owning pointers
2013-06-08 19:21:49 -07:00
Thomas Goyne
95d773ebc9
Don't use the custom renders in the hotkeys editor on OS X
...
The standard controls aren't particularly usable, but the OS X
implementation of wxDVC doesn't actually support custom renderers and
not very usable is mildly better than entirely nonfunctional.
Updates #1589 .
2013-05-05 20:55:10 -07:00
Thomas Goyne
1e0f08c0ed
Mostly purge wxWidgets from non-UI stuff
...
Use boost::filesystem::path for all paths, and std::string for all other
strings, converting to/from wxString as close to the actual uses of wx
as possible.
Where possible, replace the uses of non-UI wxWidgets functionality with
the additions to the standard library in C++11, or the equivalents in
boost.
Move the path token management logic to libaegisub (and rewrite it in
the process).
Add a basic thread pool based on asio and std::thread to libaegisub.
This touches nearly every file in the project and a nontrivial amount of
code had to be rewritten entirely, so there's probably a lot of broken
stuff.
2013-02-06 13:22:15 -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
426e4593c7
Fix a bunch of incorrect implicit wxString <-> std::string conversions
...
The implicit conversion assumes that std::string is encoded in the local
charset, while it's always actually UTF-8.
2012-12-31 07:09:31 -08:00
Thomas Goyne
d0f4d9df99
Replace all uses of lagi_wxString with to_wx
2012-12-22 15:18:38 -08:00
Thomas Goyne
422cfb153f
Add a box with the character count of the longest line
...
Character counts are a pretty terrible measure of anything, but it's
still the main measure of length used in most subtitling standards
(because subtitling standards are written under the assumption that the
tools are terrible (which is generally an accurate assumption)).
2012-12-06 10:01:47 -08:00
Thomas Goyne
222c09b58f
Increase maximum undo levels to 10000 from 100
2012-12-05 19:12:34 -08:00
Thomas Goyne
de4ef14598
Use lambdas for very short event handlers
2012-12-02 13:29:46 -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
0893ed3f0a
Remove references to tr1
2012-11-10 18:05:57 -08:00
Thomas Goyne
e44c47c863
Remove $Id$ markers since git doesn't support them
2012-10-25 17:39:49 -07:00
Thomas Goyne
53433426bb
Fix some stuff from Coverity Scan
...
Mostly just bugs in unreachable code and stylistic things, but there's a
few incorrect reachable things that were working by coincidence and
gratuitous dynamic_casts.
2012-10-15 18:16:09 -07:00
Thomas Goyne
863e041d4d
Honor the configured MRU limits
...
Actually use the limits set in the preferences dialog rather than always
limiting the MRU lists to 16.
Currently only the Find and Replace limits can be set to above 16 due to
how the open recent items commands are implemented.
Closes #1528 .
2012-10-11 10:19:49 -07:00
cantabile
c868928817
Preferences, Colors page: make the box sizers expand
...
This way the Colors page behaves more or less like the other pages.
Originally committed to SVN as r6795.
2012-05-15 14:06:29 +00:00
cantabile
8887f96098
Preferences: rearrange the "Colors" page a bit
...
Make it look less asymmetrical.
Originally committed to SVN as r6794.
2012-05-15 14:06:24 +00:00
Thomas Goyne
0239ab6688
Remove the explicit height from the preferences dialog
...
The height was too short to fit the contents in some cases, and wasn't
even used on Windows. Patch by cantabile.
Closes #1488 .
Originally committed to SVN as r6773.
2012-05-13 00:58:16 +00:00
Thomas Goyne
18f158a364
Rename option "Always show visual tools" to "Only show visual tools when mouse is over video" as the old name said nothing about when they wouldn't be shown.
...
Originally committed to SVN as r6754.
2012-05-05 02:11:15 +00:00
Thomas Goyne
b275399fb1
Add option to draw lines at each second in the audio display
...
Originally committed to SVN as r6721.
2012-04-27 19:07:29 +00:00
Thomas Goyne
79282d7b89
Add the header background color to the preferences dialog
...
Originally committed to SVN as r6717.
2012-04-27 19:06:58 +00:00
Thomas Goyne
3253ccdb90
Move the "Force BT.601" option out of the FFmpegSource category as it's no longer FFMS2-specific, and make it on by default
...
Originally committed to SVN as r6708.
2012-04-16 23:55:21 +00:00
Thomas Goyne
77eaedd611
Use wxEVT_CHAR_HOOK rather than wxEVT_KEY_DOWN in the hotkey editor so that hotkeys can be set to Esc
...
Originally committed to SVN as r6697.
2012-04-13 22:27:56 +00:00
Thomas Goyne
1d15bf273a
Fix compilation failure from incomplete merging in r6692
...
Originally committed to SVN as r6696.
2012-04-12 15:40:25 +00:00
Thomas Goyne
ba7b7efc12
Rename the 'Start-marker drag sensitivity' option, as its name was highly misleading
...
Originally committed to SVN as r6695.
2012-04-12 00:04:36 +00:00
Thomas Goyne
0da9a4f111
Add option to disable the new behavior where left-click-drag sets the start marker then drags the end marker
...
Originally committed to SVN as r6694.
2012-04-12 00:04:31 +00:00
Thomas Goyne
39d2546dcd
Add a button to the preferences dialog to reset all options to the defaults
...
Originally committed to SVN as r6690.
2012-04-11 03:43:08 +00:00
Thomas Goyne
711faf17fa
Readd the 's' to 'Subtitles provider'
...
Originally committed to SVN as r6679.
2012-04-10 20:40:32 +00:00
Thomas Goyne
08a63d437a
Don't mark the provider/player names as translatable in the preferences dialog
...
The dropdown to pick the provider/player can't be made translatable with
how they're currently implemented, and having the options group name not
match the values in the dropdown is more confusing than useful.
Originally committed to SVN as r6678.
2012-04-10 20:40:26 +00:00
Thomas Goyne
7cda44c3f0
Readd the number prefixes to the automation log levels in the preferences dialog
...
Originally committed to SVN as r6677.
2012-04-10 20:40:20 +00:00
Thomas Goyne
462448c7d1
Add icons to some of the dialogs missing them
...
Originally committed to SVN as r6651.
2012-04-03 20:40:33 +00:00
Thomas Goyne
fe36760872
Use 16x16 icons for dialogs rather than cropping the 24x24 icons to 16x16
...
Originally committed to SVN as r6650.
2012-04-03 20:40:24 +00:00
Thomas Goyne
4bb707d663
Use "color" in all UI strings
...
Previously there were 29 instances of "color" and 9 of "colour".
Originally committed to SVN as r6648.
2012-04-03 17:38:50 +00:00
Thomas Goyne
4d50efc256
Add a help button to the preferences dialog
...
Originally committed to SVN as r6644.
2012-04-01 02:43:01 +00:00
Thomas Goyne
8f7d3ba8b8
Move audio color schemes to the Colours page
...
Originally committed to SVN as r6643.
2012-03-31 17:38:33 +00:00
Thomas Goyne
da8ea6d220
Reword a few option labels in the preferences dialog
...
Originally committed to SVN as r6642.
2012-03-31 17:38:27 +00:00
Thomas Goyne
25f5254e1b
Let the user set FFMS2 decoding threads to -1
...
Originally committed to SVN as r6641.
2012-03-31 17:38:22 +00:00
Thomas Goyne
d3eaa5af9c
Remove some unused options from the config file and preferences dialog
...
Originally committed to SVN as r6619.
2012-03-27 04:23:54 +00:00
Thomas Goyne
366baff2f8
Add option to force all video opened with FFMS2 to BT.601 for VSFilter compatibility
...
Originally committed to SVN as r6535.
2012-03-07 04:25:46 +00:00
Thomas Goyne
95a1e187a0
Combine the Subtitles and Interface pages of the preferences dialog as they both have subs edit box and subs grid options
...
Originally committed to SVN as r6520.
2012-02-28 01:22:49 +00:00
Thomas Goyne
70261b6466
Disable the controls for mutally exclusive and unused options in the preferences dialog
...
Originally committed to SVN as r6519.
2012-02-28 01:22:40 +00:00
Thomas Goyne
d942663316
Remove the "Link commiting of times" option
...
It doesn't actually do anything anymore due to that changed to the time
boxes are committed automatically.
Originally committed to SVN as r6516.
2012-02-25 02:58:14 +00:00