1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-04 09:39:42 +02:00

9545 Commits

Author SHA1 Message Date
Paul Licameli
193c4ae4c2 Remove unused things and obsolete comments in Menus.* ...
... This includes all that remained of MenuCommandHandler
2018-10-24 12:20:31 -04:00
Paul Licameli
06e40a26d2 Move menu handling functions into many separate classes and files 2018-10-24 12:16:46 -04:00
Paul Licameli
e048a4aacd Move a static function and an enumeration out of MenuCommandHandler 2018-10-24 12:16:46 -04:00
Paul Licameli
800f6500ba No more member definitions of AudacityProject inside Menus.cpp 2018-10-24 12:16:46 -04:00
Paul Licameli
64b6493bec Help Menus 2018-10-24 12:16:45 -04:00
Paul Licameli
574fc7f2ec Extra Menus 2018-10-24 12:16:45 -04:00
Paul Licameli
4a8a30f1a9 Navigation Menus 2018-10-24 12:16:45 -04:00
Paul Licameli
c7521b211d Window Menu for Mac 2018-10-24 12:16:44 -04:00
Paul Licameli
9759c6bd4f Plugin Menus 2018-10-24 12:16:44 -04:00
Paul Licameli
1be1217d1d Tracks Menus 2018-10-24 12:16:40 -04:00
Paul Licameli
903b42f84a Transport Menus 2018-10-24 12:16:35 -04:00
Paul Licameli
c65fd0ebe1 View and Toolbar Menus 2018-10-24 12:16:35 -04:00
Paul Licameli
fb8b5029e5 Select and Clip Menus 2018-10-24 12:16:33 -04:00
Paul Licameli
2792faa114 Edit and Label Menus 2018-10-24 12:14:05 -04:00
Paul Licameli
4d6cad8ebc File Menus 2018-10-24 12:14:01 -04:00
Paul Licameli
3308054170 14 new, empty .cpp files in src/menus 2018-10-24 11:04:06 -04:00
Paul Licameli
b7410ed938 Preparation for the moving of menu handlers into separate classes 2018-10-24 11:03:00 -04:00
Paul Licameli
280e8d9bac Some machinery to add more menu handler object classes...
...without adding linkage dependencies to AudacityProject constructor
2018-10-24 11:02:33 -04:00
Paul Licameli
b7f35609ad Clarify inheritance of MenuCommandHandler 2018-10-24 11:02:33 -04:00
Paul Licameli
8ca9edc2a4 Move some label editing functions into class LabelTrack 2018-10-24 11:02:33 -04:00
Paul Licameli
d1e2ec3b0f Remove some uses of MenuCommandHandler outside Menus.cpp...
... where the functions were simple call-throughs to something else
2018-10-24 11:02:32 -04:00
Paul Licameli
7b422afda5 Some further factoring of the menu building functions 2018-10-24 08:52:03 -04:00
David Bailes
5494185a88 Dialog for the name of a label: positioning fixes
Problems fixed:
1. When adding a label at playback position, the position of the dialog was calculated using the position of the edit cursor
2. When adding a label at selection, the dialog could be to the left of the Audacity Window, and indeed offscreen.
2018-10-24 11:07:17 +01:00
Steve Daulton
d716b61b1e Increase precision for doubles/string conversion
Required so that the Select: command has reasonable precision
on tracks longer than 17 minutes.
2018-10-23 20:28:43 +01:00
Paul Licameli
df3c2a7b2f Don't mutate uninitialized Maybe 2018-10-23 06:02:19 -04:00
Paul Licameli
48a1538b37 Comment, to deter repeat of the mistake corrected in the last commit! 2018-10-22 20:02:33 -04:00
Paul Licameli
2b8c4aa816 Fix the binding of ngettext in XLisp 2018-10-22 19:58:13 -04:00
Steve Daulton
72fbf1b0f3 Update Regular Interval Labels
Fixes bug 2014 - Regular Interval Labels fails.
Fixes bug 770 - Enh: Create region labels with "Regular Interval Labels"
Fixes bug 1298 - Windows: Regular Interval Labels on mutiple tracks
produces multiple labels.
2018-10-22 18:05:27 +01:00
Steve Daulton
388cf47a92
Update SetLabelCommand.cpp
SetLabels: command may put labels out of order, so sort them after.
2018-10-22 17:59:14 +01:00
Steve Daulton
826353c812
Update build.txt
"Git for Windows" is no longer included in "GitExtensions"
2018-10-22 09:41:35 +01:00
Paul Licameli
d40dfa2de2 More comments explaining the C++11 exotica 2018-10-21 12:46:41 -04:00
Paul Licameli
f70c76de83 Break MenuCreator::CreateMenusAndCommands() into many little pieces...
... These pieces are mostly declarative, not procedural, and
CreateMenusAndCommands shrinks to a table-driven interpretation loop and
little else.

The pieces still all live in the still huge Menus.cpp, but are fit to be cut
and pasted into many smaller files, taking the handler functions with them.

As that is done, it would also be good to break MenuCommandHandler into many
smaller classes.  Some of these handlers might be stateless and so would require
only a singleton object, not a per-project object.  But others would require
new fields in AudacityProject analogous to mMenuCommandHandler.

Still to do is to devise a system of dynamic registration building up the
tables so that Menus.cpp would not have compilation and link dependencies on
each of the pieces, and similarly a registration of factories for the extra
packages of state in the handler objects attached to each AudacityProject.
2018-10-21 12:16:31 -04:00
Paul Licameli
e4a39bd135 Define tables for each menu and each Extra sub-menu and more 2018-10-21 12:16:31 -04:00
Paul Licameli
78656f6543 Define table for Help menu 2018-10-21 12:16:30 -04:00
Paul Licameli
9e6f6a992a Define tables for Extra menu & each of its sub-menus & two non-menus 2018-10-21 12:16:30 -04:00
Paul Licameli
611ab0cc91 Define table for ungrouped Extra commands...
... and finish replacement of the old Extra menu code
2018-10-21 12:16:30 -04:00
Paul Licameli
2d03524760 Define table for Extra Scriptables II menu 2018-10-21 12:16:30 -04:00
Paul Licameli
f8379e2109 Define table for Extra Scriptables I menu 2018-10-21 12:16:29 -04:00
Paul Licameli
700eca1c9c Define table for Extra Track menu 2018-10-21 12:16:29 -04:00
Paul Licameli
b13e0e641d Define table for Extra Cursor menu 2018-10-21 12:16:29 -04:00
Paul Licameli
9b3f1a1335 Define table for Extra Focus menu 2018-10-21 12:16:29 -04:00
Paul Licameli
237bf4d9a3 Define table for Extra global commands...
... Is it important to preserve the old sequence of registration?  It does at
least make some difference in what you see in the Keyboard preferences dialog.
2018-10-21 12:16:28 -04:00
Paul Licameli
5d4a7a76ad Define table for Extra Selection menu 2018-10-21 12:16:28 -04:00
Paul Licameli
17e6218bcd Define table for Extra Device menu 2018-10-21 12:16:28 -04:00
Paul Licameli
bbc2837d67 Define table for Extra Seek menu 2018-10-21 12:16:28 -04:00
Paul Licameli
9e4e1ae699 Define table for Extra Play at Speed menu 2018-10-21 12:16:27 -04:00
Paul Licameli
e848390818 Define table for Extra Edit menu 2018-10-21 12:16:27 -04:00
Paul Licameli
0c9cf45188 Define table for Extra Mixer menu 2018-10-21 12:16:27 -04:00
Paul Licameli
620640c7a2 Define table for Extra Tools menu 2018-10-21 12:16:27 -04:00
Paul Licameli
434dcfa4b3 Define table for Window menu (Mac only) 2018-10-21 12:16:26 -04:00