mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-20 17:41:13 +02:00
Remove trailing spaces.
This commit is contained in:
@@ -26,11 +26,11 @@
|
||||
#include "widgets/ASlider.h"
|
||||
#include "widgets/Meter.h"
|
||||
|
||||
// containment hierarchy:
|
||||
// containment hierarchy:
|
||||
// MixerBoardFrame -> MixerBoard -> MixerBoardScrolledWindow -> MixerTrackCluster(s)
|
||||
|
||||
|
||||
// MixerTrackSlider is a subclass just to override OnMouseEvent,
|
||||
// MixerTrackSlider is a subclass just to override OnMouseEvent,
|
||||
// so we can know when adjustment ends, so we can PushState only then.
|
||||
class MixerTrackSlider : public ASlider
|
||||
{
|
||||
@@ -38,12 +38,12 @@ public:
|
||||
MixerTrackSlider(wxWindow * parent,
|
||||
wxWindowID id,
|
||||
wxString name,
|
||||
const wxPoint & pos,
|
||||
const wxPoint & pos,
|
||||
const wxSize & size,
|
||||
int style = FRAC_SLIDER,
|
||||
bool popup = true,
|
||||
bool canUseShift = true,
|
||||
float stepValue = STEP_CONTINUOUS,
|
||||
float stepValue = STEP_CONTINUOUS,
|
||||
int orientation = wxHORIZONTAL);
|
||||
virtual ~MixerTrackSlider() {};
|
||||
|
||||
@@ -68,13 +68,13 @@ class NoteTrack;
|
||||
#endif
|
||||
class WaveTrack;
|
||||
|
||||
class MixerTrackCluster : public wxPanel
|
||||
{
|
||||
class MixerTrackCluster : public wxPanel
|
||||
{
|
||||
public:
|
||||
MixerTrackCluster(wxWindow* parent,
|
||||
MixerBoard* grandParent, AudacityProject* project,
|
||||
WaveTrack* pLeftTrack, WaveTrack* pRightTrack = NULL,
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
MixerTrackCluster(wxWindow* parent,
|
||||
MixerBoard* grandParent, AudacityProject* project,
|
||||
WaveTrack* pLeftTrack, WaveTrack* pRightTrack = NULL,
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
const wxSize& size = wxDefaultSize);
|
||||
virtual ~MixerTrackCluster() {};
|
||||
|
||||
@@ -114,18 +114,18 @@ private:
|
||||
|
||||
public:
|
||||
#ifdef EXPERIMENTAL_MIDI_OUT
|
||||
// mTrack is redundant, but simplifies code that operates on either
|
||||
// mTrack is redundant, but simplifies code that operates on either
|
||||
// mLeftTrack or mNoteTrack.
|
||||
Track* mTrack; // either mLeftTrack or mNoteTrack, whichever is not NULL
|
||||
#endif
|
||||
WaveTrack* mLeftTrack; // NULL if Note Track
|
||||
WaveTrack* mRightTrack; // NULL if mono
|
||||
|
||||
//vvv Vaughan, 2010-11-05:
|
||||
// I suggest that when this is no longer experimental, rather than all these #ifdef's,
|
||||
// this be done by factoring, i.e., add two subclasses to MixerTrackCluster,
|
||||
// MixerNoteTrackCluster and MixerWaveTrackCluster, such that all the common
|
||||
// code is in the parent, and these #ifdef's are only around
|
||||
//vvv Vaughan, 2010-11-05:
|
||||
// I suggest that when this is no longer experimental, rather than all these #ifdef's,
|
||||
// this be done by factoring, i.e., add two subclasses to MixerTrackCluster,
|
||||
// MixerNoteTrackCluster and MixerWaveTrackCluster, such that all the common
|
||||
// code is in the parent, and these #ifdef's are only around
|
||||
// MixerNoteTrackCluster rather than sprinkled throughout MixerTrackCluster.
|
||||
#ifdef EXPERIMENTAL_MIDI_OUT
|
||||
NoteTrack* mNoteTrack; // NULL if Wave Track
|
||||
@@ -151,7 +151,7 @@ public:
|
||||
WX_DEFINE_ARRAY(MixerTrackCluster*, MixerTrackClusterArray);
|
||||
|
||||
|
||||
class MusicalInstrument
|
||||
class MusicalInstrument
|
||||
{
|
||||
public:
|
||||
MusicalInstrument(wxBitmap* pBitmap, const wxString strXPMfilename);
|
||||
@@ -164,23 +164,23 @@ WX_DECLARE_OBJARRAY(MusicalInstrument, MusicalInstrumentArray);
|
||||
|
||||
|
||||
|
||||
// wxScrolledWindow ignores mouse clicks in client area,
|
||||
// wxScrolledWindow ignores mouse clicks in client area,
|
||||
// but they don't get passed to Mixerboard.
|
||||
// We need to catch them to deselect all track clusters.
|
||||
class MixerBoardScrolledWindow : public wxScrolledWindow
|
||||
class MixerBoardScrolledWindow : public wxScrolledWindow
|
||||
{
|
||||
public:
|
||||
MixerBoardScrolledWindow(AudacityProject* project,
|
||||
MixerBoard* parent, wxWindowID id = -1,
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
const wxSize& size = wxDefaultSize,
|
||||
public:
|
||||
MixerBoardScrolledWindow(AudacityProject* project,
|
||||
MixerBoard* parent, wxWindowID id = -1,
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
const wxSize& size = wxDefaultSize,
|
||||
long style = wxHSCROLL | wxVSCROLL);
|
||||
virtual ~MixerBoardScrolledWindow();
|
||||
|
||||
private:
|
||||
void OnMouseEvent(wxMouseEvent& event);
|
||||
|
||||
private:
|
||||
private:
|
||||
MixerBoard* mMixerBoard;
|
||||
AudacityProject* mProject;
|
||||
|
||||
@@ -192,20 +192,20 @@ public:
|
||||
class MixerBoardFrame;
|
||||
class TrackList;
|
||||
|
||||
class MixerBoard : public wxWindow
|
||||
{
|
||||
class MixerBoard : public wxWindow
|
||||
{
|
||||
friend class MixerBoardFrame;
|
||||
|
||||
public:
|
||||
MixerBoard(AudacityProject* pProject,
|
||||
wxFrame* parent,
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
MixerBoard(AudacityProject* pProject,
|
||||
wxFrame* parent,
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
const wxSize& size = wxDefaultSize);
|
||||
virtual ~MixerBoard();
|
||||
|
||||
// Add clusters for any tracks we're not yet showing.
|
||||
// Update pointers for tracks we're aleady showing.
|
||||
void UpdateTrackClusters();
|
||||
// Update pointers for tracks we're aleady showing.
|
||||
void UpdateTrackClusters();
|
||||
|
||||
int GetTrackClustersWidth();
|
||||
#ifdef EXPERIMENTAL_MIDI_OUT
|
||||
@@ -247,7 +247,7 @@ public:
|
||||
void UpdatePan(const WaveTrack* pTrack);
|
||||
void UpdateGain(const WaveTrack* pTrack);
|
||||
#endif
|
||||
|
||||
|
||||
void UpdateMeters(const double t1, const bool bLoopedPlay);
|
||||
|
||||
void UpdateWidth();
|
||||
@@ -255,10 +255,10 @@ public:
|
||||
private:
|
||||
void CreateMuteSoloImages();
|
||||
#ifdef EXPERIMENTAL_MIDI_OUT
|
||||
int FindMixerTrackCluster(const Track* pTrack,
|
||||
int FindMixerTrackCluster(const Track* pTrack,
|
||||
MixerTrackCluster** hMixerTrackCluster) const;
|
||||
#else
|
||||
int FindMixerTrackCluster(const WaveTrack* pLeftTrack,
|
||||
int FindMixerTrackCluster(const WaveTrack* pLeftTrack,
|
||||
MixerTrackCluster** hMixerTrackCluster) const;
|
||||
#endif
|
||||
void LoadMusicalInstruments();
|
||||
@@ -283,9 +283,9 @@ public:
|
||||
|
||||
private:
|
||||
// Track clusters are maintained in the same order as the WaveTracks.
|
||||
MixerTrackClusterArray mMixerTrackClusters;
|
||||
MixerTrackClusterArray mMixerTrackClusters;
|
||||
|
||||
MusicalInstrumentArray mMusicalInstruments;
|
||||
MusicalInstrumentArray mMusicalInstruments;
|
||||
AudacityProject* mProject;
|
||||
MixerBoardScrolledWindow* mScrolledWindow; // Holds the MixerTrackClusters and handles scrolling.
|
||||
double mPrevT1;
|
||||
@@ -296,8 +296,8 @@ public:
|
||||
};
|
||||
|
||||
|
||||
class MixerBoardFrame : public wxFrame
|
||||
{
|
||||
class MixerBoardFrame : public wxFrame
|
||||
{
|
||||
public:
|
||||
MixerBoardFrame(AudacityProject* parent);
|
||||
virtual ~MixerBoardFrame();
|
||||
|
Reference in New Issue
Block a user