1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-18 16:41:14 +02:00

Rewrite insertion of menu items by null and Nyquist modules...

... using the new registration system, and without the fragile hacks making
assumptions about the positions of menus within the menu bar.
This commit is contained in:
Paul Licameli
2019-01-05 15:20:28 -05:00
parent baada94567
commit 56cd24a062
7 changed files with 38 additions and 90 deletions

View File

@@ -84,8 +84,7 @@ typedef enum
AppInitialized,
AppQuiting,
ProjectInitialized,
ProjectClosing,
MenusRebuilt
ProjectClosing
} ModuleDispatchTypes;
@@ -108,8 +107,7 @@ DLL_API const wxChar * GetVersionString()
extern int DLL_API ModuleDispatch(ModuleDispatchTypes type);
// ModuleDispatch
// is called by Audacity to initialize/terminmate the module,
// and ask if it has anything for the menus.
// is called by Audacity to initialize/terminate the module
// We don't (yet) do anything in this, since we have a special function for the scripter
// all we need to do is return 1.
int ModuleDispatch(ModuleDispatchTypes type){
@@ -120,8 +118,7 @@ int ModuleDispatch(ModuleDispatchTypes type){
case AppQuiting: {
}
break;
case ProjectInitialized:
case MenusRebuilt: {
case ProjectInitialized: {
}
break;
default: