1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-25 15:53:52 +02:00

Remove Tags.h, Grid.h from headers

This commit is contained in:
Paul Licameli
2019-03-31 15:51:54 -04:00
parent 0c4f611b5c
commit 3002aa5362
9 changed files with 35 additions and 28 deletions

View File

@@ -38,6 +38,7 @@
#include "ViewInfo.h" #include "ViewInfo.h"
#include "widgets/NumericTextCtrl.h" #include "widgets/NumericTextCtrl.h"
#include "widgets/ErrorDialog.h" #include "widgets/ErrorDialog.h"
#include "widgets/Grid.h"
#include "widgets/HelpSystem.h" #include "widgets/HelpSystem.h"
#include "FileNames.h" #include "FileNames.h"

View File

@@ -15,11 +15,14 @@
#include <wx/defs.h> #include <wx/defs.h>
#include "Internat.h" #include "Internat.h"
#include "widgets/Grid.h"
#include "widgets/wxPanelWrapper.h" #include "widgets/wxPanelWrapper.h"
#include "audacity/ComponentInterface.h" // member variable
class wxArrayString; class wxArrayString;
class wxGridEvent; class wxGridEvent;
class ChoiceEditor;
class Grid;
class NumericEditor;
class TrackFactory; class TrackFactory;
class TrackList; class TrackList;
class RowData; class RowData;

View File

@@ -31,7 +31,6 @@
#include "Audacity.h" #include "Audacity.h"
#include "widgets/Grid.h"
#include "xml/XMLTagHandler.h" #include "xml/XMLTagHandler.h"
#include "MemoryX.h" #include "MemoryX.h"
@@ -44,6 +43,8 @@
class wxArrayString; class wxArrayString;
class wxComboBox; class wxComboBox;
class wxGridCellChoiceEditor; class wxGridCellChoiceEditor;
class wxGridCellStringRenderer;
class wxGridEvent;
class wxTextCtrl; class wxTextCtrl;
class Grid; class Grid;

View File

@@ -21,7 +21,6 @@
#include "Effect.h" #include "Effect.h"
#include "../xml/XMLTagHandler.h" #include "../xml/XMLTagHandler.h"
#include "../widgets/Grid.h"
#include "../RealFFTf.h" #include "../RealFFTf.h"
#include "../SampleFormat.h" #include "../SampleFormat.h"

View File

@@ -13,12 +13,11 @@
#include "../MemoryX.h" #include "../MemoryX.h"
#include <vector> #include <vector>
#include "../Tags.h" #include <wx/filename.h> // member variable
#include "../SampleFormat.h" #include "../SampleFormat.h"
#include "../widgets/wxPanelWrapper.h" #include "../widgets/wxPanelWrapper.h"
class wxArrayString; class wxArrayString;
class wxFileName;
class FileDialogWrapper; class FileDialogWrapper;
class wxFileCtrlEvent; class wxFileCtrlEvent;
class wxMemoryDC; class wxMemoryDC;
@@ -27,6 +26,7 @@ class wxStaticText;
class AudacityProject; class AudacityProject;
class DirManager; class DirManager;
class WaveTrack; class WaveTrack;
class Tags;
class TrackList; class TrackList;
class MixerSpec; class MixerSpec;
class ProgressDialog; class ProgressDialog;

View File

@@ -54,6 +54,28 @@
#include "../widgets/ErrorDialog.h" #include "../widgets/ErrorDialog.h"
namespace {
/** \brief A private class used to store the information needed to do an
* export.
*
* We create a set of these during the interactive phase of the export
* cycle, then use them when the actual exports are done. */
class ExportKit
{
public:
Tags filetags; /**< The set of metadata to use for the export */
wxFileNameWrapper destfile; /**< The file to export to */
double t0; /**< Start time for the export */
double t1; /**< End time for the export */
unsigned channels; /**< Number of channels for ExportMultipleByTrack */
}; // end of ExportKit declaration
/* we are going to want an set of these kits, and don't know how many until
* runtime. I would dearly like to use a std::vector, but it seems that
* this isn't done anywhere else in Audacity, presumably for a reason?, so
* I'm stuck with wxArrays, which are much harder, as well as non-standard.
*/
}
/* define our dynamic array of export settings */ /* define our dynamic array of export settings */
enum { enum {

View File

@@ -12,7 +12,6 @@
#define __AUDACITY_EXPORT_MULTIPLE__ #define __AUDACITY_EXPORT_MULTIPLE__
#include "Export.h" #include "Export.h"
#include "../Tags.h" // we need to know about the Tags class for metadata
#include "../wxFileNameWrapper.h" // member variable #include "../wxFileNameWrapper.h" // member variable
class wxButton; class wxButton;
@@ -188,25 +187,4 @@ private:
}; };
/** \brief A private class used to store the information needed to do an
* export.
*
* We create a set of these during the interactive phase of the export
* cycle, then use them when the actual exports are done. */
class ExportKit
{
public:
Tags filetags; /**< The set of metadata to use for the export */
wxFileNameWrapper destfile; /**< The file to export to */
double t0; /**< Start time for the export */
double t1; /**< End time for the export */
unsigned channels; /**< Number of channels for ExportMultipleByTrack */
}; // end of ExportKit declaration
/* we are going to want an set of these kits, and don't know how many until
* runtime. I would dearly like to use a std::vector, but it seems that
* this isn't done anywhere else in Audacity, presumably for a reason?, so
* I'm stuck with wxArrays, which are much harder, as well as non-standard.
*/
#endif #endif

View File

@@ -24,6 +24,7 @@
#include "../Prefs.h" #include "../Prefs.h"
#include "../ShuttleGui.h" #include "../ShuttleGui.h"
#include "../widgets/ErrorDialog.h" #include "../widgets/ErrorDialog.h"
#include "../widgets/Grid.h"
#define EXTIMPORT_MIME_SUPPORT 0 #define EXTIMPORT_MIME_SUPPORT 0

View File

@@ -13,7 +13,6 @@
#include <wx/defs.h> #include <wx/defs.h>
#include <wx/dnd.h> // to inherit wxDropTarget #include <wx/dnd.h> // to inherit wxDropTarget
#include "../widgets/Grid.h"
#include "PrefsPanel.h" #include "PrefsPanel.h"
@@ -21,9 +20,12 @@
#include "../import/ImportPlugin.h" #include "../import/ImportPlugin.h"
class wxButton; class wxButton;
class wxGridEvent;
class wxGridRangeSelectEvent;
class wxListCtrl; class wxListCtrl;
class wxListEvent; class wxListEvent;
class ExtImportPrefs; class ExtImportPrefs;
class Grid;
class ShuttleGui; class ShuttleGui;
class ExtImportPrefsDropTarget final : public wxDropTarget class ExtImportPrefsDropTarget final : public wxDropTarget