Mercurial > hg > tony
comparison src/Analyser.h @ 144:c21b87a62ce6
Quick sketch version of two separate sets of toggle buttons (show and play)
author | Chris Cannam |
---|---|
date | Fri, 10 Jan 2014 15:46:39 +0000 |
parents | e7f2da26c9ac |
children | cdc9d5f7978c |
comparison
equal
deleted
inserted
replaced
143:b5e46f9bceb8 | 144:c21b87a62ce6 |
---|---|
48 Notes, | 48 Notes, |
49 }; | 49 }; |
50 | 50 |
51 bool isVisible(Component c) const; | 51 bool isVisible(Component c) const; |
52 void setVisible(Component c, bool v); | 52 void setVisible(Component c, bool v); |
53 void toggleVisible(Component c) { setVisible(c, !isVisible(c)); } | |
53 | 54 |
54 bool isAudible(Component c) const; | 55 bool isAudible(Component c) const; |
55 void setAudible(Component c, bool v); | 56 void setAudible(Component c, bool v); |
57 void toggleAudible(Component c) { setAudible(c, !isAudible(c)); } | |
56 | 58 |
57 void cycleStatus(Component c) { | 59 void cycleStatus(Component c) { |
58 if (isVisible(c)) { | 60 if (isVisible(c)) { |
59 if (isAudible(c)) { | 61 if (isAudible(c)) { |
60 setVisible(c, false); | 62 setVisible(c, false); |