Audacity 3.2.0
Classes | Namespaces | Typedefs | Enumerations | Functions | Variables
NoteTrackControls.cpp File Reference
#include "NoteTrackControls.h"
#include "NoteTrackButtonHandle.h"
#include "Observer.h"
#include "Theme.h"
#include "../../ui/PlayableTrackButtonHandles.h"
#include "NoteTrackSliderHandles.h"
#include "../../../../HitTestResult.h"
#include "../../../../TrackArtist.h"
#include "../../../../TrackPanel.h"
#include "../../../../TrackPanelMouseEvent.h"
#include "../../../../NoteTrack.h"
#include "../../../../widgets/PopupMenuTable.h"
#include "Project.h"
#include "ProjectHistory.h"
#include "../../../../ProjectWindows.h"
#include "../../../../RefreshCode.h"
#include "../../../../prefs/ThemePrefs.h"
#include <mutex>
#include <wx/app.h>
#include <wx/frame.h>
#include "../../../../widgets/ASlider.h"
#include "../../../../TrackInfo.h"
#include "../../../../TrackPanelDrawingContext.h"
#include "ViewInfo.h"
#include "../../../ui/TrackView.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}
 

Typedefs

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

Enumerations

enum  { OnUpOctaveID = 30000 , OnDownOctaveID }
 
enum  : int { kMidiCellWidth = ( ( kTrackInfoWidth + kLeftMargin ) / 4) - 2 , 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}::MidiControlsDrawFunction (TrackPanelDrawingContext &context, const wxRect &rect, const Track *pTrack)
 
 DEFINE_ATTACHED_VIRTUAL_OVERRIDE (DoGetNoteTrackControls)
 

Variables

NoteTrackTCPLines noteTrackTCPLines
 

Typedef Documentation

◆ DoGetNoteTrackControls

Definition at line 319 of file NoteTrackControls.cpp.

◆ GetDefaultNoteTrackHeight

Definition at line 328 of file NoteTrackControls.cpp.

◆ TCPLine

Definition at line 152 of file NoteTrackControls.cpp.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
OnUpOctaveID 
OnDownOctaveID 

Definition at line 108 of file NoteTrackControls.cpp.

108 {
109 OnUpOctaveID = 30000,
111};
@ OnUpOctaveID
@ OnDownOctaveID

◆ anonymous enum

anonymous enum : int
Enumerator
kMidiCellWidth 
kMidiCellHeight 

Definition at line 155 of file NoteTrackControls.cpp.

155 : int {
156 // PRL: was it correct to include the margin?
157 kMidiCellWidth = ( ( kTrackInfoWidth + kLeftMargin ) / 4) - 2,
159};
@ kMidiCellWidth
@ kMidiCellHeight
@ kTrackInfoBtnSize
Definition: ViewInfo.h:95
@ kTrackInfoWidth
Definition: ZoomInfo.h:36
@ kLeftMargin
Definition: ZoomInfo.h:33

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 320 of file NoteTrackControls.cpp.

320 {
321 return [](NoteTrack &track) {
322 return std::make_shared<NoteTrackControls>( track.SharedPointer() );
323 };
324}
A Track that is used for Midi notes. (Somewhat old code).
Definition: NoteTrack.h:63

◆ EndSection()

EndSection ( )

Variable Documentation

◆ noteTrackTCPLines

NoteTrackTCPLines noteTrackTCPLines
static