1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-06 14:35:32 +01:00
Commit Graph

360 Commits

Author SHA1 Message Date
lllucius
398b5153c7 Fix a few accessibility issues pointed out by David. 2013-10-30 20:44:22 +00:00
lllucius
ded45eb85e Adding convenience method SetFormatName(). 2013-10-27 01:26:04 +00:00
martynshaw99
1092d982ee Mouse wheel caused hang.
mScrollRemainder was not getting initialised and so the first time TimeTextCtrl::OnMouse got called, 'steps' got set to a random number (very large and -ve here) and Adjust got called with -2147483648, -1.  So we need to initialise mScrollRemainder.

This has been wrong for a while, from what I see.  Previous version used Decrease and Increase which were immune to the problem.

'Adjust' decrements steps, whether it is positive or negative to start with.  It is designed to have 'steps' strictly positive, so make sure of that.

Make sure OnMouse uses Adjust correctly.
2013-10-26 21:29:51 +00:00
lllucius
c0c2d70a13 Remove extra qualification for gcc. 2013-10-23 21:06:59 +00:00
lllucius
71fde85bfe Bug 115 - Snap-to causes spurious 'toolbar' to appear momentarily at start of dragging.
Completes James' TimeConverter work

This completes the work that James started.  It moves most of the non-GUI
related processing from TimeTextCtrl to James' TimeConverter class.

Other changes include:

1)  TimeTextCtrl now expects the format name instead of the format string to be
passed when creating a new instance.  I found that almost all cases created the
instance with a blank format string and then set the string after creation.

2)  To simplify maintenance and prevent a possible discrepancy between the two,
Increase() and Decrease() were merged into a single routine.

As a result:

1)  All cases where a TimeTextCtrl was being used to extract information and
not actually display a control have been changed to use TimeConverter instead.

2)  All cases where TimeTextCtrl was being created with an empty format and
then immediately followed by something like this:

    tt.SetFormatString(tt.GetBuiltinFormat(c->GetFormat()))

    have been changed to pass the format name instead of the format string when
creating the TimeTextCtrl instance.
2013-10-23 21:01:52 +00:00
lllucius@gmail.com
08c94d5372 Backported wxWidgets-3.0rc1 number validators
The are pretty darn slick.  There's an integer one and a floating point 
one.  They support automatic range limiting (ex., you can't even type a 
number outside of the range), proper number formats (ex., you can't 
enter a decimal point in an integer field), you can't enter bogus 
numbers like "0.3-.2", thousands separators are supported, decimal 
precision may be specified and proper number formatting for string 
values (or automatic conversion to int, double, float, etc.).
2013-10-23 20:33:17 +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
61f8e16026 Make sure columns are full width for key and name views. 2013-10-06 07:37:26 +00:00
lllucius
7f8152ff49 Due to the last change (different filter behavior based on view type), KeyView
now needs to protect itself from residual line numbers and selection.
2013-10-06 06:25:34 +00:00
lllucius
83a12b3507 Can't set the brush before selecting the bitmap...DOH! 2013-10-05 02:38:12 +00:00
lllucius
1898cd6349 In tree view, search label and key.
In name view, search label.
In key view, search key.
2013-10-04 03:15:51 +00:00
lllucius
7e8d9b104a Change the value reported by accessibility to be view specific...DOH!!! 2013-10-03 15:04:07 +00:00
lllucius
98aa84e9f8 Have screen readers say full label, not just the menu item. 2013-10-02 17:42:51 +00:00
lllucius
3d0bbdf787 Fix off by one in accessibility.
Fix moving to next entry when pressing a key.
Fix hotkey edit box not accepting "RETURN" key
2013-10-02 16:36:53 +00:00
lllucius
856c51e6a6 Okay, let's try this again. Now there's only a type of external index...none of
this "use aline index here and a node index here" stupidity.
2013-10-02 08:17:16 +00:00
lllucius
39e7b3e08f Adds access keys
Saves view type
Defaults to fully expanded upon entry
Live search...may need to adjust the timer
Uses black on white for the icon (should? fix assertion on Linux hopefully)

(will do more a bit later)
2013-10-02 00:05:39 +00:00
lllucius
b0e65b57c2 Adding EXPERIMENTAL_KEY_VIEW that provides a new keyboard binding view. 2013-10-01 06:00:13 +00:00
martynshaw99
4f5de6d5e3 Quiet a bunch of 'unreferenced formal parameter' warnings on Windows.
The remaining ones are 'formal parameter's referenced by other platforms.
2013-09-25 22:57:54 +00:00
lllucius
5c4ac939db Allow blanks labels to be retained when leaving the Label Editor. 2013-09-24 05:29:37 +00:00
martynshaw99
4ce2643d5f Remove the
// Indentation settings for Vim and Emacs
etc. lines from all files, as Campbell's patch (except for other changes to Languages.cpp)
2013-09-24 00:14:37 +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
6a42aa5f41 more changes per Campbell Barton's suggestions 2013-08-05 01:45:10 +00:00
james.k.crook@gmail.com
f56f0f3dd7 Only refresh play button if its state has changed. 2013-07-26 14:12:06 +00:00
v.audacity
ce8f6b09da Substantial code simplification and clarification, but should be no functional changes. The Effect does not need to store all the param values the dialog provides. 2013-06-19 02:25:21 +00:00
martynshaw99
37f74e27bb Adding the ability to load 'non-recognised' modules, with a warning to the user (the main point).
Removing duplicate code from LoadModules, at the expense of making  ModuleManager::Initialize more monolithic.

Make MultiDialog a bit more general.

Remove a few warnings.

Some logging has been turned back on when loading libs, we could turn it off again.

To test you could compile mod-nyq-bench and make sure it is available on the bottom of the 'View' menu, then unselect it in the Prefs -> Modules an retry.
2013-06-05 00:35:10 +00:00
martynshaw99
b04c7f18a7 Steve's fix for bug/enhancement 74. 2013-03-17 23:33:28 +00:00
v.audacity
c26b3c6b49 Campbell Barton's further patch to turn many, many tabs to our 3-space convenbtion 2013-02-23 04:33:20 +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
richardash1981
72f6eded20 I got fed up of unused parameter warning from my compiler hiding the warnings I wanted to see, so have added WXUNUSED annotations to a lot of widely used header files, and cleaned up trailing junk on the way. 2012-12-31 16:57:15 +00:00
richardash1981
55be06c9e4 commit a large patch by Maarten Baert maarten-baert<at>hotmail<dot>com to fix and improve time track support. Several fix-me issues remain but none are new with this patch. 2012-12-19 21:49:25 +00:00
v.audacity
4b99632c73 Sven Giermann's patch for bug 598 2012-12-17 02:00:32 +00:00
v.audacity
fd17ae3903 David Bailes patch for bug 577 2012-10-13 00:59:14 +00:00
v.audacity
2727b932ed David Bailes patch for bug 587 2012-10-11 00:43:32 +00:00
v.audacity
532e9d9518 David Bailes patch for bug 33 2012-10-05 23:35:56 +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
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
711f4a8d21 Modify several tooltips to be more concise, consistent, grammatical, and not platform-dependent. 2012-07-25 22:23:48 +00:00
martynshaw99
6ae1c7855e Messages about what is going on.
Resizing the ProgressDialog so one can see them.
2012-05-17 00:17:51 +00:00
james.k.crook@gmail.com
0a53820106 Fix for ruler elements disappearing at high zoom beyond time 5:57:54.84. 2012-05-06 17:47:52 +00:00
james.k.crook@gmail.com
dee908b31e Saner sample rate (in comment). 2012-04-28 21:09:07 +00:00
james.k.crook@gmail.com
66c6d8f570 More internationalisation hints. 2012-04-28 18:17:38 +00:00
james.k.crook@gmail.com
f34863833b i18n-hint for Grabber. 2012-04-28 17:33:28 +00:00
james.k.crook@gmail.com
0b75a8ab02 Added comment on hard coded sample rate. 2012-03-25 20:53:59 +00:00
james.k.crook@gmail.com
1f17e0bb45 Fix BUG 459: TimeText Control values skip a whole second. This was due to rounding error, rounding not being propagated, so 4.9995 showed as 4.0000. 2012-03-25 18:09:25 +00:00
lllucius
5f1ef8f8fa Adding wxMac accessibility. Should resolve:
http://bugzilla.audacityteam.org/show_bug.cgi?id=139
2012-03-21 03:09:06 +00:00
james.k.crook@gmail.com
6c71a5e170 Fixed more internationalisation hints. 2012-03-20 16:48:57 +00:00
v.audacity
e42d9242cd Fix http://bugzilla.audacityteam.org/show_bug.cgi?id=477 (P1). 2012-02-27 01:41:02 +00:00