Audacity 3.2.0
Classes | Namespaces | Macros | Enumerations | Functions | Variables
MixerBoard.cpp File Reference
#include "MixerBoard.h"
#include <cfloat>
#include <math.h>
#include <wx/setup.h>
#include <wx/app.h>
#include <wx/bmpbuttn.h>
#include <wx/dcclient.h>
#include <wx/icon.h>
#include <wx/settings.h>
#include "AColor.h"
#include "AllThemeResources.h"
#include "AudioIO.h"
#include "NoteTrack.h"
#include "CommonCommandFlags.h"
#include "KeyboardCapture.h"
#include "prefs/GUISettings.h"
#include "Project.h"
#include "ProjectAudioIO.h"
#include "ProjectAudioManager.h"
#include "ProjectHistory.h"
#include "ProjectFileIO.h"
#include "ProjectSettings.h"
#include "ProjectWindow.h"
#include "ProjectWindows.h"
#include "SelectUtilities.h"
#include "Theme.h"
#include "TrackPanel.h"
#include "TrackUtilities.h"
#include "UndoManager.h"
#include "WaveTrack.h"
#include "widgets/AButton.h"
#include "widgets/MeterPanel.h"
#include "widgets/auStaticText.h"
#include "../images/MusicalInstruments.h"
#include "../images/AudacityLogo.xpm"
#include "commands/CommandManager.h"
#include "commands/CommandContext.h"
Include dependency graph for MixerBoard.cpp:

Go to the source code of this file.

Classes

struct  anonymous_namespace{MixerBoard.cpp}::Handler
 

Namespaces

namespace  anonymous_namespace{MixerBoard.cpp}
 

Macros

#define AudacityMixerBoardTitle   XO("Audacity Mixer Board%s")
 
#define MIXER_BOARD_MIN_HEIGHT   460
 
#define MIXER_BOARD_MIN_WIDTH   kTripleInset + kMixerTrackClusterWidth*2 + kTripleInset
 

Enumerations

enum  {
  ID_BITMAPBUTTON_MUSICAL_INSTRUMENT = 13000 , ID_SLIDER_PAN , ID_SLIDER_GAIN , ID_TOGGLEBUTTON_MUTE ,
  ID_TOGGLEBUTTON_SOLO
}
 

Functions

const ReservedCommandFlaganonymous_namespace{MixerBoard.cpp}::PlayableTracksExistFlag ()
 
CommandHandlerObjectanonymous_namespace{MixerBoard.cpp}::findCommandHandler (AudacityProject &)
 

Variables

const int kInset = 4
 
const int kDoubleInset = (2 * kInset)
 
const int kTripleInset = (3 * kInset)
 
const int kQuadrupleInset = (4 * kInset)
 
const int TRACK_NAME_HEIGHT = 18
 
const int MUSICAL_INSTRUMENT_HEIGHT_AND_WIDTH = 48
 
const int MUTE_SOLO_HEIGHT = 19
 
const int PAN_HEIGHT = 24
 
const int kLeftSideStackWidth = MUSICAL_INSTRUMENT_HEIGHT_AND_WIDTH - kDoubleInset
 
const int kRightSideStackWidth = MUSICAL_INSTRUMENT_HEIGHT_AND_WIDTH + kDoubleInset
 
const int kMixerTrackClusterWidth = kLeftSideStackWidth + kRightSideStackWidth + kQuadrupleInset
 
const wxSize kDefaultSize
 
AttachedWindows::RegisteredFactory anonymous_namespace{MixerBoard.cpp}::sMixerBoardKey
 
AttachedItem anonymous_namespace{MixerBoard.cpp}::sAttachment
 

Macro Definition Documentation

◆ AudacityMixerBoardTitle

#define AudacityMixerBoardTitle   XO("Audacity Mixer Board%s")

Definition at line 68 of file MixerBoard.cpp.

◆ MIXER_BOARD_MIN_HEIGHT

#define MIXER_BOARD_MIN_HEIGHT   460

Definition at line 854 of file MixerBoard.cpp.

◆ MIXER_BOARD_MIN_WIDTH

#define MIXER_BOARD_MIN_WIDTH   kTripleInset + kMixerTrackClusterWidth*2 + kTripleInset

Definition at line 857 of file MixerBoard.cpp.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
ID_BITMAPBUTTON_MUSICAL_INSTRUMENT 
ID_SLIDER_PAN 
ID_SLIDER_GAIN 
ID_TOGGLEBUTTON_MUTE 
ID_TOGGLEBUTTON_SOLO 

Definition at line 147 of file MixerBoard.cpp.

147 {
151#ifdef EXPERIMENTAL_MIDI_OUT
152 ID_SLIDER_VELOCITY,
153#endif
156};
@ ID_BITMAPBUTTON_MUSICAL_INSTRUMENT
Definition: MixerBoard.cpp:148
@ ID_SLIDER_PAN
Definition: MixerBoard.cpp:149
@ ID_SLIDER_GAIN
Definition: MixerBoard.cpp:150
@ ID_TOGGLEBUTTON_MUTE
Definition: MixerBoard.cpp:154
@ ID_TOGGLEBUTTON_SOLO
Definition: MixerBoard.cpp:155

Variable Documentation

◆ kDefaultSize

const wxSize kDefaultSize
Initial value:
=
#define MIXER_BOARD_MIN_WIDTH
Definition: MixerBoard.cpp:857
#define MIXER_BOARD_MIN_HEIGHT
Definition: MixerBoard.cpp:854

Definition at line 1401 of file MixerBoard.cpp.

◆ kDoubleInset

const int kDoubleInset = (2 * kInset)

◆ kInset

const int kInset = 4

◆ kLeftSideStackWidth

const int kLeftSideStackWidth = MUSICAL_INSTRUMENT_HEIGHT_AND_WIDTH - kDoubleInset

Definition at line 143 of file MixerBoard.cpp.

◆ kMixerTrackClusterWidth

const int kMixerTrackClusterWidth = kLeftSideStackWidth + kRightSideStackWidth + kQuadrupleInset

◆ kQuadrupleInset

const int kQuadrupleInset = (4 * kInset)

Definition at line 136 of file MixerBoard.cpp.

Referenced by MixerTrackCluster::HandleResize().

◆ kRightSideStackWidth

const int kRightSideStackWidth = MUSICAL_INSTRUMENT_HEIGHT_AND_WIDTH + kDoubleInset

Definition at line 144 of file MixerBoard.cpp.

Referenced by MixerBoard::CreateMuteSoloImages(), and MixerBoard::MixerBoard().

◆ kTripleInset

const int kTripleInset = (3 * kInset)

Definition at line 135 of file MixerBoard.cpp.

◆ MUSICAL_INSTRUMENT_HEIGHT_AND_WIDTH

const int MUSICAL_INSTRUMENT_HEIGHT_AND_WIDTH = 48

◆ MUTE_SOLO_HEIGHT

const int MUTE_SOLO_HEIGHT = 19

◆ PAN_HEIGHT

const int PAN_HEIGHT = 24

Definition at line 141 of file MixerBoard.cpp.

Referenced by MixerTrackCluster::HandleResize().

◆ TRACK_NAME_HEIGHT

const int TRACK_NAME_HEIGHT = 18

Definition at line 138 of file MixerBoard.cpp.

Referenced by MixerTrackCluster::HandleResize().