Changeset 5886


Ignore:
Timestamp:
04/10/14 07:13:53 (6 years ago)
Author:
avneesh-singh
Message:

recording button remains disabled during zoom waveform

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Obi/Obi/ProjectView/TransportBar.cs

    r5884 r5886  
    181181        public bool CanPausePlayback { get { return Enabled && mState == State.Playing; } } 
    182182        public bool CanPlay { get { return Enabled && mState == State.Stopped && !m_IsProjectEmpty && !mView.IsContentViewScrollActive; } } 
    183         public bool CanRecord { get { return Enabled &&( mState == State.Stopped || mState == State.Paused ||  mState == State.Monitoring  ||  (mView.ObiForm.Settings.Audio_UseRecordBtnToRecordOverSubsequentAudio&& CurrentState == State.Playing  
    184             && mCurrentPlaylist.PlaybackRate == 0)) &&  mView.IsPhraseCountWithinLimit && !mView.IsContentViewScrollActive && !mView.IsZoomWaveformActive; } } // @phraseLimit 
     183        public bool CanRecord { get { return Enabled &&( mState == State.Stopped || mState == State.Paused ||  mState == State.Monitoring   
     184            ||  (mView.ObiForm.Settings.Audio_UseRecordBtnToRecordOverSubsequentAudio&& CurrentState == State.Playing && mCurrentPlaylist.PlaybackRate == 0))  
     185            &&  mView.IsPhraseCountWithinLimit && !mView.IsContentViewScrollActive && !mView.IsZoomWaveformActive; } } // @phraseLimit 
    185186        public bool CanResumePlayback { get { return Enabled && mState == State.Paused   &&   !mView.IsContentViewScrollActive; } } 
    186         public bool CanResumeRecording { get { return Enabled && mResumeRecordingPhrase != null && mResumeRecordingPhrase.IsRooted    &&   (mState != State.Playing  ||   (mView.ObiForm.Settings.Audio_UseRecordBtnToRecordOverSubsequentAudio && CurrentState == State.Playing) )&& !mView.IsContentViewScrollActive; } } 
     187        public bool CanResumeRecording { get { return Enabled && mResumeRecordingPhrase != null && mResumeRecordingPhrase.IsRooted    &&   (mState != State.Playing  ||   (mView.ObiForm.Settings.Audio_UseRecordBtnToRecordOverSubsequentAudio && CurrentState == State.Playing) )&& !mView.IsContentViewScrollActive && !mView.IsZoomWaveformActive; } } 
    187188        public bool CanRewind { get { return Enabled && (IsPlayerActive || CanPlay) ; } } 
    188189        public bool CanStop { get { return Enabled && (mState != State.Stopped || mView.Selection != null); } } 
     
    923924                mPlayButton.Enabled = CanPlay || CanResumePlayback; 
    924925                mFastPlayRateCombobox.Enabled = !IsRecorderActive; 
    925                 mRecordButton.Enabled = CanRecord || CanResumeRecording 
    926                     || (CurrentState == State.Playing && (mView.ObiForm.Settings.Audio_UseRecordBtnToRecordOverSubsequentAudio || mView.ObiForm.Settings.Recording_PreviewBeforeStarting)); 
     926                mRecordButton.Enabled = (CanRecord || CanResumeRecording 
     927                    || (CurrentState == State.Playing && (mView.ObiForm.Settings.Audio_UseRecordBtnToRecordOverSubsequentAudio || mView.ObiForm.Settings.Recording_PreviewBeforeStarting))) && !mView.IsZoomWaveformActive; 
    927928                if (IsPlaying || IsRecorderActive) 
    928929                { 
Note: See TracChangeset for help on using the changeset viewer.