1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-02 17:09:26 +02:00

Remove wx/arrstr.h from headers

This commit is contained in:
Paul Licameli 2018-11-11 19:47:44 -05:00
parent 1d0247607a
commit 40b4361732
42 changed files with 44 additions and 19 deletions

View File

@ -43,6 +43,8 @@
#define __AUDACITY_COMPONENT_INTERFACE_H__ #define __AUDACITY_COMPONENT_INTERFACE_H__
#include "audacity/Types.h" #include "audacity/Types.h"
#include <wx/string.h> // member variables
extern AUDACITY_DLL_API const wxString& GetCustomTranslation(const wxString& str1 ); extern AUDACITY_DLL_API const wxString& GetCustomTranslation(const wxString& str1 );
/**************************************************************************//** /**************************************************************************//**

View File

@ -43,9 +43,11 @@
#define __AUDACITY_TYPES_H__ #define __AUDACITY_TYPES_H__
#include <algorithm> #include <algorithm>
#include <wx/arrstr.h>
#include <type_traits> #include <type_traits>
#include <vector> #include <vector>
#include <wx/debug.h> // for wxASSERT
class wxString;
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// TODO: I'd imagine this header may be replaced by other public headers. But, // TODO: I'd imagine this header may be replaced by other public headers. But,

View File

@ -53,6 +53,7 @@ using NoteTrackConstArray = std::vector < std::shared_ptr< const NoteTrack > >;
#include "SampleFormat.h" #include "SampleFormat.h"
class wxArrayString;
class AudioIO; class AudioIO;
class RingBuffer; class RingBuffer;
class Mixer; class Mixer;

View File

@ -16,6 +16,7 @@
#include "export/Export.h" #include "export/Export.h"
class wxArrayString;
class Effect; class Effect;
class CommandContext; class CommandContext;
class AudacityProject; class AudacityProject;

View File

@ -14,7 +14,6 @@
#include "Audacity.h" // for __UNIX__ #include "Audacity.h" // for __UNIX__
#include <wx/list.h> #include <wx/list.h>
#include <wx/arrstr.h>
#include "audacity/Types.h" #include "audacity/Types.h"

View File

@ -13,11 +13,11 @@
#include "Audacity.h" #include "Audacity.h"
#include <wx/string.h> // function return value
#include "audacity/Types.h" #include "audacity/Types.h"
class wxFileName; class wxFileName;
class wxFileNameWrapper; class wxFileNameWrapper;
class wxArrayString;
// Uh, this is really a namespace rather than a class, // Uh, this is really a namespace rather than a class,
// since all the functions are static. // since all the functions are static.

View File

@ -20,6 +20,7 @@
#include "widgets/Grid.h" #include "widgets/Grid.h"
#include "widgets/wxPanelWrapper.h" #include "widgets/wxPanelWrapper.h"
class wxArrayString;
class TrackFactory; class TrackFactory;
class TrackList; class TrackList;
class RowData; class RowData;

View File

@ -11,7 +11,8 @@
#ifndef __AUDACITY_LANGUAGES__ #ifndef __AUDACITY_LANGUAGES__
#define __AUDACITY_LANGUAGES__ #define __AUDACITY_LANGUAGES__
#include <wx/arrstr.h> class wxArrayString;
#include <wx/list.h> #include <wx/list.h>
void GetLanguages(wxArrayString &langCodes, wxArrayString &langNames); void GetLanguages(wxArrayString &langCodes, wxArrayString &langNames);

View File

@ -12,8 +12,9 @@
#include "audacity/Types.h" #include "audacity/Types.h"
#include <wx/arrstr.h> #include <wx/string.h> // member variable
class wxArrayString;
class AudacityProject; class AudacityProject;
class CommandContext; class CommandContext;
class CommandManager; class CommandManager;

View File

@ -27,6 +27,7 @@
#include "widgets/wxPanelWrapper.h" #include "widgets/wxPanelWrapper.h"
#include "commands/CommandManagerWindowClasses.h" #include "commands/CommandManagerWindowClasses.h"
class wxArrayString;
struct TrackListEvent; struct TrackListEvent;
// containment hierarchy: // containment hierarchy:

View File

@ -20,6 +20,7 @@
#include "audacity/ModuleInterface.h" #include "audacity/ModuleInterface.h"
class wxArrayString;
class CommandHandler; class CommandHandler;
wxWindow * MakeHijackPanel(); wxWindow * MakeHijackPanel();

View File

@ -22,6 +22,8 @@
#include "audacity/ModuleInterface.h" #include "audacity/ModuleInterface.h"
#include "audacity/PluginInterface.h" #include "audacity/PluginInterface.h"
class wxArrayString;
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
// //
// PluginDescriptor // PluginDescriptor

View File

@ -47,6 +47,7 @@
const int AudacityProjectTimerID = 5200; const int AudacityProjectTimerID = 5200;
class wxArrayString;
class wxWindow; class wxWindow;
class wxDialog; class wxDialog;
class wxBoxSizer; class wxBoxSizer;

View File

@ -43,6 +43,7 @@
#include <unordered_map> #include <unordered_map>
class wxArrayString;
class wxButton; class wxButton;
class wxChoice; class wxChoice;
class wxComboBox; class wxComboBox;

View File

@ -24,6 +24,8 @@
#include <wx/image.h> #include <wx/image.h>
#include <wx/window.h> // to inherit #include <wx/window.h> // to inherit
class wxArrayString;
// JKC: will probably change name from 'teBmps' to 'tIndexBmp'; // JKC: will probably change name from 'teBmps' to 'tIndexBmp';
typedef int teBmps; /// The index of a bitmap resource in Theme Resources. typedef int teBmps; /// The index of a bitmap resource in Theme Resources.

View File

@ -32,6 +32,7 @@
class wxMenu; class wxMenu;
class wxMenuBar; class wxMenuBar;
class wxArrayString;
class TranslatedInternalString; class TranslatedInternalString;
using CommandParameter = CommandID; using CommandParameter = CommandID;

View File

@ -43,6 +43,8 @@ a certain criterion. This is a base validator which allows anything.
#ifndef __VALIDATORS__ #ifndef __VALIDATORS__
#define __VALIDATORS__ #define __VALIDATORS__
class wxArrayString;
#include "../MemoryX.h" #include "../MemoryX.h"
class Validator /* not final */ class Validator /* not final */

View File

@ -11,7 +11,6 @@
#ifndef __AUDACITY_EFFECT_DISTORTION__ #ifndef __AUDACITY_EFFECT_DISTORTION__
#define __AUDACITY_EFFECT_DISTORTION__ #define __AUDACITY_EFFECT_DISTORTION__
#include <wx/arrstr.h>
#include <wx/slider.h> #include <wx/slider.h>
#include <wx/textctrl.h> #include <wx/textctrl.h>
#include <wx/checkbox.h> #include <wx/checkbox.h>

View File

@ -41,6 +41,7 @@ class wxWindow;
#include "../Track.h" #include "../Track.h"
class wxArrayString;
class ShuttleGui; class ShuttleGui;
class AudacityCommand; class AudacityCommand;

View File

@ -15,7 +15,6 @@ Vaughan Johnson (Preview)
#include <wx/setup.h> // for wxUSE_* macros #include <wx/setup.h> // for wxUSE_* macros
#include <wx/arrstr.h>
#include <wx/bitmap.h> #include <wx/bitmap.h>
#include <wx/choice.h> #include <wx/choice.h>
#include <wx/event.h> #include <wx/event.h>

View File

@ -13,8 +13,6 @@
#ifndef __AUDACITY_EFFECT_TONEGEN__ #ifndef __AUDACITY_EFFECT_TONEGEN__
#define __AUDACITY_EFFECT_TONEGEN__ #define __AUDACITY_EFFECT_TONEGEN__
#include <wx/arrstr.h>
#include "../widgets/NumericTextCtrl.h" #include "../widgets/NumericTextCtrl.h"
#include "Effect.h" #include "Effect.h"

View File

@ -17,7 +17,6 @@
#ifndef __AUDACITY_EFFECT_TRUNC_SILENCE__ #ifndef __AUDACITY_EFFECT_TRUNC_SILENCE__
#define __AUDACITY_EFFECT_TRUNC_SILENCE__ #define __AUDACITY_EFFECT_TRUNC_SILENCE__
#include <wx/arrstr.h>
#include <wx/event.h> #include <wx/event.h>
#include <wx/list.h> #include <wx/list.h>

View File

@ -13,6 +13,8 @@
#if USE_LV2 #if USE_LV2
class wxArrayString;
#include "../../MemoryX.h" #include "../../MemoryX.h"
#include <vector> #include <vector>
#include <wx/checkbox.h> #include <wx/checkbox.h>

View File

@ -27,6 +27,8 @@
#include "nyx.h" #include "nyx.h"
class wxArrayString;
#define NYQUISTEFFECTS_VERSION wxT("1.0.0.0") #define NYQUISTEFFECTS_VERSION wxT("1.0.0.0")
/* i18n-hint: "Nyquist" is an embedded interpreted programming language in /* i18n-hint: "Nyquist" is an embedded interpreted programming language in
Audacity, named in honor of the Swedish-American Harry Nyquist (or Nyqvist). Audacity, named in honor of the Swedish-American Harry Nyquist (or Nyqvist).

View File

@ -20,6 +20,7 @@
#include "../SampleFormat.h" #include "../SampleFormat.h"
#include "../widgets/wxPanelWrapper.h" #include "../widgets/wxPanelWrapper.h"
class wxArrayString;
class FileDialogWrapper; class FileDialogWrapper;
class wxFileCtrlEvent; class wxFileCtrlEvent;
class wxMemoryDC; class wxMemoryDC;

View File

@ -27,6 +27,8 @@ LRN
class wxArrayStringEx; class wxArrayStringEx;
class wxArrayString;
/// Identifiers for pre-set export types. /// Identifiers for pre-set export types.
enum FFmpegExposedFormat enum FFmpegExposedFormat
{ {

View File

@ -15,12 +15,12 @@
#include "ImportForwards.h" #include "ImportForwards.h"
#include "audacity/Types.h" #include "audacity/Types.h"
#include <vector> #include <vector>
#include <wx/arrstr.h>
#include <wx/listbox.h> #include <wx/listbox.h>
#include <wx/tokenzr.h> #include <wx/tokenzr.h>
#include "../widgets/wxPanelWrapper.h" #include "../widgets/wxPanelWrapper.h"
class wxArrayString;
class Tags; class Tags;
class TrackFactory; class TrackFactory;
class Track; class Track;

View File

@ -66,6 +66,7 @@ but little else.
#include "ImportRaw.h" // defines TrackHolders #include "ImportRaw.h" // defines TrackHolders
class wxArrayString;
class TrackFactory; class TrackFactory;
class Track; class Track;
class Tags; class Tags;

View File

@ -34,6 +34,7 @@ robust enough to allow all the user changes such as copy/paste, DELETE, and so o
#include "FLAC++/decoder.h" #include "FLAC++/decoder.h"
class wxArrayString;
class ODDecodeBlockFile; class ODDecodeBlockFile;
class WaveTrack; class WaveTrack;
class ODFileDecoder; class ODFileDecoder;

View File

@ -15,7 +15,6 @@
#include <wx/defs.h> #include <wx/defs.h>
#include <wx/arrstr.h>
#include <wx/window.h> #include <wx/window.h>
#include "PrefsPanel.h" #include "PrefsPanel.h"

View File

@ -15,7 +15,6 @@
#include <wx/defs.h> #include <wx/defs.h>
#include <wx/arrstr.h>
#include <wx/window.h> #include <wx/window.h>
#include "PrefsPanel.h" #include "PrefsPanel.h"

View File

@ -20,6 +20,7 @@
#include "PrefsPanel.h" #include "PrefsPanel.h"
class wxArrayString;
class ShuttleGui; class ShuttleGui;
enum { enum {

View File

@ -15,7 +15,6 @@
#include <vector> #include <vector>
#include <wx/defs.h> #include <wx/defs.h>
#include <wx/arrstr.h>
#include <wx/choice.h> #include <wx/choice.h>
#include <wx/textctrl.h> #include <wx/textctrl.h>

View File

@ -21,7 +21,6 @@ Paul Licameli
struct FFTParam; struct FFTParam;
class NumberScale; class NumberScale;
class SpectrumPrefs; class SpectrumPrefs;
class wxArrayString;
class wxArrayStringEx; class wxArrayStringEx;
class SpectrogramSettings class SpectrogramSettings

View File

@ -32,7 +32,6 @@
#include "SpectrogramSettings.h" #include "SpectrogramSettings.h"
class wxArrayStringEx; class wxArrayStringEx;
class wxChoice; class wxChoice;
class wxCheckBox; class wxCheckBox;
class wxTextCtrl; class wxTextCtrl;

View File

@ -15,7 +15,6 @@
//#include <wx/defs.h> //#include <wx/defs.h>
//#include <wx/arrstr.h>
//#include <wx/window.h> //#include <wx/window.h>
#include <vector> #include <vector>

View File

@ -77,6 +77,8 @@ const int sliderFontSize = 12;
#define OPTIONAL_SLIDER_TICKS #define OPTIONAL_SLIDER_TICKS
#endif #endif
class wxArrayString;
// //
// TipPanel // TipPanel
// //

View File

@ -26,6 +26,7 @@
#include "WindowAccessible.h" #include "WindowAccessible.h"
#endif #endif
class wxArrayString;
class wxBitmap; class wxBitmap;
class wxCursor; class wxCursor;
class wxImage; class wxImage;

View File

@ -30,6 +30,7 @@ class GridAx;
#endif #endif
class wxArrayString;
class NumericTextCtrl; class NumericTextCtrl;
/**********************************************************************//** /**********************************************************************//**

View File

@ -15,11 +15,12 @@
#include <vector> #include <vector>
#include <wx/setup.h> // for wxUSE_* macros #include <wx/setup.h> // for wxUSE_* macros
#include <wx/defs.h> #include <wx/defs.h>
#include <wx/arrstr.h>
#include <wx/vlbox.h> #include <wx/vlbox.h>
#include "../commands/Keyboard.h" #include "../commands/Keyboard.h"
class wxArrayString;
// Class holding all information about a node. Rather than a real tree // Class holding all information about a node. Rather than a real tree
// we store these in an array and simulate a tree. // we store these in an array and simulate a tree.
class KeyNode class KeyNode

View File

@ -11,6 +11,8 @@ Paul Licameli
#ifndef __AUDACITY_WXFILENAMEWRAPPER__ #ifndef __AUDACITY_WXFILENAMEWRAPPER__
#define __AUDACITY_WXFILENAMEWRAPPER__ #define __AUDACITY_WXFILENAMEWRAPPER__
class wxArrayString;
// The wxFileName does not have a move constructor. // The wxFileName does not have a move constructor.
// So add one to it, so that it passes around by value more quickly. // So add one to it, so that it passes around by value more quickly.
class wxFileNameWrapper : public wxFileName class wxFileNameWrapper : public wxFileName

View File

@ -11,7 +11,6 @@
#define __AUDACITY_XML_XML_FILE_WRITER__ #define __AUDACITY_XML_XML_FILE_WRITER__
#include <vector> #include <vector>
#include <wx/arrstr.h>
#include <wx/ffile.h> #include <wx/ffile.h>
#include "../FileException.h" #include "../FileException.h"