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

Revert "Replace header guards with #pragma once"

This reverts commit a6bc896e246d48821ff7ae70d572aefcf0cbedd6.
This commit is contained in:
Emily Mabrey 2021-08-24 16:57:24 -04:00
parent 669254d5a5
commit 40d4883233
No known key found for this signature in database
GPG Key ID: 6F4EF47256A1B7DC
415 changed files with 1685 additions and 429 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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__ */

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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()
};
#endif

View File

@ -23,7 +23,8 @@
*//*******************************************************************/
#pragma once
#ifndef __AUDACITY_MATRIX__
#define __AUDACITY_MATRIX__
#include "SampleFormat.h"
@ -108,3 +109,5 @@ 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,7 +7,8 @@
Dominic Mazzoni
**********************************************************************/
#pragma once
#ifndef __AUDACITY_MENUS__
#define __AUDACITY_MENUS__
#include "Identifier.h"
@ -121,3 +122,5 @@ public:
int mWhatIfNoSelection;
bool mStopIfWasPaused;
};
#endif

View File

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

View File

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

View File

@ -9,7 +9,8 @@
**********************************************************************/
#pragma once
#ifndef __AUDACITY_MODULEMANAGER_H__
#define __AUDACITY_MODULEMANAGER_H__
#include "MemoryX.h"
#include <functional>
@ -151,3 +152,5 @@ 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,7 +8,8 @@
**********************************************************************/
#pragma once
#ifndef __AUDACITY_MODULE_SETTINGS__
#define __AUDACITY_MODULE_SETTINGS__
#include "Identifier.h"
@ -26,3 +27,5 @@ int GetModuleStatus( const FilePath &fname );
void SetModuleStatus( const FilePath &fname, int iStatus );
}
#endif

View File

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

View File

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

View File

@ -15,7 +15,8 @@
*//*******************************************************************/
#pragma once
#ifndef __AUDACITY_PITCHNAME__
#define __AUDACITY_PITCHNAME__
class TranslatableString;
@ -59,3 +60,5 @@ 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,7 +17,8 @@
**********************************************************************/
#pragma once
#ifndef __AUDACITY_COMPATIBILITY__
#define __AUDACITY_COMPATIBILITY__
#include "Identifier.h"
@ -39,3 +40,5 @@ public:
//
static const FilePath &GetExecutablePath();
};
#endif

View File

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

View File

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

View File

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

View File

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

View File

@ -22,9 +22,10 @@ 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"
@ -84,3 +85,7 @@ class Profiler
clock_t mCumTime;
clock_t mLastTime;
};
#endif

View File

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

View File

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

View File

@ -10,7 +10,8 @@
**********************************************************************/
#pragma once
#ifndef __AUDACITY_PROJECT_FSCK__
#define __AUDACITY_PROJECT_FSCK__
class DirManager;
@ -27,3 +28,5 @@ 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,7 +8,8 @@ Paul Licameli split from AudacityProject.h
**********************************************************************/
#pragma once
#ifndef __AUDACITY_PROJECT_FILE_IO__
#define __AUDACITY_PROJECT_FILE_IO__
#include <memory>
#include <unordered_set>
@ -338,3 +339,5 @@ public:
private:
std::shared_ptr<AudacityProject> mpProject;
};
#endif

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,4 +1,5 @@
#pragma once
#ifndef __realfftf_h
#define __realfftf_h
@ -30,3 +31,6 @@ 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