Changeset 5853


Ignore:
Timestamp:
04/04/14 12:07:20 (6 years ago)
Author:
avneesh-singh
Message:

some improvements

Location:
trunk/Obi/Obi/ProjectView
Files:
2 edited

Legend:

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

    r5827 r5853  
    37393739            mShortcutKeys[keyboardShortcuts.ContentView_FastPlayRateNormilize.Value] = FastPlayRateNormalise; 
    37403740            mShortcutKeys[keyboardShortcuts.ContentView_FastPlayNormalizeWithElapseBack.Value] = FastPlayNormaliseWithLapseBack; 
    3741             mShortcutKeys[keyboardShortcuts.ContentView_FastPlayWithElapseForward.Value] = delegate() { return mProjectView.TransportBar.FastPlayWithLapseForward(); }; 
     3741            mShortcutKeys[keyboardShortcuts.ContentView_FastPlayWithElapseForward.Value] = delegate() { return mProjectView.TransportBar.StepForward(); }; 
    37423742            mShortcutKeys[keyboardShortcuts.ContentView_MarkSelectionFromBeginningToTheCursor.Value] = MarkSelectionFromBeginningToTheCursor; 
    37433743            mShortcutKeys[keyboardShortcuts.ContentView_MarkSelectionFromCursorToTheEnd.Value] = MarkSelectionFromCursorToTheEnd; 
  • trunk/Obi/Obi/ProjectView/TransportBar.cs

    r5850 r5853  
    26502650            return false; 
    26512651        } 
    2652         public bool FastPlayWithLapseForward() 
     2652        public bool StepForward() 
    26532653        { 
    26542654            m_ElapseBackInterval = mView.ObiForm.Settings.ElapseBackTimeInMilliseconds; 
     
    26602660                if (IsPaused && (mView.Selection.Node.FollowingNode is PhraseNode || mView.Selection.Node.FollowingNode is EmptyNode) && (mView.Selection.Node.Parent == mView.Selection.Node.FollowingNode.Parent) && (mCurrentPlaylist.CurrentTimeInAsset >= (mView.Selection.Node.Duration - m_ElapseBackInterval)) && !mView.IsZoomWaveformActive) 
    26612661                { 
    2662                     LapseForwardCursor(); 
     2662                    StepForwardCursor(); 
    26632663                    return true; 
    26642664                } 
    26652665                else 
    26662666                { 
    2667                     DetermineUseOfSoundTouch(1.0f); 
    2668                     mCurrentPlaylist.FastPlayWithLapseForward(m_ElapseBackInterval,mView.Selection.Node.Duration); 
    2669                     //  mFastPlayRateCombobox.SelectedIndex = 0; 
     2667                    //DetermineUseOfSoundTouch(1.0f); 
     2668                    mCurrentPlaylist.StepForward(m_ElapseBackInterval,mView.Selection.Node.Duration); 
     2669                     
    26702670                    UpdateTimeDisplay(); 
    26712671                    if (CurrentPlaylist != null) mView.UpdateCursorPosition(mCurrentPlaylist.CurrentTimeInAsset); 
     
    26872687            else if (CurrentState == State.Stopped && mView.Selection != null && mView.Selection.Node is PhraseNode) 
    26882688            { 
    2689                 LapseForwardCursor(); 
     2689                StepForwardCursor(); 
    26902690 
    26912691                return true; 
     
    26932693            return false; 
    26942694        } 
     2695 
    26952696        private void LapseBackCursor() 
    26962697        { 
     
    27472748            } 
    27482749        } 
    2749         private void LapseForwardCursor() 
     2750        private void StepForwardCursor() 
    27502751        { 
    27512752            bool flag = false; 
Note: See TracChangeset for help on using the changeset viewer.