Thomas Goyne
7e8c18492f
Fix non-precompiled-header compilation
...
Originally committed to SVN as r6807.
2012-05-16 04:57:06 +00:00
Thomas Goyne
d38e02c031
Always use wxPATH_WIN for wxFileName::GetForbiddenChars
...
While it's possible to have files with the DOS-only forbidden characters
on other platforms, wx doesn't actually support them very well.
Closes #1489 .
Originally committed to SVN as r6792.
2012-05-15 13:40:10 +00:00
Thomas Goyne
35fa6c47ce
Automatically add a "Default" style to the "Default" catalog as 2.1.x did. Patch by cantabile. Closes #1487 .
...
Originally committed to SVN as r6765.
2012-05-13 00:57:34 +00:00
Thomas Goyne
3388281fb7
Fix error when the style catalog directory doesn't exist or is empty
...
Use wxDir::GetFirst/GetNext rather than wxFileFirstFile since the latter
doesn't have any way to signal that there aren't actually any files to
be found.
Closes #1486 .
Originally committed to SVN as r6764.
2012-05-13 00:57:25 +00:00
Thomas Goyne
6e877b7dea
Make some very similar translatable strings identical
...
Originally committed to SVN as r6658.
2012-04-04 16:46:02 +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
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
31a0146df2
Fix crash when clicking the sort button in the style manager with no styles selected
...
Originally committed to SVN as r6628.
2012-03-28 23:59:10 +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
759b8433c1
Silence some clang warnings
...
Originally committed to SVN as r6558.
2012-03-10 02:16:08 +00:00
Thomas Goyne
6b141f2bd3
Fix gcc compilation errors
...
Originally committed to SVN as r6554.
2012-03-09 00:23:53 +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
83faddfdb6
Refactor New/Copy/Edit in the style manager a bit and do a better job of selecting the right style in the lists
...
Originally committed to SVN as r6546.
2012-03-08 04:17:36 +00:00
Thomas Goyne
b5a71587ff
Move more of the style storage management logic to AssStyleStorage
...
Originally committed to SVN as r6545.
2012-03-08 04:17:29 +00:00
Thomas Goyne
a09d96df1f
Make AssStyleStorage keep track of the current catalog name
...
Originally committed to SVN as r6544.
2012-03-08 04:17:23 +00:00
Thomas Goyne
fa06033762
Ensure that there is always at least one style catalog existing and selected so that the style manager doesn't have to check if there is one
...
Originally committed to SVN as r6543.
2012-03-08 04:17:17 +00:00
Thomas Goyne
f4e1b28c9f
Rework handling of copied styles in the style manager a bit
...
Generate the new name in the style manager rather than the editor so
that the naming scheme of copies is consistent between the Copy buttons
and pasting styles.
Name the second copy of style X "X - Copy (2)" rather than "X - Copy -
Copy", and so on for further copies. (Copies of style "X - Copy" would
still be named "X - Copy - Copy").
Select the new style when a copy is created.
Originally committed to SVN as r6536.
2012-03-07 22:40:15 +00:00
Thomas Goyne
1075b71976
Prompt to update uses of the style when "Default" is renamed
...
As far as I can tell, Default was only excluded to avoid prompting when
creating a new style, but whether or not a style is new is now an
explicit parameter to the editor so it's unneeded.
Originally committed to SVN as r6453.
2012-02-07 20:42:44 +00:00
Thomas Goyne
5e96d6e8c3
Remove periods from single-sentence tooltips
...
Originally committed to SVN as r6449.
2012-02-07 01:22:32 +00:00
Thomas Goyne
2dcd4ff2a6
Mark the style name collision messages as translatable
...
Originally committed to SVN as r6422.
2012-02-01 18:47:18 +00:00
Thomas Goyne
439b1272b0
Select current style when the style manager is opened
...
Originally committed to SVN as r6421.
2012-02-01 18:47:10 +00:00
Thomas Goyne
98b51e2c23
Clean up DialogStyleManager a bit, eliminating a decent amount of duplicated code and fixing issues with the logic for enabling and disabling the buttons.
...
Originally committed to SVN as r6416.
2012-02-01 00:48:50 +00:00
Thomas Goyne
c6ac746215
Kill DialogStyleManager::OnClose as it just does the default thing
...
Originally committed to SVN as r6415.
2012-02-01 00:48:42 +00:00
Thomas Goyne
b48436c5de
Skip unprocessed key events in the style manager
...
Originally committed to SVN as r6414.
2012-02-01 00:48:33 +00:00
Thomas Goyne
3be4693480
Uncrustify AssStyleStorage a bit
...
Originally committed to SVN as r6413.
2012-02-01 00:48:24 +00:00
Thomas Goyne
ac5af24014
Remove pointless #ifdef __APPLE__ around CmdDown()
...
The entire point of CmdDown is that it calls ControlDown on non-OS X, so
the ifdefs are completely pointless.
Originally committed to SVN as r6412.
2012-02-01 00:48:16 +00:00
Thomas Goyne
c2d3c910c7
Replace some uses of "" with wxString()
...
Despite special-casing zero-length input, wxString("") takes over four
times as long as wxString() - and on a 10k line script, this change cuts
AssFile's copy constructor's runtime in half.
Originally committed to SVN as r6401.
2012-01-31 00:44:43 +00:00
Thomas Goyne
400b8252e9
Don't block loading styles from scripts with only a Default style
...
Originally committed to SVN as r6099.
2011-12-22 21:25:00 +00:00
Thomas Goyne
d28c4c4d8b
Kill AssEntry::Valid, as there wasn't actually any way to get a fully-constructed entry with it set to false
...
Originally committed to SVN as r6034.
2011-12-22 21:14:51 +00:00
Thomas Goyne
6152716003
Make a few strings into format strings for translations. Closes #1093 .
...
Originally committed to SVN as r5908.
2011-11-25 19:26:48 +00:00
Thomas Goyne
262d5195c5
Add access keys for nearly all things which support them and were missing them. Closes #1070 .
...
Originally committed to SVN as r5877.
2011-11-18 18:49:09 +00:00
Thomas Goyne
8831de5774
Modify a few strings to ease translations
...
Originally committed to SVN as r5870.
2011-11-17 02:21:46 +00:00
Thomas Goyne
c7d0ce60ee
Make the style editor commit its own changes. Fixes some issues where changes made in the style editor would fail to update the rest of the program.
...
Originally committed to SVN as r5754.
2011-10-17 22:00:58 +00:00
Thomas Goyne
6e30ff633c
Fix compilation without precompiled headers
...
Originally committed to SVN as r5726.
2011-10-10 19:30:11 +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
Thomas Goyne
934a5b24eb
Refine the commit types
...
Switch to a bitmask with much more finely-grained information about what
changed in the commit, fixing a few potential correctness problems and
significantly improving the performance of several scenarios where commits
are spammed very frequently.
Originally committed to SVN as r5590.
2011-09-15 05:16:32 +00:00
Thomas Goyne
833c35f6ae
Use PersistLocation for DialogStyleManager
...
Originally committed to SVN as r5520.
2011-07-27 05:36:24 +00:00
Thomas Goyne
72bc33fda3
Fix compilation errors with precompiled headers disabled
...
Originally committed to SVN as r5484.
2011-07-16 06:42:55 +00:00
Thomas Goyne
d405b061df
Eliminate a lot of unnessesary includes of subs_grid.h
...
Originally committed to SVN as r5458.
2011-07-15 04:05:15 +00:00
Thomas Goyne
df1dce3593
Kill SubtitlesGrid::ass and SubtitlesGrid::EditBox and convert everything that used them over to agi::Context
...
Originally committed to SVN as r5215.
2011-01-16 07:17:36 +00:00
Amar Takhar
c15777f844
Merge audio_display_rewrite branch to trunk. This is not a complete work, don't expect to time anything for a while.
...
Originally committed to SVN as r4903.
2010-12-08 03:36:10 +00:00
Thomas Goyne
6d2b941e76
Rework how committing changes works
...
Rather than everything having to separately commit changes to the ass
and then tell the subs grid to notify various parts of Aegisub about the
changes, committing the AssFile now triggers an event which objects
listen for.
AssFile::Commit now also has an argument to indicate what sorts of
changes were made to the file. For now these types are very broad.
Originally committed to SVN as r4901.
2010-12-07 19:09:28 +00:00
Thomas Goyne
dade679145
Select new styles in the styles manager when they are created.
...
Originally committed to SVN as r4799.
2010-10-11 20:05:52 +00:00
Thomas Goyne
e7eba4c00d
Add Select All and Select None buttons to the import style from script dialog.
...
Originally committed to SVN as r4729.
2010-08-10 01:47:29 +00:00
Thomas Goyne
4a8abae3a3
Kill options.h and options.cpp, which have been empty for a while
...
Originally committed to SVN as r4676.
2010-07-12 21:49:48 +00:00
Thomas Goyne
c40aa7080a
Eliminate almost all uses of AssFile::top.
...
Originally committed to SVN as r4669.
2010-07-09 07:31:48 +00:00
Thomas Goyne
2e5dc176db
Rewrite Undo/Redo code
...
Make the undo and redo stacks non-static members of AssFile, making it
theoretically possible to have multiple open AssFiles with working undo.
Slightly improve tracking of whether the file is modified: saving,
making a change, then undoing the change now results in the file being
shown as unmodified as with most programs with undo.
Add basic undo coalescing support.
Originally committed to SVN as r4667.
2010-07-09 07:31:34 +00:00
Thomas Goyne
ccdc863496
Fix copy/paste error in r4244
...
Originally committed to SVN as r4479.
2010-06-11 02:25:40 +00:00