mirror of
https://github.com/cookiengineer/audacity
synced 2025-04-30 15:49:41 +02:00
Merge pull request from lmarz/master
Replace `AUDACITY_DLL_API` with `TENACITY_DLL_API` Signed-off-by: Leon Marz <main@lmarz.org> Reference-to: https://github.com/tenacityteam/tenacity/pull/523
This commit is contained in:
commit
63bf659389
@ -2061,7 +2061,7 @@ INCLUDE_FILE_PATTERNS =
|
|||||||
# recursively expanded use the := operator instead of the = operator.
|
# recursively expanded use the := operator instead of the = operator.
|
||||||
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
|
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
|
||||||
|
|
||||||
PREDEFINED = AUDACITY_DLL_API \
|
PREDEFINED = TENACITY_DLL_API \
|
||||||
USE_VST=1 \
|
USE_VST=1 \
|
||||||
USE_FFMPEG=1 \
|
USE_FFMPEG=1 \
|
||||||
USE_LV2=1 \
|
USE_LV2=1 \
|
||||||
|
@ -33,5 +33,5 @@
|
|||||||
#include "Cursors32/ArrowRightCursor.xpm"
|
#include "Cursors32/ArrowRightCursor.xpm"
|
||||||
#include "Cursors32/DrawToolSmoothing.xpm"
|
#include "Cursors32/DrawToolSmoothing.xpm"
|
||||||
|
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
std::unique_ptr<wxCursor> MakeCursor(int WXUNUSED(CursorId), const char * const pXpm[36], int HotX, int HotY);
|
std::unique_ptr<wxCursor> MakeCursor(int WXUNUSED(CursorId), const char * const pXpm[36], int HotX, int HotY);
|
||||||
|
@ -58,7 +58,7 @@ plugins. It is what makes a class a plug-in. Additionally it provides an
|
|||||||
optional parameter definitions function, for those components such as commands,
|
optional parameter definitions function, for those components such as commands,
|
||||||
effects and (soon) preference pagess that define parameters.
|
effects and (soon) preference pagess that define parameters.
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
class AUDACITY_DLL_API ComponentInterface /* not final */
|
class TENACITY_DLL_API ComponentInterface /* not final */
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
virtual ~ComponentInterface() {};
|
virtual ~ComponentInterface() {};
|
||||||
|
@ -53,7 +53,7 @@ differentiates between private and shared config. It should probably be replace
|
|||||||
with a Shuttle.
|
with a Shuttle.
|
||||||
|
|
||||||
*******************************************************************************************/
|
*******************************************************************************************/
|
||||||
class AUDACITY_DLL_API ConfigClientInterface /* not final */
|
class TENACITY_DLL_API ConfigClientInterface /* not final */
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
virtual ~ConfigClientInterface() {};
|
virtual ~ConfigClientInterface() {};
|
||||||
|
@ -71,7 +71,7 @@ typedef enum EffectType : int
|
|||||||
flag-functions for interactivity, play-preview and whether the effect can run without a GUI.
|
flag-functions for interactivity, play-preview and whether the effect can run without a GUI.
|
||||||
|
|
||||||
*******************************************************************************************/
|
*******************************************************************************************/
|
||||||
class AUDACITY_DLL_API EffectDefinitionInterface /* not final */ : public ComponentInterface
|
class TENACITY_DLL_API EffectDefinitionInterface /* not final */ : public ComponentInterface
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
virtual ~EffectDefinitionInterface() {};
|
virtual ~EffectDefinitionInterface() {};
|
||||||
@ -116,7 +116,7 @@ virtual (abstract) functions to get presets and actually apply the effect. It u
|
|||||||
ConfigClientInterface to add Getters/setters for private and shared configs.
|
ConfigClientInterface to add Getters/setters for private and shared configs.
|
||||||
|
|
||||||
*******************************************************************************************/
|
*******************************************************************************************/
|
||||||
class AUDACITY_DLL_API EffectHostInterface /* not final */ : public ConfigClientInterface
|
class TENACITY_DLL_API EffectHostInterface /* not final */ : public ConfigClientInterface
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
virtual ~EffectHostInterface() {};
|
virtual ~EffectHostInterface() {};
|
||||||
@ -141,7 +141,7 @@ Effect into a plug-in command. It has functions for realtime that are not part
|
|||||||
AudacityCommand.
|
AudacityCommand.
|
||||||
|
|
||||||
*******************************************************************************************/
|
*******************************************************************************************/
|
||||||
class AUDACITY_DLL_API EffectClientInterface /* not final */ : public EffectDefinitionInterface
|
class TENACITY_DLL_API EffectClientInterface /* not final */ : public EffectDefinitionInterface
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
using EffectDialogFactory = std::function<
|
using EffectDialogFactory = std::function<
|
||||||
@ -213,7 +213,7 @@ can call SetHostUI passing in a pointer to an EffectUIHostInterface. It contain
|
|||||||
functionality and is provided, apparently, for type checking. Since only EffectUIHost
|
functionality and is provided, apparently, for type checking. Since only EffectUIHost
|
||||||
uses it, EffectUIHost could be used instead.
|
uses it, EffectUIHost could be used instead.
|
||||||
*******************************************************************************************/
|
*******************************************************************************************/
|
||||||
class AUDACITY_DLL_API EffectUIHostInterface
|
class TENACITY_DLL_API EffectUIHostInterface
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
virtual ~EffectUIHostInterface() {};
|
virtual ~EffectUIHostInterface() {};
|
||||||
@ -227,7 +227,7 @@ public:
|
|||||||
values. It can import and export presets.
|
values. It can import and export presets.
|
||||||
|
|
||||||
*******************************************************************************************/
|
*******************************************************************************************/
|
||||||
class AUDACITY_DLL_API EffectUIClientInterface /* not final */
|
class TENACITY_DLL_API EffectUIClientInterface /* not final */
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
virtual ~EffectUIClientInterface() {};
|
virtual ~EffectUIClientInterface() {};
|
||||||
|
@ -50,7 +50,7 @@
|
|||||||
class ModuleInterface;
|
class ModuleInterface;
|
||||||
|
|
||||||
|
|
||||||
class AUDACITY_DLL_API PluginManagerInterface /* not final */
|
class TENACITY_DLL_API PluginManagerInterface /* not final */
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
#elif _DLL
|
#elif _DLL
|
||||||
#define SCRIPT_PIPE_DLL_API _declspec(dllimport)
|
#define SCRIPT_PIPE_DLL_API _declspec(dllimport)
|
||||||
#else
|
#else
|
||||||
#define AUDACITY_DLL_API
|
#define TENACITY_DLL_API
|
||||||
#endif
|
#endif
|
||||||
#endif //_MSC_VER
|
#endif //_MSC_VER
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ class wxDC;
|
|||||||
class wxGraphicsContext;
|
class wxGraphicsContext;
|
||||||
class wxRect;
|
class wxRect;
|
||||||
|
|
||||||
class AUDACITY_DLL_API AColor {
|
class TENACITY_DLL_API AColor {
|
||||||
public:
|
public:
|
||||||
|
|
||||||
enum ColorGradientChoice {
|
enum ColorGradientChoice {
|
||||||
|
@ -27,7 +27,7 @@ struct AboutDialogCreditItem
|
|||||||
|
|
||||||
using AboutDialogCreditItemsList = std::vector<AboutDialogCreditItem>;
|
using AboutDialogCreditItemsList = std::vector<AboutDialogCreditItem>;
|
||||||
|
|
||||||
class AUDACITY_DLL_API AboutDialog final : public wxDialogWrapper{
|
class TENACITY_DLL_API AboutDialog final : public wxDialogWrapper{
|
||||||
DECLARE_DYNAMIC_CLASS(AboutDialog)
|
DECLARE_DYNAMIC_CLASS(AboutDialog)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
@ -23,7 +23,7 @@ class SnapManager;
|
|||||||
class TrackList;
|
class TrackList;
|
||||||
|
|
||||||
// This is an Audacity Specific ruler panel.
|
// This is an Audacity Specific ruler panel.
|
||||||
class AUDACITY_DLL_API AdornedRulerPanel final
|
class TENACITY_DLL_API AdornedRulerPanel final
|
||||||
: public CellularPanel
|
: public CellularPanel
|
||||||
, private PrefsListener
|
, private PrefsListener
|
||||||
{
|
{
|
||||||
|
@ -53,7 +53,7 @@ protected:
|
|||||||
//! Abstract AudacityException subclass displays a message, specified by further subclass
|
//! Abstract AudacityException subclass displays a message, specified by further subclass
|
||||||
/*! At most one message will be displayed for each pass through the main event idle loop,
|
/*! At most one message will be displayed for each pass through the main event idle loop,
|
||||||
no matter how many exceptions were caught. */
|
no matter how many exceptions were caught. */
|
||||||
class AUDACITY_DLL_API MessageBoxException /* not final */
|
class TENACITY_DLL_API MessageBoxException /* not final */
|
||||||
: public AudacityException
|
: public AudacityException
|
||||||
{
|
{
|
||||||
//! Privatize the inherited function
|
//! Privatize the inherited function
|
||||||
@ -86,7 +86,7 @@ protected:
|
|||||||
};
|
};
|
||||||
|
|
||||||
//! A MessageBoxException that shows a given, unvarying string.
|
//! A MessageBoxException that shows a given, unvarying string.
|
||||||
class AUDACITY_DLL_API SimpleMessageBoxException /* not final */
|
class TENACITY_DLL_API SimpleMessageBoxException /* not final */
|
||||||
: public MessageBoxException
|
: public MessageBoxException
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -16,7 +16,7 @@ Paul Licameli split from Prefs.h
|
|||||||
#include "widgets/FileConfig.h" // to inherit
|
#include "widgets/FileConfig.h" // to inherit
|
||||||
|
|
||||||
/// \brief Our own specialisation of FileConfig.
|
/// \brief Our own specialisation of FileConfig.
|
||||||
class AUDACITY_DLL_API AudacityFileConfig final : public FileConfig
|
class TENACITY_DLL_API AudacityFileConfig final : public FileConfig
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
//! Require a call to this factory, to guarantee proper two-phase initialization
|
//! Require a call to this factory, to guarantee proper two-phase initialization
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
class wxFrame;
|
class wxFrame;
|
||||||
class wxTextCtrl;
|
class wxTextCtrl;
|
||||||
|
|
||||||
class AUDACITY_DLL_API AudacityLogger final : public wxEvtHandler,
|
class TENACITY_DLL_API AudacityLogger final : public wxEvtHandler,
|
||||||
public wxLog,
|
public wxLog,
|
||||||
public PrefsListener
|
public PrefsListener
|
||||||
{
|
{
|
||||||
|
@ -66,11 +66,11 @@ bool ValidateDeviceNames();
|
|||||||
#define MAX_MIDI_BUFFER_SIZE 5000
|
#define MAX_MIDI_BUFFER_SIZE 5000
|
||||||
#define DEFAULT_SYNTH_LATENCY 5
|
#define DEFAULT_SYNTH_LATENCY 5
|
||||||
|
|
||||||
wxDECLARE_EXPORTED_EVENT(AUDACITY_DLL_API,
|
wxDECLARE_EXPORTED_EVENT(TENACITY_DLL_API,
|
||||||
EVT_AUDIOIO_PLAYBACK, wxCommandEvent);
|
EVT_AUDIOIO_PLAYBACK, wxCommandEvent);
|
||||||
wxDECLARE_EXPORTED_EVENT(AUDACITY_DLL_API,
|
wxDECLARE_EXPORTED_EVENT(TENACITY_DLL_API,
|
||||||
EVT_AUDIOIO_CAPTURE, wxCommandEvent);
|
EVT_AUDIOIO_CAPTURE, wxCommandEvent);
|
||||||
wxDECLARE_EXPORTED_EVENT(AUDACITY_DLL_API,
|
wxDECLARE_EXPORTED_EVENT(TENACITY_DLL_API,
|
||||||
EVT_AUDIOIO_MONITOR, wxCommandEvent);
|
EVT_AUDIOIO_MONITOR, wxCommandEvent);
|
||||||
|
|
||||||
// PRL:
|
// PRL:
|
||||||
@ -228,7 +228,7 @@ void MessageBuffer<Data>::Write( Data &&data )
|
|||||||
mSlots[idx].mBusy.store( false, std::memory_order_release );
|
mSlots[idx].mBusy.store( false, std::memory_order_release );
|
||||||
}
|
}
|
||||||
|
|
||||||
class AUDACITY_DLL_API AudioIoCallback /* not final */
|
class TENACITY_DLL_API AudioIoCallback /* not final */
|
||||||
: public AudioIOBase
|
: public AudioIOBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@ -580,7 +580,7 @@ protected:
|
|||||||
PlaybackSchedule mPlaybackSchedule;
|
PlaybackSchedule mPlaybackSchedule;
|
||||||
};
|
};
|
||||||
|
|
||||||
class AUDACITY_DLL_API AudioIO final : public AudioIoCallback
|
class TENACITY_DLL_API AudioIO final : public AudioIoCallback
|
||||||
{
|
{
|
||||||
|
|
||||||
AudioIO();
|
AudioIO();
|
||||||
|
@ -118,7 +118,7 @@ struct AudioIOStartStreamOptions
|
|||||||
|
|
||||||
///\brief A singleton object supporting queries of the state of any active
|
///\brief A singleton object supporting queries of the state of any active
|
||||||
/// audio streams, and audio device capabilities
|
/// audio streams, and audio device capabilities
|
||||||
class AUDACITY_DLL_API AudioIOBase /* not final */
|
class TENACITY_DLL_API AudioIOBase /* not final */
|
||||||
: public NonInterferingBase
|
: public NonInterferingBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@ -344,11 +344,11 @@ protected:
|
|||||||
|
|
||||||
#include "Prefs.h"
|
#include "Prefs.h"
|
||||||
|
|
||||||
extern AUDACITY_DLL_API StringSetting AudioIOHost;
|
extern TENACITY_DLL_API StringSetting AudioIOHost;
|
||||||
extern AUDACITY_DLL_API DoubleSetting AudioIOLatencyCorrection;
|
extern TENACITY_DLL_API DoubleSetting AudioIOLatencyCorrection;
|
||||||
extern AUDACITY_DLL_API DoubleSetting AudioIOLatencyDuration;
|
extern TENACITY_DLL_API DoubleSetting AudioIOLatencyDuration;
|
||||||
extern AUDACITY_DLL_API StringSetting AudioIOPlaybackDevice;
|
extern TENACITY_DLL_API StringSetting AudioIOPlaybackDevice;
|
||||||
extern AUDACITY_DLL_API IntSetting AudioIORecordChannels;
|
extern TENACITY_DLL_API IntSetting AudioIORecordChannels;
|
||||||
extern AUDACITY_DLL_API StringSetting AudioIORecordingDevice;
|
extern TENACITY_DLL_API StringSetting AudioIORecordingDevice;
|
||||||
extern AUDACITY_DLL_API StringSetting AudioIORecordingSource;
|
extern TENACITY_DLL_API StringSetting AudioIORecordingSource;
|
||||||
extern AUDACITY_DLL_API IntSetting AudioIORecordingSourceIndex;
|
extern TENACITY_DLL_API IntSetting AudioIORecordingSourceIndex;
|
||||||
|
@ -19,7 +19,7 @@ class WaveTrack;
|
|||||||
using WaveTrackArray =
|
using WaveTrackArray =
|
||||||
std::vector < std::shared_ptr < WaveTrack > >;
|
std::vector < std::shared_ptr < WaveTrack > >;
|
||||||
|
|
||||||
class AUDACITY_DLL_API AudioIOListener /* not final */ {
|
class TENACITY_DLL_API AudioIOListener /* not final */ {
|
||||||
public:
|
public:
|
||||||
AudioIOListener() {}
|
AudioIOListener() {}
|
||||||
virtual ~AudioIOListener() {}
|
virtual ~AudioIOListener() {}
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
class wxWindow;
|
class wxWindow;
|
||||||
class AudacityProject;
|
class AudacityProject;
|
||||||
|
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
void RunBenchmark( wxWindow *parent, AudacityProject &project );
|
void RunBenchmark( wxWindow *parent, AudacityProject &project );
|
||||||
|
|
||||||
#endif // define __AUDACITY_BENCHMARK__
|
#endif // define __AUDACITY_BENCHMARK__
|
||||||
|
@ -1336,9 +1336,9 @@ source_group(
|
|||||||
${_INTDIR}/CMakeFiles/Tenacity.dir/cmake_pch.hxx
|
${_INTDIR}/CMakeFiles/Tenacity.dir/cmake_pch.hxx
|
||||||
)
|
)
|
||||||
|
|
||||||
# Define AUDACITY_DLL_API
|
# Define TENACITY_DLL_API
|
||||||
import_symbol_define( import_symbol AUDACITY_DLL )
|
import_symbol_define( import_symbol TENACITY_DLL )
|
||||||
export_symbol_define( export_symbol AUDACITY_DLL )
|
export_symbol_define( export_symbol TENACITY_DLL )
|
||||||
list( APPEND DEFINES PRIVATE "${export_symbol}" INTERFACE "${import_symbol}" )
|
list( APPEND DEFINES PRIVATE "${export_symbol}" INTERFACE "${import_symbol}" )
|
||||||
|
|
||||||
target_sources( ${TARGET} PRIVATE ${HEADERS} ${SOURCES} ${RESOURCES} ${MAC_RESOURCES} ${WIN_RESOURCES} )
|
target_sources( ${TARGET} PRIVATE ${HEADERS} ${SOURCES} ${RESOURCES} ${MAC_RESOURCES} ${WIN_RESOURCES} )
|
||||||
|
@ -31,7 +31,7 @@ using UIHandlePtr = std::shared_ptr<UIHandle>;
|
|||||||
// cells, that each implement hit tests returning click-drag-release handler
|
// cells, that each implement hit tests returning click-drag-release handler
|
||||||
// objects, and other services.
|
// objects, and other services.
|
||||||
// It has no dependency on the Track class.
|
// It has no dependency on the Track class.
|
||||||
class AUDACITY_DLL_API CellularPanel : public OverlayPanel {
|
class TENACITY_DLL_API CellularPanel : public OverlayPanel {
|
||||||
public:
|
public:
|
||||||
CellularPanel(wxWindow * parent, wxWindowID id,
|
CellularPanel(wxWindow * parent, wxWindowID id,
|
||||||
const wxPoint & pos,
|
const wxPoint & pos,
|
||||||
|
@ -24,7 +24,7 @@ Paul Licameli
|
|||||||
namespace ClientData {
|
namespace ClientData {
|
||||||
|
|
||||||
//! A convenient default parameter for class template @b Site
|
//! A convenient default parameter for class template @b Site
|
||||||
struct AUDACITY_DLL_API Base
|
struct TENACITY_DLL_API Base
|
||||||
{
|
{
|
||||||
virtual ~Base() {}
|
virtual ~Base() {}
|
||||||
};
|
};
|
||||||
@ -44,7 +44,7 @@ template< typename Object > using BarePtr = Object*;
|
|||||||
*/
|
*/
|
||||||
template<
|
template<
|
||||||
template<typename> class Owner = UniquePtr
|
template<typename> class Owner = UniquePtr
|
||||||
> struct AUDACITY_DLL_API Cloneable
|
> struct TENACITY_DLL_API Cloneable
|
||||||
{
|
{
|
||||||
using Base = Cloneable;
|
using Base = Cloneable;
|
||||||
using PointerType = Owner< Base >;
|
using PointerType = Owner< Base >;
|
||||||
|
@ -20,10 +20,10 @@ class AudacityProject;
|
|||||||
class TrackList;
|
class TrackList;
|
||||||
|
|
||||||
// An event emitted by the clipboard whenever its contents change.
|
// An event emitted by the clipboard whenever its contents change.
|
||||||
wxDECLARE_EXPORTED_EVENT( AUDACITY_DLL_API,
|
wxDECLARE_EXPORTED_EVENT( TENACITY_DLL_API,
|
||||||
EVT_CLIPBOARD_CHANGE, wxCommandEvent );
|
EVT_CLIPBOARD_CHANGE, wxCommandEvent );
|
||||||
|
|
||||||
class AUDACITY_DLL_API Clipboard final
|
class TENACITY_DLL_API Clipboard final
|
||||||
: public wxEvtHandler
|
: public wxEvtHandler
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -15,19 +15,19 @@ Paul Licameli split from Menus.cpp
|
|||||||
|
|
||||||
#include "commands/CommandFlag.h"
|
#include "commands/CommandFlag.h"
|
||||||
|
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
bool EditableTracksSelectedPred( const AudacityProject &project );
|
bool EditableTracksSelectedPred( const AudacityProject &project );
|
||||||
|
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
bool AudioIOBusyPred( const AudacityProject &project );
|
bool AudioIOBusyPred( const AudacityProject &project );
|
||||||
|
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
bool TimeSelectedPred( const AudacityProject &project );
|
bool TimeSelectedPred( const AudacityProject &project );
|
||||||
|
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
const CommandFlagOptions &cutCopyOptions();
|
const CommandFlagOptions &cutCopyOptions();
|
||||||
|
|
||||||
extern AUDACITY_DLL_API const ReservedCommandFlag
|
extern TENACITY_DLL_API const ReservedCommandFlag
|
||||||
&AudioIONotBusyFlag(),
|
&AudioIONotBusyFlag(),
|
||||||
&StereoRequiredFlag(), //lda
|
&StereoRequiredFlag(), //lda
|
||||||
&NoiseReductionTimeSelectedFlag(),
|
&NoiseReductionTimeSelectedFlag(),
|
||||||
@ -38,11 +38,11 @@ extern AUDACITY_DLL_API const ReservedCommandFlag
|
|||||||
&AnyTracksSelectedFlag(),
|
&AnyTracksSelectedFlag(),
|
||||||
&TrackPanelHasFocus(); //lll
|
&TrackPanelHasFocus(); //lll
|
||||||
|
|
||||||
extern AUDACITY_DLL_API const ReservedCommandFlag
|
extern TENACITY_DLL_API const ReservedCommandFlag
|
||||||
&AudioIOBusyFlag(), // lll
|
&AudioIOBusyFlag(), // lll
|
||||||
&CaptureNotBusyFlag();
|
&CaptureNotBusyFlag();
|
||||||
|
|
||||||
extern AUDACITY_DLL_API const ReservedCommandFlag
|
extern TENACITY_DLL_API const ReservedCommandFlag
|
||||||
&LabelTracksExistFlag(),
|
&LabelTracksExistFlag(),
|
||||||
&UnsavedChangesFlag(),
|
&UnsavedChangesFlag(),
|
||||||
&UndoAvailableFlag(),
|
&UndoAvailableFlag(),
|
||||||
|
@ -132,7 +132,7 @@ private:
|
|||||||
Commit() must not be called again after one successful call.
|
Commit() must not be called again after one successful call.
|
||||||
An exception is thrown from the constructor if the transaction cannot open.
|
An exception is thrown from the constructor if the transaction cannot open.
|
||||||
*/
|
*/
|
||||||
class AUDACITY_DLL_API TransactionScope
|
class TENACITY_DLL_API TransactionScope
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
TransactionScope(DBConnection &connection, const char *name);
|
TransactionScope(DBConnection &connection, const char *name);
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Event sent to the application
|
// Event sent to the application
|
||||||
wxDECLARE_EXPORTED_EVENT(AUDACITY_DLL_API,
|
wxDECLARE_EXPORTED_EVENT(TENACITY_DLL_API,
|
||||||
EVT_RESCANNED_DEVICES, wxCommandEvent);
|
EVT_RESCANNED_DEVICES, wxCommandEvent);
|
||||||
|
|
||||||
typedef struct DeviceSourceMap {
|
typedef struct DeviceSourceMap {
|
||||||
@ -43,10 +43,10 @@ typedef struct DeviceSourceMap {
|
|||||||
wxString hostString;
|
wxString hostString;
|
||||||
} DeviceSourceMap;
|
} DeviceSourceMap;
|
||||||
|
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
wxString MakeDeviceSourceString(const DeviceSourceMap *map);
|
wxString MakeDeviceSourceString(const DeviceSourceMap *map);
|
||||||
|
|
||||||
class AUDACITY_DLL_API DeviceManager final
|
class TENACITY_DLL_API DeviceManager final
|
||||||
#if defined(EXPERIMENTAL_DEVICE_CHANGE_HANDLER)
|
#if defined(EXPERIMENTAL_DEVICE_CHANGE_HANDLER)
|
||||||
#if defined(HAVE_DEVICE_CHANGE)
|
#if defined(HAVE_DEVICE_CHANGE)
|
||||||
: public DeviceChangeHandler
|
: public DeviceChangeHandler
|
||||||
|
@ -25,7 +25,7 @@ public:
|
|||||||
static DitherType FastDitherChoice();
|
static DitherType FastDitherChoice();
|
||||||
static DitherType BestDitherChoice();
|
static DitherType BestDitherChoice();
|
||||||
|
|
||||||
static AUDACITY_DLL_API EnumSetting< DitherType > FastSetting, BestSetting;
|
static TENACITY_DLL_API EnumSetting< DitherType > FastSetting, BestSetting;
|
||||||
|
|
||||||
/// Default constructor
|
/// Default constructor
|
||||||
Dither();
|
Dither();
|
||||||
|
@ -68,7 +68,7 @@ private:
|
|||||||
typedef std::vector<EnvPoint> EnvArray;
|
typedef std::vector<EnvPoint> EnvArray;
|
||||||
struct TrackPanelDrawingContext;
|
struct TrackPanelDrawingContext;
|
||||||
|
|
||||||
class AUDACITY_DLL_API Envelope /* not final */ : public XMLTagHandler {
|
class TENACITY_DLL_API Envelope /* not final */ : public XMLTagHandler {
|
||||||
public:
|
public:
|
||||||
// Envelope can define a piecewise linear function, or piecewise exponential.
|
// Envelope can define a piecewise linear function, or piecewise exponential.
|
||||||
Envelope(bool exponential, double minValue, double maxValue, double defaultValue);
|
Envelope(bool exponential, double minValue, double maxValue, double defaultValue);
|
||||||
|
@ -19,7 +19,7 @@ class ZoomInfo;
|
|||||||
|
|
||||||
// A class that holds state for the duration of dragging
|
// A class that holds state for the duration of dragging
|
||||||
// of an envelope point.
|
// of an envelope point.
|
||||||
class AUDACITY_DLL_API EnvelopeEditor
|
class TENACITY_DLL_API EnvelopeEditor
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static void DrawPoints(
|
static void DrawPoints(
|
||||||
|
16
src/FFT.h
16
src/FFT.h
@ -72,7 +72,7 @@ void PowerSpectrum(size_t NumSamples, const float *In, float *Out);
|
|||||||
* NumSamples must be a power of two.
|
* NumSamples must be a power of two.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
void RealFFT(size_t NumSamples,
|
void RealFFT(size_t NumSamples,
|
||||||
const float *RealIn, float *RealOut, float *ImagOut);
|
const float *RealIn, float *RealOut, float *ImagOut);
|
||||||
|
|
||||||
@ -81,7 +81,7 @@ void RealFFT(size_t NumSamples,
|
|||||||
* so the output is purely real. NumSamples must be a power of
|
* so the output is purely real. NumSamples must be a power of
|
||||||
* two.
|
* two.
|
||||||
*/
|
*/
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
void InverseRealFFT(size_t NumSamples,
|
void InverseRealFFT(size_t NumSamples,
|
||||||
const float *RealIn, const float *ImagIn, float *RealOut);
|
const float *RealIn, const float *ImagIn, float *RealOut);
|
||||||
|
|
||||||
@ -91,7 +91,7 @@ void InverseRealFFT(size_t NumSamples,
|
|||||||
* inverse transform as well.
|
* inverse transform as well.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
void FFT(size_t NumSamples,
|
void FFT(size_t NumSamples,
|
||||||
bool InverseTransform,
|
bool InverseTransform,
|
||||||
const float *RealIn, const float *ImagIn, float *RealOut, float *ImagOut);
|
const float *RealIn, const float *ImagIn, float *RealOut, float *ImagOut);
|
||||||
@ -120,7 +120,7 @@ enum eWindowFunctions
|
|||||||
eWinFuncCount
|
eWinFuncCount
|
||||||
};
|
};
|
||||||
|
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
void WindowFunc(int whichFunction, size_t NumSamples, float *data);
|
void WindowFunc(int whichFunction, size_t NumSamples, float *data);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -129,7 +129,7 @@ void WindowFunc(int whichFunction, size_t NumSamples, float *data);
|
|||||||
* otherwise about (NumSamples - 1) / 2
|
* otherwise about (NumSamples - 1) / 2
|
||||||
* All functions have 0 in data[0] except Rectangular, Hamming and Gaussians
|
* All functions have 0 in data[0] except Rectangular, Hamming and Gaussians
|
||||||
*/
|
*/
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
void NewWindowFunc(int whichFunction, size_t NumSamples, bool extraSample, float *data);
|
void NewWindowFunc(int whichFunction, size_t NumSamples, bool extraSample, float *data);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -139,20 +139,20 @@ void NewWindowFunc(int whichFunction, size_t NumSamples, bool extraSample, float
|
|||||||
* otherwise about (NumSamples - 1) / 2
|
* otherwise about (NumSamples - 1) / 2
|
||||||
* All functions have 0 in data[0] except Rectangular, Hamming and Gaussians
|
* All functions have 0 in data[0] except Rectangular, Hamming and Gaussians
|
||||||
*/
|
*/
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
void DerivativeOfWindowFunc(int whichFunction, size_t NumSamples, bool extraSample, float *data);
|
void DerivativeOfWindowFunc(int whichFunction, size_t NumSamples, bool extraSample, float *data);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Returns the name of the windowing function (for UI display)
|
* Returns the name of the windowing function (for UI display)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
AUDACITY_DLL_API const TranslatableString WindowFuncName(int whichFunction);
|
TENACITY_DLL_API const TranslatableString WindowFuncName(int whichFunction);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Returns the number of windowing functions supported
|
* Returns the number of windowing functions supported
|
||||||
*/
|
*/
|
||||||
|
|
||||||
AUDACITY_DLL_API int NumWindowFuncs();
|
TENACITY_DLL_API int NumWindowFuncs();
|
||||||
|
|
||||||
void DeinitFFT();
|
void DeinitFFT();
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
#include <wx/filename.h> // wxFileName member variable
|
#include <wx/filename.h> // wxFileName member variable
|
||||||
|
|
||||||
//! Thrown for failure of file or database operations in deeply nested places
|
//! Thrown for failure of file or database operations in deeply nested places
|
||||||
class AUDACITY_DLL_API FileException /* not final */
|
class TENACITY_DLL_API FileException /* not final */
|
||||||
: public MessageBoxException
|
: public MessageBoxException
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -31,7 +31,7 @@ class wxString;
|
|||||||
/** @brief Get the number of container formats supported by libsndfile
|
/** @brief Get the number of container formats supported by libsndfile
|
||||||
*
|
*
|
||||||
* Uses SFC_GET_FORMAT_MAJOR_COUNT in sf_command interface */
|
* Uses SFC_GET_FORMAT_MAJOR_COUNT in sf_command interface */
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
int sf_num_headers();
|
int sf_num_headers();
|
||||||
|
|
||||||
/** @brief Get the name of a container format from libsndfile
|
/** @brief Get the name of a container format from libsndfile
|
||||||
@ -41,10 +41,10 @@ int sf_num_headers();
|
|||||||
* @param format_num The libsndfile format number for the container format
|
* @param format_num The libsndfile format number for the container format
|
||||||
* required
|
* required
|
||||||
*/
|
*/
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
wxString sf_header_index_name(int format_num);
|
wxString sf_header_index_name(int format_num);
|
||||||
|
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
unsigned int sf_header_index_to_type(int format_num);
|
unsigned int sf_header_index_to_type(int format_num);
|
||||||
|
|
||||||
//
|
//
|
||||||
@ -52,14 +52,14 @@ unsigned int sf_header_index_to_type(int format_num);
|
|||||||
//
|
//
|
||||||
/** @brief Get the number of data encodings libsndfile supports (in any
|
/** @brief Get the number of data encodings libsndfile supports (in any
|
||||||
* container or none */
|
* container or none */
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
int sf_num_encodings();
|
int sf_num_encodings();
|
||||||
/** @brief Get the string name of the data encoding of the requested format
|
/** @brief Get the string name of the data encoding of the requested format
|
||||||
*
|
*
|
||||||
* uses SFC_GET_FORMAT_SUBTYPE */
|
* uses SFC_GET_FORMAT_SUBTYPE */
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
wxString sf_encoding_index_name(int encoding_num);
|
wxString sf_encoding_index_name(int encoding_num);
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
unsigned int sf_encoding_index_to_subtype(int encoding_num);
|
unsigned int sf_encoding_index_to_subtype(int encoding_num);
|
||||||
|
|
||||||
//
|
//
|
||||||
@ -71,7 +71,7 @@ unsigned int sf_encoding_index_to_subtype(int encoding_num);
|
|||||||
* then use SFC_GET_FORMAT_INFO to get the description
|
* then use SFC_GET_FORMAT_INFO to get the description
|
||||||
* @param format the libsndfile format to get the name for (only the container
|
* @param format the libsndfile format to get the name for (only the container
|
||||||
* part is used) */
|
* part is used) */
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
wxString sf_header_name(int format);
|
wxString sf_header_name(int format);
|
||||||
/** @brief Get an abbreviated form of the string name of the specified format
|
/** @brief Get an abbreviated form of the string name of the specified format
|
||||||
*
|
*
|
||||||
@ -79,7 +79,7 @@ wxString sf_header_name(int format);
|
|||||||
* to get just the first word of the format name.
|
* to get just the first word of the format name.
|
||||||
* @param format the libsndfile format to get the name for (only the container
|
* @param format the libsndfile format to get the name for (only the container
|
||||||
* part is used) */
|
* part is used) */
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
wxString sf_header_shortname(int format);
|
wxString sf_header_shortname(int format);
|
||||||
/** @brief Get the most common file extension for the given format
|
/** @brief Get the most common file extension for the given format
|
||||||
*
|
*
|
||||||
@ -87,7 +87,7 @@ wxString sf_header_shortname(int format);
|
|||||||
* format, then retrieve the most common extension using SFC_GET_FORMAT_INFO.
|
* format, then retrieve the most common extension using SFC_GET_FORMAT_INFO.
|
||||||
* @param format the libsndfile format to get the name for (only the container
|
* @param format the libsndfile format to get the name for (only the container
|
||||||
* part is used) */
|
* part is used) */
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
wxString sf_header_extension(int format);
|
wxString sf_header_extension(int format);
|
||||||
/** @brief Get the string name of the specified data encoding
|
/** @brief Get the string name of the specified data encoding
|
||||||
*
|
*
|
||||||
@ -108,18 +108,18 @@ SF_FORMAT_INFO *sf_simple_format(int i);
|
|||||||
// other utility functions
|
// other utility functions
|
||||||
//
|
//
|
||||||
|
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
bool sf_subtype_more_than_16_bits(unsigned int format);
|
bool sf_subtype_more_than_16_bits(unsigned int format);
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
bool sf_subtype_is_integer(unsigned int format);
|
bool sf_subtype_is_integer(unsigned int format);
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
int sf_subtype_bytes_per_sample(unsigned int format);
|
int sf_subtype_bytes_per_sample(unsigned int format);
|
||||||
|
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
//! Choose the narrowest value in the sampleFormat enumeration for a given libsndfile format
|
//! Choose the narrowest value in the sampleFormat enumeration for a given libsndfile format
|
||||||
sampleFormat sf_subtype_to_effective_format(unsigned int format);
|
sampleFormat sf_subtype_to_effective_format(unsigned int format);
|
||||||
|
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
extern FileExtensions sf_get_all_extensions();
|
extern FileExtensions sf_get_all_extensions();
|
||||||
|
|
||||||
wxString sf_normalize_name(const char *name);
|
wxString sf_normalize_name(const char *name);
|
||||||
@ -138,7 +138,7 @@ inline R SFCall(F fun, Args&&... args)
|
|||||||
}
|
}
|
||||||
|
|
||||||
//RAII for SNDFILE*
|
//RAII for SNDFILE*
|
||||||
struct AUDACITY_DLL_API SFFileCloser { int operator () (SNDFILE*) const; };
|
struct TENACITY_DLL_API SFFileCloser { int operator () (SNDFILE*) const; };
|
||||||
struct SFFile : public std::unique_ptr<SNDFILE, ::SFFileCloser>
|
struct SFFile : public std::unique_ptr<SNDFILE, ::SFFileCloser>
|
||||||
{
|
{
|
||||||
SFFile() = default;
|
SFFile() = default;
|
||||||
|
@ -18,7 +18,7 @@ class wxOutputStream;
|
|||||||
class wxFFileOutputStream;
|
class wxFFileOutputStream;
|
||||||
class wxFileNameWrapper;
|
class wxFileNameWrapper;
|
||||||
|
|
||||||
class AUDACITY_DLL_API FileIO
|
class TENACITY_DLL_API FileIO
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
typedef enum FileIOMode
|
typedef enum FileIOMode
|
||||||
|
@ -69,7 +69,7 @@ namespace FileNames
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Frequently used types
|
// Frequently used types
|
||||||
extern AUDACITY_DLL_API const FileType
|
extern TENACITY_DLL_API const FileType
|
||||||
AllFiles // *
|
AllFiles // *
|
||||||
, AudacityProjects // *.aup3
|
, AudacityProjects // *.aup3
|
||||||
, DynamicLibraries // depends on the operating system
|
, DynamicLibraries // depends on the operating system
|
||||||
@ -80,21 +80,21 @@ namespace FileNames
|
|||||||
|
|
||||||
// Convert fileTypes into a single string as expected by wxWidgets file
|
// Convert fileTypes into a single string as expected by wxWidgets file
|
||||||
// selection dialog
|
// selection dialog
|
||||||
AUDACITY_DLL_API wxString FormatWildcard( const FileTypes &fileTypes );
|
TENACITY_DLL_API wxString FormatWildcard( const FileTypes &fileTypes );
|
||||||
|
|
||||||
// This exists to compensate for bugs in wxCopyFile:
|
// This exists to compensate for bugs in wxCopyFile:
|
||||||
AUDACITY_DLL_API bool DoCopyFile(
|
TENACITY_DLL_API bool DoCopyFile(
|
||||||
const FilePath& file1, const FilePath& file2, bool overwrite = true);
|
const FilePath& file1, const FilePath& file2, bool overwrite = true);
|
||||||
|
|
||||||
// wxWidgets doesn't have a function to do this: make a hard file-system
|
// wxWidgets doesn't have a function to do this: make a hard file-system
|
||||||
// link if possible. It might not be, as when the paths are on different
|
// link if possible. It might not be, as when the paths are on different
|
||||||
// storage devices.
|
// storage devices.
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
bool HardLinkFile( const FilePath& file1, const FilePath& file2);
|
bool HardLinkFile( const FilePath& file1, const FilePath& file2);
|
||||||
|
|
||||||
AUDACITY_DLL_API wxString MkDir(const wxString &Str);
|
TENACITY_DLL_API wxString MkDir(const wxString &Str);
|
||||||
|
|
||||||
AUDACITY_DLL_API bool IsMidi(const FilePath &fName);
|
TENACITY_DLL_API bool IsMidi(const FilePath &fName);
|
||||||
|
|
||||||
/** \brief A list of directories that should be searched for Audacity files
|
/** \brief A list of directories that should be searched for Audacity files
|
||||||
* (plug-ins, help files, etc.).
|
* (plug-ins, help files, etc.).
|
||||||
@ -104,14 +104,14 @@ namespace FileNames
|
|||||||
* directories can be specified using the AUDACITY_PATH environment
|
* directories can be specified using the AUDACITY_PATH environment
|
||||||
* variable. On Windows or Mac OS, this will include the directory
|
* variable. On Windows or Mac OS, this will include the directory
|
||||||
* which contains the Audacity program. */
|
* which contains the Audacity program. */
|
||||||
AUDACITY_DLL_API const FilePaths &AudacityPathList();
|
TENACITY_DLL_API const FilePaths &AudacityPathList();
|
||||||
AUDACITY_DLL_API void SetAudacityPathList( FilePaths list );
|
TENACITY_DLL_API void SetAudacityPathList( FilePaths list );
|
||||||
|
|
||||||
// originally an ExportMultipleDialog method. Append suffix if newName appears in otherNames.
|
// originally an ExportMultipleDialog method. Append suffix if newName appears in otherNames.
|
||||||
AUDACITY_DLL_API void MakeNameUnique(
|
TENACITY_DLL_API void MakeNameUnique(
|
||||||
FilePaths &otherNames, wxFileName &newName);
|
FilePaths &otherNames, wxFileName &newName);
|
||||||
|
|
||||||
AUDACITY_DLL_API wxString LowerCaseAppNameInPath( const wxString & dirIn);
|
TENACITY_DLL_API wxString LowerCaseAppNameInPath( const wxString & dirIn);
|
||||||
/** \brief Tenacity user config directory
|
/** \brief Tenacity user config directory
|
||||||
*
|
*
|
||||||
* Where Tenacity keeps its settigns squirreled away, by default ~/.config/tenacity/
|
* Where Tenacity keeps its settigns squirreled away, by default ~/.config/tenacity/
|
||||||
@ -122,39 +122,39 @@ namespace FileNames
|
|||||||
* Where Tenacity keeps its settings and other user data squirreled away,
|
* Where Tenacity keeps its settings and other user data squirreled away,
|
||||||
* by default ~/.local/share/tenacity/ on Unix, Application Data/Tenacity on
|
* by default ~/.local/share/tenacity/ on Unix, Application Data/Tenacity on
|
||||||
* windows system */
|
* windows system */
|
||||||
AUDACITY_DLL_API FilePath DataDir();
|
TENACITY_DLL_API FilePath DataDir();
|
||||||
AUDACITY_DLL_API FilePath ResourcesDir();
|
TENACITY_DLL_API FilePath ResourcesDir();
|
||||||
AUDACITY_DLL_API FilePath HtmlHelpDir();
|
TENACITY_DLL_API FilePath HtmlHelpDir();
|
||||||
AUDACITY_DLL_API FilePath HtmlHelpIndexFile(bool quick);
|
TENACITY_DLL_API FilePath HtmlHelpIndexFile(bool quick);
|
||||||
AUDACITY_DLL_API FilePath LegacyChainDir();
|
TENACITY_DLL_API FilePath LegacyChainDir();
|
||||||
AUDACITY_DLL_API FilePath MacroDir();
|
TENACITY_DLL_API FilePath MacroDir();
|
||||||
AUDACITY_DLL_API FilePath NRPDir();
|
TENACITY_DLL_API FilePath NRPDir();
|
||||||
AUDACITY_DLL_API FilePath NRPFile();
|
TENACITY_DLL_API FilePath NRPFile();
|
||||||
AUDACITY_DLL_API FilePath PluginRegistry();
|
TENACITY_DLL_API FilePath PluginRegistry();
|
||||||
AUDACITY_DLL_API FilePath PluginSettings();
|
TENACITY_DLL_API FilePath PluginSettings();
|
||||||
|
|
||||||
AUDACITY_DLL_API FilePath BaseDir();
|
TENACITY_DLL_API FilePath BaseDir();
|
||||||
AUDACITY_DLL_API FilePath ModulesDir();
|
TENACITY_DLL_API FilePath ModulesDir();
|
||||||
|
|
||||||
/** \brief The user plug-in directory (not a system one)
|
/** \brief The user plug-in directory (not a system one)
|
||||||
*
|
*
|
||||||
* This returns the string path to where the user may have put plug-ins
|
* This returns the string path to where the user may have put plug-ins
|
||||||
* if they don't have system admin rights. Under default settings, it's
|
* if they don't have system admin rights. Under default settings, it's
|
||||||
* <DataDir>/Plug-Ins/ */
|
* <DataDir>/Plug-Ins/ */
|
||||||
AUDACITY_DLL_API FilePath PlugInDir();
|
TENACITY_DLL_API FilePath PlugInDir();
|
||||||
AUDACITY_DLL_API FilePath ThemeDir();
|
TENACITY_DLL_API FilePath ThemeDir();
|
||||||
AUDACITY_DLL_API FilePath ThemeComponentsDir();
|
TENACITY_DLL_API FilePath ThemeComponentsDir();
|
||||||
AUDACITY_DLL_API FilePath ThemeCachePng();
|
TENACITY_DLL_API FilePath ThemeCachePng();
|
||||||
AUDACITY_DLL_API FilePath ThemeCacheAsCee();
|
TENACITY_DLL_API FilePath ThemeCacheAsCee();
|
||||||
AUDACITY_DLL_API FilePath ThemeComponent(const wxString &Str);
|
TENACITY_DLL_API FilePath ThemeComponent(const wxString &Str);
|
||||||
AUDACITY_DLL_API FilePath ThemeCacheHtm();
|
TENACITY_DLL_API FilePath ThemeCacheHtm();
|
||||||
AUDACITY_DLL_API FilePath ThemeImageDefsAsCee();
|
TENACITY_DLL_API FilePath ThemeImageDefsAsCee();
|
||||||
|
|
||||||
// Obtain name of loaded module that contains address
|
// Obtain name of loaded module that contains address
|
||||||
AUDACITY_DLL_API FilePath PathFromAddr(void *addr);
|
TENACITY_DLL_API FilePath PathFromAddr(void *addr);
|
||||||
|
|
||||||
AUDACITY_DLL_API bool IsPathAvailable( const FilePath & Path);
|
TENACITY_DLL_API bool IsPathAvailable( const FilePath & Path);
|
||||||
AUDACITY_DLL_API wxFileNameWrapper DefaultToDocumentsFolder
|
TENACITY_DLL_API wxFileNameWrapper DefaultToDocumentsFolder
|
||||||
(const wxString &preference);
|
(const wxString &preference);
|
||||||
|
|
||||||
// If not None, determines a preference key (for the default path string) to
|
// If not None, determines a preference key (for the default path string) to
|
||||||
@ -182,10 +182,10 @@ namespace FileNames
|
|||||||
LastUsed
|
LastUsed
|
||||||
};
|
};
|
||||||
|
|
||||||
AUDACITY_DLL_API wxString PreferenceKey(FileNames::Operation op, FileNames::PathType type);
|
TENACITY_DLL_API wxString PreferenceKey(FileNames::Operation op, FileNames::PathType type);
|
||||||
|
|
||||||
AUDACITY_DLL_API FilePath FindDefaultPath(Operation op);
|
TENACITY_DLL_API FilePath FindDefaultPath(Operation op);
|
||||||
AUDACITY_DLL_API void UpdateDefaultPath(Operation op, const FilePath &path);
|
TENACITY_DLL_API void UpdateDefaultPath(Operation op, const FilePath &path);
|
||||||
|
|
||||||
// F is a function taking a wxString, returning wxString
|
// F is a function taking a wxString, returning wxString
|
||||||
template<typename F>
|
template<typename F>
|
||||||
@ -200,7 +200,7 @@ namespace FileNames
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
AUDACITY_DLL_API FilePath
|
TENACITY_DLL_API FilePath
|
||||||
SelectFile(Operation op, // op matters only when default_path is empty
|
SelectFile(Operation op, // op matters only when default_path is empty
|
||||||
const TranslatableString& message,
|
const TranslatableString& message,
|
||||||
const FilePath& default_path,
|
const FilePath& default_path,
|
||||||
@ -211,11 +211,11 @@ namespace FileNames
|
|||||||
wxWindow *parent);
|
wxWindow *parent);
|
||||||
|
|
||||||
// Useful functions for working with search paths
|
// Useful functions for working with search paths
|
||||||
AUDACITY_DLL_API void AddUniquePathToPathList(const FilePath &path,
|
TENACITY_DLL_API void AddUniquePathToPathList(const FilePath &path,
|
||||||
FilePaths &pathList);
|
FilePaths &pathList);
|
||||||
AUDACITY_DLL_API void AddMultiPathsToPathList(const wxString &multiPathString,
|
TENACITY_DLL_API void AddMultiPathsToPathList(const wxString &multiPathString,
|
||||||
FilePaths &pathList);
|
FilePaths &pathList);
|
||||||
AUDACITY_DLL_API void FindFilesInPathList(const wxString & pattern,
|
TENACITY_DLL_API void FindFilesInPathList(const wxString & pattern,
|
||||||
const FilePaths & pathList,
|
const FilePaths & pathList,
|
||||||
FilePaths &results,
|
FilePaths &results,
|
||||||
int flags = wxDIR_FILES);
|
int flags = wxDIR_FILES);
|
||||||
@ -223,26 +223,26 @@ namespace FileNames
|
|||||||
/** \brief Protect against Unicode to multi-byte conversion failures
|
/** \brief Protect against Unicode to multi-byte conversion failures
|
||||||
* on Windows */
|
* on Windows */
|
||||||
#if defined(__WXMSW__)
|
#if defined(__WXMSW__)
|
||||||
AUDACITY_DLL_API char *VerifyFilename(const wxString &s, bool input = true);
|
TENACITY_DLL_API char *VerifyFilename(const wxString &s, bool input = true);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//! Check location on writable access and return true if checked successfully.
|
//! Check location on writable access and return true if checked successfully.
|
||||||
AUDACITY_DLL_API bool WritableLocationCheck(const FilePath& path);
|
TENACITY_DLL_API bool WritableLocationCheck(const FilePath& path);
|
||||||
|
|
||||||
// wxString compare function for sorting case, which is needed to load correctly.
|
// wxString compare function for sorting case, which is needed to load correctly.
|
||||||
AUDACITY_DLL_API int CompareNoCase(const wxString& first, const wxString& second);
|
TENACITY_DLL_API int CompareNoCase(const wxString& first, const wxString& second);
|
||||||
|
|
||||||
// Create a unique filename using the passed prefix and suffix
|
// Create a unique filename using the passed prefix and suffix
|
||||||
AUDACITY_DLL_API wxString CreateUniqueName(const wxString &prefix,
|
TENACITY_DLL_API wxString CreateUniqueName(const wxString &prefix,
|
||||||
const wxString &suffix = wxEmptyString);
|
const wxString &suffix = wxEmptyString);
|
||||||
|
|
||||||
// File extension used for unsaved/temporary project files
|
// File extension used for unsaved/temporary project files
|
||||||
AUDACITY_DLL_API wxString UnsavedProjectExtension();
|
TENACITY_DLL_API wxString UnsavedProjectExtension();
|
||||||
|
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
bool IsOnFATFileSystem(const FilePath &path);
|
bool IsOnFATFileSystem(const FilePath &path);
|
||||||
|
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
//! Give enough of the path to identify the device. (On Windows, drive letter plus ':')
|
//! Give enough of the path to identify the device. (On Windows, drive letter plus ':')
|
||||||
wxString AbbreviatePath(const wxFileName &fileName);
|
wxString AbbreviatePath(const wxFileName &fileName);
|
||||||
};
|
};
|
||||||
|
@ -33,7 +33,7 @@ class FrequencyPlotDialog;
|
|||||||
class FreqGauge;
|
class FreqGauge;
|
||||||
class RulerPanel;
|
class RulerPanel;
|
||||||
|
|
||||||
DECLARE_EXPORTED_EVENT_TYPE(AUDACITY_DLL_API, EVT_FREQWINDOW_RECALC, -1);
|
DECLARE_EXPORTED_EVENT_TYPE(TENACITY_DLL_API, EVT_FREQWINDOW_RECALC, -1);
|
||||||
|
|
||||||
class FreqPlot final : public wxWindow
|
class FreqPlot final : public wxWindow
|
||||||
{
|
{
|
||||||
|
@ -19,10 +19,10 @@ struct URLStringTag;
|
|||||||
//! Distinct type for URLs
|
//! Distinct type for URLs
|
||||||
using URLString = TaggedIdentifier< URLStringTag >;
|
using URLString = TaggedIdentifier< URLStringTag >;
|
||||||
|
|
||||||
AUDACITY_DLL_API wxString HelpText( const wxString & Key );
|
TENACITY_DLL_API wxString HelpText( const wxString & Key );
|
||||||
AUDACITY_DLL_API TranslatableString TitleText( const wxString & Key );
|
TENACITY_DLL_API TranslatableString TitleText( const wxString & Key );
|
||||||
|
|
||||||
extern AUDACITY_DLL_API const wxString VerCheckArgs();
|
extern TENACITY_DLL_API const wxString VerCheckArgs();
|
||||||
extern AUDACITY_DLL_API wxString FormatHtmlText( const wxString & Text );
|
extern TENACITY_DLL_API wxString FormatHtmlText( const wxString & Text );
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -19,7 +19,7 @@ class wxRect;
|
|||||||
// the entire image by the vector difference between that
|
// the entire image by the vector difference between that
|
||||||
// pixel and the dstColour. For better control, use
|
// pixel and the dstColour. For better control, use
|
||||||
// ChangeImageColour(wxImage, wxColour*, wxColour*) below
|
// ChangeImageColour(wxImage, wxColour*, wxColour*) below
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
std::unique_ptr<wxImage> ChangeImageColour(wxImage * srcImage, wxColour & dstColour);
|
std::unique_ptr<wxImage> ChangeImageColour(wxImage * srcImage, wxColour & dstColour);
|
||||||
|
|
||||||
// This function takes a source image, which it assumes to
|
// This function takes a source image, which it assumes to
|
||||||
@ -29,7 +29,7 @@ std::unique_ptr<wxImage> ChangeImageColour(wxImage * srcImage, wxColour & dstCol
|
|||||||
// Audacity uses this routines to make the buttons
|
// Audacity uses this routines to make the buttons
|
||||||
// (skip-start, play, stop, record, skip-end) adapt to
|
// (skip-start, play, stop, record, skip-end) adapt to
|
||||||
// the color scheme of the user.
|
// the color scheme of the user.
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
std::unique_ptr<wxImage> ChangeImageColour(wxImage * srcImage,
|
std::unique_ptr<wxImage> ChangeImageColour(wxImage * srcImage,
|
||||||
wxColour & srcColour,
|
wxColour & srcColour,
|
||||||
wxColour & dstColour);
|
wxColour & dstColour);
|
||||||
@ -39,7 +39,7 @@ std::unique_ptr<wxImage> ChangeImageColour(wxImage * srcImage,
|
|||||||
// returns a NEW image where the foreground has been
|
// returns a NEW image where the foreground has been
|
||||||
// overlaid onto the background using alpha-blending,
|
// overlaid onto the background using alpha-blending,
|
||||||
// at location (xoff, yoff).
|
// at location (xoff, yoff).
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
std::unique_ptr<wxImage> OverlayImage(wxImage * background, wxImage * foreground,
|
std::unique_ptr<wxImage> OverlayImage(wxImage * background, wxImage * foreground,
|
||||||
wxImage * mask, int xoff, int yoff);
|
wxImage * mask, int xoff, int yoff);
|
||||||
|
|
||||||
@ -49,29 +49,29 @@ using teBmps = int; /// The index of a bitmap resource in Theme Resources.
|
|||||||
|
|
||||||
// Same idea, but this time the mask is an alpha channel in
|
// Same idea, but this time the mask is an alpha channel in
|
||||||
// the foreground bitmap, and it's all retrieved from Themes.
|
// the foreground bitmap, and it's all retrieved from Themes.
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
std::unique_ptr<wxImage> OverlayImage(teBmps eBack, teBmps eForeground,
|
std::unique_ptr<wxImage> OverlayImage(teBmps eBack, teBmps eForeground,
|
||||||
int xoff, int yoff);
|
int xoff, int yoff);
|
||||||
|
|
||||||
|
|
||||||
// Creates an image with a solid background color
|
// Creates an image with a solid background color
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
std::unique_ptr<wxImage> CreateBackground(int width, int height, wxColour colour);
|
std::unique_ptr<wxImage> CreateBackground(int width, int height, wxColour colour);
|
||||||
|
|
||||||
// Creates an image with the Mac OS X Aqua stripes, to be used
|
// Creates an image with the Mac OS X Aqua stripes, to be used
|
||||||
// as a background
|
// as a background
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
std::unique_ptr<wxImage> CreateAquaBackground(int width, int height, int offset);
|
std::unique_ptr<wxImage> CreateAquaBackground(int width, int height, int offset);
|
||||||
|
|
||||||
// Uses color on all OS except Mac, uses Aqua
|
// Uses color on all OS except Mac, uses Aqua
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
std::unique_ptr<wxImage> CreateSysBackground(int width, int height, int offset,
|
std::unique_ptr<wxImage> CreateSysBackground(int width, int height, int offset,
|
||||||
wxColour colour);
|
wxColour colour);
|
||||||
|
|
||||||
// Pastes one image into another at specified location.
|
// Pastes one image into another at specified location.
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
void PasteSubImage( wxImage * pDest, wxImage * pSrc, int x, int y );
|
void PasteSubImage( wxImage * pDest, wxImage * pSrc, int x, int y );
|
||||||
|
|
||||||
// Gets a rectangle from within another image, INCLUDING the alpha channel
|
// Gets a rectangle from within another image, INCLUDING the alpha channel
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
wxImage GetSubImageWithAlpha( const wxImage & Src, const wxRect &rect );
|
wxImage GetSubImageWithAlpha( const wxImage & Src, const wxRect &rect );
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
The error message identifies source file and line number, possibly the function too (depending on
|
The error message identifies source file and line number, possibly the function too (depending on
|
||||||
the compiler), and suggests that the user inform the development team.
|
the compiler), and suggests that the user inform the development team.
|
||||||
*/
|
*/
|
||||||
class AUDACITY_DLL_API InconsistencyException final : public MessageBoxException
|
class TENACITY_DLL_API InconsistencyException final : public MessageBoxException
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
InconsistencyException ()
|
InconsistencyException ()
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
// side (6x the number of bad samples on either side is great). However,
|
// side (6x the number of bad samples on either side is great). However,
|
||||||
// it will work with less data, and with the bad samples on one end or
|
// it will work with less data, and with the bad samples on one end or
|
||||||
// the other.
|
// the other.
|
||||||
void AUDACITY_DLL_API InterpolateAudio(float *buffer, size_t len,
|
void TENACITY_DLL_API InterpolateAudio(float *buffer, size_t len,
|
||||||
size_t firstBad, size_t numBad);
|
size_t firstBad, size_t numBad);
|
||||||
|
|
||||||
#endif // __AUDACITY_INTERPOLATE_AUDIO__
|
#endif // __AUDACITY_INTERPOLATE_AUDIO__
|
||||||
|
@ -27,21 +27,21 @@
|
|||||||
/// don't actually come from wxWidgets, but are simulated by Audacity, as
|
/// don't actually come from wxWidgets, but are simulated by Audacity, as
|
||||||
/// translations of the EVT_CHAR_HOOK event); or, wxEVT_KEY_UP (really from
|
/// translations of the EVT_CHAR_HOOK event); or, wxEVT_KEY_UP (really from
|
||||||
/// wxWidgets).
|
/// wxWidgets).
|
||||||
DECLARE_EXPORTED_EVENT_TYPE(AUDACITY_DLL_API, EVT_CAPTURE_KEY, -1);
|
DECLARE_EXPORTED_EVENT_TYPE(TENACITY_DLL_API, EVT_CAPTURE_KEY, -1);
|
||||||
|
|
||||||
namespace KeyboardCapture
|
namespace KeyboardCapture
|
||||||
{
|
{
|
||||||
AUDACITY_DLL_API bool IsHandler(const wxWindow *handler);
|
TENACITY_DLL_API bool IsHandler(const wxWindow *handler);
|
||||||
AUDACITY_DLL_API wxWindow *GetHandler();
|
TENACITY_DLL_API wxWindow *GetHandler();
|
||||||
AUDACITY_DLL_API void Capture(wxWindow *handler);
|
TENACITY_DLL_API void Capture(wxWindow *handler);
|
||||||
AUDACITY_DLL_API void Release(wxWindow *handler);
|
TENACITY_DLL_API void Release(wxWindow *handler);
|
||||||
|
|
||||||
using FilterFunction = std::function< bool( wxKeyEvent& ) >;
|
using FilterFunction = std::function< bool( wxKeyEvent& ) >;
|
||||||
|
|
||||||
/// \brief Install a pre-filter, returning the previously installed one
|
/// \brief Install a pre-filter, returning the previously installed one
|
||||||
/// Pre-filter is called before passing the event to the captured window; if it
|
/// Pre-filter is called before passing the event to the captured window; if it
|
||||||
/// returns false, then skip the event entirely
|
/// returns false, then skip the event entirely
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
FilterFunction SetPreFilter( const FilterFunction &function );
|
FilterFunction SetPreFilter( const FilterFunction &function );
|
||||||
|
|
||||||
/// \brief Install a post-filter, returning the previously installed one
|
/// \brief Install a post-filter, returning the previously installed one
|
||||||
@ -50,14 +50,14 @@ namespace KeyboardCapture
|
|||||||
/// it skips only the wxEVT_CHAR or wxEVT_KEY_UP event); it is passed a
|
/// it skips only the wxEVT_CHAR or wxEVT_KEY_UP event); it is passed a
|
||||||
/// wxKEY_DOWN or a wxKEY_UP event; if it returns false, then the event is
|
/// wxKEY_DOWN or a wxKEY_UP event; if it returns false, then the event is
|
||||||
/// skipped
|
/// skipped
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
FilterFunction SetPostFilter( const FilterFunction &function );
|
FilterFunction SetPostFilter( const FilterFunction &function );
|
||||||
|
|
||||||
/// \brief a function useful to implement a focus event handler
|
/// \brief a function useful to implement a focus event handler
|
||||||
/// The window releases the keyboard if the event is for killing focus,
|
/// The window releases the keyboard if the event is for killing focus,
|
||||||
/// otherwise the window captures the keyboard; then refresh the window
|
/// otherwise the window captures the keyboard; then refresh the window
|
||||||
/// and skip the event
|
/// and skip the event
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
void OnFocus( wxWindow &window, wxFocusEvent &event );
|
void OnFocus( wxWindow &window, wxFocusEvent &event );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ class TimeWarper;
|
|||||||
struct LabelTrackHit;
|
struct LabelTrackHit;
|
||||||
struct TrackPanelDrawingContext;
|
struct TrackPanelDrawingContext;
|
||||||
|
|
||||||
class AUDACITY_DLL_API LabelStruct
|
class TENACITY_DLL_API LabelStruct
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
LabelStruct() = default;
|
LabelStruct() = default;
|
||||||
@ -82,7 +82,7 @@ public:
|
|||||||
|
|
||||||
using LabelArray = std::vector<LabelStruct>;
|
using LabelArray = std::vector<LabelStruct>;
|
||||||
|
|
||||||
class AUDACITY_DLL_API LabelTrack final
|
class TENACITY_DLL_API LabelTrack final
|
||||||
: public Track
|
: public Track
|
||||||
, public wxEvtHandler
|
, public wxEvtHandler
|
||||||
{
|
{
|
||||||
@ -211,18 +211,18 @@ struct LabelTrackEvent : TrackListEvent
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Posted when a label is added.
|
// Posted when a label is added.
|
||||||
wxDECLARE_EXPORTED_EVENT(AUDACITY_DLL_API,
|
wxDECLARE_EXPORTED_EVENT(TENACITY_DLL_API,
|
||||||
EVT_LABELTRACK_ADDITION, LabelTrackEvent);
|
EVT_LABELTRACK_ADDITION, LabelTrackEvent);
|
||||||
|
|
||||||
// Posted when a label is deleted.
|
// Posted when a label is deleted.
|
||||||
wxDECLARE_EXPORTED_EVENT(AUDACITY_DLL_API,
|
wxDECLARE_EXPORTED_EVENT(TENACITY_DLL_API,
|
||||||
EVT_LABELTRACK_DELETION, LabelTrackEvent);
|
EVT_LABELTRACK_DELETION, LabelTrackEvent);
|
||||||
|
|
||||||
// Posted when a label is repositioned in the sequence of labels.
|
// Posted when a label is repositioned in the sequence of labels.
|
||||||
wxDECLARE_EXPORTED_EVENT(AUDACITY_DLL_API,
|
wxDECLARE_EXPORTED_EVENT(TENACITY_DLL_API,
|
||||||
EVT_LABELTRACK_PERMUTED, LabelTrackEvent);
|
EVT_LABELTRACK_PERMUTED, LabelTrackEvent);
|
||||||
|
|
||||||
// Posted when the track is selected or unselected.
|
// Posted when the track is selected or unselected.
|
||||||
wxDECLARE_EXPORTED_EVENT(AUDACITY_DLL_API,
|
wxDECLARE_EXPORTED_EVENT(TENACITY_DLL_API,
|
||||||
EVT_LABELTRACK_SELECTION, LabelTrackEvent);
|
EVT_LABELTRACK_SELECTION, LabelTrackEvent);
|
||||||
#endif
|
#endif
|
||||||
|
@ -52,17 +52,17 @@ using teBmps = int; /// The index of a bitmap resource in Theme Resources.
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef THEME_DECLARATIONS
|
#ifdef THEME_DECLARATIONS
|
||||||
#define DEFINE_IMAGE( name, initialiser, textual_name ) AUDACITY_DLL_API teBmps name=-1;
|
#define DEFINE_IMAGE( name, initialiser, textual_name ) TENACITY_DLL_API teBmps name=-1;
|
||||||
#define DEFINE_COLOUR( name, initialiser, textual_name ) AUDACITY_DLL_API int name=-1;
|
#define DEFINE_COLOUR( name, initialiser, textual_name ) TENACITY_DLL_API int name=-1;
|
||||||
#define DEFINE_FONT( name, initialiser, textual_name ) AUDACITY_DLL_API int name=-1;
|
#define DEFINE_FONT( name, initialiser, textual_name ) TENACITY_DLL_API int name=-1;
|
||||||
#define SET_THEME_FLAGS( flags )
|
#define SET_THEME_FLAGS( flags )
|
||||||
#undef THEME_INITS
|
#undef THEME_INITS
|
||||||
#undef THEME_EXTERNS
|
#undef THEME_EXTERNS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef THEME_EXTERNS
|
#ifdef THEME_EXTERNS
|
||||||
#define DEFINE_IMAGE( name, initialiser, textual_name ) extern AUDACITY_DLL_API teBmps name;
|
#define DEFINE_IMAGE( name, initialiser, textual_name ) extern TENACITY_DLL_API teBmps name;
|
||||||
#define DEFINE_COLOUR( name, initialiser, textual_name ) extern AUDACITY_DLL_API int name;
|
#define DEFINE_COLOUR( name, initialiser, textual_name ) extern TENACITY_DLL_API int name;
|
||||||
#define DEFINE_FONT( name, initialiser, textual_name ) extern AUDACITY_DLL_API int name;
|
#define DEFINE_FONT( name, initialiser, textual_name ) extern TENACITY_DLL_API int name;
|
||||||
#define SET_THEME_FLAGS( flags )
|
#define SET_THEME_FLAGS( flags )
|
||||||
#endif
|
#endif
|
||||||
|
@ -34,7 +34,7 @@ typedef wxArrayString PluginIDs;
|
|||||||
|
|
||||||
namespace Registry{ class Visitor; }
|
namespace Registry{ class Visitor; }
|
||||||
|
|
||||||
class AUDACITY_DLL_API MenuCreator
|
class TENACITY_DLL_API MenuCreator
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
MenuCreator();
|
MenuCreator();
|
||||||
@ -70,7 +70,7 @@ public:
|
|||||||
|
|
||||||
struct ToolbarMenuVisitor;
|
struct ToolbarMenuVisitor;
|
||||||
|
|
||||||
class AUDACITY_DLL_API MenuManager final
|
class TENACITY_DLL_API MenuManager final
|
||||||
: public MenuCreator
|
: public MenuCreator
|
||||||
, public ClientData::Base
|
, public ClientData::Base
|
||||||
, private PrefsListener
|
, private PrefsListener
|
||||||
|
@ -43,7 +43,7 @@ class WaveTrackCache;
|
|||||||
* no explicit time range to process, and the whole occupied length of the
|
* no explicit time range to process, and the whole occupied length of the
|
||||||
* input tracks is processed.
|
* input tracks is processed.
|
||||||
*/
|
*/
|
||||||
void AUDACITY_DLL_API MixAndRender(TrackList * tracks, WaveTrackFactory *factory,
|
void TENACITY_DLL_API MixAndRender(TrackList * tracks, WaveTrackFactory *factory,
|
||||||
double rate, sampleFormat format,
|
double rate, sampleFormat format,
|
||||||
double startTime, double endTime,
|
double startTime, double endTime,
|
||||||
std::shared_ptr<WaveTrack> &uLeft,
|
std::shared_ptr<WaveTrack> &uLeft,
|
||||||
@ -53,7 +53,7 @@ void MixBuffers(unsigned numChannels, int *channelFlags, float *gains,
|
|||||||
samplePtr src,
|
samplePtr src,
|
||||||
samplePtr *dests, int len, bool interleaved);
|
samplePtr *dests, int len, bool interleaved);
|
||||||
|
|
||||||
class AUDACITY_DLL_API MixerSpec
|
class TENACITY_DLL_API MixerSpec
|
||||||
{
|
{
|
||||||
unsigned mNumTracks, mNumChannels, mMaxNumChannels;
|
unsigned mNumTracks, mNumChannels, mMaxNumChannels;
|
||||||
|
|
||||||
@ -75,11 +75,11 @@ public:
|
|||||||
MixerSpec& operator=( const MixerSpec &mixerSpec );
|
MixerSpec& operator=( const MixerSpec &mixerSpec );
|
||||||
};
|
};
|
||||||
|
|
||||||
class AUDACITY_DLL_API Mixer {
|
class TENACITY_DLL_API Mixer {
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// An argument to Mixer's constructor
|
// An argument to Mixer's constructor
|
||||||
class AUDACITY_DLL_API WarpOptions
|
class TENACITY_DLL_API WarpOptions
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
//! Construct with warp from the TimeTrack if there is one
|
//! Construct with warp from the TimeTrack if there is one
|
||||||
|
@ -68,7 +68,7 @@ typedef std::map<wxString, ModuleInterfaceHandle> ModuleMap;
|
|||||||
typedef std::map<ModuleInterface *, std::unique_ptr<wxDynamicLibrary>> LibraryMap;
|
typedef std::map<ModuleInterface *, std::unique_ptr<wxDynamicLibrary>> LibraryMap;
|
||||||
using PluginIDs = wxArrayString;
|
using PluginIDs = wxArrayString;
|
||||||
|
|
||||||
class AUDACITY_DLL_API ModuleManager final
|
class TENACITY_DLL_API ModuleManager final
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
@ -143,9 +143,9 @@ private:
|
|||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
using ModuleMain = ModuleInterface *(*)();
|
using ModuleMain = ModuleInterface *(*)();
|
||||||
|
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
void RegisterProvider(ModuleMain rtn);
|
void RegisterProvider(ModuleMain rtn);
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
void UnregisterProvider(ModuleMain rtn);
|
void UnregisterProvider(ModuleMain rtn);
|
||||||
|
|
||||||
// Guarantee the registry exists before any registrations, so it will
|
// Guarantee the registry exists before any registrations, so it will
|
||||||
|
@ -61,7 +61,7 @@ using QuantizedTimeAndBeat = std::pair< double, double >;
|
|||||||
class StretchHandle;
|
class StretchHandle;
|
||||||
class TimeWarper;
|
class TimeWarper;
|
||||||
|
|
||||||
class AUDACITY_DLL_API NoteTrack final
|
class TENACITY_DLL_API NoteTrack final
|
||||||
: public NoteTrackBase
|
: public NoteTrackBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -26,39 +26,39 @@ class TranslatableString;
|
|||||||
// Each register starts with C (e.g., for middle C and A440,
|
// Each register starts with C (e.g., for middle C and A440,
|
||||||
// it's register 4).
|
// it's register 4).
|
||||||
// MIDI note number 0 is C-1 in Scientific pitch notation.
|
// MIDI note number 0 is C-1 in Scientific pitch notation.
|
||||||
AUDACITY_DLL_API double FreqToMIDInote(const double freq);
|
TENACITY_DLL_API double FreqToMIDInote(const double freq);
|
||||||
|
|
||||||
AUDACITY_DLL_API double MIDInoteToFreq(const double dMIDInote);
|
TENACITY_DLL_API double MIDInoteToFreq(const double dMIDInote);
|
||||||
|
|
||||||
// PitchIndex returns the [0,11] index for a double MIDI note number,
|
// PitchIndex returns the [0,11] index for a double MIDI note number,
|
||||||
// per result from FreqToMIDInote, corresponding to modulo 12
|
// per result from FreqToMIDInote, corresponding to modulo 12
|
||||||
// of the integer part of (dMIDInote + 0.5), so 0=C, 1=C#, etc.
|
// of the integer part of (dMIDInote + 0.5), so 0=C, 1=C#, etc.
|
||||||
AUDACITY_DLL_API unsigned int PitchIndex(const double dMIDInote);
|
TENACITY_DLL_API unsigned int PitchIndex(const double dMIDInote);
|
||||||
|
|
||||||
// PitchOctave returns the octave index for a double dMIDInote note number,
|
// PitchOctave returns the octave index for a double dMIDInote note number,
|
||||||
// per result from FreqToMIDInote.
|
// per result from FreqToMIDInote.
|
||||||
// MIDI note number 0 is C-1 in Scientific pitch notation.
|
// MIDI note number 0 is C-1 in Scientific pitch notation.
|
||||||
AUDACITY_DLL_API int PitchOctave(const double dMIDInote);
|
TENACITY_DLL_API int PitchOctave(const double dMIDInote);
|
||||||
|
|
||||||
enum class PitchNameChoice { Sharps, Flats, Both };
|
enum class PitchNameChoice { Sharps, Flats, Both };
|
||||||
|
|
||||||
// PitchName takes dMIDInote (per result from
|
// PitchName takes dMIDInote (per result from
|
||||||
// FreqToMIDInote) and returns a standard pitch/note name [C, C#, etc.).
|
// FreqToMIDInote) and returns a standard pitch/note name [C, C#, etc.).
|
||||||
AUDACITY_DLL_API TranslatableString PitchName(
|
TENACITY_DLL_API TranslatableString PitchName(
|
||||||
const double dMIDInote,
|
const double dMIDInote,
|
||||||
const PitchNameChoice choice = PitchNameChoice::Sharps );
|
const PitchNameChoice choice = PitchNameChoice::Sharps );
|
||||||
|
|
||||||
// PitchName_Absolute does the same thing as PitchName, but appends
|
// PitchName_Absolute does the same thing as PitchName, but appends
|
||||||
// the octave number, e.g., instead of "C" it will return "C4"
|
// the octave number, e.g., instead of "C" it will return "C4"
|
||||||
// if the dMIDInote corresponds to middle C, i.e., is 60.
|
// if the dMIDInote corresponds to middle C, i.e., is 60.
|
||||||
AUDACITY_DLL_API TranslatableString PitchName_Absolute(
|
TENACITY_DLL_API TranslatableString PitchName_Absolute(
|
||||||
const double dMIDInote,
|
const double dMIDInote,
|
||||||
const PitchNameChoice choice = PitchNameChoice::Sharps);
|
const PitchNameChoice choice = PitchNameChoice::Sharps);
|
||||||
|
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
double PitchToMIDInote(const unsigned int nPitchIndex, const int nPitchOctave);
|
double PitchToMIDInote(const unsigned int nPitchIndex, const int nPitchOctave);
|
||||||
|
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
double PitchToFreq(const unsigned int nPitchIndex, const int nPitchOctave);
|
double PitchToFreq(const unsigned int nPitchIndex, const int nPitchOctave);
|
||||||
|
|
||||||
#endif // __AUDACITY_PITCHNAME__
|
#endif // __AUDACITY_PITCHNAME__
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
#include "Identifier.h"
|
#include "Identifier.h"
|
||||||
|
|
||||||
class AUDACITY_DLL_API PlatformCompatibility
|
class TENACITY_DLL_API PlatformCompatibility
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
//
|
//
|
||||||
|
@ -35,7 +35,7 @@ struct RecordingSchedule {
|
|||||||
double ToDiscard() const;
|
double ToDiscard() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct AUDACITY_DLL_API PlaybackSchedule {
|
struct TENACITY_DLL_API PlaybackSchedule {
|
||||||
/// Playback starts at offset of mT0, which is measured in seconds.
|
/// Playback starts at offset of mT0, which is measured in seconds.
|
||||||
double mT0;
|
double mT0;
|
||||||
/// Playback ends at offset of mT1, which is measured in seconds. Note that mT1 may be less than mT0 during scrubbing.
|
/// Playback ends at offset of mT1, which is measured in seconds. Note that mT1 may be less than mT0 during scrubbing.
|
||||||
|
@ -40,7 +40,7 @@ typedef enum : unsigned {
|
|||||||
} PluginType;
|
} PluginType;
|
||||||
|
|
||||||
// TODO: Convert this to multiple derived classes
|
// TODO: Convert this to multiple derived classes
|
||||||
class AUDACITY_DLL_API PluginDescriptor
|
class TENACITY_DLL_API PluginDescriptor
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
PluginDescriptor();
|
PluginDescriptor();
|
||||||
@ -170,7 +170,7 @@ typedef wxArrayString PluginIDs;
|
|||||||
|
|
||||||
class PluginRegistrationDialog;
|
class PluginRegistrationDialog;
|
||||||
|
|
||||||
class AUDACITY_DLL_API PluginManager final : public PluginManagerInterface
|
class TENACITY_DLL_API PluginManager final : public PluginManagerInterface
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
18
src/Prefs.h
18
src/Prefs.h
@ -51,7 +51,7 @@ class wxFileName;
|
|||||||
void InitPreferences( std::unique_ptr<FileConfig> uPrefs );
|
void InitPreferences( std::unique_ptr<FileConfig> uPrefs );
|
||||||
void FinishPreferences();
|
void FinishPreferences();
|
||||||
|
|
||||||
extern AUDACITY_DLL_API FileConfig *gPrefs;
|
extern TENACITY_DLL_API FileConfig *gPrefs;
|
||||||
extern int gMenusDirty;
|
extern int gMenusDirty;
|
||||||
|
|
||||||
|
|
||||||
@ -60,7 +60,7 @@ extern ByColumns_t ByColumns;
|
|||||||
|
|
||||||
//! Base class for settings objects. It holds a configuration key path.
|
//! Base class for settings objects. It holds a configuration key path.
|
||||||
/* The constructors are non-explicit for convenience */
|
/* The constructors are non-explicit for convenience */
|
||||||
class AUDACITY_DLL_API SettingBase
|
class TENACITY_DLL_API SettingBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
SettingBase( const char *path ) : mPath{ path } {}
|
SettingBase( const char *path ) : mPath{ path } {}
|
||||||
@ -230,7 +230,7 @@ public:
|
|||||||
/// A table of EnumValueSymbol that you can access by "row" with
|
/// A table of EnumValueSymbol that you can access by "row" with
|
||||||
/// operator [] but also allowing access to the "columns" of internal or
|
/// operator [] but also allowing access to the "columns" of internal or
|
||||||
/// translated strings, and also allowing convenient column-wise construction
|
/// translated strings, and also allowing convenient column-wise construction
|
||||||
class AUDACITY_DLL_API EnumValueSymbols : public std::vector< EnumValueSymbol >
|
class TENACITY_DLL_API EnumValueSymbols : public std::vector< EnumValueSymbol >
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
EnumValueSymbols() = default;
|
EnumValueSymbols() = default;
|
||||||
@ -258,7 +258,7 @@ private:
|
|||||||
|
|
||||||
/// Packages a table of user-visible choices each with an internal code string,
|
/// Packages a table of user-visible choices each with an internal code string,
|
||||||
/// a preference key path, and a default choice
|
/// a preference key path, and a default choice
|
||||||
class AUDACITY_DLL_API ChoiceSetting
|
class TENACITY_DLL_API ChoiceSetting
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ChoiceSetting(
|
ChoiceSetting(
|
||||||
@ -308,7 +308,7 @@ protected:
|
|||||||
/// (generally not equal to their table positions),
|
/// (generally not equal to their table positions),
|
||||||
/// and optionally an old preference key path that stored integer codes, to be
|
/// and optionally an old preference key path that stored integer codes, to be
|
||||||
/// migrated into one that stores internal string values instead
|
/// migrated into one that stores internal string values instead
|
||||||
class AUDACITY_DLL_API EnumSettingBase : public ChoiceSetting
|
class TENACITY_DLL_API EnumSettingBase : public ChoiceSetting
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
EnumSettingBase(
|
EnumSettingBase(
|
||||||
@ -381,11 +381,11 @@ public:
|
|||||||
|
|
||||||
// An event emitted by the application when the Preference dialog commits
|
// An event emitted by the application when the Preference dialog commits
|
||||||
// changes
|
// changes
|
||||||
wxDECLARE_EXPORTED_EVENT(AUDACITY_DLL_API,
|
wxDECLARE_EXPORTED_EVENT(TENACITY_DLL_API,
|
||||||
EVT_PREFS_UPDATE, wxCommandEvent);
|
EVT_PREFS_UPDATE, wxCommandEvent);
|
||||||
|
|
||||||
// Invoke UpdatePrefs() when Preference dialog commits changes.
|
// Invoke UpdatePrefs() when Preference dialog commits changes.
|
||||||
class AUDACITY_DLL_API PrefsListener
|
class TENACITY_DLL_API PrefsListener
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
PrefsListener();
|
PrefsListener();
|
||||||
@ -409,14 +409,14 @@ private:
|
|||||||
/// Return the config file key associated with a warning dialog identified
|
/// Return the config file key associated with a warning dialog identified
|
||||||
/// by internalDialogName. When the box is checked, the value at the key
|
/// by internalDialogName. When the box is checked, the value at the key
|
||||||
/// becomes false.
|
/// becomes false.
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
wxString WarningDialogKey(const wxString &internalDialogName);
|
wxString WarningDialogKey(const wxString &internalDialogName);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Meant to be statically constructed. A callback to repopulate configuration
|
Meant to be statically constructed. A callback to repopulate configuration
|
||||||
files after a reset.
|
files after a reset.
|
||||||
*/
|
*/
|
||||||
struct AUDACITY_DLL_API PreferenceInitializer {
|
struct TENACITY_DLL_API PreferenceInitializer {
|
||||||
PreferenceInitializer();
|
PreferenceInitializer();
|
||||||
virtual ~PreferenceInitializer();
|
virtual ~PreferenceInitializer();
|
||||||
virtual void operator () () = 0;
|
virtual void operator () () = 0;
|
||||||
|
@ -104,7 +104,7 @@ static AudacityProject *gActiveProject;
|
|||||||
//This array holds onto all of the projects currently open
|
//This array holds onto all of the projects currently open
|
||||||
AllProjects::Container AllProjects::gAudacityProjects;
|
AllProjects::Container AllProjects::gAudacityProjects;
|
||||||
|
|
||||||
AUDACITY_DLL_API AudacityProject *GetActiveProject()
|
TENACITY_DLL_API AudacityProject *GetActiveProject()
|
||||||
{
|
{
|
||||||
return gActiveProject;
|
return gActiveProject;
|
||||||
}
|
}
|
||||||
@ -183,7 +183,7 @@ void AudacityProject::SetInitialImportPath(const FilePath &path)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
AUDACITY_DLL_API wxFrame &GetProjectFrame( AudacityProject &project )
|
TENACITY_DLL_API wxFrame &GetProjectFrame( AudacityProject &project )
|
||||||
{
|
{
|
||||||
auto ptr = project.GetFrame();
|
auto ptr = project.GetFrame();
|
||||||
if ( !ptr )
|
if ( !ptr )
|
||||||
@ -191,7 +191,7 @@ AUDACITY_DLL_API wxFrame &GetProjectFrame( AudacityProject &project )
|
|||||||
return *ptr;
|
return *ptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
AUDACITY_DLL_API const wxFrame &GetProjectFrame( const AudacityProject &project )
|
TENACITY_DLL_API const wxFrame &GetProjectFrame( const AudacityProject &project )
|
||||||
{
|
{
|
||||||
auto ptr = project.GetFrame();
|
auto ptr = project.GetFrame();
|
||||||
if ( !ptr )
|
if ( !ptr )
|
||||||
@ -199,7 +199,7 @@ AUDACITY_DLL_API const wxFrame &GetProjectFrame( const AudacityProject &project
|
|||||||
return *ptr;
|
return *ptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
AUDACITY_DLL_API wxWindow &GetProjectPanel( AudacityProject &project )
|
TENACITY_DLL_API wxWindow &GetProjectPanel( AudacityProject &project )
|
||||||
{
|
{
|
||||||
auto ptr = project.GetPanel();
|
auto ptr = project.GetPanel();
|
||||||
if ( !ptr )
|
if ( !ptr )
|
||||||
@ -207,7 +207,7 @@ AUDACITY_DLL_API wxWindow &GetProjectPanel( AudacityProject &project )
|
|||||||
return *ptr;
|
return *ptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
AUDACITY_DLL_API const wxWindow &GetProjectPanel(
|
TENACITY_DLL_API const wxWindow &GetProjectPanel(
|
||||||
const AudacityProject &project )
|
const AudacityProject &project )
|
||||||
{
|
{
|
||||||
auto ptr = project.GetPanel();
|
auto ptr = project.GetPanel();
|
||||||
|
@ -25,16 +25,16 @@ class wxWindow;
|
|||||||
|
|
||||||
class AudacityProject;
|
class AudacityProject;
|
||||||
|
|
||||||
AUDACITY_DLL_API AudacityProject *GetActiveProject();
|
TENACITY_DLL_API AudacityProject *GetActiveProject();
|
||||||
// For use by ProjectManager only:
|
// For use by ProjectManager only:
|
||||||
AUDACITY_DLL_API void SetActiveProject(AudacityProject * project);
|
TENACITY_DLL_API void SetActiveProject(AudacityProject * project);
|
||||||
|
|
||||||
/// \brief an object of class AllProjects acts like a standard library
|
/// \brief an object of class AllProjects acts like a standard library
|
||||||
/// container, but refers to a global array of open projects. So you can
|
/// container, but refers to a global array of open projects. So you can
|
||||||
/// iterate easily over shared pointers to them with range-for :
|
/// iterate easily over shared pointers to them with range-for :
|
||||||
/// for (auto pProject : AllProjects{}) { ... }
|
/// for (auto pProject : AllProjects{}) { ... }
|
||||||
/// The pointers are never null.
|
/// The pointers are never null.
|
||||||
class AUDACITY_DLL_API AllProjects
|
class TENACITY_DLL_API AllProjects
|
||||||
{
|
{
|
||||||
// Use shared_ptr to projects, because elsewhere we need weak_ptr
|
// Use shared_ptr to projects, because elsewhere we need weak_ptr
|
||||||
using AProjectHolder = std::shared_ptr< AudacityProject >;
|
using AProjectHolder = std::shared_ptr< AudacityProject >;
|
||||||
@ -90,12 +90,12 @@ using AttachedProjectWindows = ClientData::Site<
|
|||||||
AudacityProject, wxWindow, ClientData::SkipCopying, ClientData::BarePtr
|
AudacityProject, wxWindow, ClientData::SkipCopying, ClientData::BarePtr
|
||||||
>;
|
>;
|
||||||
|
|
||||||
wxDECLARE_EXPORTED_EVENT(AUDACITY_DLL_API,
|
wxDECLARE_EXPORTED_EVENT(TENACITY_DLL_API,
|
||||||
EVT_TRACK_PANEL_TIMER, wxCommandEvent);
|
EVT_TRACK_PANEL_TIMER, wxCommandEvent);
|
||||||
|
|
||||||
// This event is emitted by the application object when there is a change
|
// This event is emitted by the application object when there is a change
|
||||||
// in the activated project
|
// in the activated project
|
||||||
wxDECLARE_EXPORTED_EVENT(AUDACITY_DLL_API,
|
wxDECLARE_EXPORTED_EVENT(TENACITY_DLL_API,
|
||||||
EVT_PROJECT_ACTIVATION, wxCommandEvent);
|
EVT_PROJECT_ACTIVATION, wxCommandEvent);
|
||||||
|
|
||||||
///\brief The top-level handle to an Audacity project. It serves as a source
|
///\brief The top-level handle to an Audacity project. It serves as a source
|
||||||
@ -104,7 +104,7 @@ wxDECLARE_EXPORTED_EVENT(AUDACITY_DLL_API,
|
|||||||
/// message and a few other things.
|
/// message and a few other things.
|
||||||
/// There is very little in this class, most of the intelligence residing in
|
/// There is very little in this class, most of the intelligence residing in
|
||||||
/// the cooperating attached objects.
|
/// the cooperating attached objects.
|
||||||
class AUDACITY_DLL_API AudacityProject final
|
class TENACITY_DLL_API AudacityProject final
|
||||||
: public wxEvtHandler
|
: public wxEvtHandler
|
||||||
, public AttachedProjectObjects
|
, public AttachedProjectObjects
|
||||||
, public AttachedProjectWindows
|
, public AttachedProjectWindows
|
||||||
@ -164,8 +164,8 @@ private:
|
|||||||
|
|
||||||
///\brief Get the top-level window associated with the project (as a wxFrame
|
///\brief Get the top-level window associated with the project (as a wxFrame
|
||||||
/// only, when you do not need to use the subclass ProjectWindow)
|
/// only, when you do not need to use the subclass ProjectWindow)
|
||||||
AUDACITY_DLL_API wxFrame &GetProjectFrame( AudacityProject &project );
|
TENACITY_DLL_API wxFrame &GetProjectFrame( AudacityProject &project );
|
||||||
AUDACITY_DLL_API const wxFrame &GetProjectFrame( const AudacityProject &project );
|
TENACITY_DLL_API const wxFrame &GetProjectFrame( const AudacityProject &project );
|
||||||
|
|
||||||
///\brief Get a pointer to the window associated with a project, or null if
|
///\brief Get a pointer to the window associated with a project, or null if
|
||||||
/// the given pointer is null.
|
/// the given pointer is null.
|
||||||
@ -178,8 +178,8 @@ inline const wxFrame *FindProjectFrame( const AudacityProject *project ) {
|
|||||||
|
|
||||||
///\brief Get the main sub-window of the project frame that displays track data
|
///\brief Get the main sub-window of the project frame that displays track data
|
||||||
// (as a wxWindow only, when you do not need to use the subclass TrackPanel)
|
// (as a wxWindow only, when you do not need to use the subclass TrackPanel)
|
||||||
AUDACITY_DLL_API wxWindow &GetProjectPanel( AudacityProject &project );
|
TENACITY_DLL_API wxWindow &GetProjectPanel( AudacityProject &project );
|
||||||
AUDACITY_DLL_API const wxWindow &GetProjectPanel(
|
TENACITY_DLL_API const wxWindow &GetProjectPanel(
|
||||||
const AudacityProject &project );
|
const AudacityProject &project );
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -22,7 +22,7 @@ class AudacityProject;
|
|||||||
|
|
||||||
///\ brief Holds per-project state needed for interaction with AudioIO,
|
///\ brief Holds per-project state needed for interaction with AudioIO,
|
||||||
/// including the audio stream token and pointers to meters
|
/// including the audio stream token and pointers to meters
|
||||||
class AUDACITY_DLL_API ProjectAudioIO final
|
class TENACITY_DLL_API ProjectAudioIO final
|
||||||
: public ClientData::Base
|
: public ClientData::Base
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -38,7 +38,7 @@ struct TransportTracks;
|
|||||||
|
|
||||||
enum StatusBarField : int;
|
enum StatusBarField : int;
|
||||||
|
|
||||||
class AUDACITY_DLL_API ProjectAudioManager final
|
class TENACITY_DLL_API ProjectAudioManager final
|
||||||
: public ClientData::Base
|
: public ClientData::Base
|
||||||
, public AudioIOListener
|
, public AudioIOListener
|
||||||
, public std::enable_shared_from_this< ProjectAudioManager >
|
, public std::enable_shared_from_this< ProjectAudioManager >
|
||||||
@ -163,9 +163,9 @@ private:
|
|||||||
const AudacityProject &project, StatusBarField field);
|
const AudacityProject &project, StatusBarField field);
|
||||||
};
|
};
|
||||||
|
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
AudioIOStartStreamOptions DefaultPlayOptions( AudacityProject &project );
|
AudioIOStartStreamOptions DefaultPlayOptions( AudacityProject &project );
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
AudioIOStartStreamOptions DefaultSpeedPlayOptions( AudacityProject &project );
|
AudioIOStartStreamOptions DefaultSpeedPlayOptions( AudacityProject &project );
|
||||||
|
|
||||||
struct PropertiesOfSelected
|
struct PropertiesOfSelected
|
||||||
@ -175,12 +175,12 @@ struct PropertiesOfSelected
|
|||||||
int numberOfSelected{ 0 };
|
int numberOfSelected{ 0 };
|
||||||
};
|
};
|
||||||
|
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
PropertiesOfSelected GetPropertiesOfSelected(const AudacityProject &proj);
|
PropertiesOfSelected GetPropertiesOfSelected(const AudacityProject &proj);
|
||||||
|
|
||||||
#include "commands/CommandFlag.h"
|
#include "commands/CommandFlag.h"
|
||||||
|
|
||||||
extern AUDACITY_DLL_API const ReservedCommandFlag
|
extern TENACITY_DLL_API const ReservedCommandFlag
|
||||||
&CanStopAudioStreamFlag();
|
&CanStopAudioStreamFlag();
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -42,17 +42,17 @@ using BlockIDs = std::unordered_set<SampleBlockID>;
|
|||||||
|
|
||||||
// An event processed by the project in the main thread after a checkpoint
|
// An event processed by the project in the main thread after a checkpoint
|
||||||
// failure was detected in a worker thread
|
// failure was detected in a worker thread
|
||||||
wxDECLARE_EXPORTED_EVENT( AUDACITY_DLL_API,
|
wxDECLARE_EXPORTED_EVENT( TENACITY_DLL_API,
|
||||||
EVT_CHECKPOINT_FAILURE, wxCommandEvent );
|
EVT_CHECKPOINT_FAILURE, wxCommandEvent );
|
||||||
|
|
||||||
// An event processed by the project in the main thread after failure to
|
// An event processed by the project in the main thread after failure to
|
||||||
// reconnect to the database, after temporary close and attempted file movement
|
// reconnect to the database, after temporary close and attempted file movement
|
||||||
wxDECLARE_EXPORTED_EVENT( AUDACITY_DLL_API,
|
wxDECLARE_EXPORTED_EVENT( TENACITY_DLL_API,
|
||||||
EVT_RECONNECTION_FAILURE, wxCommandEvent );
|
EVT_RECONNECTION_FAILURE, wxCommandEvent );
|
||||||
|
|
||||||
///\brief Object associated with a project that manages reading and writing
|
///\brief Object associated with a project that manages reading and writing
|
||||||
/// of Audacity project file formats, and autosave
|
/// of Audacity project file formats, and autosave
|
||||||
class AUDACITY_DLL_API ProjectFileIO final
|
class TENACITY_DLL_API ProjectFileIO final
|
||||||
: public ClientData::Base
|
: public ClientData::Base
|
||||||
, public XMLTagHandler
|
, public XMLTagHandler
|
||||||
, private PrefsListener
|
, private PrefsListener
|
||||||
@ -323,11 +323,11 @@ public:
|
|||||||
|
|
||||||
// This event is emitted by the project when there is a change
|
// This event is emitted by the project when there is a change
|
||||||
// in its title
|
// in its title
|
||||||
wxDECLARE_EXPORTED_EVENT(AUDACITY_DLL_API,
|
wxDECLARE_EXPORTED_EVENT(TENACITY_DLL_API,
|
||||||
EVT_PROJECT_TITLE_CHANGE, wxCommandEvent);
|
EVT_PROJECT_TITLE_CHANGE, wxCommandEvent);
|
||||||
|
|
||||||
//! Makes a temporary project that doesn't display on the screen
|
//! Makes a temporary project that doesn't display on the screen
|
||||||
class AUDACITY_DLL_API InvisibleTemporaryProject
|
class TENACITY_DLL_API InvisibleTemporaryProject
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
InvisibleTemporaryProject();
|
InvisibleTemporaryProject();
|
||||||
|
@ -24,7 +24,7 @@ using TagHandlerFactory =
|
|||||||
std::function< XMLTagHandler *( AudacityProject & ) >;
|
std::function< XMLTagHandler *( AudacityProject & ) >;
|
||||||
|
|
||||||
// Typically statically constructed
|
// Typically statically constructed
|
||||||
struct AUDACITY_DLL_API Entry{
|
struct TENACITY_DLL_API Entry{
|
||||||
Entry( const wxString &tag, const TagHandlerFactory &factory );
|
Entry( const wxString &tag, const TagHandlerFactory &factory );
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ class XMLTagHandler;
|
|||||||
using WaveTrackArray = std::vector < std::shared_ptr < WaveTrack > >;
|
using WaveTrackArray = std::vector < std::shared_ptr < WaveTrack > >;
|
||||||
using TrackHolders = std::vector< WaveTrackArray >;
|
using TrackHolders = std::vector< WaveTrackArray >;
|
||||||
|
|
||||||
class AUDACITY_DLL_API ProjectFileManager final
|
class TENACITY_DLL_API ProjectFileManager final
|
||||||
: public ClientData::Base
|
: public ClientData::Base
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -17,7 +17,7 @@ class AudacityProject;
|
|||||||
struct UndoState;
|
struct UndoState;
|
||||||
enum class UndoPush : unsigned char;
|
enum class UndoPush : unsigned char;
|
||||||
|
|
||||||
class AUDACITY_DLL_API ProjectHistory final
|
class TENACITY_DLL_API ProjectHistory final
|
||||||
: public ClientData::Base
|
: public ClientData::Base
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -92,7 +92,7 @@ ProjectManager::~ProjectManager() = default;
|
|||||||
// a bad compilation dependency. The event was never emitted anywhere. I
|
// a bad compilation dependency. The event was never emitted anywhere. I
|
||||||
// preserve it and its handler here but I move it to remove the dependency.
|
// preserve it and its handler here but I move it to remove the dependency.
|
||||||
// Asynchronous open
|
// Asynchronous open
|
||||||
wxDECLARE_EXPORTED_EVENT(AUDACITY_DLL_API,
|
wxDECLARE_EXPORTED_EVENT(TENACITY_DLL_API,
|
||||||
EVT_OPEN_AUDIO_FILE, wxCommandEvent);
|
EVT_OPEN_AUDIO_FILE, wxCommandEvent);
|
||||||
wxDEFINE_EVENT(EVT_OPEN_AUDIO_FILE, wxCommandEvent);
|
wxDEFINE_EVENT(EVT_OPEN_AUDIO_FILE, wxCommandEvent);
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ struct AudioIOStartStreamOptions;
|
|||||||
///\brief Object associated with a project for high-level management of the
|
///\brief Object associated with a project for high-level management of the
|
||||||
/// project's lifetime, including creation, destruction, opening from file,
|
/// project's lifetime, including creation, destruction, opening from file,
|
||||||
/// importing, pushing undo states, and reverting to saved states
|
/// importing, pushing undo states, and reverting to saved states
|
||||||
class AUDACITY_DLL_API ProjectManager final
|
class TENACITY_DLL_API ProjectManager final
|
||||||
: public wxEvtHandler
|
: public wxEvtHandler
|
||||||
, public ClientData::Base
|
, public ClientData::Base
|
||||||
{
|
{
|
||||||
|
@ -18,7 +18,7 @@ Paul Licameli split from ProjectManager.cpp
|
|||||||
|
|
||||||
class AudacityProject;
|
class AudacityProject;
|
||||||
|
|
||||||
class AUDACITY_DLL_API ProjectSelectionManager final
|
class TENACITY_DLL_API ProjectSelectionManager final
|
||||||
: public ClientData::Base
|
: public ClientData::Base
|
||||||
, public SelectionBarListener
|
, public SelectionBarListener
|
||||||
, public SpectralSelectionBarListener
|
, public SpectralSelectionBarListener
|
||||||
|
@ -30,7 +30,7 @@ using NameMap = std::unordered_map<wxString, unsigned short>;
|
|||||||
using IdMap = std::unordered_map<unsigned short, wxString>;
|
using IdMap = std::unordered_map<unsigned short, wxString>;
|
||||||
|
|
||||||
// This class's overrides do NOT throw AudacityException.
|
// This class's overrides do NOT throw AudacityException.
|
||||||
class AUDACITY_DLL_API ProjectSerializer final : public XMLWriter
|
class TENACITY_DLL_API ProjectSerializer final : public XMLWriter
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ Paul Licameli split from AudacityProject.h
|
|||||||
class AudacityProject;
|
class AudacityProject;
|
||||||
|
|
||||||
// Sent to the project when certain settings change
|
// Sent to the project when certain settings change
|
||||||
wxDECLARE_EXPORTED_EVENT(AUDACITY_DLL_API,
|
wxDECLARE_EXPORTED_EVENT(TENACITY_DLL_API,
|
||||||
EVT_PROJECT_SETTINGS_CHANGE, wxCommandEvent);
|
EVT_PROJECT_SETTINGS_CHANGE, wxCommandEvent);
|
||||||
|
|
||||||
enum
|
enum
|
||||||
@ -47,7 +47,7 @@ enum {
|
|||||||
|
|
||||||
///\brief Holds various per-project settings values, including the sample rate,
|
///\brief Holds various per-project settings values, including the sample rate,
|
||||||
/// and sends events to the project when certain values change
|
/// and sends events to the project when certain values change
|
||||||
class AUDACITY_DLL_API ProjectSettings final
|
class TENACITY_DLL_API ProjectSettings final
|
||||||
: public ClientData::Base
|
: public ClientData::Base
|
||||||
, private PrefsListener
|
, private PrefsListener
|
||||||
{
|
{
|
||||||
|
@ -31,10 +31,10 @@ enum StatusBarField : int {
|
|||||||
|
|
||||||
// Type of event emitted by the project when its status message is set
|
// Type of event emitted by the project when its status message is set
|
||||||
// GetInt() identifies the intended field of the status bar
|
// GetInt() identifies the intended field of the status bar
|
||||||
wxDECLARE_EXPORTED_EVENT(AUDACITY_DLL_API,
|
wxDECLARE_EXPORTED_EVENT(TENACITY_DLL_API,
|
||||||
EVT_PROJECT_STATUS_UPDATE, wxCommandEvent);
|
EVT_PROJECT_STATUS_UPDATE, wxCommandEvent);
|
||||||
|
|
||||||
class AUDACITY_DLL_API ProjectStatus final
|
class TENACITY_DLL_API ProjectStatus final
|
||||||
: public ClientData::Base
|
: public ClientData::Base
|
||||||
, public PrefsListener
|
, public PrefsListener
|
||||||
{
|
{
|
||||||
@ -57,7 +57,7 @@ public:
|
|||||||
using StatusWidthFunctions = std::vector< StatusWidthFunction >;
|
using StatusWidthFunctions = std::vector< StatusWidthFunction >;
|
||||||
|
|
||||||
// Typically a static instance of this struct is used.
|
// Typically a static instance of this struct is used.
|
||||||
struct AUDACITY_DLL_API RegisteredStatusWidthFunction
|
struct TENACITY_DLL_API RegisteredStatusWidthFunction
|
||||||
{
|
{
|
||||||
explicit
|
explicit
|
||||||
RegisteredStatusWidthFunction( const StatusWidthFunction &function );
|
RegisteredStatusWidthFunction( const StatusWidthFunction &function );
|
||||||
|
@ -26,7 +26,7 @@ void InitProjectWindow( ProjectWindow &window );
|
|||||||
|
|
||||||
///\brief A top-level window associated with a project, and handling scrollbars
|
///\brief A top-level window associated with a project, and handling scrollbars
|
||||||
/// and zooming
|
/// and zooming
|
||||||
class AUDACITY_DLL_API ProjectWindow final : public ProjectWindowBase
|
class TENACITY_DLL_API ProjectWindow final : public ProjectWindowBase
|
||||||
, public TrackPanelListener
|
, public TrackPanelListener
|
||||||
, public PrefsListener
|
, public PrefsListener
|
||||||
{
|
{
|
||||||
|
@ -33,7 +33,7 @@ protected:
|
|||||||
AudacityProject &mProject;
|
AudacityProject &mProject;
|
||||||
};
|
};
|
||||||
|
|
||||||
AUDACITY_DLL_API AudacityProject *FindProjectFromWindow( wxWindow *pWindow );
|
TENACITY_DLL_API AudacityProject *FindProjectFromWindow( wxWindow *pWindow );
|
||||||
const AudacityProject *FindProjectFromWindow( const wxWindow *pWindow );
|
const AudacityProject *FindProjectFromWindow( const wxWindow *pWindow );
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -17,7 +17,7 @@ struct FFTParam {
|
|||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
struct AUDACITY_DLL_API FFTDeleter{
|
struct TENACITY_DLL_API FFTDeleter{
|
||||||
void operator () (FFTParam *p) const;
|
void operator () (FFTParam *p) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -25,11 +25,11 @@ using HFFT = std::unique_ptr<
|
|||||||
FFTParam, FFTDeleter
|
FFTParam, FFTDeleter
|
||||||
>;
|
>;
|
||||||
|
|
||||||
AUDACITY_DLL_API HFFT GetFFT(size_t);
|
TENACITY_DLL_API HFFT GetFFT(size_t);
|
||||||
AUDACITY_DLL_API void RealFFTf(fft_type *, const FFTParam *);
|
TENACITY_DLL_API void RealFFTf(fft_type *, const FFTParam *);
|
||||||
AUDACITY_DLL_API void InverseRealFFTf(fft_type *, const FFTParam *);
|
TENACITY_DLL_API void InverseRealFFTf(fft_type *, const FFTParam *);
|
||||||
AUDACITY_DLL_API void ReorderToTime(const FFTParam *hFFT, const fft_type *buffer, fft_type *TimeOut);
|
TENACITY_DLL_API void ReorderToTime(const FFTParam *hFFT, const fft_type *buffer, fft_type *TimeOut);
|
||||||
AUDACITY_DLL_API void ReorderToFreq(const FFTParam *hFFT, const fft_type *buffer,
|
TENACITY_DLL_API void ReorderToFreq(const FFTParam *hFFT, const fft_type *buffer,
|
||||||
fft_type *RealOut, fft_type *ImagOut);
|
fft_type *RealOut, fft_type *ImagOut);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -29,7 +29,7 @@ class LoadableModule;
|
|||||||
class ComponentInterface;
|
class ComponentInterface;
|
||||||
class Effect;
|
class Effect;
|
||||||
|
|
||||||
class AUDACITY_DLL_API Registrar
|
class TENACITY_DLL_API Registrar
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Registrar(){
|
Registrar(){
|
||||||
|
@ -56,7 +56,7 @@ namespace Registry {
|
|||||||
// Most items in the table will be the large ones describing commands, so the
|
// Most items in the table will be the large ones describing commands, so the
|
||||||
// waste of space in unions for separators and sub-menus should not be
|
// waste of space in unions for separators and sub-menus should not be
|
||||||
// large.
|
// large.
|
||||||
struct AUDACITY_DLL_API BaseItem {
|
struct TENACITY_DLL_API BaseItem {
|
||||||
// declare at least one virtual function so dynamic_cast will work
|
// declare at least one virtual function so dynamic_cast will work
|
||||||
explicit
|
explicit
|
||||||
BaseItem( const Identifier &internalName )
|
BaseItem( const Identifier &internalName )
|
||||||
@ -79,7 +79,7 @@ namespace Registry {
|
|||||||
// static tables of items to be computed once and reused
|
// static tables of items to be computed once and reused
|
||||||
// The name of the delegate is significant for path calculations, but the
|
// The name of the delegate is significant for path calculations, but the
|
||||||
// SharedItem's ordering hint is used if the delegate has none
|
// SharedItem's ordering hint is used if the delegate has none
|
||||||
struct AUDACITY_DLL_API SharedItem final : BaseItem {
|
struct TENACITY_DLL_API SharedItem final : BaseItem {
|
||||||
explicit SharedItem( const BaseItemSharedPtr &ptr_ )
|
explicit SharedItem( const BaseItemSharedPtr &ptr_ )
|
||||||
: BaseItem{ wxEmptyString }
|
: BaseItem{ wxEmptyString }
|
||||||
, ptr{ ptr_ }
|
, ptr{ ptr_ }
|
||||||
@ -97,7 +97,7 @@ namespace Registry {
|
|||||||
// the ComputedItem is visited
|
// the ComputedItem is visited
|
||||||
// The name of the substitute is significant for path calculations, but the
|
// The name of the substitute is significant for path calculations, but the
|
||||||
// ComputedItem's ordering hint is used if the substitute has none
|
// ComputedItem's ordering hint is used if the substitute has none
|
||||||
struct AUDACITY_DLL_API ComputedItem final : BaseItem {
|
struct TENACITY_DLL_API ComputedItem final : BaseItem {
|
||||||
// The type of functions that generate descriptions of items.
|
// The type of functions that generate descriptions of items.
|
||||||
// Return type is a shared_ptr to let the function decide whether to
|
// Return type is a shared_ptr to let the function decide whether to
|
||||||
// recycle the object or rebuild it on demand each time.
|
// recycle the object or rebuild it on demand each time.
|
||||||
@ -117,13 +117,13 @@ namespace Registry {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Common abstract base class for items that are not groups
|
// Common abstract base class for items that are not groups
|
||||||
struct AUDACITY_DLL_API SingleItem : BaseItem {
|
struct TENACITY_DLL_API SingleItem : BaseItem {
|
||||||
using BaseItem::BaseItem;
|
using BaseItem::BaseItem;
|
||||||
~SingleItem() override = 0;
|
~SingleItem() override = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
// Common abstract base class for items that group other items
|
// Common abstract base class for items that group other items
|
||||||
struct AUDACITY_DLL_API GroupItem : BaseItem {
|
struct TENACITY_DLL_API GroupItem : BaseItem {
|
||||||
using BaseItem::BaseItem;
|
using BaseItem::BaseItem;
|
||||||
|
|
||||||
// Construction from an internal name and a previously built-up
|
// Construction from an internal name and a previously built-up
|
||||||
@ -231,14 +231,14 @@ namespace Registry {
|
|||||||
// The sequence of calls to RegisterItem has no significance for
|
// The sequence of calls to RegisterItem has no significance for
|
||||||
// determining the visitation ordering. When sequence is important, register
|
// determining the visitation ordering. When sequence is important, register
|
||||||
// a GroupItem.
|
// a GroupItem.
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
void RegisterItem( GroupItem ®istry, const Placement &placement,
|
void RegisterItem( GroupItem ®istry, const Placement &placement,
|
||||||
BaseItemPtr pItem );
|
BaseItemPtr pItem );
|
||||||
|
|
||||||
// Define actions to be done in Visit.
|
// Define actions to be done in Visit.
|
||||||
// Default implementations do nothing
|
// Default implementations do nothing
|
||||||
// The supplied path does not include the name of the item
|
// The supplied path does not include the name of the item
|
||||||
class AUDACITY_DLL_API Visitor
|
class TENACITY_DLL_API Visitor
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
virtual ~Visitor();
|
virtual ~Visitor();
|
||||||
@ -269,7 +269,7 @@ namespace Registry {
|
|||||||
// registry of plug-ins, and something must be done to preserve old
|
// registry of plug-ins, and something must be done to preserve old
|
||||||
// behavior. It can be done in the central place using string literal
|
// behavior. It can be done in the central place using string literal
|
||||||
// identifiers only, not requiring static compilation or linkage dependency.
|
// identifiers only, not requiring static compilation or linkage dependency.
|
||||||
struct AUDACITY_DLL_API
|
struct TENACITY_DLL_API
|
||||||
OrderingPreferenceInitializer : PreferenceInitializer {
|
OrderingPreferenceInitializer : PreferenceInitializer {
|
||||||
using Literal = const wxChar *;
|
using Literal = const wxChar *;
|
||||||
using Pair = std::pair< Literal, Literal >;
|
using Pair = std::pair< Literal, Literal >;
|
||||||
|
@ -25,7 +25,7 @@ struct soxr_deleter {
|
|||||||
};
|
};
|
||||||
using soxrHandle = std::unique_ptr<soxr, soxr_deleter>;
|
using soxrHandle = std::unique_ptr<soxr, soxr_deleter>;
|
||||||
|
|
||||||
class AUDACITY_DLL_API Resample final
|
class TENACITY_DLL_API Resample final
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
/// Resamplers may have more than one method, offering a
|
/// Resamplers may have more than one method, offering a
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
//! These global variables are assigned at application startup or after change of preferences.
|
//! These global variables are assigned at application startup or after change of preferences.
|
||||||
extern AUDACITY_DLL_API DitherType gLowQualityDither, gHighQualityDither;
|
extern TENACITY_DLL_API DitherType gLowQualityDither, gHighQualityDither;
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
// Moved to tenacity/Types.h
|
// Moved to tenacity/Types.h
|
||||||
@ -48,7 +48,7 @@ typedef enum {
|
|||||||
#define SAMPLE_SIZE_DISK(SampleFormat) (((SampleFormat) == int24Sample) ? \
|
#define SAMPLE_SIZE_DISK(SampleFormat) (((SampleFormat) == int24Sample) ? \
|
||||||
size_t{ 3 } : SAMPLE_SIZE(SampleFormat) )
|
size_t{ 3 } : SAMPLE_SIZE(SampleFormat) )
|
||||||
|
|
||||||
AUDACITY_DLL_API TranslatableString GetSampleFormatStr(sampleFormat format);
|
TENACITY_DLL_API TranslatableString GetSampleFormatStr(sampleFormat format);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Allocating/Freeing Samples
|
// Allocating/Freeing Samples
|
||||||
@ -128,7 +128,7 @@ private:
|
|||||||
// Copying, Converting and Clearing Samples
|
// Copying, Converting and Clearing Samples
|
||||||
//
|
//
|
||||||
|
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
//! Copy samples from any format into the widest format, which is 32 bit float, with no dithering
|
//! Copy samples from any format into the widest format, which is 32 bit float, with no dithering
|
||||||
/*!
|
/*!
|
||||||
@param src address of source samples
|
@param src address of source samples
|
||||||
@ -141,7 +141,7 @@ AUDACITY_DLL_API
|
|||||||
void SamplesToFloats(constSamplePtr src, sampleFormat srcFormat,
|
void SamplesToFloats(constSamplePtr src, sampleFormat srcFormat,
|
||||||
float *dst, size_t len, size_t srcStride = 1, size_t dstStride = 1);
|
float *dst, size_t len, size_t srcStride = 1, size_t dstStride = 1);
|
||||||
|
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
//! Copy samples from any format to any other format; apply dithering only if narrowing the format
|
//! Copy samples from any format to any other format; apply dithering only if narrowing the format
|
||||||
/*!
|
/*!
|
||||||
@copydetails SamplesToFloats()
|
@copydetails SamplesToFloats()
|
||||||
@ -153,11 +153,11 @@ void CopySamples(constSamplePtr src, sampleFormat srcFormat,
|
|||||||
DitherType ditherType = gHighQualityDither, //!< default is loaded from a global variable
|
DitherType ditherType = gHighQualityDither, //!< default is loaded from a global variable
|
||||||
unsigned int srcStride=1, unsigned int dstStride=1);
|
unsigned int srcStride=1, unsigned int dstStride=1);
|
||||||
|
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
void ClearSamples(samplePtr buffer, sampleFormat format,
|
void ClearSamples(samplePtr buffer, sampleFormat format,
|
||||||
size_t start, size_t len);
|
size_t start, size_t len);
|
||||||
|
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
void ReverseSamples(samplePtr buffer, sampleFormat format,
|
void ReverseSamples(samplePtr buffer, sampleFormat format,
|
||||||
int start, int len);
|
int start, int len);
|
||||||
|
|
||||||
@ -166,7 +166,7 @@ void ReverseSamples(samplePtr buffer, sampleFormat format,
|
|||||||
// are set in preferences.
|
// are set in preferences.
|
||||||
//
|
//
|
||||||
|
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
void InitDitherers();
|
void InitDitherers();
|
||||||
|
|
||||||
// These are so commonly done for processing samples in floating point form in memory,
|
// These are so commonly done for processing samples in floating point form in memory,
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
class AudacityProject;
|
class AudacityProject;
|
||||||
|
|
||||||
AUDACITY_DLL_API void OpenScreenshotTools( AudacityProject &project );
|
TENACITY_DLL_API void OpenScreenshotTools( AudacityProject &project );
|
||||||
void CloseScreenshotTools();
|
void CloseScreenshotTools();
|
||||||
|
|
||||||
#endif // __AUDACITY_SCREENSHOT__
|
#endif // __AUDACITY_SCREENSHOT__
|
||||||
|
@ -17,17 +17,17 @@ class Track;
|
|||||||
/// Namespace for functions for Select menu
|
/// Namespace for functions for Select menu
|
||||||
namespace SelectUtilities {
|
namespace SelectUtilities {
|
||||||
|
|
||||||
AUDACITY_DLL_API void DoSelectTimeAndTracks(
|
TENACITY_DLL_API void DoSelectTimeAndTracks(
|
||||||
AudacityProject &project, bool bAllTime, bool bAllTracks);
|
AudacityProject &project, bool bAllTime, bool bAllTracks);
|
||||||
AUDACITY_DLL_API void SelectAllIfNone( AudacityProject &project );
|
TENACITY_DLL_API void SelectAllIfNone( AudacityProject &project );
|
||||||
AUDACITY_DLL_API bool SelectAllIfNoneAndAllowed( AudacityProject &project );
|
TENACITY_DLL_API bool SelectAllIfNoneAndAllowed( AudacityProject &project );
|
||||||
AUDACITY_DLL_API void SelectNone( AudacityProject &project );
|
TENACITY_DLL_API void SelectNone( AudacityProject &project );
|
||||||
AUDACITY_DLL_API void DoListSelection(
|
TENACITY_DLL_API void DoListSelection(
|
||||||
AudacityProject &project, Track *t,
|
AudacityProject &project, Track *t,
|
||||||
bool shift, bool ctrl, bool modifyState );
|
bool shift, bool ctrl, bool modifyState );
|
||||||
AUDACITY_DLL_API void DoSelectAll( AudacityProject &project );
|
TENACITY_DLL_API void DoSelectAll( AudacityProject &project );
|
||||||
AUDACITY_DLL_API void DoSelectAllAudio( AudacityProject &project );
|
TENACITY_DLL_API void DoSelectAllAudio( AudacityProject &project );
|
||||||
AUDACITY_DLL_API void DoSelectSomething( AudacityProject &project );
|
TENACITY_DLL_API void DoSelectSomething( AudacityProject &project );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
|
|
||||||
class XMLWriter;
|
class XMLWriter;
|
||||||
|
|
||||||
class AUDACITY_DLL_API SelectedRegion {
|
class TENACITY_DLL_API SelectedRegion {
|
||||||
|
|
||||||
// Maintains the invariant: t1() >= t0()
|
// Maintains the invariant: t1() >= t0()
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ class ViewInfo;
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
// State relating to the set of selected tracks
|
// State relating to the set of selected tracks
|
||||||
class AUDACITY_DLL_API SelectionState final
|
class TENACITY_DLL_API SelectionState final
|
||||||
: public ClientData::Base
|
: public ClientData::Base
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@ -52,7 +52,7 @@ private:
|
|||||||
|
|
||||||
// For committing or rolling-back of changes in selectedness of tracks.
|
// For committing or rolling-back of changes in selectedness of tracks.
|
||||||
// When rolling back, it is assumed that no tracks have been added or removed.
|
// When rolling back, it is assumed that no tracks have been added or removed.
|
||||||
class AUDACITY_DLL_API SelectionStateChanger
|
class TENACITY_DLL_API SelectionStateChanger
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
SelectionStateChanger( SelectionState &state, TrackList &tracks );
|
SelectionStateChanger( SelectionState &state, TrackList &tracks );
|
||||||
|
@ -51,9 +51,9 @@ using BlockPtrArray = std::vector<SeqBlock*>; // non-owning pointers
|
|||||||
|
|
||||||
// Put extra symbol information in the release build, for the purpose of gathering
|
// Put extra symbol information in the release build, for the purpose of gathering
|
||||||
// profiling information (as from Windows Process Monitor), when there otherwise
|
// profiling information (as from Windows Process Monitor), when there otherwise
|
||||||
// isn't a need for AUDACITY_DLL_API.
|
// isn't a need for TENACITY_DLL_API.
|
||||||
#ifdef IS_ALPHA
|
#ifdef IS_ALPHA
|
||||||
#define PROFILE_DLL_API AUDACITY_DLL_API
|
#define PROFILE_DLL_API TENACITY_DLL_API
|
||||||
#else
|
#else
|
||||||
#define PROFILE_DLL_API
|
#define PROFILE_DLL_API
|
||||||
#endif
|
#endif
|
||||||
|
@ -58,7 +58,7 @@ class CommandParameters;
|
|||||||
virtual functions that do nothing by default.
|
virtual functions that do nothing by default.
|
||||||
Unrelated to class Shuttle.
|
Unrelated to class Shuttle.
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
class AUDACITY_DLL_API ShuttleParams /* not final */
|
class TENACITY_DLL_API ShuttleParams /* not final */
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
wxString mParams;
|
wxString mParams;
|
||||||
@ -84,7 +84,7 @@ public:
|
|||||||
/**************************************************************************//**
|
/**************************************************************************//**
|
||||||
\brief Shuttle that gets parameter values into a string.
|
\brief Shuttle that gets parameter values into a string.
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
class AUDACITY_DLL_API ShuttleGetAutomation final : public ShuttleParams
|
class TENACITY_DLL_API ShuttleGetAutomation final : public ShuttleParams
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ShuttleParams & Optional( bool & var ) override;
|
ShuttleParams & Optional( bool & var ) override;
|
||||||
@ -102,7 +102,7 @@ public:
|
|||||||
/**************************************************************************//**
|
/**************************************************************************//**
|
||||||
\brief Shuttle that sets parameters to a value (from a string)
|
\brief Shuttle that sets parameters to a value (from a string)
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
class AUDACITY_DLL_API ShuttleSetAutomation final : public ShuttleParams
|
class TENACITY_DLL_API ShuttleSetAutomation final : public ShuttleParams
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ShuttleSetAutomation(){ bWrite = false; bOK = false;};
|
ShuttleSetAutomation(){ bWrite = false; bOK = false;};
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
/**************************************************************************//**
|
/**************************************************************************//**
|
||||||
\brief Shuttle that retrieves a JSON format definition of a command's parameters.
|
\brief Shuttle that retrieves a JSON format definition of a command's parameters.
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
class AUDACITY_DLL_API ShuttleGetDefinition final
|
class TENACITY_DLL_API ShuttleGetDefinition final
|
||||||
: public ShuttleParams, public CommandMessageTargetDecorator
|
: public ShuttleParams, public CommandMessageTargetDecorator
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -237,7 +237,7 @@ struct Item {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class AUDACITY_DLL_API ShuttleGuiBase /* not final */
|
class TENACITY_DLL_API ShuttleGuiBase /* not final */
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ShuttleGuiBase(
|
ShuttleGuiBase(
|
||||||
@ -629,12 +629,12 @@ enum
|
|||||||
GROWING_PROPORTION = 1
|
GROWING_PROPORTION = 1
|
||||||
};
|
};
|
||||||
|
|
||||||
AUDACITY_DLL_API std::unique_ptr<wxSizer> CreateStdButtonSizer( wxWindow *parent,
|
TENACITY_DLL_API std::unique_ptr<wxSizer> CreateStdButtonSizer( wxWindow *parent,
|
||||||
long buttons = eOkButton | eCancelButton,
|
long buttons = eOkButton | eCancelButton,
|
||||||
wxWindow *extra = NULL );
|
wxWindow *extra = NULL );
|
||||||
|
|
||||||
// ShuttleGui extends ShuttleGuiBase with Audacity specific extensions.
|
// ShuttleGui extends ShuttleGuiBase with Audacity specific extensions.
|
||||||
class AUDACITY_DLL_API ShuttleGui /* not final */ : public ShuttleGuiBase
|
class TENACITY_DLL_API ShuttleGui /* not final */ : public ShuttleGuiBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ShuttleGui(
|
ShuttleGui(
|
||||||
@ -762,10 +762,10 @@ public:
|
|||||||
class ComponentInterfaceSymbol;
|
class ComponentInterfaceSymbol;
|
||||||
|
|
||||||
//! Convenience function often useful when adding choice controls
|
//! Convenience function often useful when adding choice controls
|
||||||
AUDACITY_DLL_API TranslatableStrings Msgids(
|
TENACITY_DLL_API TranslatableStrings Msgids(
|
||||||
const EnumValueSymbol strings[], size_t nStrings);
|
const EnumValueSymbol strings[], size_t nStrings);
|
||||||
|
|
||||||
//! Convenience function often useful when adding choice controls
|
//! Convenience function often useful when adding choice controls
|
||||||
AUDACITY_DLL_API TranslatableStrings Msgids( const std::vector<EnumValueSymbol> &strings );
|
TENACITY_DLL_API TranslatableStrings Msgids( const std::vector<EnumValueSymbol> &strings );
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -52,7 +52,7 @@ struct SnapResults {
|
|||||||
bool Snapped() const { return snappedPoint || snappedTime; }
|
bool Snapped() const { return snappedPoint || snappedTime; }
|
||||||
};
|
};
|
||||||
|
|
||||||
class AUDACITY_DLL_API SnapManager
|
class TENACITY_DLL_API SnapManager
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
SnapManager(const AudacityProject &project,
|
SnapManager(const AudacityProject &project,
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
calculates windowSize/2 frequency samples
|
calculates windowSize/2 frequency samples
|
||||||
*/
|
*/
|
||||||
|
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
bool ComputeSpectrum(const float * data, size_t width, size_t windowSize,
|
bool ComputeSpectrum(const float * data, size_t width, size_t windowSize,
|
||||||
double rate, float *out, bool autocorrelation,
|
double rate, float *out, bool autocorrelation,
|
||||||
int windowFunc = eWinFuncHann);
|
int windowFunc = eWinFuncHann);
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
class FreqGauge;
|
class FreqGauge;
|
||||||
|
|
||||||
class AUDACITY_DLL_API SpectrumAnalyst
|
class TENACITY_DLL_API SpectrumAnalyst
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
@ -59,7 +59,7 @@ private:
|
|||||||
std::vector<float> mProcessed;
|
std::vector<float> mProcessed;
|
||||||
};
|
};
|
||||||
|
|
||||||
class AUDACITY_DLL_API FreqGauge final : public wxStatusBar
|
class TENACITY_DLL_API FreqGauge final : public wxStatusBar
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
FreqGauge(wxWindow * parent, wxWindowID winid);
|
FreqGauge(wxWindow * parent, wxWindowID winid);
|
||||||
|
@ -67,7 +67,7 @@ using TagMap = std::unordered_map< wxString, wxString >;
|
|||||||
#define TAG_SOFTWARE wxT("Software")
|
#define TAG_SOFTWARE wxT("Software")
|
||||||
#define TAG_COPYRIGHT wxT("Copyright")
|
#define TAG_COPYRIGHT wxT("Copyright")
|
||||||
|
|
||||||
class AUDACITY_DLL_API Tags final
|
class TENACITY_DLL_API Tags final
|
||||||
: public XMLTagHandler
|
: public XMLTagHandler
|
||||||
, public std::enable_shared_from_this< Tags >
|
, public std::enable_shared_from_this< Tags >
|
||||||
, public ClientData::Base
|
, public ClientData::Base
|
||||||
|
@ -18,17 +18,17 @@ class wxWindow;
|
|||||||
|
|
||||||
namespace TempDirectory
|
namespace TempDirectory
|
||||||
{
|
{
|
||||||
AUDACITY_DLL_API wxString TempDir();
|
TENACITY_DLL_API wxString TempDir();
|
||||||
AUDACITY_DLL_API void ResetTempDir();
|
TENACITY_DLL_API void ResetTempDir();
|
||||||
|
|
||||||
AUDACITY_DLL_API const FilePath &DefaultTempDir();
|
TENACITY_DLL_API const FilePath &DefaultTempDir();
|
||||||
AUDACITY_DLL_API void SetDefaultTempDir( const FilePath &tempDir );
|
TENACITY_DLL_API void SetDefaultTempDir( const FilePath &tempDir );
|
||||||
AUDACITY_DLL_API bool IsTempDirectoryNameOK( const FilePath & Name );
|
TENACITY_DLL_API bool IsTempDirectoryNameOK( const FilePath & Name );
|
||||||
|
|
||||||
// Create a filename for an unsaved/temporary project file
|
// Create a filename for an unsaved/temporary project file
|
||||||
AUDACITY_DLL_API wxString UnsavedProjectFileName();
|
TENACITY_DLL_API wxString UnsavedProjectFileName();
|
||||||
|
|
||||||
AUDACITY_DLL_API bool FATFilesystemDenied(const FilePath &path,
|
TENACITY_DLL_API bool FATFilesystemDenied(const FilePath &path,
|
||||||
const TranslatableString &msg,
|
const TranslatableString &msg,
|
||||||
wxWindow *window = nullptr);
|
wxWindow *window = nullptr);
|
||||||
};
|
};
|
||||||
|
@ -199,7 +199,7 @@ static const unsigned char HiContrastImageCacheAsData[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// theTheme is a global variable.
|
// theTheme is a global variable.
|
||||||
AUDACITY_DLL_API Theme theTheme;
|
TENACITY_DLL_API Theme theTheme;
|
||||||
|
|
||||||
Theme::Theme(void)
|
Theme::Theme(void)
|
||||||
{
|
{
|
||||||
|
12
src/Theme.h
12
src/Theme.h
@ -62,7 +62,7 @@ enum teThemeType
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
class AUDACITY_DLL_API FlowPacker
|
class TENACITY_DLL_API FlowPacker
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
FlowPacker(){;};
|
FlowPacker(){;};
|
||||||
@ -95,7 +95,7 @@ private:
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
class AUDACITY_DLL_API ThemeBase /* not final */
|
class TENACITY_DLL_API ThemeBase /* not final */
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ThemeBase(void);
|
ThemeBase(void);
|
||||||
@ -160,7 +160,7 @@ protected:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class AUDACITY_DLL_API Theme final : public ThemeBase
|
class TENACITY_DLL_API Theme final : public ThemeBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Theme(void);
|
Theme(void);
|
||||||
@ -179,7 +179,7 @@ class wxWindow;
|
|||||||
class wxString;
|
class wxString;
|
||||||
class wxPaintEvent;
|
class wxPaintEvent;
|
||||||
|
|
||||||
class AUDACITY_DLL_API auStaticText : public wxWindow
|
class TENACITY_DLL_API auStaticText : public wxWindow
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
auStaticText(wxWindow* parent, wxString text);
|
auStaticText(wxWindow* parent, wxString text);
|
||||||
@ -191,9 +191,9 @@ public:
|
|||||||
DECLARE_EVENT_TABLE();
|
DECLARE_EVENT_TABLE();
|
||||||
};
|
};
|
||||||
|
|
||||||
extern AUDACITY_DLL_API Theme theTheme;
|
extern TENACITY_DLL_API Theme theTheme;
|
||||||
|
|
||||||
extern AUDACITY_DLL_API ChoiceSetting
|
extern TENACITY_DLL_API ChoiceSetting
|
||||||
GUITheme
|
GUITheme
|
||||||
;
|
;
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
class NumericTextCtrl;
|
class NumericTextCtrl;
|
||||||
class ShuttleGui;
|
class ShuttleGui;
|
||||||
|
|
||||||
class AUDACITY_DLL_API TimeDialog final : public wxDialogWrapper
|
class TENACITY_DLL_API TimeDialog final : public wxDialogWrapper
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ class Ruler;
|
|||||||
class ZoomInfo;
|
class ZoomInfo;
|
||||||
struct TrackPanelDrawingContext;
|
struct TrackPanelDrawingContext;
|
||||||
|
|
||||||
class AUDACITY_DLL_API TimeTrack final : public Track {
|
class TENACITY_DLL_API TimeTrack final : public Track {
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
24
src/Track.h
24
src/Track.h
@ -182,7 +182,7 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
//! Optional extra information about an interval, appropriate to a subtype of Track
|
//! Optional extra information about an interval, appropriate to a subtype of Track
|
||||||
struct AUDACITY_DLL_API TrackIntervalData {
|
struct TENACITY_DLL_API TrackIntervalData {
|
||||||
virtual ~TrackIntervalData();
|
virtual ~TrackIntervalData();
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -231,7 +231,7 @@ using AttachedTrackObjects = ClientData::Site<
|
|||||||
>;
|
>;
|
||||||
|
|
||||||
//! Abstract base class for an object holding data associated with points on a time axis
|
//! Abstract base class for an object holding data associated with points on a time axis
|
||||||
class AUDACITY_DLL_API Track /* not final */
|
class TENACITY_DLL_API Track /* not final */
|
||||||
: public XMLTagHandler
|
: public XMLTagHandler
|
||||||
, public AttachedTrackObjects
|
, public AttachedTrackObjects
|
||||||
, public std::enable_shared_from_this<Track> // see SharedPointer()
|
, public std::enable_shared_from_this<Track> // see SharedPointer()
|
||||||
@ -817,7 +817,7 @@ protected:
|
|||||||
};
|
};
|
||||||
|
|
||||||
//! Track subclass holding data representing sound (as notes, or samples, or ...)
|
//! Track subclass holding data representing sound (as notes, or samples, or ...)
|
||||||
class AUDACITY_DLL_API AudioTrack /* not final */ : public Track
|
class TENACITY_DLL_API AudioTrack /* not final */ : public Track
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
AudioTrack()
|
AudioTrack()
|
||||||
@ -833,7 +833,7 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
//! AudioTrack subclass that can also be audibly replayed by the program
|
//! AudioTrack subclass that can also be audibly replayed by the program
|
||||||
class AUDACITY_DLL_API PlayableTrack /* not final */ : public AudioTrack
|
class TENACITY_DLL_API PlayableTrack /* not final */ : public AudioTrack
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
PlayableTrack()
|
PlayableTrack()
|
||||||
@ -1223,39 +1223,39 @@ struct TrackListEvent : public wxCommandEvent
|
|||||||
};
|
};
|
||||||
|
|
||||||
//! Posted when the set of selected tracks changes.
|
//! Posted when the set of selected tracks changes.
|
||||||
wxDECLARE_EXPORTED_EVENT(AUDACITY_DLL_API,
|
wxDECLARE_EXPORTED_EVENT(TENACITY_DLL_API,
|
||||||
EVT_TRACKLIST_SELECTION_CHANGE, TrackListEvent);
|
EVT_TRACKLIST_SELECTION_CHANGE, TrackListEvent);
|
||||||
|
|
||||||
//! Posted when certain fields of a track change.
|
//! Posted when certain fields of a track change.
|
||||||
wxDECLARE_EXPORTED_EVENT(AUDACITY_DLL_API,
|
wxDECLARE_EXPORTED_EVENT(TENACITY_DLL_API,
|
||||||
EVT_TRACKLIST_TRACK_DATA_CHANGE, TrackListEvent);
|
EVT_TRACKLIST_TRACK_DATA_CHANGE, TrackListEvent);
|
||||||
|
|
||||||
//! Posted when a track needs to be scrolled into view.
|
//! Posted when a track needs to be scrolled into view.
|
||||||
wxDECLARE_EXPORTED_EVENT(AUDACITY_DLL_API,
|
wxDECLARE_EXPORTED_EVENT(TENACITY_DLL_API,
|
||||||
EVT_TRACKLIST_TRACK_REQUEST_VISIBLE, TrackListEvent);
|
EVT_TRACKLIST_TRACK_REQUEST_VISIBLE, TrackListEvent);
|
||||||
|
|
||||||
//! Posted when tracks are reordered but otherwise unchanged.
|
//! Posted when tracks are reordered but otherwise unchanged.
|
||||||
/*! mpTrack points to the moved track that is earliest in the New ordering. */
|
/*! mpTrack points to the moved track that is earliest in the New ordering. */
|
||||||
wxDECLARE_EXPORTED_EVENT(AUDACITY_DLL_API,
|
wxDECLARE_EXPORTED_EVENT(TENACITY_DLL_API,
|
||||||
EVT_TRACKLIST_PERMUTED, TrackListEvent);
|
EVT_TRACKLIST_PERMUTED, TrackListEvent);
|
||||||
|
|
||||||
//! Posted when some track changed its height.
|
//! Posted when some track changed its height.
|
||||||
wxDECLARE_EXPORTED_EVENT(AUDACITY_DLL_API,
|
wxDECLARE_EXPORTED_EVENT(TENACITY_DLL_API,
|
||||||
EVT_TRACKLIST_RESIZING, TrackListEvent);
|
EVT_TRACKLIST_RESIZING, TrackListEvent);
|
||||||
|
|
||||||
//! Posted when a track has been added to a tracklist. Also posted when one track replaces another
|
//! Posted when a track has been added to a tracklist. Also posted when one track replaces another
|
||||||
wxDECLARE_EXPORTED_EVENT(AUDACITY_DLL_API,
|
wxDECLARE_EXPORTED_EVENT(TENACITY_DLL_API,
|
||||||
EVT_TRACKLIST_ADDITION, TrackListEvent);
|
EVT_TRACKLIST_ADDITION, TrackListEvent);
|
||||||
|
|
||||||
//! Posted when a track has been deleted from a tracklist. Also posted when one track replaces another
|
//! Posted when a track has been deleted from a tracklist. Also posted when one track replaces another
|
||||||
/*! mpTrack points to the first track after the deletion, if there is one. */
|
/*! mpTrack points to the first track after the deletion, if there is one. */
|
||||||
wxDECLARE_EXPORTED_EVENT(AUDACITY_DLL_API,
|
wxDECLARE_EXPORTED_EVENT(TENACITY_DLL_API,
|
||||||
EVT_TRACKLIST_DELETION, TrackListEvent);
|
EVT_TRACKLIST_DELETION, TrackListEvent);
|
||||||
|
|
||||||
/*! @brief A flat linked list of tracks supporting Add, Remove,
|
/*! @brief A flat linked list of tracks supporting Add, Remove,
|
||||||
* Clear, and Contains, serialization of the list of tracks, event notifications
|
* Clear, and Contains, serialization of the list of tracks, event notifications
|
||||||
*/
|
*/
|
||||||
class AUDACITY_DLL_API TrackList final
|
class TENACITY_DLL_API TrackList final
|
||||||
: public wxEvtHandler
|
: public wxEvtHandler
|
||||||
, public ListOfTracks
|
, public ListOfTracks
|
||||||
, public std::enable_shared_from_this<TrackList>
|
, public std::enable_shared_from_this<TrackList>
|
||||||
|
@ -40,30 +40,30 @@ namespace TrackArt {
|
|||||||
|
|
||||||
static constexpr int ClipFrameRadius{ 6 };
|
static constexpr int ClipFrameRadius{ 6 };
|
||||||
|
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
void DrawClipAffordance(wxDC& dc, const wxRect& affordanceRect, bool highlight = false, bool selected = false);
|
void DrawClipAffordance(wxDC& dc, const wxRect& affordanceRect, bool highlight = false, bool selected = false);
|
||||||
|
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
void DrawClipEdges(wxDC& dc, const wxRect& clipRect, bool selected = false);
|
void DrawClipEdges(wxDC& dc, const wxRect& clipRect, bool selected = false);
|
||||||
|
|
||||||
// Helper: draws the "sync-locked" watermark tiled to a rectangle
|
// Helper: draws the "sync-locked" watermark tiled to a rectangle
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
void DrawSyncLockTiles(
|
void DrawSyncLockTiles(
|
||||||
TrackPanelDrawingContext &context, const wxRect &rect );
|
TrackPanelDrawingContext &context, const wxRect &rect );
|
||||||
|
|
||||||
// Helper: draws background with selection rect
|
// Helper: draws background with selection rect
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
void DrawBackgroundWithSelection(TrackPanelDrawingContext &context,
|
void DrawBackgroundWithSelection(TrackPanelDrawingContext &context,
|
||||||
const wxRect &rect, const Track *track,
|
const wxRect &rect, const Track *track,
|
||||||
const wxBrush &selBrush, const wxBrush &unselBrush,
|
const wxBrush &selBrush, const wxBrush &unselBrush,
|
||||||
bool useSelection = true);
|
bool useSelection = true);
|
||||||
|
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
void DrawNegativeOffsetTrackArrows( TrackPanelDrawingContext &context,
|
void DrawNegativeOffsetTrackArrows( TrackPanelDrawingContext &context,
|
||||||
const wxRect & rect );
|
const wxRect & rect );
|
||||||
}
|
}
|
||||||
|
|
||||||
class AUDACITY_DLL_API TrackArtist final : private PrefsListener {
|
class TENACITY_DLL_API TrackArtist final : private PrefsListener {
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
@ -148,11 +148,11 @@ public:
|
|||||||
bool hasSolo{ false };
|
bool hasSolo{ false };
|
||||||
};
|
};
|
||||||
|
|
||||||
extern AUDACITY_DLL_API int GetWaveYPos(float value, float min, float max,
|
extern TENACITY_DLL_API int GetWaveYPos(float value, float min, float max,
|
||||||
int height, bool dB, bool outer, float dBr,
|
int height, bool dB, bool outer, float dBr,
|
||||||
bool clip);
|
bool clip);
|
||||||
extern float FromDB(float value, double dBRange);
|
extern float FromDB(float value, double dBRange);
|
||||||
extern AUDACITY_DLL_API float ValueOfPixel(int yy, int height, bool offset,
|
extern TENACITY_DLL_API float ValueOfPixel(int yy, int height, bool offset,
|
||||||
bool dB, double dBRange, float zoomMin, float zoomMax);
|
bool dB, double dBRange, float zoomMin, float zoomMax);
|
||||||
|
|
||||||
#endif // define __AUDACITY_TRACKARTIST__
|
#endif // define __AUDACITY_TRACKARTIST__
|
||||||
|
@ -30,7 +30,7 @@ static const int TitleSoloBorderOverlap = 1;
|
|||||||
|
|
||||||
namespace TrackInfo
|
namespace TrackInfo
|
||||||
{
|
{
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
unsigned MinimumTrackHeight();
|
unsigned MinimumTrackHeight();
|
||||||
|
|
||||||
struct TCPLine {
|
struct TCPLine {
|
||||||
@ -66,81 +66,81 @@ namespace TrackInfo
|
|||||||
using TCPLines = std::vector< TCPLine >;
|
using TCPLines = std::vector< TCPLine >;
|
||||||
|
|
||||||
// return y value and height
|
// return y value and height
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
std::pair< int, int > CalcItemY( const TCPLines &lines, unsigned iItem );
|
std::pair< int, int > CalcItemY( const TCPLines &lines, unsigned iItem );
|
||||||
|
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
unsigned DefaultTrackHeight( const TCPLines &topLines );
|
unsigned DefaultTrackHeight( const TCPLines &topLines );
|
||||||
|
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
void DrawItems
|
void DrawItems
|
||||||
( TrackPanelDrawingContext &context,
|
( TrackPanelDrawingContext &context,
|
||||||
const wxRect &rect, const Track &track );
|
const wxRect &rect, const Track &track );
|
||||||
|
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
void DrawItems
|
void DrawItems
|
||||||
( TrackPanelDrawingContext &context,
|
( TrackPanelDrawingContext &context,
|
||||||
const wxRect &rect, const Track *pTrack,
|
const wxRect &rect, const Track *pTrack,
|
||||||
const std::vector<TCPLine> &topLines,
|
const std::vector<TCPLine> &topLines,
|
||||||
const std::vector<TCPLine> &bottomLines );
|
const std::vector<TCPLine> &bottomLines );
|
||||||
|
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
void DrawCloseButton(
|
void DrawCloseButton(
|
||||||
TrackPanelDrawingContext &context, const wxRect &bev,
|
TrackPanelDrawingContext &context, const wxRect &bev,
|
||||||
const Track *pTrack, ButtonHandle *target );
|
const Track *pTrack, ButtonHandle *target );
|
||||||
|
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
void CloseTitleDrawFunction
|
void CloseTitleDrawFunction
|
||||||
( TrackPanelDrawingContext &context,
|
( TrackPanelDrawingContext &context,
|
||||||
const wxRect &rect, const Track *pTrack );
|
const wxRect &rect, const Track *pTrack );
|
||||||
|
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
void MinimizeSyncLockDrawFunction
|
void MinimizeSyncLockDrawFunction
|
||||||
( TrackPanelDrawingContext &context,
|
( TrackPanelDrawingContext &context,
|
||||||
const wxRect &rect, const Track *pTrack );
|
const wxRect &rect, const Track *pTrack );
|
||||||
|
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
void SetTrackInfoFont(wxDC *dc);
|
void SetTrackInfoFont(wxDC *dc);
|
||||||
|
|
||||||
|
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
void GetCloseBoxHorizontalBounds( const wxRect & rect, wxRect &dest );
|
void GetCloseBoxHorizontalBounds( const wxRect & rect, wxRect &dest );
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
void GetCloseBoxRect(const wxRect & rect, wxRect &dest);
|
void GetCloseBoxRect(const wxRect & rect, wxRect &dest);
|
||||||
|
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
void GetTitleBarHorizontalBounds( const wxRect & rect, wxRect &dest );
|
void GetTitleBarHorizontalBounds( const wxRect & rect, wxRect &dest );
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
void GetTitleBarRect(const wxRect & rect, wxRect &dest);
|
void GetTitleBarRect(const wxRect & rect, wxRect &dest);
|
||||||
|
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
void GetSliderHorizontalBounds( const wxPoint &topleft, wxRect &dest );
|
void GetSliderHorizontalBounds( const wxPoint &topleft, wxRect &dest );
|
||||||
|
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
void GetMinimizeHorizontalBounds( const wxRect &rect, wxRect &dest );
|
void GetMinimizeHorizontalBounds( const wxRect &rect, wxRect &dest );
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
void GetMinimizeRect(const wxRect & rect, wxRect &dest);
|
void GetMinimizeRect(const wxRect & rect, wxRect &dest);
|
||||||
|
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
void GetSelectButtonHorizontalBounds( const wxRect &rect, wxRect &dest );
|
void GetSelectButtonHorizontalBounds( const wxRect &rect, wxRect &dest );
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
void GetSelectButtonRect(const wxRect & rect, wxRect &dest);
|
void GetSelectButtonRect(const wxRect & rect, wxRect &dest);
|
||||||
|
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
void GetSyncLockHorizontalBounds( const wxRect &rect, wxRect &dest );
|
void GetSyncLockHorizontalBounds( const wxRect &rect, wxRect &dest );
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
void GetSyncLockIconRect(const wxRect & rect, wxRect &dest);
|
void GetSyncLockIconRect(const wxRect & rect, wxRect &dest);
|
||||||
|
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
bool HideTopItem( const wxRect &rect, const wxRect &subRect,
|
bool HideTopItem( const wxRect &rect, const wxRect &subRect,
|
||||||
int allowance = 0 );
|
int allowance = 0 );
|
||||||
|
|
||||||
// Non-member, namespace function relying on TrackPanel to invoke it
|
// Non-member, namespace function relying on TrackPanel to invoke it
|
||||||
// when it handles preference update events
|
// when it handles preference update events
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
void UpdatePrefs( wxWindow *pParent );
|
void UpdatePrefs( wxWindow *pParent );
|
||||||
|
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
bool HasSoloButton();
|
bool HasSoloButton();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -57,7 +57,7 @@ enum {
|
|||||||
|
|
||||||
const int DragThreshold = 3;// Anything over 3 pixels is a drag, else a click.
|
const int DragThreshold = 3;// Anything over 3 pixels is a drag, else a click.
|
||||||
|
|
||||||
class AUDACITY_DLL_API TrackPanel final
|
class TENACITY_DLL_API TrackPanel final
|
||||||
: public CellularPanel
|
: public CellularPanel
|
||||||
, public NonKeystrokeInterceptingWindow
|
, public NonKeystrokeInterceptingWindow
|
||||||
, private PrefsListener
|
, private PrefsListener
|
||||||
@ -174,7 +174,7 @@ protected:
|
|||||||
|
|
||||||
std::unique_ptr<TrackArtist> mTrackArtist;
|
std::unique_ptr<TrackArtist> mTrackArtist;
|
||||||
|
|
||||||
class AUDACITY_DLL_API AudacityTimer final : public wxTimer {
|
class TENACITY_DLL_API AudacityTimer final : public wxTimer {
|
||||||
public:
|
public:
|
||||||
void Notify() override{
|
void Notify() override{
|
||||||
// (From Debian)
|
// (From Debian)
|
||||||
@ -213,7 +213,7 @@ protected:
|
|||||||
};
|
};
|
||||||
|
|
||||||
// A predicate class
|
// A predicate class
|
||||||
struct AUDACITY_DLL_API IsVisibleTrack
|
struct TENACITY_DLL_API IsVisibleTrack
|
||||||
{
|
{
|
||||||
IsVisibleTrack(AudacityProject *project);
|
IsVisibleTrack(AudacityProject *project);
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ class Track;
|
|||||||
class TrackList;
|
class TrackList;
|
||||||
|
|
||||||
// An event sent to the project
|
// An event sent to the project
|
||||||
wxDECLARE_EXPORTED_EVENT(AUDACITY_DLL_API,
|
wxDECLARE_EXPORTED_EVENT(TENACITY_DLL_API,
|
||||||
EVT_TRACK_FOCUS_CHANGE, wxCommandEvent);
|
EVT_TRACK_FOCUS_CHANGE, wxCommandEvent);
|
||||||
|
|
||||||
class TrackPanelAx final
|
class TrackPanelAx final
|
||||||
@ -156,7 +156,7 @@ private:
|
|||||||
int mMessageCount;
|
int mMessageCount;
|
||||||
};
|
};
|
||||||
|
|
||||||
class AUDACITY_DLL_API TrackFocus final
|
class TENACITY_DLL_API TrackFocus final
|
||||||
: public ClientData::Base
|
: public ClientData::Base
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -34,7 +34,7 @@ using UIHandlePtr = std::shared_ptr<UIHandle>;
|
|||||||
|
|
||||||
/// \brief The TrackPanel is built up of nodes, subtrees of the CellularPanel's area
|
/// \brief The TrackPanel is built up of nodes, subtrees of the CellularPanel's area
|
||||||
/// Common base class for TrackPanelCell (leaf) and TrackPanelGroup (nonleaf)
|
/// Common base class for TrackPanelCell (leaf) and TrackPanelGroup (nonleaf)
|
||||||
class AUDACITY_DLL_API /* not final */ TrackPanelNode
|
class TENACITY_DLL_API /* not final */ TrackPanelNode
|
||||||
: public TrackPanelDrawable
|
: public TrackPanelDrawable
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@ -43,7 +43,7 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
// A node of the TrackPanel that contains other nodes.
|
// A node of the TrackPanel that contains other nodes.
|
||||||
class AUDACITY_DLL_API TrackPanelGroup /* not final */ : public TrackPanelNode
|
class TENACITY_DLL_API TrackPanelGroup /* not final */ : public TrackPanelNode
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
TrackPanelGroup();
|
TrackPanelGroup();
|
||||||
@ -70,7 +70,7 @@ public:
|
|||||||
|
|
||||||
/// Abstract base class defining TrackPanel's access to specialist classes that
|
/// Abstract base class defining TrackPanel's access to specialist classes that
|
||||||
/// implement drawing and user interactions
|
/// implement drawing and user interactions
|
||||||
class AUDACITY_DLL_API TrackPanelCell /* not final */ : public TrackPanelNode
|
class TENACITY_DLL_API TrackPanelCell /* not final */ : public TrackPanelNode
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
TrackPanelCell() = default;
|
TrackPanelCell() = default;
|
||||||
|
@ -19,7 +19,7 @@ struct TrackPanelDrawingContext;
|
|||||||
class wxRect;
|
class wxRect;
|
||||||
|
|
||||||
/// \brief Drawing interface common to cells, groups of cells, and temporary handles in CellularPanel
|
/// \brief Drawing interface common to cells, groups of cells, and temporary handles in CellularPanel
|
||||||
class AUDACITY_DLL_API TrackPanelDrawable {
|
class TENACITY_DLL_API TrackPanelDrawable {
|
||||||
public:
|
public:
|
||||||
virtual ~TrackPanelDrawable() = 0;
|
virtual ~TrackPanelDrawable() = 0;
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ enum class UndoPush : unsigned char;
|
|||||||
TrackPanel code pretend it doesn't completely know what an AudacityProject is
|
TrackPanel code pretend it doesn't completely know what an AudacityProject is
|
||||||
and use only a limited number of its services.
|
and use only a limited number of its services.
|
||||||
*/
|
*/
|
||||||
class AUDACITY_DLL_API TrackPanelListener /* not final */ {
|
class TENACITY_DLL_API TrackPanelListener /* not final */ {
|
||||||
|
|
||||||
public:
|
public:
|
||||||
TrackPanelListener(){};
|
TrackPanelListener(){};
|
||||||
|
@ -20,18 +20,18 @@ namespace TrackUtilities {
|
|||||||
OnMoveUpID, OnMoveDownID, OnMoveTopID, OnMoveBottomID
|
OnMoveUpID, OnMoveDownID, OnMoveTopID, OnMoveBottomID
|
||||||
};
|
};
|
||||||
/// Move a track up, down, to top or to bottom.
|
/// Move a track up, down, to top or to bottom.
|
||||||
AUDACITY_DLL_API void DoMoveTrack(
|
TENACITY_DLL_API void DoMoveTrack(
|
||||||
AudacityProject &project, Track* target, MoveChoice choice );
|
AudacityProject &project, Track* target, MoveChoice choice );
|
||||||
// "exclusive" mute means mute the chosen track and unmute all others.
|
// "exclusive" mute means mute the chosen track and unmute all others.
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
void DoTrackMute( AudacityProject &project, Track *pTrack, bool exclusive );
|
void DoTrackMute( AudacityProject &project, Track *pTrack, bool exclusive );
|
||||||
// Type of solo (standard or simple) follows the set preference, unless
|
// Type of solo (standard or simple) follows the set preference, unless
|
||||||
// exclusive == true, which causes the opposite behavior.
|
// exclusive == true, which causes the opposite behavior.
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
void DoTrackSolo( AudacityProject &project, Track *pTrack, bool exclusive );
|
void DoTrackSolo( AudacityProject &project, Track *pTrack, bool exclusive );
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
void DoRemoveTrack( AudacityProject &project, Track * toRemove );
|
void DoRemoveTrack( AudacityProject &project, Track * toRemove );
|
||||||
AUDACITY_DLL_API
|
TENACITY_DLL_API
|
||||||
void DoRemoveTracks( AudacityProject & );
|
void DoRemoveTracks( AudacityProject & );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -30,7 +30,7 @@ struct TrackPanelMouseState;
|
|||||||
// A TrackPanelCell reports a handle object of some subclass, in response to a
|
// A TrackPanelCell reports a handle object of some subclass, in response to a
|
||||||
// hit test at a mouse position; then this handle processes certain events,
|
// hit test at a mouse position; then this handle processes certain events,
|
||||||
// and maintains necessary state through click-drag-release event sequences.
|
// and maintains necessary state through click-drag-release event sequences.
|
||||||
class AUDACITY_DLL_API UIHandle /* not final */ : public TrackPanelDrawable
|
class TENACITY_DLL_API UIHandle /* not final */ : public TrackPanelDrawable
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
// See RefreshCode.h for bit flags:
|
// See RefreshCode.h for bit flags:
|
||||||
|
@ -58,24 +58,24 @@
|
|||||||
|
|
||||||
// Project state did not change, but a new state was copied into Undo history
|
// Project state did not change, but a new state was copied into Undo history
|
||||||
// and any redo states were lost
|
// and any redo states were lost
|
||||||
wxDECLARE_EXPORTED_EVENT(AUDACITY_DLL_API, EVT_UNDO_PUSHED, wxCommandEvent);
|
wxDECLARE_EXPORTED_EVENT(TENACITY_DLL_API, EVT_UNDO_PUSHED, wxCommandEvent);
|
||||||
|
|
||||||
// Project state did not change, but current state was modified in Undo history
|
// Project state did not change, but current state was modified in Undo history
|
||||||
wxDECLARE_EXPORTED_EVENT(AUDACITY_DLL_API, EVT_UNDO_MODIFIED, wxCommandEvent);
|
wxDECLARE_EXPORTED_EVENT(TENACITY_DLL_API, EVT_UNDO_MODIFIED, wxCommandEvent);
|
||||||
|
|
||||||
// Project state did not change, but current state was renamed in Undo history
|
// Project state did not change, but current state was renamed in Undo history
|
||||||
wxDECLARE_EXPORTED_EVENT(AUDACITY_DLL_API, EVT_UNDO_RENAMED, wxCommandEvent);
|
wxDECLARE_EXPORTED_EVENT(TENACITY_DLL_API, EVT_UNDO_RENAMED, wxCommandEvent);
|
||||||
|
|
||||||
// Project state changed because of undo or redo; undo manager
|
// Project state changed because of undo or redo; undo manager
|
||||||
// contents did not change other than the pointer to current state
|
// contents did not change other than the pointer to current state
|
||||||
wxDECLARE_EXPORTED_EVENT(AUDACITY_DLL_API, EVT_UNDO_OR_REDO, wxCommandEvent);
|
wxDECLARE_EXPORTED_EVENT(TENACITY_DLL_API, EVT_UNDO_OR_REDO, wxCommandEvent);
|
||||||
|
|
||||||
// Project state changed other than for single-step undo/redo; undo manager
|
// Project state changed other than for single-step undo/redo; undo manager
|
||||||
// contents did not change other than the pointer to current state
|
// contents did not change other than the pointer to current state
|
||||||
wxDECLARE_EXPORTED_EVENT(AUDACITY_DLL_API, EVT_UNDO_RESET, wxCommandEvent);
|
wxDECLARE_EXPORTED_EVENT(TENACITY_DLL_API, EVT_UNDO_RESET, wxCommandEvent);
|
||||||
|
|
||||||
// Undo or redo states discarded
|
// Undo or redo states discarded
|
||||||
wxDECLARE_EXPORTED_EVENT(AUDACITY_DLL_API, EVT_UNDO_PURGE, wxCommandEvent);
|
wxDECLARE_EXPORTED_EVENT(TENACITY_DLL_API, EVT_UNDO_PURGE, wxCommandEvent);
|
||||||
|
|
||||||
class AudacityProject;
|
class AudacityProject;
|
||||||
class Tags;
|
class Tags;
|
||||||
@ -132,7 +132,7 @@ inline UndoPush operator & (UndoPush a, UndoPush b)
|
|||||||
|
|
||||||
//! Maintain a non-persistent list of states of the project, to support undo and redo commands
|
//! Maintain a non-persistent list of states of the project, to support undo and redo commands
|
||||||
/*! The history should be cleared before destruction */
|
/*! The history should be cleared before destruction */
|
||||||
class AUDACITY_DLL_API UndoManager final
|
class TENACITY_DLL_API UndoManager final
|
||||||
: public ClientData::Base
|
: public ClientData::Base
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
//! Can be thrown when user cancels operations, as with a progress dialog. Delayed handler does nothing
|
//! Can be thrown when user cancels operations, as with a progress dialog. Delayed handler does nothing
|
||||||
/*! This class does not inherit from MessageBoxException. */
|
/*! This class does not inherit from MessageBoxException. */
|
||||||
class AUDACITY_DLL_API UserException final : public AudacityException
|
class TENACITY_DLL_API UserException final : public AudacityException
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
UserException() {}
|
UserException() {}
|
||||||
|
@ -33,12 +33,12 @@ struct SelectedRegionEvent : public wxEvent
|
|||||||
};
|
};
|
||||||
|
|
||||||
// To do: distinguish time changes from frequency changes perhaps?
|
// To do: distinguish time changes from frequency changes perhaps?
|
||||||
wxDECLARE_EXPORTED_EVENT( AUDACITY_DLL_API,
|
wxDECLARE_EXPORTED_EVENT( TENACITY_DLL_API,
|
||||||
EVT_SELECTED_REGION_CHANGE, SelectedRegionEvent );
|
EVT_SELECTED_REGION_CHANGE, SelectedRegionEvent );
|
||||||
|
|
||||||
// This heavyweight wrapper of the SelectedRegion structure emits events
|
// This heavyweight wrapper of the SelectedRegion structure emits events
|
||||||
// on mutating operations, that other classes can listen for.
|
// on mutating operations, that other classes can listen for.
|
||||||
class AUDACITY_DLL_API NotifyingSelectedRegion : public wxEvtHandler
|
class TENACITY_DLL_API NotifyingSelectedRegion : public wxEvtHandler
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
// Expose SelectedRegion's const accessors
|
// Expose SelectedRegion's const accessors
|
||||||
@ -168,7 +168,7 @@ private:
|
|||||||
bool mLocked{ false };
|
bool mLocked{ false };
|
||||||
};
|
};
|
||||||
|
|
||||||
class AUDACITY_DLL_API ViewInfo final
|
class TENACITY_DLL_API ViewInfo final
|
||||||
: public wxEvtHandler, public ZoomInfo
|
: public wxEvtHandler, public ZoomInfo
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user