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:
parent
5c5253e147
commit
e7c4e8bde9
12
src/Menus.h
12
src/Menus.h
@ -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
|
||||
|
||||
|
@ -11,7 +11,6 @@
|
||||
|
||||
\file Project.cpp
|
||||
\brief Implements AudacityProject, DropTarget, and FileObject.F
|
||||
Includes Menus.cpp.
|
||||
|
||||
*//****************************************************************//**
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user