1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-15 15:49:36 +02:00

Replace header guards with #pragma once

Signed-off-by: Leon Marz <main@lmarz.org>
This commit is contained in:
Leon Marz 2021-08-22 18:02:10 +02:00
parent 05205a5d6c
commit a6bc896e24
415 changed files with 429 additions and 1685 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -39,8 +39,7 @@
**********************************************************************/
#ifndef __AUDACITY_PLUGININTERFACE_H__
#define __AUDACITY_PLUGININTERFACE_H__
#pragma once
#include "tenacity/ConfigInterface.h"
#include "tenacity/EffectInterface.h"
@ -111,5 +110,3 @@ 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__

View File

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

View File

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

View File

@ -9,8 +9,7 @@
**********************************************************************/
#ifndef __AUDACITY_INTERNAT__
#define __AUDACITY_INTERNAT__
#pragma once
#include <vector>
#include <wx/longlong.h>
@ -163,5 +162,3 @@ 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

View File

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

View File

@ -8,8 +8,7 @@
**********************************************************************/
#ifndef __AUDACITY_TRANSLATABLE_STRING__
#define __AUDACITY_TRANSLATABLE_STRING__
#pragma once
#include <stddef.h> // for size_t
#include <functional>
@ -320,5 +319,3 @@ 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

View File

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

View File

@ -1,5 +1,4 @@
#ifndef __AUDACITY_MEMORY_X_H__
#define __AUDACITY_MEMORY_X_H__
#pragma once
// C++ standard header <memory> with a few extensions
#include <iterator>
@ -634,5 +633,3 @@ 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__

View File

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

View File

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

View File

@ -6,8 +6,7 @@
**********************************************************************/
#ifndef TENACITY_ABOUT_DLG
#define TENACITY_ABOUT_DLG
#pragma once
#include <vector>
#include "widgets/wxPanelWrapper.h" // to inherit
@ -89,5 +88,3 @@ 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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -8,8 +8,7 @@
**********************************************************************/
#ifndef __AUDACITY_HELP_TEXT__
#define __AUDACITY_HELP_TEXT__
#pragma once
class TranslatableString;
class wxString;
@ -24,5 +23,3 @@ 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

View File

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

View File

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

View File

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

View File

@ -6,8 +6,7 @@
*/
#ifndef __AUDACITY_INCONSISTENCY_EXCEPTION__
#define __AUDACITY_INCONSISTENCY_EXCEPTION__
#pragma once
#include "AudacityException.h"
@ -77,5 +76,3 @@ 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

View File

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

View File

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

View File

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

View File

@ -10,8 +10,7 @@
**********************************************************************/
#ifndef _LABELTRACK_
#define _LABELTRACK_
#pragma once
#include "SelectedRegion.h"
#include "Track.h"
@ -225,4 +224,3 @@ 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

View File

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

View File

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

View File

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

View File

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

View File

@ -23,8 +23,7 @@
*//*******************************************************************/
#ifndef __AUDACITY_MATRIX__
#define __AUDACITY_MATRIX__
#pragma once
#include "SampleFormat.h"
@ -109,5 +108,3 @@ Matrix MatrixSubset(const Matrix &M,
Matrix MatrixConcatenateCols(const Matrix& left, const Matrix& right);
bool InvertMatrix(const Matrix& M, Matrix& Minv);
#endif // __AUDACITY_MATRIX__

View File

@ -7,8 +7,7 @@
Dominic Mazzoni
**********************************************************************/
#ifndef __AUDACITY_MENUS__
#define __AUDACITY_MENUS__
#pragma once
#include "Identifier.h"
@ -122,5 +121,3 @@ public:
int mWhatIfNoSelection;
bool mStopIfWasPaused;
};
#endif

View File

@ -17,8 +17,7 @@
*//********************************************************************/
#ifndef __AUDACITY_MIX__
#define __AUDACITY_MIX__
#pragma once
#include "SampleFormat.h"
#include <vector>
@ -196,6 +195,3 @@ class TENACITY_DLL_API Mixer {
const bool mMayThrow;
};
#endif

View File

@ -11,8 +11,7 @@
#ifndef __AUDACITY_MIXER_BOARD__
#define __AUDACITY_MIXER_BOARD__
#pragma once
#include <wx/frame.h> // to inherit
#include <wx/scrolwin.h> // to inherit
@ -288,7 +287,3 @@ public:
public:
DECLARE_EVENT_TABLE()
};
#endif // __AUDACITY_MIXER_BOARD__

View File

@ -9,8 +9,7 @@
**********************************************************************/
#ifndef __AUDACITY_MODULEMANAGER_H__
#define __AUDACITY_MODULEMANAGER_H__
#pragma once
#include "MemoryX.h"
#include <functional>
@ -152,5 +151,3 @@ void UnregisterProvider(ModuleMain rtn);
// be destroyed only after the un-registrations
static struct Init{
Init() { RegisterProvider(nullptr); } } sInitBuiltinModules;
#endif /* __AUDACITY_MODULEMANAGER_H__ */

View File

@ -8,8 +8,7 @@
**********************************************************************/
#ifndef __AUDACITY_MODULE_SETTINGS__
#define __AUDACITY_MODULE_SETTINGS__
#pragma once
#include "Identifier.h"
@ -27,5 +26,3 @@ int GetModuleStatus( const FilePath &fname );
void SetModuleStatus( const FilePath &fname, int iStatus );
}
#endif

View File

@ -8,8 +8,7 @@
**********************************************************************/
#ifndef __AUDACITY_NOTETRACK__
#define __AUDACITY_NOTETRACK__
#pragma once
@ -290,6 +289,3 @@ public:
#define SonifyBeginModifyState()
#define SonifyEndModifyState()
#endif
#endif

View File

@ -8,8 +8,7 @@ Paul Licameli
**********************************************************************/
#ifndef __AUDACITY_NUMBER_SCALE__
#define __AUDACITY_NUMBER_SCALE__
#pragma once
#include <algorithm>
#include <cmath>
@ -279,5 +278,3 @@ private:
float mValue0;
float mValue1;
};
#endif

View File

@ -15,8 +15,7 @@
*//*******************************************************************/
#ifndef __AUDACITY_PITCHNAME__
#define __AUDACITY_PITCHNAME__
#pragma once
class TranslatableString;
@ -60,5 +59,3 @@ double PitchToMIDInote(const unsigned int nPitchIndex, const int nPitchOctave);
TENACITY_DLL_API
double PitchToFreq(const unsigned int nPitchIndex, const int nPitchOctave);
#endif // __AUDACITY_PITCHNAME__

View File

@ -17,8 +17,7 @@
**********************************************************************/
#ifndef __AUDACITY_COMPATIBILITY__
#define __AUDACITY_COMPATIBILITY__
#pragma once
#include "Identifier.h"
@ -40,5 +39,3 @@ public:
//
static const FilePath &GetExecutablePath();
};
#endif

View File

@ -8,8 +8,7 @@
**********************************************************************/
#ifndef __AUDACITY_PLAYBACK_SCHEDULE__
#define __AUDACITY_PLAYBACK_SCHEDULE__
#pragma once
#include <atomic>
#include <vector>
@ -163,5 +162,3 @@ struct TENACITY_DLL_API PlaybackSchedule {
void RealTimeRestart();
};
#endif

View File

@ -8,8 +8,7 @@
**********************************************************************/
#ifndef __AUDACITY_PLUGINMANAGER_H__
#define __AUDACITY_PLUGINMANAGER_H__
#pragma once
#include <wx/defs.h>
@ -360,5 +359,3 @@ private:
#define NYQUIST_PROMPT_ID wxT("Nyquist Prompt")
// User-visible name might change in later versions
#define NYQUIST_PROMPT_NAME XO("Nyquist Prompt")
#endif /* __AUDACITY_PLUGINMANAGER_H__ */

View File

@ -7,8 +7,7 @@
Paul Licameli split from PluginManager.cpp
**********************************************************************/
#ifndef __AUDACITY_PLUGIN_REGISTRATION_DIALOG__
#define __AUDACITY_PLUGIN_REGISTRATION_DIALOG__
#pragma once
#include "widgets/wxPanelWrapper.h" // to inherit
#include <vector>
@ -80,6 +79,3 @@ private:
DECLARE_EVENT_TABLE()
};
#endif

View File

@ -26,8 +26,7 @@
track of...
**********************************************************************/
#ifndef __AUDACITY_PREFS__
#define __AUDACITY_PREFS__
#pragma once
@ -423,5 +422,3 @@ struct TENACITY_DLL_API PreferenceInitializer {
static void ReinitializeAll();
};
#endif

View File

@ -8,8 +8,7 @@
**********************************************************************/
#ifndef __AUDACITY_PRINTING__
#define __AUDACITY_PRINTING__
#pragma once
#include <wx/defs.h>
@ -22,6 +21,3 @@ void HandlePageSetup(wxWindow *parent);
void HandlePrint(
wxWindow *parent, const wxString &name, TrackList *tracks,
TrackPanel &panel);
#endif // __AUDACITY_PRINTING__

View File

@ -22,10 +22,9 @@ but it will probably work fine if you use it on a high level.
#pragma once
#ifndef __AUDACITY_PROFILER__
#define __AUDACITY_PROFILER__
#include <mutex>
#include <vector>
#include "MemoryX.h"
@ -85,7 +84,3 @@ class Profiler
clock_t mCumTime;
clock_t mLastTime;
};
#endif

View File

@ -8,8 +8,7 @@
**********************************************************************/
#ifndef __AUDACITY_PROJECT__
#define __AUDACITY_PROJECT__
#pragma once
#include "Identifier.h"
@ -181,5 +180,3 @@ inline const wxFrame *FindProjectFrame( const AudacityProject *project ) {
TENACITY_DLL_API wxWindow &GetProjectPanel( AudacityProject &project );
TENACITY_DLL_API const wxWindow &GetProjectPanel(
const AudacityProject &project );
#endif

View File

@ -8,8 +8,7 @@ Paul Licameli split from AudacityProject.h
**********************************************************************/
#ifndef __PROJECT_AUDIO_IO__
#define __PROJECT_AUDIO_IO__
#pragma once
#include "ClientData.h" // to inherit
#include <wx/weakref.h>
@ -52,5 +51,3 @@ private:
int mAudioIOToken{ -1 };
};
#endif

View File

@ -8,8 +8,7 @@ Paul Licameli split from ProjectManager.h
**********************************************************************/
#ifndef __AUDACITY_PROJECT_AUDIO_MANAGER__
#define __AUDACITY_PROJECT_AUDIO_MANAGER__
#pragma once
#include <memory>
#include <vector>
@ -182,5 +181,3 @@ PropertiesOfSelected GetPropertiesOfSelected(const AudacityProject &proj);
extern TENACITY_DLL_API const ReservedCommandFlag
&CanStopAudioStreamFlag();
#endif

View File

@ -10,8 +10,7 @@
**********************************************************************/
#ifndef __AUDACITY_PROJECT_FSCK__
#define __AUDACITY_PROJECT_FSCK__
#pragma once
class DirManager;
@ -28,5 +27,3 @@ enum : unsigned {
// Too complicated during auto-recover. Just correct problems the "safest" way.
int ProjectFSCK(
DirManager &dm, const bool bForceError, const bool bAutoRecoverMode);
#endif

View File

@ -8,8 +8,7 @@ Paul Licameli split from AudacityProject.h
**********************************************************************/
#ifndef __AUDACITY_PROJECT_FILE_IO__
#define __AUDACITY_PROJECT_FILE_IO__
#pragma once
#include <memory>
#include <unordered_set>
@ -339,5 +338,3 @@ public:
private:
std::shared_ptr<AudacityProject> mpProject;
};
#endif

View File

@ -8,8 +8,7 @@
**********************************************************************/
#ifndef __AUDACITY_PROJECT_FILE_IO_REGISTRY__
#define __AUDACITY_PROJECT_FILE_IO_REGISTRY__
#pragma once
#include <functional>
@ -31,5 +30,3 @@ struct TENACITY_DLL_API Entry{
TagHandlerFactory Lookup( const wxString &tag );
}
#endif

View File

@ -8,8 +8,7 @@ Paul Licameli split from AudacityProject.h
**********************************************************************/
#ifndef __AUDACITY_PROJECT_FILE_MANAGER__
#define __AUDACITY_PROJECT_FILE_MANAGER__
#pragma once
#include <functional>
#include <memory>
@ -134,5 +133,3 @@ private:
// Are we currently closing as the result of a menu command?
bool mMenuClose{ false };
};
#endif

View File

@ -8,8 +8,7 @@ Paul Licameli split from ProjectManager.h
**********************************************************************/
#ifndef __AUDACITY_PROJECT_HISTORY__
#define __AUDACITY_PROJECT_HISTORY__
#pragma once
#include "ClientData.h"
@ -56,5 +55,3 @@ private:
bool mDirty{ false };
};
#endif

View File

@ -8,8 +8,7 @@ Paul Licameli split from AudacityProject.h
**********************************************************************/
#ifndef __AUDACITY_PROJECT_MANAGER__
#define __AUDACITY_PROJECT_MANAGER__
#pragma once
#include <memory>
@ -128,5 +127,3 @@ private:
static bool sbWindowRectAlreadySaved;
static bool sbSkipPromptingForSave;
};
#endif

View File

@ -8,8 +8,7 @@ Paul Licameli split from ProjectManager.cpp
**********************************************************************/
#ifndef __AUDACITY_PROJECT_SELECTION_MANAGER__
#define __AUDACITY_PROJECT_SELECTION_MANAGER__
#pragma once
#include "ClientData.h" // to inherit
#include "toolbars/SelectionBarListener.h" // to inherit
@ -61,5 +60,3 @@ private:
AudacityProject &mProject;
};
#endif

View File

@ -8,8 +8,7 @@
*******************************************************************/
#ifndef __AUDACITY_PROJECTSERIALIZER__
#define __AUDACITY_PROJECTSERIALIZER__
#pragma once
#include "xml/XMLTagHandler.h"
@ -78,5 +77,3 @@ private:
static NameMap mNames;
static wxMemoryBuffer mDict;
};
#endif

View File

@ -8,8 +8,7 @@ Paul Licameli split from AudacityProject.h
**********************************************************************/
#ifndef __AUDACITY_PROJECT_SETTINGS__
#define __AUDACITY_PROJECT_SETTINGS__
#pragma once
#include <atomic>
#include <wx/event.h> // to declare custom event type
@ -146,5 +145,3 @@ private:
bool mEmptyCanBeDirty;
bool mShowSplashScreen;
};
#endif

View File

@ -8,9 +8,7 @@ Paul Licameli
**********************************************************************/
#ifndef __AUDACITY_PROJECT_STATUS__
#define __AUDACITY_PROJECT_STATUS__
#endif
#pragma once
#include <utility>
#include <vector>

View File

@ -8,8 +8,7 @@ Paul Licameli split from AudacityProject.h
**********************************************************************/
#ifndef __AUDACITY_PROJECT_WINDOW__
#define __AUDACITY_PROJECT_WINDOW__
#pragma once
#include <memory>
#include "ProjectWindowBase.h" // to inherit
@ -204,5 +203,3 @@ private:
void GetDefaultWindowRect(wxRect *defRect);
void GetNextWindowPlacement(wxRect *nextRect, bool *pMaximized, bool *pIconized);
#endif

View File

@ -8,8 +8,7 @@ Paul Licameli split from ProjectWindow.h
**********************************************************************/
#ifndef __AUDACITY_PROJECT_WINDOW_BASE__
#define __AUDACITY_PROJECT_WINDOW_BASE__
#pragma once
#include <wx/frame.h> // to inherit
@ -35,6 +34,3 @@ protected:
TENACITY_DLL_API AudacityProject *FindProjectFromWindow( wxWindow *pWindow );
const AudacityProject *FindProjectFromWindow( const wxWindow *pWindow );
#endif

View File

@ -1,5 +1,4 @@
#ifndef __realfftf_h
#define __realfftf_h
#pragma once
@ -31,6 +30,3 @@ TENACITY_DLL_API void InverseRealFFTf(fft_type *, const FFTParam *);
TENACITY_DLL_API void ReorderToTime(const FFTParam *hFFT, const fft_type *buffer, fft_type *TimeOut);
TENACITY_DLL_API void ReorderToFreq(const FFTParam *hFFT, const fft_type *buffer,
fft_type *RealOut, fft_type *ImagOut);
#endif

Some files were not shown because too many files have changed in this diff Show More