1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-20 06:10:06 +02:00

600 Commits

Author SHA1 Message Date
Paul Licameli
a30defe8ca Redo "Provide STL idiom for iterating tracks..." ...
... Being careful not to use operator == on a default-constructed
std::list::iterator, which violates assertions in the MSVC libraries.

This reverts commit 7fb5ec4b7ab4f9302bd94446db86924cd2b8d67f.
2018-01-14 14:25:02 -05:00
James Crook
7fb5ec4b7a Revert "Provide STL idiom for iterating tracks..."
Unsafe on MSVC 2013.
2018-01-14 14:24:21 +00:00
Paul Licameli
f9dab3679c Provide STL idiom for iterating tracks...
... and require qualified name access to use the underlying std::list iterators
that return shared_ptr to Track.

Which should not be done very much outside of class TrackList, but a few
places need it.
2018-01-13 19:37:05 -05:00
James Crook
34531b62fc Shift+Z for Zoom Toggle. Theme tweaks.
Dank and HiContrast themes now with improved Zoom Toggle icon.
Microphone and Speaker icon bolder, not greyed out, on Dark theme.
2018-01-11 19:24:26 +00:00
James Crook
5da84b74ae Zooming Tweaks (for repair work) and Wording changes.
Repair work involves lots of zooming in and out, to use the repair effect on up to 128 samples.
Ctrl Mouse-Wheel zooming now will zoom to ends of selection, if available, or mouse position otherwise.
Zoom-Toggle hyphen removed and Preset2 changed.
Button tooltips tweaked to match menu entries.
2018-01-10 12:00:27 +00:00
James Crook
21192a7e7b ZoomToggle - Changes from user feedback.
- Enable ZoomToggle Button by default.
- Set less extreme defaults.
- Repurpose 'Z' shortcut (from Zero Crossings)
2018-01-08 12:51:16 +00:00
James Crook
0cc9c6bc3b Zoom Toggle
Added preferences for Zoom-Toggle and put into menus.
New helper functions for determining zoom scaling.

Optional EXPERIMENTAL_ZOOM_TOGGLE_BUTTON added, and Light theme updated.
Not enabled for 2.2.2.
2018-01-07 17:14:33 +00:00
Paul Licameli
cafbff9ff8 Separate plugin accessors for translated and unstranslated strings...
... because I want to make a type distinction later.

Replace calls to GetXXX() without argument, with GetTranslatedXXX() --
this reveals a subtle error, see next commit.
2018-01-05 18:30:35 -05:00
Paul Licameli
e19a4fa943 Timer record exits Audacity more gracefully...
... the direct call to exit(0) caused SIGABRT for me during shutdown on Mac.
2018-01-05 16:20:31 -05:00
Paul Licameli
ab6de1181d No more functor objects; all command handler functions take same args 2018-01-05 09:27:29 -05:00
Paul Licameli
77c392d29c AudacityProject::OnEffect wraps new function DoEffect 2018-01-05 09:27:28 -05:00
Paul Licameli
6dead232f2 Pair CommandHandlerFinder with functor everywhere, but not used yet 2018-01-05 09:27:25 -05:00
Paul Licameli
1e3ab82a01 Effect commands store PluginID in CommandEntry parameter, not functor 2018-01-05 09:27:21 -05:00
Paul Licameli
3769fdea0e fix build 2018-01-05 01:00:14 -05:00
Paul Licameli
b53e7d7a8a change a comment 2018-01-05 00:54:13 -05:00
Paul Licameli
c66eae1a46 Fix uses of wxPLURAL and update audacity.pot ...
so that
(1) we really get msgid_plural entries in the .pot
(2) i18n-comments get extracted too (needs workaround of xgettext bug)
2018-01-05 00:35:04 -05:00
Paul Licameli
baec816142 Rewrite the composition of clip messages in i18n-friendly way 2018-01-04 09:43:25 -05:00
Paul Licameli
def1d52505 Substitute, don't concatenate, when composing localized strings...
... Avoid English syntax bias.
2018-01-04 04:30:46 -05:00
James Crook
a2c37d6435 Some Doxygen comments
I'm testing out some ideas on using doxygen more, and these sample
changes will help with that.
2018-01-03 15:10:58 +00:00
Paul Licameli
0ec42f3dd2 Fix some English grammar biases...
... Avoid small out-of-context words and phrases in translation catalog that
are then substituted into larger translated phrases with blanks.

(What if my language has declensions?  How do I know the right form to use
for the phrases?)

Instead, give the translators larger in-context phrases to work with, even if
that requires replications of phrases with small variations.
2018-01-02 22:15:33 -05:00
Paul Licameli
e0970ad1e8 Remove unnecesary Format, Printf, casts to wxString 2018-01-01 21:53:51 -05:00
Paul Licameli
7fd78183d2 Remove needless uses of wxString::c_str() in wxString::Format...
... and similar wx "variadics," which all treat wxString smartly enough that
you don't need this.

Don't need c_str either to convert wxString to const wxChar * because
wxString has a conversion operator that does the same.
2018-01-01 20:34:33 -05:00
Paul Licameli
ccb4bbac33 Translate "Message" as default title of message box...
... This required a sweeping change of all calls to wxMessageBox!  But it seems
safe to me, despite the great number of touched files.
2018-01-01 17:50:02 -05:00
James Crook
2108515938 Bug 63 - Analysis effects that create labels should give focus to label Track
If a generator, effect or analyser has created a new track, scroll to the bottom of the track list.
Acheived using new function, VerticalScroll()
2017-12-17 14:59:59 +00:00
Paul Licameli
cd06c04fa0 Use wxFprintf not fprintf and you don't need c_str 2017-12-16 11:54:18 -05:00
Paul Licameli
2dacaa56a9 Further simplification of commit a0fad21fec68a671655bb5158e37880d3fed78ba 2017-12-16 11:40:54 -05:00
Paul Licameli
a0fad21fec Remove special treatment of late additions to 2.2.1 i18n messages 2017-12-08 20:48:11 -05:00
James Crook
f463eda36c Clean up some dead code and MSVC warnings.
- Dead code from experiments in SelectionBar removed.
- Many warnings about unused parameters fixed with WXUNUSED()
- Many warnings about signed / unsigned comparisons cleaned up.
- Several 'local variable declared but not used' warnings fixed.
2017-12-08 15:20:39 +00:00
James Crook
b63e61d8e9 Menu item scrub -> seek and accelerator tweaks.
The scrub submenu only contained seek commands.
Merging the menus meant duplicated 'c' accelerator.
2017-12-08 10:59:38 +00:00
James Crook
1d05f14b07 Merged Ext-Bar and Ext-Command menus.
The toggle to switch the extra menu(s) on or off still says 'menus' (plural).  Decided not to change it as the submenus count as 'menus'.  Also we may later add extra menus to the track drop down and in other places.
2017-12-08 10:51:46 +00:00
Paul Licameli
dc76988bdd Menu name change to "&Export" was a bit late for localization...
... But see comments:  "Export" (though not "&Export") was already in
audacity.pot for 2.2.0
2017-11-18 21:47:52 -05:00
Steve Daulton
a612af5c05 Rename File > Save Other to File > Export
In response to user feedback that the Export command could
not be found.
2017-11-08 17:55:08 +00:00
Paul Licameli
1007980bcf fix a comment 2017-11-08 03:52:40 -05:00
Paul Licameli
e5c07fae84 some missed translations, i18n-hints 2017-11-05 21:01:53 -05:00
Paul Licameli
954a974422 Changed the conditional compilation for alpha/beta/release...
... In particular, don't put the extra information in MIDI device info for Beta

But still link to the Alpha manual.
2017-09-11 00:10:22 -04:00
Paul Licameli
d7cc85b1e1 Fix an untranslated string, change "Midi track" to "Note Track" 2017-09-04 14:09:56 -04:00
Paul Licameli
faa7d1828a Commands adjusting pan and gain are enabled during transport...
... though they do have a messy interaction with Undo if recording that should
be fixe.

You may get an undo history item that not only restores the gain and pan, but
removes a part of the recording.
2017-08-26 11:37:43 -04:00
James Crook
ce9938787c Use alpha or released or local manual for "help on selection".
Previously this was hard coded to use the online alphamanual.
Some other help-on-errors paths were hardcoded to use the online manual, and did not use local help even if available, so these were changed too.

Also two naming changes in the code:
ShowHelpDialog() became ShowHelp() because it typically shows the help in your browser, only showing the help in a dialog under certain circumstances.
The helpURL parameter became helpPage since it is usually a page name that is then elaborated into a url.
The Link() function became InnerLink().

Some careful http -> https changes made too.
2017-08-25 13:59:16 +01:00
Paul Licameli
a44dbf3a96 Correct the flags for enabling some menu items that were moved...
... See email thread at
https://sourceforge.net/p/audacity/mailman/message/36008688/
for the rationales

The system for specifying conditions for menu items really needs a thorough
rewrite in a future version.
2017-08-23 15:53:57 -04:00
Paul Licameli
ea14a117df Expose the benchmark tool in end-user builds 2017-08-23 11:46:11 -04:00
James Crook
50258c1f21 Bug 1564 - Enh: Don't include empty tooldocks in CTRL + (SHIFT +) F6 cycling 2017-08-17 12:42:36 +01:00
James Crook
12410fb552 Bug 143 - Rogue "Recent &Files" Status Bar entry generated by Effect Menus
Workaround for a bug that is actually in wxWidgets.
2017-08-16 15:27:47 +01:00
James Crook
e7d33e18a7 Bug 1664 - Two shortcut pairs do not work in focused Karaoke window 2017-08-15 23:09:31 +01:00
James Crook
fab1a2778b Bug 753 - Sort Tracks by Name may misbehave with stereo tracks. 2017-08-14 19:58:02 +01:00
James Crook
c15bbc59db Bug 634 - Timeline does not zoom correctly when playback is paused
Playing + Paused now treated EXACTLY the same as stopped with respect to zooming.
2017-08-11 21:51:50 +01:00
Paul Licameli
c7d949c021 Menu consistency: Previous before Next for tools & clip Move 2017-08-09 11:05:30 -04:00
James Crook
3302455e5f Allow loop play whenever we allow play.
In particular Shift+Space should now loop play a MIDI track.
2017-08-04 14:45:29 +01:00
James Crook
7baf22b9c0 J, K, Shift-J and Shift-K always enabled.
They now just don't do anything if there is no track selected.  (Request from Robert Hänggi)
2017-08-04 14:36:13 +01:00
Paul Licameli
a5594537bb "/DefaultOpenPath" is now in only one place 2017-08-03 08:05:22 -04:00
Paul Licameli
5d48e96942 Where FileSelector was used, default to Documents not cwd; save prefs 2017-08-03 08:02:33 -04:00