Definition at line 161 of file NoteTrackVZoomHandle.cpp.
◆ anonymous enum
Enumerator |
---|
kZoomIn | |
kZoomOut | |
kZoomReset | |
kZoomMax | |
kUpOctave | |
kDownOctave | |
Definition at line 175 of file NoteTrackVZoomHandle.cpp.
175 {
176
177
178
179
180
181
182
189 };
◆ 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 220 of file NoteTrackVZoomHandle.cpp.
221{
222 mpData =
static_cast<InitMenuData*
>(pUserData);
223}
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 225 of file NoteTrackVZoomHandle.cpp.
225 {
226 switch( iZoomCode ){
228 mpData->pTrack->ZoomAllNotes();
229 break;
232 break;
235 break;
237 mpData->pTrack->ZoomMaxExtent();
238 break;
240 mpData->pTrack->ShiftNoteRange(12);
241 break;
243 mpData->pTrack->ShiftNoteRange(-12);
244 break;
245 }
250}
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
void ModifyState(bool bWantsAutoSave)
static ProjectHistory & Get(AudacityProject &project)
Namespace containing an enum 'what to do on a refresh?'.
References ProjectHistory::Get(), kDownOctave, kUpOctave, kZoomIn, kZoomMax, kZoomOut, kZoomReset, ProjectHistory::ModifyState(), mpData, 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: