Thomas Goyne
0c972886fb
Cache most of the brushes used in grid painting
...
Originally committed to SVN as r6391.
2012-01-31 00:43:15 +00:00
Thomas Goyne
cf1425f9d1
Don't get the strings for hidden columns when painting the grid. Speeds up grid painting by up to 25%.
...
Originally committed to SVN as r6390.
2012-01-31 00:43:06 +00:00
Thomas Goyne
b34d2c547f
Use wxAutoBufferedPaintDC rather than manual double-buffering in BaseGrid, as it's simpler and slightly faster
...
Originally committed to SVN as r6389.
2012-01-31 00:42:58 +00:00
Thomas Goyne
8c246e1cb8
Make shift-scrollwheel scroll the grid a page at a time. Closes #1407 .
...
Originally committed to SVN as r6372.
2012-01-26 22:46:09 +00:00
Thomas Goyne
6d550b4a5d
Repaint the entire grid on timing changes
...
Timing changes can potentially make all of the columns need to be
repainted (due to the collision line color), and the grid currently
isn't smart enough to know when this is actually the case, so just
always repaint the entire thing.
Originally committed to SVN as r6371.
2012-01-26 22:27:57 +00:00
Thomas Goyne
2094814077
Save the current row and scroll position in the file and restore it when the file is reopened. Closes #1417 .
...
Originally committed to SVN as r6362.
2012-01-25 19:07:36 +00:00
Thomas Goyne
26c3e13340
Fix poor synchronization between mouse and keyboard modifications to the selection
...
Combining Shift+Up/Down (or Home/End or Page Up/Page Down) with
shift-clicking had very odd results due to that they used separate
variables to decide where to extend from (and even when only one was
used they were handled incorrectly in some cases).
Closes #1311 .
Originally committed to SVN as r6355.
2012-01-25 04:59:17 +00:00
Thomas Goyne
9ac2f93bf0
Fix some mostly unimportant uses of uninitialized memory
...
Originally committed to SVN as r6304.
2012-01-18 20:08:06 +00:00
Thomas Goyne
cae10121ed
Fix a bunch of -pedantic stuff
...
Originally committed to SVN as r6181.
2011-12-28 21:27:06 +00:00
Thomas Goyne
71345af81a
Overload operator int() on AssTime and remove GetMS/SetMS
...
Originally committed to SVN as r6123.
2011-12-22 21:28:51 +00:00
Thomas Goyne
a66cc26706
Remove all calls to wxKeyEvent::StopPropagation. Key events don't propagate by default and even if they did, events which are marked as processed don't propagate further.
...
Originally committed to SVN as r6046.
2011-12-22 21:16:43 +00:00
Thomas Goyne
95fe6a523f
Actually use the selection foreground color for selected rows in the grid
...
Originally committed to SVN as r6029.
2011-12-22 21:14:06 +00:00
Thomas Goyne
34a87b1c1e
Silence a pile of /W4 warnings
...
Originally committed to SVN as r6001.
2011-12-22 21:09:31 +00:00
Thomas Goyne
89541a949f
Actually hide override tags in hide tags mode. Closes #1360 .
...
Originally committed to SVN as r5830.
2011-11-08 00:25:02 +00:00
Thomas Goyne
dc380c5848
Refactor BaseGrid painting a bit
...
Originally committed to SVN as r5829.
2011-11-08 00:24:53 +00:00
Thomas Goyne
8e81fd07ed
Move everything but the subtitle modification utility functions from SubtitlesGrid to BaseGrid. There never has been a clean division of responsibilities between them and the split mostly just made things awkward.
...
Originally committed to SVN as r5828.
2011-11-08 00:24:41 +00:00
Thomas Goyne
84c545b978
Return const references from OptionValue::GetList* rather than taking an output parameter. Eliminates some copies of lists and makes the calling code less awkward.
...
Originally committed to SVN as r5816.
2011-11-04 19:42:31 +00:00
Thomas Goyne
9a8fb66fbf
Remove an unused variable in BaseGrid::UpdateMaps
...
Originally committed to SVN as r5795.
2011-10-28 20:40:53 +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
f29e889776
Always update column widths after a new line is added or removed
...
Originally committed to SVN as r5762.
2011-10-23 17:00:26 +00:00
Thomas Goyne
b7efafe3b8
Fix calculation of the time column widths
...
Originally committed to SVN as r5734.
2011-10-12 23:07:38 +00:00
Thomas Goyne
9b00fad2fc
Include the column headers in the column width calculations in BaseGrid
...
Originally committed to SVN as r5704.
2011-10-01 18:35:06 +00:00
Thomas Goyne
3dc0ed6c56
Use CmdDown in BaseGrid rather than #ifdefs
...
Originally committed to SVN as r5703.
2011-10-01 18:35:00 +00:00
Thomas Goyne
5a49abb2eb
Fix bug in BaseGrid::GetSelection that resulted in row 0 always being selected
...
Originally committed to SVN as r5653.
2011-09-28 19:50:41 +00:00
Thomas Goyne
94998f4283
Update ths column widths in BaseGrid when the number of digits in the row number changes
...
Originally committed to SVN as r5651.
2011-09-28 19:50:24 +00:00
Thomas Goyne
683dd6c0a9
Kill BaseGrid::SelectVisible
...
Originally committed to SVN as r5600.
2011-09-15 05:17:43 +00:00
Thomas Goyne
11c40188c2
Eliminate some old selection code in BaseGrid
...
Originally committed to SVN as r5599.
2011-09-15 05:17:36 +00:00
Thomas Goyne
1f095b0a01
Remove the SubsEditBox from the context in favor of the SubsEditTextCtrl as it was the only public member of SubsEditBox
...
Originally committed to SVN as r5595.
2011-09-15 05:17:07 +00:00
Thomas Goyne
5b3b821696
Always keep the active line visible in the grid
...
Originally committed to SVN as r5593.
2011-09-15 05:16:54 +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
d82e2bb496
Use wxEVT_CONTEXT_MENU for context menus rather than right button down so that the context menu key works correctly. Updates #1238 .
...
Originally committed to SVN as r5578.
2011-08-31 04:17:37 +00:00
Thomas Goyne
03d7849d12
Significantly speed up grid painting, especially when only some columns need to be repainted
...
Originally committed to SVN as r5571.
2011-08-27 06:52:42 +00:00
Thomas Goyne
561216d4c8
Make hotkey::check take a project context and make FrameMain::context private
...
Originally committed to SVN as r5532.
2011-07-29 23:16:55 +00:00
Thomas Goyne
db965eb766
Unbreak tag hiding in the grid
...
Originally committed to SVN as r5524.
2011-07-27 05:54:25 +00:00
Thomas Goyne
0616b39ffe
Fix a pile of warnings
...
Originally committed to SVN as r5483.
2011-07-16 05:01:36 +00:00
Thomas Goyne
88f0659307
Rewrite the toolbar generation code
...
The old toolbar code didn't actually support any nontrivial
customization of toolbars, as it had a hardcoded list of commands which
would be enabled or disabled, and the checks for enabling/disabling
toolbar buttons was done only in the specific situations which those
commands used.
Make icon size a user customizable option and add support for
dynamically changing it at runtime.
Originally committed to SVN as r5468.
2011-07-15 04:06:23 +00:00
Thomas Goyne
95cadb5226
Clean up base_grid a bit
...
Reduce the visibilty of many members and document some of them
Cut down on recreation of wxPen and wxBrush objects in DrawImage,
probably speeding up painting somewhat
Simplify handling of extendRow
Move event IDs to base_grid.cpp
Remove worthless comments and dead code
Assorted cosmetic changes
Originally committed to SVN as r5462.
2011-07-15 04:05:43 +00:00
Thomas Goyne
f098e2fac8
Add an optional Validate method to commands
...
Originally committed to SVN as r5459.
2011-07-15 04:05:22 +00:00
Thomas Goyne
256e098aa7
Remove header include order requirements
...
Originally committed to SVN as r5449.
2011-07-15 04:04:13 +00:00
Thomas Goyne
8d968e4dd5
Move the code for updating the time/frame display boxes from VideoDisplay to VideoBox
...
Originally committed to SVN as r5266.
2011-01-23 07:48:07 +00:00
Thomas Goyne
ccddf8eab1
Make hotkey::check return whether any hotkeys matched, and skip events which did not match any hotkeys
...
Originally committed to SVN as r5241.
2011-01-19 03:12:46 +00:00
Thomas Goyne
45c33ab675
Add commands for the remaining subtitles grid hotkeys and remove SubtitlesGrid::OnKeyDown entirely
...
Originally committed to SVN as r5238.
2011-01-18 05:13:26 +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
Thomas Goyne
362e4c776b
Make a large chunk of FrameMain's members private
...
Originally committed to SVN as r5212.
2011-01-16 07:17:17 +00:00
Thomas Goyne
e450cb3e7e
Fix include paths
...
Originally committed to SVN as r5132.
2011-01-05 18:40:37 +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
Thomas Goyne
833e69b09f
Replace MIN/MAX/MID with std::min/std::max/mid
...
Originally committed to SVN as r5078.
2010-12-31 21:03:03 +00:00
Thomas Goyne
3345797ff6
Use signals in AudioController and AudioTimingController
...
Originally committed to SVN as r4907.
2010-12-08 08:09:16 +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