Commit Graph

1175 Commits

Author SHA1 Message Date
Paul Licameli 3480317ecd Move FileConfig::Warn() into AudacityFileConfig as an override 2021-01-31 11:28:12 -05:00
Paul Licameli c853450ce0 Hide two-phase construction of AudacityFileConfig in factory function 2021-01-31 11:22:48 -05:00
Paul Licameli 030ba78c5f Demote Get/SetVersionKeysInit from AudacityPrefs into FileConfig 2021-01-31 11:00:34 -05:00
Paul Licameli 05d5f2677c Fix comments, remove unnecessary #include 2021-01-31 08:51:31 -05:00
Leland Lucius 21296b0cf1 New wrapper for wxFileConfig to fix several bugs
Bug 2135 - Audacity crashes if launched with a locked pluginregistry.cfg file
Bug 2651 - If pluginregistry.cfg gets locked while Audacity is active the Plug-in Manager is blocked - with no help
Bug 2650 - Virgin launch fails with no pluginregistry.cfg file created
Bug 1264 - Writing to locked audacity.cfg not reported to user
Bug 2649 - Launching Audacity with a locked audacity.cfg file gives not one but three error messages - and no help
Bug 2652 - User is not warned if they launch Audacity with a locked pluginsettings.cfg file
2021-01-31 04:24:35 -06:00
Paul Licameli 23f32a8319 Remove some unnecessary #include directives 2021-01-30 12:37:47 -05:00
David Bailes 6c44b4fdc0 Bug 2648: Grid accessibility: location can be incorrect.
The focus location provided to assistive technology by GridAx::GetLocation() does not take into account horizontal or vertical scrolling. So if there is any scrolling in either the Metadata or Labels editor, the focus location provided to assistive technology is not the same as the focus location shown by wxWidgets.
2021-01-29 16:25:26 +00:00
Leland Lucius 3e8e5aa1f5 Ensure selected cell in visible 2021-01-27 10:03:33 -06:00
Leland Lucius e5bb95d6f2 Bug 2083 - Labels Editor has confusing selection interface - can cause wrong labels to be deleted 2021-01-26 12:18:51 -06:00
Leland Lucius 3d632d397d Ensure row selection mode is used in grids 2021-01-25 12:57:33 -06:00
Leland Lucius 0fcf9ffb52 Bug 2083 - Labels Editor has confusing selection interface - can cause wrong labels to be deleted 2021-01-25 01:13:02 -06:00
luzpaz 7a3bdcf3f2
Fix typos (user facing and non-user facing) (#727)
Found via `codespell v2.1.dev0`  
`codespell -q 3 -S *.po,./lib-src -L parm,parms,toke`
2021-01-24 09:46:08 +00:00
Leland Lucius 4b07fbaa8a Bug 2642 - Metadata Editor: Cut and paste does not work 2021-01-23 17:27:31 -06:00
Leland Lucius 50e803a974 Rework of commit b4a0be9
See comments 6-9 in bug #2642 for the problem it caused.
2021-01-22 15:16:38 -06:00
Leland Lucius b4a0be99cd Bug 1579 - Mac: Cut/Copy from file save dialogs using shortcuts does not work
And Bug 1300 - Mac: COMMAND + V paste limitations in standard file save dialogs
2021-01-21 18:45:01 -06:00
Leland Lucius 171d8cf26c Bug 2613 - Selection bar sample display incorrect in German
This changes the way the decimal point is specified in the
PO files...uses '<' for "," and ">" for ".".

By doing this the translator is free to use "." or "," in the
digits fields as their language requires.
2021-01-12 19:19:44 -06:00
freddii 534359de6c
Fix minor typos (#720)
Co-authored-by: freddii <https://freddii@github.com>
2021-01-12 11:56:09 +00:00
Paul Licameli 58df1342c2 Bug1579 NOT fixed by this...
... but this may be a necessary piece of any fix that might be found.

See also recent commit c67842f525.

wxDF_UNICODETEXT replacing wxDF_TEXT was a necessary but not sufficient step to
fix a cut-copy-paste problem on Mac, and I suspect the same will be true here.

See also commits bbd369df1b and
9036c00152 for the commits that introduced this
code.

The partial fix they accomplished in 2.1.3 is no longer working, whether because
of wxWidgets changes, or macOS changes, or both.
2020-12-03 19:39:05 -05:00
Paul Licameli c5c7a6d08a Fix Mac build 2020-09-14 15:05:42 -04:00
James Crook b0e931bdd4 Fix compile error on Linux
(pointer to on-stack temporary).
2020-09-14 19:43:58 +01:00
James Crook caf4eadb97 Help button for many warning messages; Restored warning icon.
The error icon was gone because we are now using the ErrorDialog, which didn't have it.  So added back explicitly.  I decided to go with wxART_WARNING rather than wxART_ERROR because nearly all of these present as warnings.
2020-09-14 17:43:28 +01:00
Leland Lucius 85b4a5376f AUP3: Make suggested directory preferences changes
In addition, I've extracted the wxTextCtrl wrapper from the
TimerRecordDialog intto widgets/wxTextCtrlWrapper.h and made
it the default for ShuttleGui::AddTextBox(). This way readonly
text controls are always included in the tab order.
2020-07-29 00:08:48 -05:00
Paul Licameli bd6536f3c4 Remove obsolete mentions of blockfiles in comments & incomplete types 2020-07-20 19:03:31 -04:00
Henric Jungheim 639a82a4a0
Be more careful when handling grid keyboard navigation. (#589)
If the grid is empty or does not have a selected cell, the current
row and column must still maintain these class invariants:
   -1 <= current_row < rows
   -1 <= current_column < columns
    if either current_row or current_column is -1, then the other
       shall also be -1

wxGrid uses wxGridNoCellCoords to test for current_row == -1 &&
current_column == -1.  We treat the case where only one
of the coordinates is -1 as if both are -1.
2020-06-29 16:34:50 +01:00
Leland Lucius e7e27aa7e9 Bug 2478 - Windows: with an empty rules list in "Extended Import" prefs - Tab or Home crashes Audacity 2020-06-15 08:55:38 -05:00
Paul Licameli 04a0eb4370 Fix comments 2020-06-14 13:44:52 -04:00
James Crook 4267ba0490 Bug 2473 - Linux: Numbers on meters have opaque backgrounds 2020-06-09 16:36:15 +01:00
SteveDaulton fdc978e871 Fix Bug 2469 2020-06-09 13:04:46 +01:00
Leland Lucius 419e152ebd Bug 2403 - Undocking meter toolbars while playing/recording results in a frozen meter 2020-05-31 02:37:07 -05:00
Leland Lucius 8ae8e0f0a5 Bug 2458 - Possible crash when clearing text field in Gain dialog 2020-05-28 20:09:14 -05:00
Paul Licameli fa4d35296e AllThemeResources.h has a .cpp & doesnt include Theme.h...
... (it used to, via MacroMagic)

This splits a cycle of 8 into 6 + 1 + 1
2020-05-28 05:50:24 -04:00
Paul Licameli 63b9b60542 Let's fix that again... good for Windows and the others too 2020-05-27 22:20:15 -04:00
Paul Licameli ae966c88cc Fix Windows build broken by a57b63c63 2020-05-27 20:47:53 -04:00
Paul Licameli 4ff0a9d74e Can build for windows without precompiled headers...
... Requires some more wx header inclusions, a renaming of CopyFile (to avoid
colliding with a certain macro changing it to CopyFileW), and an explicit
deletion of a copy constructor and assignment (to avoid generation of
std::vector members for an incomplete type)
2020-05-27 17:36:25 -04:00
Leland Lucius 49c95973cd Try my hand at using XO()
Did I do it right Paul?
2020-05-26 20:51:10 -05:00
Paul Licameli af26d0438c FileDialogPrivate.* include our Internat.h for macro _ ...
... or (win) just don't use _ when writing to the log
2020-05-26 21:19:29 -04:00
Paul Licameli 2a91f91287 Revert "Break cycle of FileDialog and FileDialogPrivate"...
... It didn't really break the cycle, because there were still indirect
inclusions via AudacityHeaders.h.

This reverts commit 4f78874978.
2020-05-26 15:24:00 -04:00
Paul Licameli 66c5b76573 Simplify public interface of FileHistory 2020-05-26 10:47:47 -04:00
Paul Licameli 4f78874978 Break cycle of FileDialog and FileDialogPrivate 2020-05-26 02:05:06 -04:00
Paul Licameli 7fbfc2b292 Finish the job of 30dbdf4, deleting abandoned source files...
... And correcting #include paths, and removing mentions in read-me files, and
correcting CMakeLists.txt
2020-05-25 17:21:05 -04:00
Leland Lucius a5d765c9c5 Stop using deprecated function 2020-05-24 16:54:15 -05:00
Leland Lucius 30dbdf40a9 Cleaning up lib-src
FileDialog goes into audacity/src/widgets and the mod-* directories go into
audacity/modules.

This leaves nothing in lib-src that isn't a 3rd-party libs or supporting
files.
2020-05-24 16:21:26 -05:00
Paul Licameli 8ce72748bf CommandManager stores only stripped menu names (no & characters)...
... Keyboard preference dialog does not need to repeat the stripping
2020-05-23 22:42:21 -04:00
Leland Lucius fa878ef05b Adjust ASlider for wx313 2020-05-23 13:08:21 -05:00
Paul Licameli b81c03c194 Change the menu labels in vertical rulers...
... and recompute popup menu tables that depend on preferences.

The code for labels in the rulers was unsatisfactory because

(1) rescanning and editing the post-translation strings is a hack to avoid, and
(2) separating the hints like "Shift-Left-Click" with a tab character made them
invisible on Mac.  So instead, append strings like " (Shift-Left-Click)"
2020-05-23 13:58:22 -04:00
Paul Licameli 2527bdecaf Add and correct various comments 2020-05-23 06:00:56 -04:00
Paul Licameli b1cf7e57cb Simplify AButton...
... Don't need another constructor just to do conversions from wxImage to
ImageRoll, which can happen implicitly
2020-05-23 05:43:13 -04:00
Paul Licameli d373e27840 Remove some unused forward declarations and #include directives 2020-05-23 05:32:01 -04:00
Paul Licameli 7fb4652c88 Remove some unused functions and forward declarations 2020-05-23 05:16:59 -04:00
Paul Licameli 4d09705a73 Change XO to XXO in many more places, with no effects at all...
... because the two macros have the same expansion, and are both checked for
in the --keyword arguments passed to msgfmt by locale/update_po_files.sh.

This commit makes ONLY such changes, and comments in Internat.h.  It is big
but quite harmless.

The intention is to introduce a type distinction in a later release, by defining
XXO differently.  XXO is used where & characters in strings (for hotkeys of menu
items or control prompts) are permitted, XO where not.
2020-05-22 13:07:50 -04:00
Paul Licameli 1b2d4e26ba Consistently compare to translation of "Command" in KeyView.cpp...
... note that "cat" compared with it is concatenated with _("Menu") and
stored in KeyNode::category, which is also compared elsewhere with
CommandTranslated.  So this change in one comparison is the right one.
2020-05-22 13:07:50 -04:00
Paul Licameli 44b30ca4e1 Don't internationalize "e" (introducing numeric exponent) 2020-05-22 13:07:49 -04:00
Paul Licameli a0045f8772 Remove some macro _ in NumericTextCtrl & substitute-don't-concatenate 2020-05-22 13:07:32 -04:00
Paul Licameli 630bc15fd3 Fix some misplaced i18n-hint comments 2020-05-22 12:48:49 -04:00
James Crook 67849b33ae Bug 2399 - Selection and Time toolbars incorrectly display sample format 2020-04-26 11:04:18 +01:00
James Crook 0a95de6c06 Bug 2241 - Spectral Selection Toolbar displays frequencies 100x too small in some languages 2020-04-20 23:36:05 +01:00
Paul Licameli 23f5811061 Fix uninitialized values 2020-04-20 14:54:04 -04:00
Leland Lucius 6c605c8d6a Stop ASliders from flashing when entered/changed 2020-04-18 16:40:52 -05:00
Leland Lucius 01ccb518fd Bug 2390 - Linux: Nyquist plug-ins with multi-choice widgets are not accessible 2020-04-17 09:54:08 -05:00
Leland Lucius 383000557e Reduce flickering when Time toolbar is huge 2020-04-13 09:49:53 -05:00
Paul Licameli 30ac43e195 Fix more comments ("it's" -> "its") 2020-04-12 18:49:22 -04:00
Leland Lucius a5db7bbb2b Bug 2318 - Linux: Time Toolbar is needlessly resized too large when accommodating longer time format 2020-04-12 01:14:08 -05:00
Yuri Chornoivan d1ada5f08c Fix minor typos 2020-04-11 10:06:24 +01:00
Paul Licameli 61abb87a77 Reviewed all i18n-hint comments...
... Moved many misplaced ones, which msgfmt would not have extracted into
audacity.pot.

Duplicated some of them, to appear with related but distinct msgids.

Added a few new comments.

Deleted one that was no longer needed in ProjectManager.cpp.
2020-04-05 09:00:00 -04:00
Paul Licameli c001fd97f7 fix comment 2020-03-14 13:47:49 -04:00
Leland Lucius 867775ef99 Looks like FindFocus() on wxGTK can return NULL 2020-03-10 12:56:43 -05:00
Leland Lucius 0e42bd42b6 Bug 682 - Linux: Keyboard Preferences: focus trapped in Search box
Gotta love when the solution is right in the bug report.  :-)
2020-03-10 09:52:58 -05:00
Leland Lucius a7bd7331ac Bug 625 - Track Pan / Gain sliders don't show tool tip on hover 2020-03-09 11:06:07 -05:00
James Crook 4884f59982 Bug 2316 - Meter scale overprints meter options button 2020-03-02 19:29:48 +00:00
James Crook 6c69484899 Bug 2285 - Many action buttons and items in Toolbars activate the action on right-click (expect context menu or null action) 2020-03-01 22:00:05 +00:00
Paul Licameli a461b7a273 Possible fix for intermittent assertion violations at Linux startup 2020-02-29 17:13:53 -05:00
James Crook a48483bc19 Bug 2298 - Font size per-platform.
My previous fix disrupted mac font size.  Now the code should have the right font sizes for each platform.
2020-02-25 10:56:31 +00:00
James Crook 50d16867d5 Bug 2258 - Sliders in the slider dialogs when double-clicked yield a further slider dialog 2020-02-24 21:23:16 +00:00
James Crook 87034a0a67 Bug 2298 - Windows: Font size reduced for Vertical Scale, Timeline and Time Track numbers 2020-02-24 19:25:52 +00:00
James Crook b2d9f7c396 Bug 2305 - The Gain, Play-at-Speed and Mixer Board sliders do not display the numeric value in the tooltip when sliding 2020-02-17 21:55:32 +00:00
Paul Licameli 87382d51d8 Demote convenience function that makes computed items to base class 2020-02-15 14:44:17 -05:00
Paul Licameli 4d7a9f00a1 Popup menu table for wave track has member function to get the track 2020-02-15 13:52:41 -05:00
Paul Licameli cfd07af245 PopupMenuTable supports registration 2020-02-15 13:49:13 -05:00
Paul Licameli 46f958f376 Use computed registry items for conditionally shown popup menu items 2020-02-14 21:38:07 -05:00
James Crook 9985b8a9b8 Fix Big Time TimerToolBar, Stage III
Fixed issue where format selector could disappear.
Fixed upgrade from 2.3.3.
Remembers time format.
2020-02-14 12:02:21 +00:00
Paul Licameli db3543500c Each popup menu item can carry a callback to check or disable it 2020-02-09 23:48:40 -05:00
Paul Licameli 00a419a280 Store a reference to a handler object in each PopupMenuItem 2020-02-09 23:48:40 -05:00
Paul Licameli e1e0869e26 Replace some macros for popup menus with function calls 2020-02-09 23:48:40 -05:00
James Crook 30b26a0b99 Add <wx/bmpbuttn.h> needed by Linux. 2020-02-09 20:46:16 +00:00
James Crook 41619af8cd Bug 2274 - Enh: Dialog for orphan block files has no "?" Help button
also

Bug 2273 - Enh: Dialog for missing block files has no "?" Help button

These now link to the appropriate page in the manual.
2020-02-09 20:26:29 +00:00
Paul Licameli 8f88aa106e Bug2312: don't crash using Wave Color, Format, Rate sub-menus of TCP 2020-02-08 13:20:18 -05:00
Paul Licameli 540f2c5e67 Restore separators after "Move Track to Bottom" in TCP menus 2020-02-06 17:52:45 -05:00
James Crook a09885e995 Fix Big Time TimerToolBar, Stage II
- Naming (Time Toolbar, not TimerToolBar Toolbar)
- Default time format hhmmss
- Lower dock
- Enabled by default
- Sensible min and max font size
- Sensible min and initial width
- Omit Audio Time from Selection Toolbar
2020-02-06 09:40:30 +00:00
Paul Licameli 23c7122985 Populate popup menus with a registry visitor 2020-02-06 00:52:54 -05:00
Paul Licameli 99e3dd5d3f Require an identifier for each popup menu item 2020-02-06 00:52:54 -05:00
Paul Licameli f68da05c1d PopupMenuTable ctor requires an identifier 2020-02-06 00:52:54 -05:00
Paul Licameli 08b1be5514 Macros describe popup menus' sections, not their separators 2020-02-06 00:52:54 -05:00
Paul Licameli 3517b900b1 PopupMenuTable need not publicize its wxMenu subclass 2020-02-06 00:52:54 -05:00
Paul Licameli 9435e97fb8 Store popup sub-menu caption with its item table 2020-02-06 00:52:53 -05:00
Paul Licameli 1e37172e6d Popup sub-menus don't require ids 2020-02-06 00:52:53 -05:00
James Crook 8168dce551 Fix Big Time TimerToolBar, Stage I
- Update on idle (new idiom from Paul)
- Dock at x1 or x2 size
- Smooth resizing
- Take some account of width when resizing
- Promote Resizable docking code to ToolBar class
2020-02-05 14:24:59 +00:00
Paul Licameli 3b77af5dfc Remove TranslatableStringArray.h 2020-02-02 18:02:32 -05:00
Paul Licameli 6e57428e47 PopupMenuTable does not need TranslatableArray...
... because the strings in it are TranslatableString, not translated
2020-02-02 17:32:23 -05:00
Paul Licameli 48b5988c7d Be sure PopupMenuTable::DestroyMenu() gets called...
... though it didn't matter yet for any of the overrides
2020-02-02 17:16:11 -05:00
Paul Licameli 646afe9559 comments 2020-02-02 17:16:11 -05:00