Changeset 5818


Ignore:
Timestamp:
03/21/14 15:12:23 (6 years ago)
Author:
rohit_tandon
Message:

Commit includes:-
1)Profile 1 implementation.
2)Change in behavior for elapse back when in paused state.

Location:
trunk/Obi/Obi
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Obi/Obi/Dialogs/Preferences.cs

    r5814 r5818  
    15671567                } 
    15681568            } 
    1569             if (m_SelectLevelComboBox.SelectedIndex == 2) 
     1569            else if (m_SelectLevelComboBox.SelectedIndex == 2) 
    15701570            { 
    15711571                if (!(m_CheckBoxListView.Items[0].Checked && m_CheckBoxListView.Items[2].Checked && m_CheckBoxListView.Items[3].Checked && m_CheckBoxListView.Items[4].Checked 
     
    16311631                   + Localizer.Message("Audio_DisableDeselectionOnStop"); 
    16321632 
    1633                     if (MessageBox.Show(tempMessageStr, Localizer.Message("Preferences_advanced_recording_mode"), MessageBoxButtons.YesNo, 
     1633                    if (MessageBox.Show(tempMessageStr, Localizer.Message("Preferences_Level_ComboBox_Profile_2"), MessageBoxButtons.YesNo, 
    16341634               MessageBoxIcon.Question) == DialogResult.Yes) 
    16351635                    { 
     
    16621662 
    16631663            } 
    1664             else if (m_SelectLevelComboBox.SelectedIndex == 3 || m_SelectLevelComboBox.SelectedIndex == 5) 
     1664            else if (m_SelectLevelComboBox.SelectedIndex == 3) 
     1665            { 
     1666                if (!(m_CheckBoxListView.Items[0].Checked && !m_CheckBoxListView.Items[1].Checked && m_CheckBoxListView.Items[2].Checked && !m_CheckBoxListView.Items[3].Checked 
     1667                     && !m_CheckBoxListView.Items[4].Checked && !m_CheckBoxListView.Items[5].Checked && !m_CheckBoxListView.Items[6].Checked 
     1668                     && m_CheckBoxListView.Items[7].Checked && !m_CheckBoxListView.Items[8].Checked && !m_CheckBoxListView.Items[9].Checked 
     1669                     && !m_CheckBoxListView.Items[10].Checked && !m_CheckBoxListView.Items[11].Checked && !m_CheckBoxListView.Items[12].Checked && m_CheckBoxListView.Items[13].Checked 
     1670                     && m_CheckBoxListView.Items[14].Checked && m_CheckBoxListView.Items[15].Checked)) 
     1671                { 
     1672                    string tempMessageStr = Localizer.Message("Preferences_Advance_Mode") + "\n" + "\n* " +  
     1673                    Localizer.Message("AudioTab_RetainInitialSilence") + "\n* " +  
     1674                    Localizer.Message("Audio_UseRecordingPauseShortcutForStopping") + "\n* " + Localizer.Message("AudioTab_AllowOverwrite") + "\n* " + 
     1675                    Localizer.Message("AudioTab_RecordDirectlyFromTransportBar") + "\n* " + Localizer.Message("AudioTab_Limit max phrase duration to 50 minutes") + 
     1676                     "\n* " + Localizer.Message("Audio_DetectPhrasesWhileRecording") + "\n* " + 
     1677                    Localizer.Message("Audio_EnablePostRecordingPageRenumbering") + "\n* " + Localizer.Message("Audio_MergeFirstTwoPhrasesInPhraseDetection") + "\n* " + 
     1678                    Localizer.Message("Audio_FastPlayWithoutPitchChange") + "\n* " + Localizer.Message("Audio_RecordSubsequentPhrases"); 
     1679 
     1680                    if (MessageBox.Show(tempMessageStr, Localizer.Message("Preferences_Level_ComboBox_Profile_1"), MessageBoxButtons.YesNo, 
     1681               MessageBoxIcon.Question) == DialogResult.Yes) 
     1682                    { 
     1683                        m_IndexOfLevelCombox = m_SelectLevelComboBox.SelectedIndex; 
     1684                        m_FlagComboBoxIndexChange = true; 
     1685                        m_CheckBoxListView.Items[0].Checked = false; 
     1686                        m_CheckBoxListView.Items[1].Checked = true; 
     1687                        m_CheckBoxListView.Items[2].Checked = false; 
     1688                        m_CheckBoxListView.Items[3].Checked = true; 
     1689                        m_CheckBoxListView.Items[4].Checked = true; 
     1690                        m_CheckBoxListView.Items[5].Checked = true; 
     1691                        m_CheckBoxListView.Items[6].Checked = true; 
     1692                        m_CheckBoxListView.Items[7].Checked = false; 
     1693                        m_CheckBoxListView.Items[8].Checked = true; 
     1694                        m_CheckBoxListView.Items[9].Checked = true; 
     1695                        m_CheckBoxListView.Items[10].Checked = true; 
     1696                        m_CheckBoxListView.Items[11].Checked = true; 
     1697                        m_CheckBoxListView.Items[12].Checked = true; 
     1698                        m_CheckBoxListView.Items[13].Checked = false; 
     1699                        m_CheckBoxListView.Items[14].Checked = false; 
     1700                        m_CheckBoxListView.Items[15].Checked = false; 
     1701                        m_FlagComboBoxIndexChange = false; 
     1702                    } 
     1703                    else 
     1704                    { 
     1705                        m_SelectLevelComboBox.SelectedIndex = m_IndexOfLevelCombox; 
     1706                        return false; 
     1707                    } 
     1708                } 
     1709 
     1710            } 
     1711            else if (m_SelectLevelComboBox.SelectedIndex == 5) 
    16651712            { 
    16661713                m_FlagComboBoxIndexChange = false; 
  • trunk/Obi/Obi/Dialogs/ProfileDescription.cs

    r5814 r5818  
    3737                m_ProfileDescription_WebBrowser.DocumentText = m_ProfileDescription_WebBrowser.Document.GetElementById("Advance").InnerHtml; 
    3838            } 
     39            else if (m_ProfileSelectedIndex == 3) 
     40            { 
     41                m_ProfileDescription_WebBrowser.DocumentText = m_ProfileDescription_WebBrowser.Document.GetElementById("Profile1").InnerHtml; 
     42            } 
    3943            else if (m_ProfileSelectedIndex == 4) 
    4044            { 
  • trunk/Obi/Obi/ProfileDesc_en.html

    r5815 r5818  
    251251</tr> 
    252252</table> 
    253 </div>    
     253</div>  
     254 
     255<div id="Profile1"> 
     256<p>In Profile 1 following checkboxes are checked:-</p> 
     257<table border="3" > 
     258<tr> 
     259  <td>Retain initial silence while phrase detection</td> 
     260  <td>Retains the initial silence during the process of Auto-splitting using phrase detection.</td>    
     261</tr> 
     262<tr> 
     263  <td>Use Space key to stop recording</td> 
     264  <td>Obi stops recording when user presses the Space key on the keyboard.</td> 
     265</tr> 
     266<tr> 
     267  <td>Allow overwrite while recording</td> 
     268  <td>Obi will break the selected phrase, at a position determined using a set of rules, and record in a new phrase between the two fragments.</td> 
     269</tr> 
     270<tr> 
     271  <td>Always record directly from transport bar</td> 
     272  <td>Obi will deactivate the toggling behavior of Start Monitoring/Record button of Transport Bar and always show Record Directly in its place. As a result, each click on that button will initiate recording.</td> 
     273</tr> 
     274<tr> 
     275  <td>Limit max phrase duration to 50 minutes</td> 
     276  <td>Sets an upper limit for the length of phrase to be 50 minutes. Otherwise, allows phrases of any length to exist.</td> 
     277</tr> 
     278<tr> 
     279  <td>Perform phrase detection while recording</td> 
     280  <td>Obi applies phrase detection to the audio being recorded on the run. After the record command is stopped, the recorded content will be split at the detected positions.</td> 
     281</tr> 
     282<tr> 
     283  <td>Renumber the following pages when recording ends</td> 
     284  <td>Obi renumbers the pages after the recorded audio when the record command is stopped.</td> 
     285</tr> 
     286<tr> 
     287  <td>Merge first 2 phrases detected by phrase detection</td> 
     288  <td>Merges the first two phrases resulting from the process of auto-splitting using phrase detection.</td> 
     289</tr> 
     290<tr> 
     291  <td>Fast play without pitch change</td> 
     292  <td>Obi preserves the pitch while increasing or decreasing the fast play rate.</td> 
     293</tr> 
     294<tr> 
     295  <td>Use Record Button to record over subsequent audio</td> 
     296  <td>Obi starts recording over subsequent phrases on pressing record button.Also you need to check "Always record directly from transport bar" in conjunction with this checkbox</td> 
     297</tr> 
     298</table> 
     299</div>   
    254300     
    255301<!--   <!-- <p>This is <span id="test"> </span> Hello How are u </p> 
  • trunk/Obi/Obi/ProjectView/TransportBar.cs

    r5817 r5818  
    25782578            if (IsPlayerActive) 
    25792579            { 
    2580                 if (IsPaused) 
    2581                 {                    
    2582                     Stop(); 
     2580               if (IsPaused && mCurrentPlaylist.CurrentTimeInAsset<=10 && !mView.IsZoomWaveformActive) 
     2581                {                
    25832582                    LapseBackCursor(); 
    25842583                    return true; 
     
    26072606            { 
    26082607                double time = ((AudioSelection)mView.Selection).AudioRange.CursorTime; 
     2608                if (IsPaused) 
     2609                { 
     2610                    time = mCurrentPlaylist.CurrentTimeInAsset; 
     2611                    Stop(); 
     2612                } 
    26092613                if (time < 1 && !mView.IsZoomWaveformActive && ((mView.Selection.Node.PrecedingNode is PhraseNode) || (mView.Selection.Node.PrecedingNode is EmptyNode))) 
    26102614                { 
Note: See TracChangeset for help on using the changeset viewer.