812 |
eSampleLoopStart.set_sensitive(active); |
eSampleLoopStart.set_sensitive(active); |
813 |
eSampleLoopLength.set_sensitive(active); |
eSampleLoopLength.set_sensitive(active); |
814 |
eSampleLoopType.set_sensitive(active); |
eSampleLoopType.set_sensitive(active); |
815 |
eSampleLoopInfinite.set_sensitive(active); |
eSampleLoopInfinite.set_sensitive(active && dimregion && dimregion->pSample); |
816 |
eSampleLoopStart.set_ptr(0); |
eSampleLoopStart.set_ptr(0); |
817 |
eSampleLoopLength.set_ptr(0); |
eSampleLoopLength.set_ptr(0); |
818 |
eSampleLoopPlayCount.set_ptr(0); |
eSampleLoopPlayCount.set_ptr(0); |
853 |
|
|
854 |
void DimRegionEdit::loop_infinite_toggled() { |
void DimRegionEdit::loop_infinite_toggled() { |
855 |
eSampleLoopPlayCount.set_sensitive( |
eSampleLoopPlayCount.set_sensitive( |
856 |
|
dimregion && dimregion->pSample && |
857 |
!eSampleLoopInfinite.get_active() && |
!eSampleLoopInfinite.get_active() && |
858 |
eSampleLoopEnabled.get_active() |
eSampleLoopEnabled.get_active() |
859 |
); |
); |