1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-13 16:16:33 +01:00

Move label context menu handling to label track

Application key now brings up the context menu while editing labels
as it should.  This wasn't possible with the old keyboard handling.
This commit is contained in:
Leland Lucius
2015-07-30 10:38:03 -05:00
parent a269670912
commit 7877615454
4 changed files with 109 additions and 92 deletions

View File

@@ -232,6 +232,8 @@ class AUDACITY_DLL_API LabelTrack : public Track
//mOldEdge is useful for telling us when there has been a state change.
int mOldEdge;
private:
void ShowContextMenu();
void OnContextMenu(wxCommandEvent & evt);
int mSelIndex; /// Keeps track of the currently selected label
int mMouseOverLabelLeft; /// Keeps track of which left label the mouse is currently over.