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

Show only the appropriate channel-related track menu items for mono or stereo.

This commit is contained in:
Paul Licameli
2015-08-02 14:29:56 -04:00
parent 60983f6bf7
commit 7b737a99c7
2 changed files with 82 additions and 47 deletions

View File

@@ -239,7 +239,8 @@ class AUDACITY_DLL_API TrackPanel:public wxPanel {
* the track around, via a single set of code.
* @param menu the menu to add the commands to.
*/
virtual void BuildCommonDropMenuItems(wxMenu * menu);
static void BuildCommonDropMenuItems(wxMenu * menu);
static void BuildWaveTrackMenuItems(wxMenu * menu, bool mono);
static void BuildVRulerMenuItems(wxMenu * menu, int firstId, const wxArrayString &names);
virtual bool IsAudioActive();
virtual bool IsUnsafe();
@@ -819,7 +820,8 @@ protected:
wxCursor *mStretchRightCursor;
#endif
wxMenu *mWaveTrackMenu;
wxMenu *mMonoTrackMenu;
wxMenu *mStereoTrackMenu;
wxMenu *mNoteTrackMenu;
wxMenu *mTimeTrackMenu;
wxMenu *mLabelTrackMenu;