diff --git a/src/Project.h b/src/Project.h index e24995d75..30ff21fb2 100644 --- a/src/Project.h +++ b/src/Project.h @@ -20,11 +20,8 @@ #include "Audacity.h" -#include "Experimental.h" - #include "ClientData.h" #include "Prefs.h" -#include "commands/CommandManagerWindowClasses.h" #include "TrackPanelListener.h" #include "AudioIOListener.h" @@ -32,7 +29,6 @@ #include "toolbars/SpectralSelectionBarListener.h" #include -#include #include // to inherit #include "import/ImportRaw.h" // defines TrackHolders @@ -44,10 +40,8 @@ const int AudacityProjectTimerID = 5200; wxDECLARE_EXPORTED_EVENT(AUDACITY_DLL_API, EVT_PROJECT_STATUS_UPDATE, wxCommandEvent); -class wxMemoryDC; class wxArrayString; class wxWindow; -class wxDialog; class wxScrollEvent; class wxScrollBar; class wxPanel; @@ -56,30 +50,18 @@ class wxTimerEvent; class AudacityProject; class AutoSaveFile; -class Importer; class ODLock; class RecordingRecoveryHandler; namespace ProjectFileIORegistry{ struct Entry; } class TrackList; -class TrackPanel; -class FreqWindow; class MeterPanel; -// windows and frames -class AdornedRulerPanel; -class LyricsWindow; - struct AudioIOStartStreamOptions; struct UndoState; -class LWSlider; -class UndoManager; enum class UndoPush : unsigned char; -class Track; -class WaveClip; - AudacityProject *CreateNewAudacityProject(); AUDACITY_DLL_API AudacityProject *GetActiveProject(); @@ -88,6 +70,7 @@ void GetDefaultWindowRect(wxRect *defRect); void GetNextWindowPlacement(wxRect *nextRect, bool *pMaximized, bool *pIconized); bool IsWindowAccessible(wxRect *requestedRect); +class WaveTrack; using WaveTrackArray = std::vector < std::shared_ptr < WaveTrack > >; @@ -168,18 +151,7 @@ private: static bool sbWindowRectAlreadySaved; }; -class EffectPlugs; -class CommandContext; class Track; -class TrackHolder; -class TrackList; -class WaveClip; -class WaveTrack; - -#include "./commands/CommandFlag.h" -#include "../include/audacity/EffectInterface.h" - -class MenuManager; // Container of various objects associated with the project, which is // responsible for destroying them diff --git a/src/commands/CommandManager.cpp b/src/commands/CommandManager.cpp index 54991f599..d3b3e95f1 100644 --- a/src/commands/CommandManager.cpp +++ b/src/commands/CommandManager.cpp @@ -83,6 +83,7 @@ CommandManager. It holds the callback for one command. #include "CommandManager.h" #include "CommandContext.h" +#include "CommandManagerWindowClasses.h" #include #include diff --git a/src/effects/Effect.cpp b/src/effects/Effect.cpp index 899c6175f..dc9927646 100644 --- a/src/effects/Effect.cpp +++ b/src/effects/Effect.cpp @@ -61,6 +61,7 @@ greater use in future. #include "../ViewInfo.h" #include "../WaveTrack.h" #include "../commands/Command.h" +#include "../commands/CommandFlag.h" #include "../toolbars/ControlToolBar.h" #include "../widgets/AButton.h" #include "../widgets/ProgressDialog.h"