1
0
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:
Paul Licameli
2018-11-10 14:47:12 -05:00
parent 906e55f047
commit 5e7d41ec07
151 changed files with 206 additions and 186 deletions

View File

@@ -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(

View File

@@ -81,6 +81,7 @@ CommandManager. It holds the callback for one command.
#include "../AudacityHeaders.h"
#include "CommandManager.h"
#include "CommandManagerWindowClasses.h"
#include "CommandContext.h"

View File

@@ -10,7 +10,6 @@
**********************************************************************/
#include "../Audacity.h"
#include "Keyboard.h"
NormalizedKeyString::NormalizedKeyString(const wxString & key)

View File

@@ -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"

View File

@@ -14,6 +14,7 @@
*//*******************************************************************/
#include "ResponseQueue.h"
#include <queue>
#include <string>
#include <wx/thread.h>

View File

@@ -20,6 +20,7 @@ code out of ModuleManager.
*//*******************************************************************/
#include "ScriptCommandRelay.h"
#include "CommandTargets.h"
#include "CommandBuilder.h"
#include "AppCommandEvent.h"

View File

@@ -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"