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

CalcItemY is table-driven; stack Mute & Solo for NoteTrack too in DA

This commit is contained in:
Paul Licameli
2017-06-04 20:13:48 -04:00
parent 08fe53875a
commit b8492d02d6
2 changed files with 108 additions and 75 deletions

View File

@@ -76,17 +76,6 @@ enum {
kTimerInterval = 50, // milliseconds
};
enum {
kItemBarButtons = 0,
kItemStatusInfo = 1,
kItemMute = 2,
kItemSolo = 3,
kItemNoteMute = 4,
kItemNoteSolo = 5,
kItemGain = 6,
kItemPan = 7,
};
class AUDACITY_DLL_API TrackInfo
{
public:
@@ -95,7 +84,6 @@ public:
void ReCreateSliders();
private:
int CalcItemY( int iItem ) const;
int GetTrackInfoWidth() const;
void SetTrackInfoFont(wxDC *dc) const;
@@ -934,7 +922,8 @@ enum : int {
enum : int {
kTrackInfoWidth = 100,
kTrackInfoBtnSize = 18 // widely used dimension, usually height
kTrackInfoBtnSize = 18, // widely used dimension, usually height
kTrackInfoSliderHeight = 25,
};
#ifdef USE_MIDI