Audacity 3.2.0
Classes | Namespaces | Enumerations | Functions | Variables
NoteTrackVZoomHandle.cpp File Reference
#include "NoteTrackVZoomHandle.h"
#include "../../../ui/TrackVRulerControls.h"
#include "../../../../HitTestResult.h"
#include "../../../../NoteTrack.h"
#include "Project.h"
#include "ProjectHistory.h"
#include "../../../../RefreshCode.h"
#include "../../../../TrackArtist.h"
#include "../../../../TrackPanelMouseEvent.h"
#include "../../../../widgets/PopupMenuTable.h"
#include "../../../../../images/Cursors.h"
#include "Prefs.h"
#include <wx/event.h>
Include dependency graph for NoteTrackVZoomHandle.cpp:

Go to the source code of this file.

Classes

struct  anonymous_namespace{NoteTrackVZoomHandle.cpp}::InitMenuData
 
class  NoteTrackVRulerMenuTable
 

Namespaces

namespace  anonymous_namespace{NoteTrackVZoomHandle.cpp}
 

Enumerations

enum  {
  OnZoomFitVerticalID = 20000 , OnZoomResetID , OnZoomDiv2ID , OnZoomTimes2ID ,
  OnZoomHalfWaveID , OnZoomInVerticalID , OnZoomOutVerticalID , OnZoomMaxID ,
  OnUpOctaveID , OnDownOctaveID
}
 

Functions

bool anonymous_namespace{NoteTrackVZoomHandle.cpp}::IsDragZooming (int zoomStart, int zoomEnd)
 
gPrefs Read (wxT("/GUI/VerticalZooming"), &bVZoom, false)
 
 BeginSection ("Zoom")
 
 BeginSection ("Basic")
 
 AppendItem ("Reset", OnZoomResetID, MakeLabel(XXO("Zoom Reset"), bVZoom, XXO("Shift-Right-Click")), POPUP_MENU_FN(OnZoomReset))
 
 AppendItem ("Max", OnZoomMaxID, XXO("Max Zoom"), POPUP_MENU_FN(OnZoomMax))
 
 EndSection ()
 
 BeginSection ("InOut")
 
 AppendItem ("In", OnZoomInVerticalID, MakeLabel(XXO("Zoom In"), bVZoom, XXO("Left-Click/Left-Drag")), POPUP_MENU_FN(OnZoomInVertical))
 
 AppendItem ("Out", OnZoomOutVerticalID, MakeLabel(XXO("Zoom Out"), bVZoom, XXO("Shift-Left-Click")), POPUP_MENU_FN(OnZoomOutVertical))
 
 BeginSection ("Pan")
 
 BeginSection ("Octaves")
 
 AppendItem ("Up", OnUpOctaveID, XXO("Up &Octave"), POPUP_MENU_FN(OnUpOctave))
 
 AppendItem ("Down", OnDownOctaveID, XXO("Down Octa&ve"), POPUP_MENU_FN(OnDownOctave))
 

Variables

bool bVZoom
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
OnZoomFitVerticalID 
OnZoomResetID 
OnZoomDiv2ID 
OnZoomTimes2ID 
OnZoomHalfWaveID 
OnZoomInVerticalID 
OnZoomOutVerticalID 
OnZoomMaxID 
OnUpOctaveID 
OnDownOctaveID 

Definition at line 146 of file NoteTrackVZoomHandle.cpp.

146 {
147 OnZoomFitVerticalID = 20000,
154
156
159};
@ OnZoomTimes2ID
@ OnZoomOutVerticalID
@ OnZoomFitVerticalID
@ OnZoomHalfWaveID
@ OnDownOctaveID
@ OnZoomInVerticalID

Function Documentation

◆ AppendItem() [1/6]

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

◆ AppendItem() [2/6]

AppendItem ( "In"  ,
OnZoomInVerticalID  ,
MakeLabel(XXO("Zoom In"), bVZoom, XXO("Left-Click/Left-Drag"))  ,
POPUP_MENU_FN(OnZoomInVertical)   
)

◆ AppendItem() [3/6]

AppendItem ( "Max"  ,
OnZoomMaxID  ,
XXO("Max Zoom")  ,
POPUP_MENU_FN(OnZoomMax)   
)

◆ AppendItem() [4/6]

AppendItem ( "Out"  ,
OnZoomOutVerticalID  ,
MakeLabel(XXO("Zoom Out"), bVZoom, XXO("Shift-Left-Click"))  ,
POPUP_MENU_FN(OnZoomOutVertical)   
)

◆ AppendItem() [5/6]

AppendItem ( "Reset"  ,
OnZoomResetID  ,
MakeLabel(XXO("Zoom Reset"), bVZoom, XXO("Shift-Right-Click"))  ,
POPUP_MENU_FN(OnZoomReset)   
)

◆ AppendItem() [6/6]

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

◆ BeginSection() [1/5]

BeginSection ( "Basic"  )

◆ BeginSection() [2/5]

BeginSection ( "InOut"  )

◆ BeginSection() [3/5]

BeginSection ( "Octaves"  )

◆ BeginSection() [4/5]

BeginSection ( "Pan"  )

◆ BeginSection() [5/5]

BeginSection ( "Zoom"  )

◆ EndSection()

EndSection ( )

◆ Read()

gPrefs Read ( wxT("/GUI/VerticalZooming")  ,
bVZoom,
false   
)

Referenced by CommandParameters::DoReadDouble(), Setting< T >::EnterTransaction(), CommandParameters::GetParameters(), CommandParameters::ReadAndVerify(), CommandParameters::ReadEnum(), CommandParameters::ReadFloat(), ThemeBase::ReadImageCache(), and SelectionBar::SelectionBar().

Here is the caller graph for this function:

Variable Documentation

◆ bVZoom

bool bVZoom