Audacity 3.2.0
Classes | Namespaces | Macros | Typedefs | Enumerations | Functions | Variables
NoteTrackControls.cpp File Reference
#include "NoteTrackControls.h"
#include "NoteTrackDisplayData.h"
#include "AColor.h"
#include "AllThemeResources.h"
#include "../../ui/PlayableTrackButtonHandles.h"
#include "NoteTrackButtonHandle.h"
#include "NoteTrackSliderHandles.h"
#include "../../../../TrackArtist.h"
#include "../../../../TrackPanel.h"
#include "../../../ui/CommonTrackInfo.h"
#include "../../../../TrackPanelMouseEvent.h"
#include "NoteTrack.h"
#include "../../../../widgets/PopupMenuTable.h"
#include "ProjectHistory.h"
#include "../../../../ProjectWindows.h"
#include "../../../../RefreshCode.h"
#include "Theme.h"
#include <wx/frame.h>
#include "../../../../widgets/ASlider.h"
#include "../../../../TrackPanelDrawingContext.h"
#include "ViewInfo.h"
#include "../../../ui/ChannelView.h"
Include dependency graph for NoteTrackControls.cpp:

Go to the source code of this file.

Classes

class  NoteTrackMenuTable
 
struct  NoteTrackTCPLines
 

Namespaces

namespace  anonymous_namespace{NoteTrackControls.cpp}
 

Macros

#define CHANNEL_ON_IS_DOWN   1
 

Typedefs

using TCPLine = TrackInfo::TCPLine
 
using DoGetNoteTrackControls = DoGetControls::Override< NoteTrack >
 
using GetDefaultNoteTrackHeight = GetDefaultTrackHeight::Override< NoteTrack >
 

Enumerations

enum  { OnUpOctaveID = 30000 , OnDownOctaveID }
 
enum  : int { kMidiCellWidth = ( ( kTrackInfoWidth - CommonTrackInfo::Margin * 2) / 4) , kMidiCellHeight = kTrackInfoBtnSize }
 

Functions

 BeginSection ("Basic")
 
 AppendItem ("Up", OnUpOctaveID, XXO("Up &Octave"), POPUP_MENU_FN(OnChangeOctave))
 
 AppendItem ("Down", OnDownOctaveID, XXO("Down Octa&ve"), POPUP_MENU_FN(OnChangeOctave))
 
 EndSection ()
 
void anonymous_namespace{NoteTrackControls.cpp}::GetMidiControlsHorizontalBounds (const wxRect &rect, wxRect &dest)
 
void anonymous_namespace{NoteTrackControls.cpp}::SliderDrawFunction (LWSlider *(*Selector)(const wxRect &sliderRect, const NoteTrack *t, bool captured, wxWindow *), wxDC *dc, const wxRect &rect, const Track *pTrack, wxWindow *pParent, bool captured, bool highlight)
 
void anonymous_namespace{NoteTrackControls.cpp}::VelocitySliderDrawFunction (TrackPanelDrawingContext &context, const wxRect &rect, const Track *pTrack)
 
static void anonymous_namespace{NoteTrackControls.cpp}::DrawLabelControls (const NoteTrack *pTrack, wxDC &dc, const wxRect &rect, int highlightedChannel)
 
void anonymous_namespace{NoteTrackControls.cpp}::MidiControlsDrawFunction (TrackPanelDrawingContext &context, const wxRect &rect, const Track *pTrack)
 
 DEFINE_ATTACHED_VIRTUAL_OVERRIDE (DoGetNoteTrackControls)
 

Variables

NoteTrackTCPLines noteTrackTCPLines
 
std::unique_ptr< LWSlideranonymous_namespace{NoteTrackControls.cpp}::gVelocityCaptured
 
std::unique_ptr< LWSlideranonymous_namespace{NoteTrackControls.cpp}::gVelocity
 

Macro Definition Documentation

◆ CHANNEL_ON_IS_DOWN

#define CHANNEL_ON_IS_DOWN   1

Typedef Documentation

◆ DoGetNoteTrackControls

Definition at line 395 of file NoteTrackControls.cpp.

◆ GetDefaultNoteTrackHeight

Definition at line 404 of file NoteTrackControls.cpp.

◆ TCPLine

Definition at line 143 of file NoteTrackControls.cpp.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
OnUpOctaveID 
OnDownOctaveID 

Definition at line 100 of file NoteTrackControls.cpp.

100 {
101 OnUpOctaveID = 30000,
103};
@ OnUpOctaveID
@ OnDownOctaveID

◆ anonymous enum

anonymous enum : int
Enumerator
kMidiCellWidth 
kMidiCellHeight 

Definition at line 146 of file NoteTrackControls.cpp.

146 : int {
147 // PRL: was it correct to include the margin?
150};
@ kMidiCellWidth
@ kMidiCellHeight
@ kTrackInfoBtnSize
Definition: ViewInfo.h:98
@ kTrackInfoWidth
Definition: ZoomInfo.h:30
static constexpr auto Margin

Function Documentation

◆ AppendItem() [1/2]

AppendItem ( "Down"  ,
OnDownOctaveID  ,
XXO("Down Octa&ve")  ,
POPUP_MENU_FN(OnChangeOctave)   
)

◆ AppendItem() [2/2]

AppendItem ( "Up"  ,
OnUpOctaveID  ,
XXO("Up &Octave")  ,
POPUP_MENU_FN(OnChangeOctave)   
)

◆ BeginSection()

BeginSection ( "Basic"  )

◆ DEFINE_ATTACHED_VIRTUAL_OVERRIDE()

DEFINE_ATTACHED_VIRTUAL_OVERRIDE ( DoGetNoteTrackControls  )

Definition at line 396 of file NoteTrackControls.cpp.

396 {
397 return [](NoteTrack &track) {
398 return std::make_shared<NoteTrackControls>( track.SharedPointer() );
399 };
400}
A Track that is used for Midi notes. (Somewhat old code).
Definition: NoteTrack.h:78

◆ EndSection()

EndSection ( )

Variable Documentation

◆ noteTrackTCPLines

NoteTrackTCPLines noteTrackTCPLines
static