Thomas Goyne
b52099f0fa
Delete SubtitlesGrid::SetSelectionFromAbsolute and SubtitlesGrid::GetAbsoluteSelection
...
Nothing uses them anymore (and nothing should be using them).
2012-10-15 18:16:09 -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
ccafd0be17
Update the selection correctly after setting a tag via the edit box buttons
...
The valid bounds for a selection are not updated until the contents of
the edit box are updated on commit, so set the selection after
committing rather than before.
2012-10-14 20:35:08 -07:00
Thomas Goyne
be94ab70f4
Extract cut/copy/delete lines logic from SubtitlesGrid
2012-10-14 18:57:57 -07:00
Thomas Goyne
8aeb611745
Make the correct row visible when selecting rows with shift + arrow keys in the grid. Closes #1533 .
2012-10-14 08:31:16 -07:00
Thomas Goyne
b7e0af6bbb
Delete BaseGrid::GetFirstSelRow() since it's no longer used by anything
2012-10-14 08:22:13 -07:00
Thomas Goyne
a40b76ea59
Insert new lines before/after the active line rather than the first selected line
2012-10-14 08:21:41 -07:00
Thomas Goyne
610b2a9494
Make pasting lines not horribly slow and bad. Closes #1534 .
2012-10-13 21:32:26 -07:00
Thomas Goyne
7410e37e07
Fix some places where the margin count wasn't updated when removing ASS2 support
2012-10-12 14:54:09 -07:00
Thomas Goyne
afd24913d6
Fix find/replace derp
2012-10-12 14:54:09 -07:00
Thomas Goyne
cc3ca715a1
Set the focus to the edit box after any of the edit box buttons are clicked
2012-10-12 14:54:09 -07:00
Thomas Goyne
daf28e2005
Use the native placeholder text functionality on OS X
2012-10-12 14:54:09 -07:00
Thomas Goyne
7ca2c5cb65
Actually set the correct color tags from the color picker buttons
2012-10-12 14:54:09 -07:00
Thomas Goyne
a1fad1f947
Drop support for ASS2
...
It is very unlikely that anyone has ever actually used ASS2 for
anything, and in practice it was not usable anyway as the bottom margin
was always either ignored or blindly overwritten.
2012-10-12 14:54:08 -07:00
Thomas Goyne
983d0b19eb
Add default hotkeys for the color buttons
2012-10-12 14:54:08 -07:00
Thomas Goyne
b3486440f3
Show the hotkeys for the edit box buttons in the tooltip
2012-10-12 14:54:08 -07:00
Thomas Goyne
1b68790c4b
Convert the subs edit box buttons to commands
...
This makes they hotkeyable and extracts a large chunk of logic from the
giant mess that is SubsEditBox.
2012-10-12 14:54:08 -07:00
Thomas Goyne
44f0fcce07
Go through TextSelectionController rather than hitting the text edit directly in SubsEditBox
2012-10-12 14:54:08 -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
e4a6092b36
Use signals for selection change notifications
2012-10-12 14:54:07 -07:00
Thomas Goyne
a0c92f83f9
Fix some PVS-Studio warnings
2012-10-12 14:51:30 -07:00
Thomas Goyne
189615bf48
Don't use a full-size subbitmap for icons for no apparent reason
2012-10-12 14:51:30 -07:00
Thomas Goyne
7d2da48ddb
Remove config_unix.h since the things it was working around were fixed years ago
2012-10-12 14:51:30 -07:00
Thomas Goyne
fc01b8bafe
Delete the freetype fonts collector
...
It's pretty horribly broken and fixing it would essentially consist of
rewriting fontconfig.
2012-10-12 14:51:29 -07:00
Thomas Goyne
67af44b889
Fix compilation with no audio players enabled
2012-10-12 14:51:29 -07:00
Thomas Goyne
d0a7388581
Remove ifdef checks for header inclusion in audio_player.cpp as the headers themselves have the checks
2012-10-12 14:51:29 -07:00
Thomas Goyne
95a1b7e9b5
Remove AudioPlayer::OpenStream and CloseStream
...
Instead, just pass the provider to the constructor and let the player
worry about when to create its things. The ability to explicitly open
and close the playback wasn't actually required for anything, and it
complicated the implementations of the players.
2012-10-12 14:51:29 -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
Thomas Goyne
e5251544ea
Don't save separate wavs for each selected line
...
Instead, save a single wav spanning the full range of all selected
lines.
2012-10-11 09:41:25 -07:00
Thomas Goyne
f691335e3b
Run the icons through ImageOptim
...
Knocks 70 KB off the total size.
2012-10-10 18:49:19 -07:00
Thomas Goyne
a7bb608a34
Mark Command::Icon as const
2012-10-10 18:48:47 -07:00
Thomas Goyne
50b70f6979
Remove DOCME placeholders from AssDialogue
2012-10-10 18:48:39 -07:00
Thomas Goyne
9009c963e3
Fix rounding errors that resulted in karaoke syllables drifting
2012-10-09 20:40:49 -07:00
Thomas Goyne
004b41f0eb
Switch the Duration field back to time mode when video is closed
2012-10-09 20:40:47 -07:00
Thomas Goyne
89d7e0a321
Allow framerate transform to/from variable without external timecodes loaded
...
This is a potentially sensible operation (to convert from VFR to/from
the video's average FPS), so there's no reason to require that the input
and output timecodes be from different places.
Closes #1530 .
2012-10-09 09:20:35 -07:00
Thomas Goyne
a56bf25d00
Actually load the fontconfig config file in the fonts collector on OS X
2012-10-09 09:20:34 -07:00
Thomas Goyne
269dd79230
Increase the undo-group-breaking timer to 30 seconds (from 10)
2012-10-09 07:28:16 -07:00
Thomas Goyne
a13d06318b
Remove all glu.h includes since no glu functions are ever used. Updates #1511 .
2012-10-08 10:21:20 -07:00
Thomas Goyne
db30fdedbd
Use the correct option name for reporting the user's UI language
2012-10-07 19:55:26 -07:00
Thomas Goyne
07257e1bb3
Fix non-precomp header compilation
2012-10-06 09:39:44 -07:00
Thomas Goyne
846449cb03
Center the audio display when a line is within 5% of an edge as 2.1 did
2012-10-06 08:46:10 -07:00
Thomas Goyne
de862cb6e8
Remove the correct syllable split on a click on the left side of the split line
2012-10-05 08:21:40 -07:00
Thomas Goyne
5cdcd3dcb3
Increase the hit area for removing syllable splits a little
2012-10-05 08:21:40 -07:00
Thomas Goyne
d0a9f3f7cd
Change the karaoke split cursor color to indicate whether it'll add or remove a split
2012-10-05 08:21:40 -07:00
Thomas Goyne
1cd9f2dcf2
Add a default hotkey for "audio/play/line"
2012-10-04 16:56:02 -07:00
Thomas Goyne
d97ad27354
Add the play line button to the audio toolbar
2012-10-04 16:49:55 -07:00
Thomas Goyne
44468fbd3d
Add "audio/play/line" command
2012-10-04 16:48:35 -07:00
Thomas Goyne
7343392823
Don't use StandardPaths before OnInit is called
...
AegisubLocale is created extremely early in the application
initialization, and using StandardPaths in its constructor resulted in
?user being set to an incorrect value as the app name hadn't been set
yet.
2012-10-04 12:58:01 -07:00
Thomas Goyne
782c6310f3
Don't include glu.h in the precompiled header since it's never actually used
2012-10-03 15:58:14 -07:00
Thomas Goyne
1f6a6087c6
Remove waf build system since it's pretty out of date
2012-10-02 16:06:05 -07:00