1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-26 09:28:07 +02:00

221 Commits

Author SHA1 Message Date
lllucius
3d95126e0e Bug 275 - Snap-To status/quantisation are global, leading to incorrect indications in multiple projects
This adds (I believe) project specific selection format.
2013-10-27 01:58:35 +00:00
lllucius
3ec8989265 Bug 510 - undo can change which tracks are selected, and focus
Must more extensive review of saving state

Try this one David.  I reviewed all actions in Menus.cpp and have added state
saving where it seemed to be missing.  I had no idea it would be so many (22). 
And that was only reviewing Menus.cpp.  I believe that will get them all since
all keyboard actions are tied to a menu or command action and they all go
through Menus.cpp. (I still have a few to review in TrackPanel.cpp though)
2013-10-23 20:14:09 +00:00
lllucius
5c8baf9c16 Bug 406 - Label creation/other non-dialogue editing and keyboard selection hang on long projects
This is part 2...

Improve performance of selection via Selection bar

This provides a similar type of speed up when selecting with the keyboard via
the Selection toolbar.
2013-10-23 18:06:49 +00:00
lllucius
03f5088b6a Bug 406 - Label creation/other non-dialogue editing and keyboard selection hang on long projects
This is part 1...

Provides some relief to the selection "hang"

This patch adds the ability for the keyboard based commands (like cursor left,
extend selection right, etc.) to know when the key has been released.

When the patch is applied the current state is saved only when the key is
released and not every time it repeats.

Here's an example of the difference it makes.

This video show the selection "hang", but also watch the CPU usage.  All I'm
doing is pressing SHIFT+RIGHT ARROW.

http://youtu.be/tdMntDwGSkM

This one is the same thing bug with the patch applied.  Notice that the
selection "hang" no longer occurs and look at the CPU usage!

http://youtu.be/EpXNsQ4Cky0
2013-10-23 18:01:14 +00:00
lllucius
0bee195b0e Bug 275 - Snap-To status/quantisation are global, leading to incorrect indications in multiple projects
Make Snap To project specific

This makes the Snap To setting in the selection bar project specific.  Changing
it will no longer affect other open projects.

The state is saved to audacity.cfg when the checkbox is changed.  This means
that the next project window to open will start with the new value.  (As it
should be).
2013-10-23 17:47:00 +00:00
lllucius
1fab1cdb21 Bug 337 - New logger class allows log to be initialized immediately without crashing Mac empty project windows
This is an older one...originally from 2011.  Bug says it all, but basically it allows logging
to begin immediately upon startup for all platforms.  And it has multithreading protection, so
it should now be safe to log from the non-GUI threads.
2013-10-23 17:00:28 +00:00
lllucius
f1bd685c55 Fixes bug #370
http://bugzilla.audacityteam.org/show_bug.cgi?id=370
2013-10-08 19:40:45 +00:00
RichardAsh1981@gmail.com
07a9789ec5 make functions which do not require access to class member variables static so they can be called without an object to do so with. Based on part of a patch by Campbell Barton 2013-09-21 19:34:12 +00:00
RichardAsh1981@gmail.com
61de872bf2 Make a large number of global variables static so they only have file scope when that is all they need. Part of a patch by Campbell Barton 2013-09-21 19:30:00 +00:00
RichardAsh1981@gmail.com
2952017541 Delete a quantity of unused variables, based on a patch supplied by Campbell Barton 2013-09-12 16:48:55 +00:00
v.audacity
cc876ce7be just some cleanups on FIXMEs and unused method parameters 2013-08-31 05:57:48 +00:00
james.k.crook@gmail.com
dba81b3f1c Cleanup: Fixed lots of trivial MSVC warnings. 2013-08-25 21:51:26 +00:00
v.audacity
c7daafede2 In off-list discussion, Steve mentioned that kdevelop / kate highlighting recognizes "FIXME", but not "FIX-ME", which has been the Audacity convention. This commit changes Audacity code to use the "FIXME" convention (though I've never known it as convention and MSVC doesn't recognize it).
Also, minor change in WaveTrack.cpp in the effort on bug 641. Should have no functional difference.
2013-08-24 20:30:47 +00:00
v.audacity
7a4a3e3951 Handle Alt key down events, specifically for draw tool. 2013-08-09 01:03:34 +00:00
v.audacity
b8128af0c5 Gale suggested showing current key shortcuts for toolbar controls tooltips. This implements it for ControlToolBar (aka Transport toolbar).
One tricky aspect was that until GetActiveProject() is ready to return non-NULL,  ControlToolBar::RegenerateToolsTooltips() cannot get the project's CommandManager, so cannot get the shortcuts. Changed ControlToolBar::RegenerateToolsTooltips() to be public and now call it late in wAudacityProject(). When called before the project is completely instantiated, in the rewritten ControlToolBar::RegenerateToolsTooltips(), it just sets the tooltips to the names without the keys, pretty much as now -- but I don't think users will ever see that because of the subsequent call. 

Anyway, did it in a more programmatic way than the previous code, which reduces string literals duplication.

Btw, I changed the start value for the ID_PLAY_BUTTON because the former value of 0 causes FindWindow() to return the toolbar rather than the button -- wxWidgets bug. 

Also got rid of some cruft and applied a few WXUNUSED.
2013-07-23 22:07:56 +00:00
v.audacity
46413b00c3 Steve says this fixes a compiler warning on Linux, "Audacity-devel] Bug 370 patch" thread. 2013-05-25 02:43:24 +00:00
v.audacity
483d723a5d fix for bug 584 2013-05-11 03:29:15 +00:00
martynshaw99
1af35d4168 Removal of all the stuff marked as 'Experimental CLEANSPEECH' about a year ago. 2013-04-29 23:23:14 +00:00
richardash1981
b95918fe52 apply parts of Campbell Bartons patch for cleaning up compiler warnings: add static qualifiers to methods, ensure prototypes match definitions and some whitespace and comment changes 2013-02-22 21:29:19 +00:00
v.audacity
9d0daf8662 Campbell Barton's patch to turn many, many tabs to our 3-space convenbtion 2013-02-20 23:42:58 +00:00
martynshaw99
163c3d1430 Fix for bug 600, 'Labelled Regions > Copy incorrect if point labels exist' 2012-12-08 20:18:25 +00:00
martynshaw99
04510b1f81 Split tracks where the labels are, rather than joining the together. 2012-11-28 01:19:49 +00:00
v.audacity
85715cfdf1 David Bailes patch for bug 588 2012-10-11 00:49:06 +00:00
v.audacity
b53669ad3d toward bug 584 2012-10-05 23:00:56 +00:00
v.audacity
e39d816002 Increase height of default window, per follow-on to http://bugzilla.audacityteam.org/show_bug.cgi?id=547#c10.
Restore a comment.
2012-08-04 23:37:44 +00:00
v.audacity
ebb4f530bb Apparently, wxConfigBase::Write() does not update values for next access on all platforms unless Flush() method is called. Added many calls to wxConfigBase::Flush() to make sure the Rad() calls get the right values. 2012-08-02 06:03:19 +00:00
v.audacity
c41872498f Revert r11887 per http://bugzilla.audacityteam.org/show_bug.cgi?id=551#c3. 2012-08-02 00:06:05 +00:00
v.audacity
8d92b35f9c Further widen default window, per http://bugzilla.audacityteam.org/show_bug.cgi?id=547#c10. 2012-08-01 22:48:27 +00:00
v.audacity
9c2e9e50e8 2012-08-01 05:53:08 +00:00
v.audacity
1926c7745f Per http://bugzilla.audacityteam.org/show_bug.cgi?id=547#c8, default Selection Toolbar TimeTextCtrls to "hh:mm:ss + milliseconds". Note this also defaults it for any TimeTextCtrl for which the pref is "".
Also widened the default project window to 700 pixels, to accommodate the wider Selection Toolbar controls.
2012-08-01 01:09:03 +00:00
v.audacity
a42f5b45cb http://bugzilla.audacityteam.org/show_bug.cgi?id=545 (P2)
Remove crash-prone "Audio Cache" feature.
2012-07-18 01:18:59 +00:00
james.k.crook@gmail.com
20f6717123 Corrected some typos (for the word 'experimental') in internationalisation hints. 2012-06-17 08:34:31 +00:00
james.k.crook@gmail.com
f98809817d Fixed bug in zoom-to-selection, where it would not work if the selection was 'beyond the end of time'. 2012-05-05 18:41:48 +00:00
martynshaw99
758a8f65e6 Inserting CLEANSPEECH ifdef's around anything CleanSpeech so that CleanSpeech can be removed easily in the (not to distant) future. The idea is never to turn CLEANSPEECH on, but fix any (unexpected) differences this may make. 2012-04-26 22:57:04 +00:00
james.k.crook@gmail.com
dd97cae3d9 Removed some (hidden) Cleanspeech cruft that had been used to disable effects. Made some static text open to translation. Added more i18n hints (thanks Thomas Breinstrup). 2012-04-05 11:21:15 +00:00
james.k.crook@gmail.com
860e19ae47 Fix Bug 432: Cleanspeech mode will now not activate, even if it was enabled in a previous version (and even if it has been deliberately added to audacity.cfg). 2012-03-25 20:22:10 +00:00
james.k.crook@gmail.com
c85dc5bb87 Fixed missing wxT(). Use logger even in debug builds. 2012-03-22 23:08:39 +00:00
james.k.crook@gmail.com
69476e785c Fixed more internationalisation hints. 2012-03-20 15:36:02 +00:00
v.audacity
0d08f11504 Fix bug 187. 2012-02-14 00:18:29 +00:00
james.k.crook@gmail.com
51bd1c2a4d If logger does not exist, don't try to delete it. 2012-02-09 12:56:18 +00:00
v.audacity
52a10774d4 Apropos http://bugzilla.audacityteam.org/show_bug.cgi?id=322, put the project name in the Save Project dialog titles. 2012-02-02 02:42:00 +00:00
richardash1981
e1724c8609 Destroy the project history window before either the Track Panel or the Toolbars, as the destruction of the History Window may result in events being sent to the latter two (esp. on Mac). If the events are sent to things we have destroyed, then we get crashes ...
Patch by Leland
2011-12-22 22:41:17 +00:00
v.audacity
bb60f84d38 clean-up 2011-12-02 06:44:56 +00:00
james.k.crook@gmail.com
ed66bf3fab Changes to allow mod-track-panel. 2011-11-25 20:40:26 +00:00
v.audacity
458152070e Fix some problems with asserts in 11308. Further wording corrections. 2011-11-18 03:47:43 +00:00
v.audacity
e93d1124ee Fix build on Ubuntu. Remove unused var. 2011-11-18 00:34:29 +00:00
v.audacity
59db8d4ad4 See http://bugzilla.audacityteam.org/show_bug.cgi?id=451#c31 and http://bugzilla.audacityteam.org/show_bug.cgi?id=451#c32. 2011-11-16 05:59:48 +00:00
v.audacity
2bac0a07ed rewordings per http://bugzilla.audacityteam.org/show_bug.cgi?id=451#c21 2011-11-15 04:03:01 +00:00
v.audacity
7e44897d6e Increased the warning level for 1.2.x projects, that user should back them up before trying to open in this and later versions. Previously, most of this string was duplicated 3 places, and varied only slightly (no warning about backup) for 1.2.x projects. Made the warning consistent in global string. Also clarified some logic and got rid of overridden var assignment. 2011-11-03 22:55:47 +00:00
v.audacity
4038f214cd (bug 451, p2) Add some asserts against mMaxSamples. In Sequence::Paste(), correct var largerBlockLen declaration to be sampleCount, not the smaller int, that can overflow on comparing to sampleCount and add log error msg. Add alert dialog, log warning, and limitation in Sequence::WriteXML() if mMaxSamples exceeded. Obviate EnvPoint::WriteXML(), unused. A few comments on some "TODO" comments. Make DirManager::WriteXML() fail in debug mode, as it should not be called. 2011-11-01 04:39:14 +00:00