Browse Source

Revert "Replace header guards with #pragma once"

This reverts commit a6bc896e24.
pull/541/head
Emily Mabrey 1 year ago
parent
commit
40d4883233
No known key found for this signature in database GPG Key ID: 6F4EF47256A1B7DC
  1. 5
      include/tenacity/ComponentInterface.h
  2. 5
      include/tenacity/ConfigInterface.h
  3. 5
      include/tenacity/EffectAutomationParameters.h
  4. 5
      include/tenacity/EffectInterface.h
  5. 5
      include/tenacity/ModuleInterface.h
  6. 5
      include/tenacity/PluginInterface.h
  7. 5
      include/tenacity/Types.h
  8. 6
      libraries/lib-strings/Identifier.h
  9. 5
      libraries/lib-strings/Internat.h
  10. 5
      libraries/lib-strings/Languages.h
  11. 5
      libraries/lib-strings/TranslatableString.h
  12. 5
      libraries/lib-strings/wxArrayStringEx.h
  13. 5
      libraries/lib-utility/MemoryX.h
  14. 5
      libraries/lib-utility/ModuleConstants.h
  15. 5
      src/AColor.h
  16. 5
      src/AboutDialog.h
  17. 5
      src/ActiveProjects.h
  18. 5
      src/AdornedRulerPanel.h
  19. 5
      src/AttachedVirtualFunction.h
  20. 5
      src/AudacityApp.h
  21. 8
      src/AudacityException.h
  22. 4
      src/AudacityFileConfig.h
  23. 5
      src/AudacityLogger.h
  24. 5
      src/AudioIO.h
  25. 5
      src/AudioIOBase.h
  26. 5
      src/AudioIOBufferHelper.h
  27. 5
      src/AudioIOListener.h
  28. 5
      src/AutoRecoveryDialog.h
  29. 6
      src/BatchCommandDialog.h
  30. 5
      src/BatchCommands.h
  31. 5
      src/BatchProcessDialog.h
  32. 5
      src/Benchmark.h
  33. 4
      src/BuildInfo.h
  34. 5
      src/CellularPanel.h
  35. 5
      src/ClientData.h
  36. 5
      src/ClientDataHelpers.h
  37. 5
      src/Clipboard.h
  38. 5
      src/CommonCommandFlags.h
  39. 5
      src/ComponentInterfaceSymbol.h
  40. 7
      src/CrossFade.h
  41. 5
      src/DBConnection.h
  42. 5
      src/Dependencies.h
  43. 5
      src/DeviceChange.h
  44. 6
      src/DeviceManager.h
  45. 7
      src/Diags.h
  46. 5
      src/Dither.h
  47. 5
      src/Envelope.h
  48. 6
      src/EnvelopeEditor.h
  49. 5
      src/FFT.h
  50. 5
      src/FFmpeg.h
  51. 5
      src/FileException.h
  52. 5
      src/FileFormats.h
  53. 5
      src/FileIO.h
  54. 5
      src/FileNames.h
  55. 5
      src/FreqWindow.h
  56. 5
      src/HelpText.h
  57. 5
      src/HistoryWindow.h
  58. 5
      src/HitTestResult.h
  59. 2
      src/ImageManipulation.h
  60. 5
      src/InconsistencyException.h
  61. 5
      src/InterpolateAudio.h
  62. 6
      src/KeyboardCapture.h
  63. 5
      src/LabelDialog.h
  64. 4
      src/LabelTrack.h
  65. 5
      src/LangChoice.h
  66. 2
      src/Legacy.h
  67. 5
      src/Lyrics.h
  68. 5
      src/LyricsWindow.h
  69. 5
      src/Matrix.h
  70. 5
      src/Menus.h
  71. 6
      src/Mix.h
  72. 7
      src/MixerBoard.h
  73. 5
      src/ModuleManager.h
  74. 5
      src/ModuleSettings.h
  75. 6
      src/NoteTrack.h
  76. 5
      src/NumberScale.h
  77. 5
      src/PitchName.h
  78. 5
      src/PlatformCompatibility.h
  79. 5
      src/PlaybackSchedule.h
  80. 5
      src/PluginManager.h
  81. 6
      src/PluginRegistrationDialog.h
  82. 5
      src/Prefs.h
  83. 6
      src/Printing.h
  84. 7
      src/Profiler.h
  85. 5
      src/Project.h
  86. 5
      src/ProjectAudioIO.h
  87. 5
      src/ProjectAudioManager.h
  88. 5
      src/ProjectFSCK.h
  89. 5
      src/ProjectFileIO.h
  90. 5
      src/ProjectFileIORegistry.h
  91. 5
      src/ProjectFileManager.h
  92. 5
      src/ProjectHistory.h
  93. 5
      src/ProjectManager.h
  94. 5
      src/ProjectSelectionManager.h
  95. 5
      src/ProjectSerializer.h
  96. 5
      src/ProjectSettings.h
  97. 4
      src/ProjectStatus.h
  98. 5
      src/ProjectWindow.h
  99. 6
      src/ProjectWindowBase.h
  100. 6
      src/RealFFTf.h

5
include/tenacity/ComponentInterface.h

@ -39,7 +39,8 @@
**********************************************************************/
#pragma once
#ifndef __AUDACITY_COMPONENT_INTERFACE_H__
#define __AUDACITY_COMPONENT_INTERFACE_H__
#include "Identifier.h"
#include "tenacity/Types.h"
@ -83,3 +84,5 @@ public:
// Parameters, if defined. false means no defined parameters.
virtual bool DefineParams( ShuttleParams & WXUNUSED(S) ){ return false;};
};
#endif // __AUDACITY_IDENTINTERFACE_H__

5
include/tenacity/ConfigInterface.h

@ -39,7 +39,8 @@
**********************************************************************/
#pragma once
#ifndef __AUDACITY_CONFIGINTERFACE_H__
#define __AUDACITY_CONFIGINTERFACE_H__
#include "Identifier.h"
@ -93,3 +94,5 @@ public:
virtual bool RemovePrivateConfigSubgroup(const RegistryPath & group) = 0;
virtual bool RemovePrivateConfig(const RegistryPath & group, const RegistryPath & key) = 0;
};
#endif // __AUDACITY_CONFIGINTERFACE_H__

5
include/tenacity/EffectAutomationParameters.h

@ -40,7 +40,8 @@
**********************************************************************/
#pragma once
#ifndef __AUDACITY_COMMAND_PARAMETERS_H__
#define __AUDACITY_COMMAND_PARAMETERS_H__
#include <locale.h>
@ -337,3 +338,5 @@ public:
return val;
}
};
#endif

5
include/tenacity/EffectInterface.h

@ -39,7 +39,8 @@
**********************************************************************/
#pragma once
#ifndef __AUDACITY_EFFECTINTERFACE_H__
#define __AUDACITY_EFFECTINTERFACE_H__
#include <functional>
@ -245,3 +246,5 @@ public:
virtual bool HasOptions() = 0;
virtual void ShowOptions() = 0;
};
#endif // __AUDACITY_EFFECTINTERFACE_H__

5
include/tenacity/ModuleInterface.h

@ -39,7 +39,8 @@
**********************************************************************/
#pragma once
#ifndef __AUDACITY_MODULEINTERFACE_H__
#define __AUDACITY_MODULEINTERFACE_H__
#include <functional>
#include <memory>
@ -176,3 +177,5 @@ void name::Unregister() \
{ \
UnregisterProvider(AudacityModule); \
}
#endif // __AUDACITY_MODULEINTERFACE_H__

5
include/tenacity/PluginInterface.h

@ -39,7 +39,8 @@
**********************************************************************/
#pragma once
#ifndef __AUDACITY_PLUGININTERFACE_H__
#define __AUDACITY_PLUGININTERFACE_H__
#include "tenacity/ConfigInterface.h"
#include "tenacity/EffectInterface.h"
@ -110,3 +111,5 @@ public:
virtual bool RemovePrivateConfigSubgroup(const PluginID & ID, const RegistryPath & group) = 0;
virtual bool RemovePrivateConfig(const PluginID & ID, const RegistryPath & group, const RegistryPath & key) = 0;
};
#endif // __AUDACITY_PLUGININTERFACE_H__

5
include/tenacity/Types.h

@ -39,7 +39,8 @@
**********************************************************************/
#pragma once
#ifndef __AUDACITY_TYPES_H__
#define __AUDACITY_TYPES_H__
#include <algorithm>
#include <functional>
@ -254,3 +255,5 @@ typedef enum
ChannelNameBottomFrontLeft,
ChannelNameBottomFrontRight,
} ChannelName, *ChannelNames;
#endif // __AUDACITY_TYPES_H__

6
libraries/lib-strings/Identifier.h

@ -8,7 +8,8 @@
**********************************************************************/
#pragma once
#ifndef __AUDACITY_IDENTIFIER__
#define __AUDACITY_IDENTIFIER__
#include <vector>
#include <wx/string.h>
@ -233,3 +234,6 @@ using CommandIDs = std::vector<CommandID>;
struct ManualPageIDTag;
using ManualPageID = TaggedIdentifier< ManualPageIDTag >;
#endif

5
libraries/lib-strings/Internat.h

@ -9,7 +9,8 @@
**********************************************************************/
#pragma once
#ifndef __AUDACITY_INTERNAT__
#define __AUDACITY_INTERNAT__
#include <vector>
#include <wx/longlong.h>
@ -162,3 +163,5 @@ private:
// If not, then the program builds and runs, but strings in the catalog with
// contexts will fail to translate
#define HAS_I18N_CONTEXTS wxCHECK_VERSION(3, 1, 1)
#endif

5
libraries/lib-strings/Languages.h

@ -8,7 +8,8 @@
**********************************************************************/
#pragma once
#ifndef __AUDACITY_LANGUAGES__
#define __AUDACITY_LANGUAGES__
class wxArrayString;
class wxString;
@ -55,3 +56,5 @@ STRINGS_API
wxString GetLocaleName();
}
#endif // __AUDACITY_LANGUAGES__

5
libraries/lib-strings/TranslatableString.h

@ -8,7 +8,8 @@
**********************************************************************/
#pragma once
#ifndef __AUDACITY_TRANSLATABLE_STRING__
#define __AUDACITY_TRANSLATABLE_STRING__
#include <stddef.h> // for size_t
#include <functional>
@ -319,3 +320,5 @@ inline Sink &operator <<( Sink &sink, const TranslatableString &str )
review the uses of this function, separately from the uses of the type. */
inline TranslatableString Verbatim( wxString str )
{ return TranslatableString( std::move( str ) ); }
#endif

5
libraries/lib-strings/wxArrayStringEx.h

@ -8,7 +8,8 @@
**********************************************************************/
#pragma once
#ifndef __AUDACITY_WX_ARRAY_STRING_EX__
#define __AUDACITY_WX_ARRAY_STRING_EX__
#include <wx/arrstr.h>
@ -68,3 +69,5 @@ public:
return result;
}
};
#endif

5
libraries/lib-utility/MemoryX.h

@ -1,4 +1,5 @@
#pragma once
#ifndef __AUDACITY_MEMORY_X_H__
#define __AUDACITY_MEMORY_X_H__
// C++ standard header <memory> with a few extensions
#include <iterator>
@ -633,3 +634,5 @@ template< typename T > struct NonInterfering
#define LINEAR_TO_DB(x) (20.0 * log10(x))
#define MAX_AUDIO (1. - 1./(1<<15))
#endif // __AUDACITY_MEMORY_X_H__

5
libraries/lib-utility/ModuleConstants.h

@ -8,7 +8,8 @@
**********************************************************************/
#pragma once
#ifndef __AUDACITY_MODULE_CONSTANTS__
#define __AUDACITY_MODULE_CONSTANTS__
#define ModuleDispatchName "ModuleDispatch"
@ -51,3 +52,5 @@ extern "C" { \
#define DEFINE_MODULE_ENTRIES \
DEFINE_VERSION_CHECK \
extern "C" DLL_API int ModuleDispatch(ModuleDispatchTypes type){ return 1; }
#endif

5
src/AColor.h

@ -11,7 +11,8 @@
**********************************************************************/
#pragma once
#ifndef __AUDACITY_COLOR__
#define __AUDACITY_COLOR__
#include <memory>
#include <wx/brush.h> // member variable
@ -150,3 +151,5 @@ inline void GetColorGradient(float value,
*green = AColor::gradient_pre[selected][colorScheme][idx][1];
*blue = AColor::gradient_pre[selected][colorScheme][idx][2];
}
#endif

5
src/AboutDialog.h

@ -6,7 +6,8 @@
**********************************************************************/
#pragma once
#ifndef TENACITY_ABOUT_DLG
#define TENACITY_ABOUT_DLG
#include <vector>
#include "widgets/wxPanelWrapper.h" // to inherit
@ -88,3 +89,5 @@ class TENACITY_DLL_API AboutDialog final : public wxDialogWrapper{
static void AddBuildInfoRow(wxTextOutputStream * str, const wxChar * libname, const TranslatableString & libdesc, const TranslatableString & status);
static void AddBuildInfoRow(wxTextOutputStream * str, const TranslatableString & description, const wxChar * spec);
};
#endif

5
src/ActiveProjects.h

@ -6,7 +6,8 @@
**********************************************************************/
#pragma once
#ifndef __AUDACITY_ACTIVE_PROJECTS__
#define __AUDACITY_ACTIVE_PROJECTS__
#include "Identifier.h"
@ -18,3 +19,5 @@ namespace ActiveProjects
void Remove(const FilePath &path);
wxString Find(const FilePath &path);
};
#endif

5
src/AdornedRulerPanel.h

@ -8,7 +8,8 @@
**********************************************************************/
#pragma once
#ifndef __AUDACITY_ADORNED_RULER_PANEL__
#define __AUDACITY_ADORNED_RULER_PANEL__
#include "CellularPanel.h"
#include "widgets/Ruler.h" // member variable
@ -236,3 +237,5 @@ private:
double mLastDrawnZoom{};
bool mDirtySelectedRegion{};
};
#endif //define __AUDACITY_ADORNED_RULER_PANEL__

5
src/AttachedVirtualFunction.h

@ -9,7 +9,8 @@ Paul Licameli
**********************************************************************/
#pragma once
#ifndef __AUDACITY_ATTACHED_VIRTUAL_FUNCTION__
#define __AUDACITY_ATTACHED_VIRTUAL_FUNCTION__
#include <functional>
@ -285,3 +286,5 @@ private:
return registry;
}
};
#endif

5
src/AudacityApp.h

@ -11,7 +11,8 @@
**********************************************************************/
#pragma once
#ifndef __AUDACITY_APP__
#define __AUDACITY_APP__
#include "Identifier.h"
@ -117,3 +118,5 @@ class AudacityApp final : public wxApp {
};
extern AudacityApp & wxGetApp();
#endif

8
src/AudacityException.h

@ -1,3 +1,6 @@
#ifndef __AUDACITY_EXCEPTION__
#define __AUDACITY_EXCEPTION__
/*!********************************************************************
Tenacity
@ -8,9 +11,6 @@
Paul Licameli
**********************************************************************/
#pragma once
#include "MemoryX.h"
#include <wx/app.h> // used in inline function template
#include <exception>
@ -227,3 +227,5 @@ R GuardedCall(
return handler( nullptr );
}
}
#endif

4
src/AudacityFileConfig.h

@ -9,7 +9,8 @@ Paul Licameli split from Prefs.h
**********************************************************************/
#pragma once
#ifndef __AUDACITY_FILE_CONFIG__
#define __AUDACITY_FILE_CONFIG__
#include <memory>
#include "widgets/FileConfig.h" // to inherit
@ -44,3 +45,4 @@ private:
const wxMBConv& conv
);
};
#endif

5
src/AudacityLogger.h

@ -11,7 +11,8 @@
**********************************************************************/
#pragma once
#ifndef __AUDACITY_LOGGER__
#define __AUDACITY_LOGGER__
@ -63,3 +64,5 @@ class TENACITY_DLL_API AudacityLogger final : public wxEvtHandler,
wxString mBuffer;
bool mUpdated;
};
#endif

5
src/AudioIO.h

@ -10,7 +10,8 @@
**********************************************************************/
#pragma once
#ifndef __AUDACITY_AUDIO_IO__
#define __AUDACITY_AUDIO_IO__
@ -788,3 +789,5 @@ private:
};
static constexpr unsigned ScrubPollInterval_ms = 50;
#endif

5
src/AudioIOBase.h

@ -8,7 +8,8 @@ Paul Licameli split from AudioIO.h
**********************************************************************/
#pragma once
#ifndef __AUDACITY_AUDIO_IO_BASE__
#define __AUDACITY_AUDIO_IO_BASE__
@ -339,6 +340,8 @@ protected:
static const int NumRatesToTry;
};
#endif
#include "Prefs.h"
extern TENACITY_DLL_API StringSetting AudioIOHost;

5
src/AudioIOBufferHelper.h

@ -1,4 +1,5 @@
#pragma once
#ifndef AUDIOIO_BUFFER_HELPER_H
#define AUDIOIO_BUFFER_HELPER_H
#include "AudioIO.h"
#include "../libraries/lib-utility/MemoryX.h"
@ -37,3 +38,5 @@ class AudioIOBufferHelper
delete[] chans;
}
};
#endif

5
src/AudioIOListener.h

@ -10,7 +10,8 @@
**********************************************************************/
#pragma once
#ifndef __AUDACITY_AUDIO_IO_LISTENER__
#define __AUDACITY_AUDIO_IO_LISTENER__
@ -38,3 +39,5 @@ public:
virtual void OnSoundActivationThreshold() = 0;
};
#endif

5
src/AutoRecoveryDialog.h

@ -8,7 +8,8 @@ Paul Licameli split from AutoRecovery.h
**********************************************************************/
#pragma once
#ifndef __AUDACITY_AUTO_RECOVERY_DIALOG__
#define __AUDACITY_AUTO_RECOVERY_DIALOG__
class AudacityProject;
@ -27,3 +28,5 @@ class AudacityProject;
//
bool ShowAutoRecoveryDialogIfNeeded(AudacityProject*& pproj,
bool *didRecoverAnything);
#endif

6
src/BatchCommandDialog.h

@ -9,7 +9,8 @@
**********************************************************************/
#pragma once
#ifndef __AUDACITY_MACRO_COMMAND_DIALOG__
#define __AUDACITY_MACRO_COMMAND_DIALOG__
#include <wx/defs.h>
@ -60,3 +61,6 @@ class MacroCommandDialog final : public wxDialogWrapper {
DECLARE_EVENT_TABLE()
};
#endif

5
src/BatchCommands.h

@ -9,7 +9,8 @@
**********************************************************************/
#pragma once
#ifndef __AUDACITY_BATCH_COMMANDS_DIALOG__
#define __AUDACITY_BATCH_COMMANDS_DIALOG__
#include <wx/defs.h>
@ -124,3 +125,5 @@ private:
Exporter mExporter;
wxString mFileName;
};
#endif

5
src/BatchProcessDialog.h

@ -9,7 +9,8 @@
**********************************************************************/
#pragma once
#ifndef __AUDACITY_MACROS_WINDOW__
#define __AUDACITY_MACROS_WINDOW__
#include <wx/defs.h>
@ -144,3 +145,5 @@ private:
DECLARE_EVENT_TABLE()
};
#endif

5
src/Benchmark.h

@ -8,10 +8,13 @@
**********************************************************************/
#pragma once
#ifndef __AUDACITY_BENCHMARK__
#define __AUDACITY_BENCHMARK__
class wxWindow;
class AudacityProject;
TENACITY_DLL_API
void RunBenchmark( wxWindow *parent, AudacityProject &project );
#endif // define __AUDACITY_BENCHMARK__

4
src/BuildInfo.h

@ -6,7 +6,8 @@
**********************************************************************/
#pragma once
#ifndef BUILD_INFO_H
#define BUILD_INFO_H
#include "wx/cpp.h"
#include <wx/ctrlsub.h>
@ -139,3 +140,4 @@ public:
return o.GetString();
}
};
#endif

5
src/CellularPanel.h

@ -8,7 +8,8 @@
**********************************************************************/
#pragma once
#ifndef __AUDACITY_CELLULAR_PANEL__
#define __AUDACITY_CELLULAR_PANEL__
#include "widgets/OverlayPanel.h" // to inherit
@ -170,3 +171,5 @@ private:
DECLARE_EVENT_TABLE()
};
#endif

5
src/ClientData.h

@ -9,7 +9,8 @@ Paul Licameli
**********************************************************************/
#pragma once
#ifndef __AUDACITY_CLIENT_DATA__
#define __AUDACITY_CLIENT_DATA__
#include "ClientDataHelpers.h"
@ -563,3 +564,5 @@ private:
};
}
#endif

5
src/ClientDataHelpers.h

@ -9,7 +9,8 @@ Paul Licameli
**********************************************************************/
#pragma once
#ifndef __AUDACITY_CLIENT_DATA_HELPERS__
#define __AUDACITY_CLIENT_DATA_HELPERS__
#include <memory>
#include <mutex>
@ -148,3 +149,5 @@ template< typename Container > struct Copyable< Container, DeepCopying >
};
}
#endif

5
src/Clipboard.h

@ -8,7 +8,8 @@
**********************************************************************/
#pragma once
#ifndef __AUDACITY_CLIPBOARD__
#define __AUDACITY_CLIPBOARD__
@ -54,3 +55,5 @@ private:
double mT0{ 0 };
double mT1{ 0 };
};
#endif

5
src/CommonCommandFlags.h

@ -8,7 +8,8 @@ Paul Licameli split from Menus.cpp
**********************************************************************/
#pragma once
#ifndef __AUDACITY_COMMON_COMMAND_FLAGS__
#define __AUDACITY_COMMON_COMMAND_FLAGS__
@ -61,3 +62,5 @@ extern TENACITY_DLL_API const ReservedCommandFlag
&AudioTracksSelectedFlag(),
&NoAutoSelect() // jkc
;
#endif

5
src/ComponentInterfaceSymbol.h

@ -8,7 +8,8 @@
**********************************************************************/
#pragma once
#ifndef __AUDACITY_COMPONENT_INTERFACE_SYMBOL__
#define __AUDACITY_COMPONENT_INTERFACE_SYMBOL__
#include "Identifier.h"
#include "Internat.h"
@ -77,3 +78,5 @@ private:
using EnumValueSymbol = ComponentInterfaceSymbol;
using NumericFormatSymbol = EnumValueSymbol;
using EffectFamilySymbol = ComponentInterfaceSymbol;
#endif

7
src/CrossFade.h

@ -8,7 +8,8 @@
Licensed under the GPL version 2.0
**********************************************************************/
#pragma once
#ifndef __AUDACITY_CROSSFADE__
#define __AUDACITY_CROSSFADE__
/// This defines a crossfader class that
/// accepts a list of WaveClips and can do a mini-mixing
@ -53,3 +54,7 @@ class CrossFader
};
#endif

5
src/DBConnection.h

@ -9,7 +9,8 @@ Paul Licameli -- split from ProjectFileIO.h
**********************************************************************/
#pragma once
#ifndef __AUDACITY_DB_CONNECTION__
#define __AUDACITY_DB_CONNECTION__
#include <atomic>
#include <condition_variable>
@ -167,3 +168,5 @@ public:
Connection mpConnection;
};
#endif

5
src/Dependencies.h

@ -11,7 +11,8 @@
**********************************************************************/
#pragma once
#ifndef __AUDACITY_DEPENDENCIES__
#define __AUDACITY_DEPENDENCIES__
#include <list>
#include "MemoryX.h"
@ -61,3 +62,5 @@ bool ShowDependencyDialogIfNeeded(AudacityProject *project,
// Returns a list of aliased files associated with a project.
void FindDependencies(AudacityProject *project,
AliasedFileArray &outAliasedFiles);
#endif

5
src/DeviceChange.h

@ -8,7 +8,8 @@
**********************************************************************/
#pragma once
#ifndef __AUDACITY_DEVICECHANGE_H__
#define __AUDACITY_DEVICECHANGE_H__
@ -58,3 +59,5 @@ private:
#endif
#endif
#endif

6
src/DeviceManager.h

@ -15,7 +15,8 @@
*//*******************************************************************/
#pragma once
#ifndef __AUDACITY_DEVICEMANAGER__
#define __AUDACITY_DEVICEMANAGER__
#include <chrono>
#include <vector>
@ -96,3 +97,6 @@ private:
static DeviceManager dm;
};
#endif

7
src/Diags.h

@ -12,7 +12,8 @@
**********************************************************************/
#pragma once
#ifndef __AUDACITY_DIAGS__
#define __AUDACITY_DIAGS__
typedef long t_diag_timer;
@ -76,3 +77,7 @@ extern void diagnostics_do_perfmon_stop( t_diag_struct ** ppDiag);
if( timername != NULL )\
diagnostics_do_perfmon_stop( &timername );\
}
#endif

5
src/Dither.h

@ -7,7 +7,8 @@
**********************************************************************/
#pragma once
#ifndef __AUDACITY_DITHER_H__
#define __AUDACITY_DITHER_H__
#include "tenacity/Types.h" // for samplePtr
@ -60,3 +61,5 @@ private:
float mTriangleState;
float mBuffer[8 /* = BUF_SIZE */];
};
#endif /* __AUDACITY_DITHER_H__ */

5
src/Envelope.h

@ -8,7 +8,8 @@
**********************************************************************/
#pragma once
#ifndef __AUDACITY_ENVELOPE__
#define __AUDACITY_ENVELOPE__
#include <stdlib.h>
#include <algorithm>
@ -293,3 +294,5 @@ public:
private:
double mRangeLower{}, mRangeUpper{};
};
#endif

6
src/EnvelopeEditor.h

@ -8,7 +8,8 @@
**********************************************************************/
#pragma once
#ifndef __AUDACITY_ENVELOPE_EDITOR__
#define __AUDACITY_ENVELOPE_EDITOR__
class wxMouseEvent;
class wxRect;
@ -67,3 +68,6 @@ private:
int mButton;
bool mDirty;
};
#endif

5
src/FFT.h

@ -29,7 +29,8 @@
you need to use doubles.
**********************************************************************/
#pragma once
#ifndef __AUDACITY_FFT_H__
#define __AUDACITY_FFT_H__
#include <wx/defs.h>
@ -154,3 +155,5 @@ TENACITY_DLL_API const TranslatableString WindowFuncName(int whichFunction);
TENACITY_DLL_API int NumWindowFuncs();
void DeinitFFT();
#endif

5
src/FFmpeg.h

@ -13,7 +13,8 @@ Describes shared object that is used to access FFmpeg libraries.
*//*******************************************************************/
#pragma once
#if !defined(__AUDACITY_FFMPEG__)
#define __AUDACITY_FFMPEG__
@ -1037,3 +1038,5 @@ using ScsPtr = std::shared_ptr<Scs>;
extern FFmpegLibs *FFmpegLibsInst();
#endif // USE_FFMPEG
#endif // __AUDACITY_FFMPEG__

5
src/FileException.h

@ -7,7 +7,8 @@
*/
#pragma once
#ifndef __AUDACITY_FILE_EXCEPTION__
#define __AUDACITY_FILE_EXCEPTION__
#include "AudacityException.h"
#include <wx/filename.h> // wxFileName member variable
@ -62,3 +63,5 @@ public:
wxFileName fileName;
wxFileName renameTarget;
};
#endif

5
src/FileFormats.h

@ -8,7 +8,8 @@
**********************************************************************/
#pragma once
#ifndef __AUDACITY_FILE_FORMATS__
#define __AUDACITY_FILE_FORMATS__
@ -156,3 +157,5 @@ struct SFFile : public std::unique_ptr<SNDFILE, ::SFFileCloser>
extern ChoiceSetting FileFormatsCopyOrEditSetting;
extern ChoiceSetting FileFormatsSaveWithDependenciesSetting;
#endif

5
src/FileIO.h

@ -8,7 +8,8 @@
**********************************************************************/
#pragma once
#ifndef __AUDACITY_FILEIO__
#define __AUDACITY_FILEIO__
#include <memory>
@ -45,3 +46,5 @@ class TENACITY_DLL_API FileIO
std::unique_ptr<wxFFileOutputStream> mOutputStream;
bool mOpen;
};
#endif

5
src/FileNames.h

@ -8,7 +8,8 @@
**********************************************************************/
#pragma once
#ifndef __AUDACITY_FILE_NAMES__
#define __AUDACITY_FILE_NAMES__
@ -263,3 +264,5 @@ namespace FileNames
#define OSINPUT(X) OSFILENAME(X)
#define OSOUTPUT(X) OSFILENAME(X)
#endif
#endif

5
src/FreqWindow.h

@ -8,7 +8,8 @@
**********************************************************************/
#pragma once
#ifndef __AUDACITY_FREQ_WINDOW__
#define __AUDACITY_FREQ_WINDOW__
#include <vector>
#include <wx/font.h> // member variable
@ -169,3 +170,5 @@ private:
friend class FreqPlot;
};
#endif

5
src/HelpText.h

@ -8,7 +8,8 @@
**********************************************************************/
#pragma once
#ifndef __AUDACITY_HELP_TEXT__
#define __AUDACITY_HELP_TEXT__
class TranslatableString;
class wxString;
@ -23,3 +24,5 @@ TENACITY_DLL_API TranslatableString TitleText( const wxString & Key );
extern TENACITY_DLL_API const wxString VerCheckArgs();
extern TENACITY_DLL_API wxString FormatHtmlText( const wxString & Text );
#endif

5
src/HistoryWindow.h

@ -8,7 +8,8 @@
**********************************************************************/
#pragma once
#ifndef __AUDACITY_HISTORY_WINDOW__
#define __AUDACITY_HISTORY_WINDOW__
#include "Prefs.h"
#include "widgets/wxPanelWrapper.h" // to inherit
@ -69,3 +70,5 @@ class HistoryDialog final : public wxDialogWrapper,
public:
DECLARE_EVENT_TABLE()
};
#endif

5
src/HitTestResult.h

@ -8,7 +8,8 @@ Paul Licameli
**********************************************************************/
#pragma once
#ifndef __AUDACITY_HIT_TEST_RESULT__
#define __AUDACITY_HIT_TEST_RESULT__
#include <memory>
#include "Internat.h" // for TranslatableString
@ -29,3 +30,5 @@ struct HitTestPreview
wxCursor *cursor {};
TranslatableString tooltip{};
};
#endif

2
src/ImageManipulation.h

@ -8,8 +8,6 @@
**********************************************************************/
#pragma once
#include <memory>
#include <wx/defs.h>

5
src/InconsistencyException.h

@ -6,7 +6,8 @@
*/
#pragma once
#ifndef __AUDACITY_INCONSISTENCY_EXCEPTION__
#define __AUDACITY_INCONSISTENCY_EXCEPTION__
#include "AudacityException.h"
@ -76,3 +77,5 @@ For cases where the exception object is not immediately thrown */
@brief Throw InconsistencyException, using C++ preprocessor to identify the source code location
*/
#define THROW_INCONSISTENCY_EXCEPTION throw CONSTRUCT_INCONSISTENCY_EXCEPTION
#endif

5
src/InterpolateAudio.h

@ -22,7 +22,8 @@
*//*******************************************************************/
#pragma once
#ifndef __AUDACITY_INTERPOLATE_AUDIO__
#define __AUDACITY_INTERPOLATE_AUDIO__
#include <cstddef>
@ -37,3 +38,5 @@
// the other.
void TENACITY_DLL_API InterpolateAudio(float *buffer, size_t len,
size_t firstBad, size_t numBad);
#endif // __AUDACITY_INTERPOLATE_AUDIO__

6
src/KeyboardCapture.h

@ -8,7 +8,9 @@
**********************************************************************/
#pragma once
#ifndef __AUDACITY_KEYBOARD_CAPTURE__
#define __AUDACITY_KEYBOARD_CAPTURE__
#include <functional>
@ -58,3 +60,5 @@ namespace KeyboardCapture
TENACITY_DLL_API
void OnFocus( wxWindow &window, wxFocusEvent &event );
}
#endif

5
src/LabelDialog.h

@ -8,7 +8,8 @@
**********************************************************************/
#pragma once
#ifndef __AUDACITY_LABELDIALOG__
#define __AUDACITY_LABELDIALOG__
#include <vector>
#include <wx/defs.h>
@ -113,3 +114,5 @@ class LabelDialog final : public wxDialogWrapper
DECLARE_EVENT_TABLE()
};
#endif

4
src/LabelTrack.h

@ -10,7 +10,8 @@
**********************************************************************/
#pragma once
#ifndef _LABELTRACK_
#define _LABELTRACK_
#include "SelectedRegion.h"
#include "Track.h"
@ -224,3 +225,4 @@ wxDECLARE_EXPORTED_EVENT(TENACITY_DLL_API,
// Posted when the track is selected or unselected.
wxDECLARE_EXPORTED_EVENT(TENACITY_DLL_API,
EVT_LABELTRACK_SELECTION, LabelTrackEvent);
#endif

5
src/LangChoice.h

@ -12,9 +12,12 @@
**********************************************************************/
#pragma once
#ifndef __AUDACITY_LANG_CHOICE__
#define __AUDACITY_LANG_CHOICE__
class wxString;
class wxWindow;
wxString ChooseLanguage(wxWindow *parent);
#endif // __AUDACITY_LANG_CHOICE__

2
src/Legacy.h

@ -8,8 +8,6 @@
**********************************************************************/
#pragma once
#include <wx/defs.h>
class wxFileName;

5
src/Lyrics.h

@ -9,7 +9,8 @@
**********************************************************************/
#pragma once
#ifndef __AUDACITY_LYRICS__
#define __AUDACITY_LYRICS__
@ -160,3 +161,5 @@ private:
DECLARE_EVENT_TABLE()
};
#endif // __AUDACITY_LYRICS__

5
src/LyricsWindow.h

@ -9,7 +9,8 @@
**********************************************************************/
#pragma once
#ifndef __AUDACITY_LYRICS_WINDOW__
#define __AUDACITY_LYRICS_WINDOW__
#include <wx/frame.h> // to inherit
@ -45,3 +46,5 @@ class LyricsWindow final : public wxFrame,
public:
DECLARE_EVENT_TABLE()