Remove some nested #include from Project.h

This commit is contained in:
Paul Licameli 2019-01-22 06:57:30 -05:00
parent 5ada9ee201
commit 1bcb7c20a5
21 changed files with 26 additions and 4 deletions

View File

@ -456,6 +456,7 @@ TimeTrack and AudioIOListener and whether the playback is looped.
#include "WaveTrack.h"
#include "AutoRecovery.h"
#include "effects/EffectManager.h"
#include "prefs/QualityPrefs.h"
#include "toolbars/ControlToolBar.h"
#include "widgets/Meter.h"

View File

@ -34,6 +34,7 @@ of the BlockFile system.
#include <wx/valtext.h>
#include <wx/intl.h>
#include "DirManager.h"
#include "ShuttleGui.h"
#include "Project.h"
#include "WaveTrack.h"

View File

@ -31,6 +31,7 @@
#include "CellularPanel.h"
#include "Project.h"
#include "UIHandle.h"
#include "TrackPanelCell.h"
#include "TrackPanelMouseEvent.h"
#include "HitTestResult.h"
#include "RefreshCode.h"

View File

@ -106,6 +106,7 @@
#include "widgets/Warning.h"
#include "widgets/MultiDialog.h"
#include "widgets/ErrorDialog.h"
#include "widgets/ProgressDialog.h"
#include "ondemand/ODManager.h"

View File

@ -43,6 +43,7 @@
#include "UndoManager.h"
#include "WaveTrack.h"
#include "commands/CommandManager.h"
#include "effects/EffectManager.h"
#include "prefs/TracksPrefs.h"
#include "toolbars/ControlToolBar.h"
#include "toolbars/ToolManager.h"

View File

@ -127,6 +127,7 @@ scroll information. It also has some status flags.
#include "xml/XMLFileReader.h"
#include "PlatformCompatibility.h"
#include "Experimental.h"
#include "effects/EffectManager.h"
#include "export/Export.h"
#include "FileNames.h"
#include "BlockFile.h"

View File

@ -21,14 +21,11 @@
#include "Audacity.h"
#include "Experimental.h"
#include "widgets/OverlayPanel.h"
#include "DirManager.h"
#include "Track.h"
#include "SelectionState.h"
#include "ViewInfo.h"
#include "TrackPanelListener.h"
#include "AudioIOListener.h"
#include "effects/EffectManager.h"
#include "xml/XMLTagHandler.h"
#include "toolbars/SelectionBarListener.h"
#include "toolbars/SpectralSelectionBarListener.h"
@ -59,6 +56,7 @@ class AudacityProject;
class AutoSaveFile;
class Importer;
class ODLock;
class Overlay;
class RecordingRecoveryHandler;
class TrackList;
class Tags;
@ -116,6 +114,8 @@ bool IsWindowAccessible(wxRect *requestedRect);
using AProjectHolder = std::shared_ptr< AudacityProject >;
using AProjectArray = std::vector< AProjectHolder >;
using WaveTrackArray = std::vector < std::shared_ptr < WaveTrack > >;
extern AProjectArray gAudacityProjects;

View File

@ -33,6 +33,7 @@
#include <wx/timer.h>
#include <wx/dynlib.h> //<! For windows.h
#include "DirManager.h"
#include "ShuttleGui.h"
#include "Menus.h"
#include "Project.h"

View File

@ -30,6 +30,7 @@
#define finite(x) _finite(x)
#endif
#include <wx/button.h>
#include <wx/filedlg.h>
#include <wx/valtext.h>
#include <wx/log.h>

View File

@ -38,11 +38,13 @@ greater use in future.
#include "audacity/ConfigInterface.h"
#include "EffectManager.h"
#include "../AudacityException.h"
#include "../AudioIO.h"
#include "../LabelTrack.h"
#include "../Menus.h"
#include "../Mix.h"
#include "../PluginManager.h"
#include "../Prefs.h"
#include "../Project.h"
#include "../ShuttleGui.h"

View File

@ -24,6 +24,7 @@ frequency changes smoothly during the tone.
#include <math.h>
#include <float.h>
#include <wx/choice.h>
#include <wx/intl.h>
#include <wx/valgen.h>

View File

@ -44,7 +44,9 @@ effects from this one class.
#include <wx/numformatter.h>
#include <wx/stdpaths.h>
#include "../EffectManager.h"
#include "../../AudacityApp.h"
#include "../../DirManager.h"
#include "../../FileException.h"
#include "../../FileNames.h"
#include "../../Internat.h"

View File

@ -24,6 +24,7 @@
#include <wx/wxprec.h>
#include <wx/button.h>
#include <wx/checkbox.h>
#include <wx/choice.h>
#include <wx/combobox.h>
#include <wx/sizer.h>
#include <wx/slider.h>

View File

@ -38,6 +38,7 @@
#include "Export.h"
#include "../DirManager.h"
#include "../Internat.h"
#include "../FileFormats.h"
#include "../FileNames.h"

View File

@ -15,6 +15,7 @@
#include "../commands/CommandManager.h"
#include "../commands/ScreenshotCommand.h"
#include "../effects/Contrast.h"
#include "../effects/EffectManager.h"
// private helper classes and functions
namespace {

View File

@ -13,6 +13,7 @@
#include "../WaveTrack.h"
#include "../commands/CommandContext.h"
#include "../commands/CommandManager.h"
#include "../effects/EffectManager.h"
#include "../widgets/ASlider.h"
#include <wx/combobox.h>

View File

@ -17,6 +17,7 @@
#include "../Audacity.h"
#include "SpectrumPrefs.h"
#include <wx/choice.h>
#include <wx/defs.h>
#include <wx/intl.h>
#include <wx/checkbox.h>

View File

@ -19,6 +19,7 @@ Paul Licameli
#include "GUISettings.h"
#include <wx/checkbox.h>
#include <wx/choice.h>
#include "../Project.h"

View File

@ -24,6 +24,7 @@ Paul Licameli split from TrackPanel.cpp
#include "../../../../TrackPanel.h"
#include "../../../../TrackPanelMouseEvent.h"
#include "../../../../widgets/PopupMenuTable.h"
#include "../../../../effects/EffectManager.h"
#include "../../../../ondemand/ODManager.h"
#include "../../../../prefs/PrefsDialog.h"
#include "../../../../prefs/SpectrumPrefs.h"

View File

@ -14,6 +14,7 @@ Paul Licameli split from TrackPanel.cpp
#include "../../HitTestResult.h"
#include "../../Project.h"
#include "../../RefreshCode.h"
#include "../../Track.h"
#include "../../TrackPanelMouseEvent.h"
#include "../../UIHandle.h"

View File

@ -14,6 +14,7 @@ Paul Licameli
#include "../../HitTestResult.h"
#include "../../Project.h"
#include "../../RefreshCode.h"
#include "../../Track.h"
#include "../../TrackPanelMouseEvent.h"
SliderHandle::SliderHandle