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

Help intellisense find MenuCommandHandlers

Once the struct definition is in the Menus.h file, intellisense can find the definitions of the functions.
This commit is contained in:
James Crook 2018-09-29 22:56:34 +01:00
parent 5c5253e147
commit e7c4e8bde9
3 changed files with 13 additions and 8 deletions

View File

@ -10,11 +10,17 @@
#ifndef __AUDACITY_MENUS__
#define __AUDACITY_MENUS__
// Formerly members of AudacityProject, now members of MenuCommandHandler
#include "Experimental.h"
struct MenuCommandHandler : public wxEvtHandler {
MenuCommandHandler();
~MenuCommandHandler();
// Formerly members of AudacityProject, now members of MenuCommandHandler
// Command Handling
bool ReportIfActionNotAllowed
( AudacityProject &project,
@ -637,6 +643,10 @@ double mSeekLong;
wxLongLong mLastSelectionAdjustment;
};
MenuCommandHandler &GetMenuCommandHandler(AudacityProject &project);
#endif

View File

@ -11,7 +11,6 @@
\file Project.cpp
\brief Implements AudacityProject, DropTarget, and FileObject.F
Includes Menus.cpp.
*//****************************************************************//**

View File

@ -172,15 +172,11 @@ class WaveTrack;
#include "./commands/CommandManager.h"
struct MenuCommandHandler : public wxEvtHandler {
MenuCommandHandler();
~MenuCommandHandler();
// Include Menus.h for struct MenuCommandHandler
// and all the functions it contains.
#include "Menus.h"
};
MenuCommandHandler &GetMenuCommandHandler(AudacityProject &project);
class AUDACITY_DLL_API AudacityProject final : public wxFrame,
public TrackPanelListener,