Definition at line 160 of file NoteTrackVZoomHandle.cpp.
◆ anonymous enum
Enumerator |
---|
kZoomIn | |
kZoomOut | |
kZoomReset | |
kZoomMax | |
kUpOctave | |
kDownOctave | |
Definition at line 174 of file NoteTrackVZoomHandle.cpp.
174 {
175
176
177
178
179
186 };
◆ NoteTrackVRulerMenuTable()
NoteTrackVRulerMenuTable::NoteTrackVRulerMenuTable |
( |
| ) |
|
|
inlineprivate |
◆ ~NoteTrackVRulerMenuTable()
virtual NoteTrackVRulerMenuTable::~NoteTrackVRulerMenuTable |
( |
| ) |
|
|
inlineprivatevirtual |
◆ DECLARE_POPUP_MENU()
◆ InitUserData()
void NoteTrackVRulerMenuTable::InitUserData |
( |
void * |
pUserData | ) |
|
|
overrideprivatevirtual |
Called before the menu items are appended.
Store context data, if needed. May be called more than once before the menu opens. Pointer remains valid for the duration of any callback, if PopupMenuTable::BuildMenu() is called and the result's Popup() is called before any other menus are built.
Implements PopupMenuHandler.
Definition at line 215 of file NoteTrackVZoomHandle.cpp.
216{
217 mpData =
static_cast<InitMenuData*
>(pUserData);
218}
References mpData.
◆ Instance()
◆ OnDownOctave()
void NoteTrackVRulerMenuTable::OnDownOctave |
( |
wxCommandEvent & |
| ) |
|
|
inlineprotected |
◆ OnUpOctave()
void NoteTrackVRulerMenuTable::OnUpOctave |
( |
wxCommandEvent & |
| ) |
|
|
inlineprotected |
◆ OnZoom()
void NoteTrackVRulerMenuTable::OnZoom |
( |
int |
iZoomCode | ) |
|
|
protected |
Definition at line 220 of file NoteTrackVZoomHandle.cpp.
220 {
222 switch( iZoomCode ){
224 data.ZoomAllNotes(&
mpData->pTrack->GetSeq());
225 break;
228 break;
231 break;
233 data.ZoomMaxExtent();
234 break;
236 data.ShiftNoteRange(12);
237 break;
239 data.ShiftNoteRange(-12);
240 break;
241 }
246}
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Temporary data used to display a note track.
static NoteTrackRange & Get(const NoteTrack &track)
Allow mutative access to attached data of a const track.
void ModifyState(bool bWantsAutoSave)
static ProjectHistory & Get(AudacityProject &project)
Namespace containing an enum 'what to do on a refresh?'.
References ProjectHistory::Get(), NoteTrackRange::Get(), kDownOctave, kUpOctave, kZoomIn, kZoomMax, kZoomOut, kZoomReset, ProjectHistory::ModifyState(), mpData, project, RefreshCode::RefreshAll, and RefreshCode::UpdateVRuler.
Referenced by OnDownOctave(), OnUpOctave(), OnZoomInVertical(), OnZoomMax(), OnZoomOutVertical(), and OnZoomReset().
◆ OnZoomInVertical()
void NoteTrackVRulerMenuTable::OnZoomInVertical |
( |
wxCommandEvent & |
| ) |
|
|
inlineprotected |
◆ OnZoomMax()
void NoteTrackVRulerMenuTable::OnZoomMax |
( |
wxCommandEvent & |
| ) |
|
|
inlineprotected |
◆ OnZoomOutVertical()
void NoteTrackVRulerMenuTable::OnZoomOutVertical |
( |
wxCommandEvent & |
| ) |
|
|
inlineprotected |
◆ OnZoomReset()
void NoteTrackVRulerMenuTable::OnZoomReset |
( |
wxCommandEvent & |
| ) |
|
|
inlineprotected |
◆ UpdatePrefs()
void NoteTrackVRulerMenuTable::UpdatePrefs |
( |
| ) |
|
|
inlineoverrideprivatevirtual |
◆ mpData
InitMenuData* NoteTrackVRulerMenuTable::mpData {} |
|
protected |
The documentation for this class was generated from the following file: