mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-19 17:11:12 +02:00
CommandContext.cpp has fewer dependencies...
... freeing it (alone) from dependency cycles
This commit is contained in:
@@ -30,9 +30,7 @@ messaging from a command back to its invoker.
|
|||||||
#include <wx/variant.h>
|
#include <wx/variant.h>
|
||||||
#include <wx/arrstr.h>
|
#include <wx/arrstr.h>
|
||||||
|
|
||||||
#include "CommandBuilder.h"
|
|
||||||
#include "CommandTargets.h"
|
#include "CommandTargets.h"
|
||||||
#include "CommandDirectory.h"
|
|
||||||
|
|
||||||
CommandContext::CommandContext(
|
CommandContext::CommandContext(
|
||||||
AudacityProject &p
|
AudacityProject &p
|
||||||
|
@@ -11,8 +11,8 @@
|
|||||||
#ifndef __AUDACITY_COMMAND_CONTEXT__
|
#ifndef __AUDACITY_COMMAND_CONTEXT__
|
||||||
#define __AUDACITY_COMMAND_CONTEXT__
|
#define __AUDACITY_COMMAND_CONTEXT__
|
||||||
|
|
||||||
|
#include <memory>
|
||||||
#include "audacity/Types.h"
|
#include "audacity/Types.h"
|
||||||
#include "Command.h"
|
|
||||||
|
|
||||||
class AudacityProject;
|
class AudacityProject;
|
||||||
class AudacityApp;
|
class AudacityApp;
|
||||||
|
@@ -24,6 +24,7 @@
|
|||||||
#include "AppCommandEvent.h"
|
#include "AppCommandEvent.h"
|
||||||
#include "ScriptCommandRelay.h"
|
#include "ScriptCommandRelay.h"
|
||||||
#include "../commands/CommandContext.h"
|
#include "../commands/CommandContext.h"
|
||||||
|
#include "../commands/Command.h"
|
||||||
|
|
||||||
CommandHandler::CommandHandler()
|
CommandHandler::CommandHandler()
|
||||||
: mCurrentContext(std::make_unique<CommandContext>
|
: mCurrentContext(std::make_unique<CommandContext>
|
||||||
|
@@ -35,6 +35,7 @@ effects.
|
|||||||
|
|
||||||
#include "../ShuttleGetDefinition.h"
|
#include "../ShuttleGetDefinition.h"
|
||||||
#include "../commands/CommandContext.h"
|
#include "../commands/CommandContext.h"
|
||||||
|
#include "../commands/Command.h"
|
||||||
#include "../PluginManager.h"
|
#include "../PluginManager.h"
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user