mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-21 14:02:57 +02:00
Each .cpp/.mm file includes corresponding header before any other...
... except Audacity.h This forces us to make each header contain all forward declarations or nested headers that it requires, rather than depend on context.
This commit is contained in:
@@ -21,6 +21,7 @@ messaging from a command back to its invoker.
|
||||
*//*******************************************************************/
|
||||
|
||||
#include "../Audacity.h"
|
||||
#include "CommandContext.h"
|
||||
|
||||
#include "Command.h"
|
||||
#include <map>
|
||||
@@ -36,8 +37,6 @@ messaging from a command back to its invoker.
|
||||
#include "CommandTargets.h"
|
||||
#include "CommandDirectory.h"
|
||||
|
||||
//#include "CommandContext.h"
|
||||
#include "CommandContext.h"
|
||||
#include "../Project.h"
|
||||
|
||||
CommandContext::CommandContext(
|
||||
|
@@ -81,6 +81,7 @@ CommandManager. It holds the callback for one command.
|
||||
|
||||
#include "../AudacityHeaders.h"
|
||||
#include "CommandManager.h"
|
||||
|
||||
#include "CommandManagerWindowClasses.h"
|
||||
#include "CommandContext.h"
|
||||
|
||||
|
@@ -10,7 +10,6 @@
|
||||
**********************************************************************/
|
||||
|
||||
#include "../Audacity.h"
|
||||
|
||||
#include "Keyboard.h"
|
||||
|
||||
NormalizedKeyString::NormalizedKeyString(const wxString & key)
|
||||
|
@@ -14,10 +14,9 @@ modelled on BuiltinEffectsModule
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../Audacity.h"
|
||||
#include "LoadCommands.h"
|
||||
|
||||
#include "../Prefs.h"
|
||||
|
||||
#include "LoadCommands.h"
|
||||
#include "../MemoryX.h"
|
||||
|
||||
#include "../effects/EffectManager.h"
|
||||
|
@@ -14,6 +14,7 @@
|
||||
*//*******************************************************************/
|
||||
|
||||
#include "ResponseQueue.h"
|
||||
|
||||
#include <queue>
|
||||
#include <string>
|
||||
#include <wx/thread.h>
|
||||
|
@@ -20,6 +20,7 @@ code out of ModuleManager.
|
||||
*//*******************************************************************/
|
||||
|
||||
#include "ScriptCommandRelay.h"
|
||||
|
||||
#include "CommandTargets.h"
|
||||
#include "CommandBuilder.h"
|
||||
#include "AppCommandEvent.h"
|
||||
|
@@ -30,11 +30,11 @@ explicitly code all three.
|
||||
*//*******************************************************************/
|
||||
|
||||
#include "../Audacity.h"
|
||||
#include "SelectCommand.h"
|
||||
|
||||
#include <wx/string.h>
|
||||
#include <float.h>
|
||||
|
||||
#include "SelectCommand.h"
|
||||
#include "../Project.h"
|
||||
#include "../Track.h"
|
||||
#include "../TrackPanel.h"
|
||||
|
Reference in New Issue
Block a user