Thomas Goyne
f4a6d90db4
Use retina icons for the main toolbar if first opened on a retina display
2013-12-27 09:29:53 -08:00
Thomas Goyne
85148002bc
Get the UI font from CoreText on OS X
2013-12-10 09:08:30 -08:00
Thomas Goyne
535a17bcf2
Remove pointess OSX_ prefix from functions
2013-10-21 18:11:37 -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
80c9f67ce8
Rewrite the auto-matcher for the karaoke timing copier
...
Operate on characters rather than bytes in the dialog so that it
actually works with Kanji.
Rewrite the auto-matcher to handle more cases and add unit tests for it.
2013-09-15 14:52:16 -07:00
Maxime Gauduin
0a2c0ab75e
wxStandardPaths is protected as of wxgtk 2.9.5
...
Closes #1625 , #1626 , #1627 .
2013-08-18 19:14:53 -07:00
Thomas Goyne
52d67accb4
Fix some issues with resampling drawings
...
The X scale/offset was being used for both X and Y coordinates.
Only non-negative integers were supported. xy-VSFilter and libass both
now support non-integer coordinates, and negative coordinates have of
course always been valid. Resampled coordinates are now rounded to
eighth-pixels rather than whole pixels.
2013-07-30 20:50:31 -07:00
Thomas Goyne
151b1cb6ac
Kill AegiFloatToString and AegiIntegerToString
2013-06-08 19:21:30 -07:00
Thomas Goyne
48921c35e0
Use ICU for checking if characters are whitespace
2013-02-06 13:38:35 -08:00
Thomas Goyne
9f2fdb2a86
Count characters rather than bytes in the character counter
2013-02-06 13:38:35 -08:00
Thomas Goyne
09aa873ed7
Hide the StatusTimeout awfulness in a util function
2013-02-06 13:22:34 -08:00
Thomas Goyne
bc5417de4a
Give all of the Aegisub-created threads names
2013-02-06 13:22:32 -08:00
Thomas Goyne
ca9be4caef
Extract some duplicated wxFileSelector code to a helper function
2013-02-06 13:22:16 -08: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
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
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
947dc537d1
Add a generic function for invoking functions on the GUI thread
2012-11-26 07:11:30 -08:00
Thomas Goyne
b8b9bfdfb6
Fix non-pch compilation
2012-11-18 21:10:36 -08:00
Thomas Goyne
06aaaff16b
NULL -> nullptr
2012-11-13 08:51:01 -08:00
Thomas Goyne
88fdee726b
Extract word-splitting logic from the syntax highlighter
2012-11-12 18:35:25 -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
df60c2e7a4
Factor out a bunch of duplicated code for clipboard stuff
2012-10-25 17:39:49 -07:00
Thomas Goyne
8575fb9c87
Don't use wxRemoveFile in the cache cleaner
...
wxRemoveFile notifies the user of errors via a dialog box, and errors
when cleaning the cache are normally just due to two copies of Aegisub
trying to clean it at the same time.
2012-10-19 07:35:37 -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
0f071d978a
Rewrite the OS X bundle utils in Obj-C++ and return std::strings rather than malloced char *
...
Originally committed to SVN as r6896.
2012-06-12 03:13:49 +00:00
Thomas Goyne
03b1b8e1c0
Flush options before restarting so that language changes actually apply
...
Originally committed to SVN as r6892.
2012-06-08 21:20:21 +00:00
Thomas Goyne
f0f7ad2858
osx: Make modelss dialogs stay on top of the main window as they're floating panels, not documents
...
Originally committed to SVN as r6889.
2012-06-07 02:48:13 +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
bd0f6a4c2b
Extract the cache cleaning logic from FFmpegSourceProvider
...
Originally committed to SVN as r6653.
2012-04-03 22:44:40 +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
fb7638312a
Make PrettySize less dumb
...
Originally committed to SVN as r6615.
2012-03-27 00:49:43 +00:00
Thomas Goyne
30f0a56832
Document some of the utils functions
...
Originally committed to SVN as r6614.
2012-03-27 00:49:33 +00:00
Thomas Goyne
e6f55bdbcb
Use a binary search in IsWhitespace rather than linear
...
Originally committed to SVN as r6613.
2012-03-27 00:49:24 +00:00
Thomas Goyne
1f1e9a700a
Use std::binary_search rather than a set in GetWordBoundaries
...
This is slightly faster and simpler.
Originally committed to SVN as r6612.
2012-03-27 00:49:15 +00:00
Thomas Goyne
909a0ca280
Remove some unused functions
...
Originally committed to SVN as r6611.
2012-03-27 00:49:05 +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
ca5c968d4f
Non-precomp-header compilation fixes
...
Originally committed to SVN as r6280.
2012-01-12 22:32:20 +00:00
Thomas Goyne
7031ba807b
Fix gcc compilation error
...
Originally committed to SVN as r6277.
2012-01-12 21:33:14 +00:00
Thomas Goyne
896a1ab902
Don't mark things in drawing blocks as words in GetWordBoundaries
...
This disables spell checking in drawing blocks and potential weird
behavior when right-clicking on drawing blocks.
Originally committed to SVN as r6272.
2012-01-11 19:19:03 +00:00
Thomas Goyne
ffa622d698
Fix compilation without precompiled headers
...
Originally committed to SVN as r5791.
2011-10-28 20:15:10 +00:00
Thomas Goyne
1741ce93f6
Factor out the mouse wheel forwarding code in the audio display to a function used by the audio display, video display and subtitles grid, and make it actually work
...
Originally committed to SVN as r5781.
2011-10-25 19:40:45 +00:00
Thomas Goyne
cc147d1660
Eliminate uses of c_str made unnecessary by changed to wxString::Format in wx 2.9
...
Originally committed to SVN as r5612.
2011-09-28 19:43:48 +00:00
Thomas Goyne
d990bbbb99
Eliminate all unnecessary uses of L and _T
...
Originally committed to SVN as r5611.
2011-09-28 19:43:11 +00:00
Amar Takhar
167f09a610
Merge the dynamic menu, hotkey and toolbar branch to trunk. This doesn't include Windows support as vs2008 was being a major pain. This involves revisions r4921:4950, r4961:5002, r5005:5006, r5008:5056, r5062:5065, r5072, r5081:5082, r5087, r5096:5110, r5124:5125. Updates #1258 .
...
Originally committed to SVN as r5126.
2011-01-05 13:00:46 +00:00
Amar Takhar
e6b41058d8
Remove duplicate inclusion of <libaegisub/log.h>.
...
Originally committed to SVN as r4750.
2010-08-22 21:22:49 +00:00
Amar Takhar
d4ba1f48ca
Remove libosxutil and fold it into libaegisub.
...
Originally committed to SVN as r4743.
2010-08-14 17:42:37 +00:00
Amar Takhar
ce28cca7c6
Include missing header.
...
Originally committed to SVN as r4736.
2010-08-12 14:36:09 +00:00