Changeset 7614


Ignore:
Timestamp:
03/01/19 07:34:27 (4 months ago)
Author:
rohit_tandon
Message:

-> If Comment is added on a phrase which is not todo then todo is marked on that phrase.

Location:
trunk/Obi/Obi
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Obi/Obi/ObiForm.cs

    r7613 r7614  
    23182318                                                          && !mProjectView.TransportBar.IsRecorderActive; 
    23192319                m_pasteMultiplePhrasesToolStripMenuItem.Enabled = !mProjectView.TransportBar.IsRecorderActive &&  mProjectView.CanPasteMultiplePhrases; 
    2320                 m_CommentToolStripMenuItem.Enabled = m_AddViewCommentToolStripMenuItem.Enabled = m_ClearCommentToolStripMenuItem.Enabled = mProjectView.IsBlockSelected && mPhrases_PhraseIsTODOMenuItem.Checked;                 
     2320                m_CommentToolStripMenuItem.Enabled = m_AddViewCommentToolStripMenuItem.Enabled = m_ClearCommentToolStripMenuItem.Enabled = mProjectView.IsBlockSelected;                 
    23212321            } 
    23222322 
  • trunk/Obi/Obi/ProjectView/ContentView.cs

    r7613 r7614  
    52655265            ContextEndMarkToolStripMenuItem.Enabled = mProjectView.CanEndSpecialNote; 
    52665266            ContextPasteMultiplePhrasesToolStripMenuItem.Enabled = !mProjectView.TransportBar.IsRecorderActive && mProjectView.CanPasteMultiplePhrases && !Settings.Project_ReadOnlyMode; 
    5267             Context_CommentMenuItem.Enabled = Context_AddViewCommentMenuItem.Enabled = Context_ClearCommentMenuItem.Enabled = mProjectView.IsBlockSelected && this.Context_PhraseIsTODOMenuItem.Checked; 
     5267            Context_CommentMenuItem.Enabled = Context_AddViewCommentMenuItem.Enabled = Context_ClearCommentMenuItem.Enabled = mProjectView.IsBlockSelected; 
    52685268            } 
    52695269 
     
    59895989        public bool ShowEditLabelToAddComment() 
    59905990        { 
    5991             if (mProjectView.Selection.Node is EmptyNode && mProjectView.IsBlockSelected && this.Context_PhraseIsTODOMenuItem.Checked) 
     5991            if (mProjectView.Selection.Node is EmptyNode && mProjectView.IsBlockSelected) 
    59925992            { 
    59935993                if (this.mProjectView.TransportBar.IsPlayerActive) 
     
    60006000            } 
    60016001            return false; 
     6002        } 
     6003 
     6004        public void ToggleTODOForPhrase() 
     6005        { 
     6006            if (!mProjectView.IsCurrentBlockTODO && mProjectView.Selection.Node is EmptyNode) 
     6007            { 
     6008                if ((mProjectView.Selection.Node as EmptyNode).CommentText != null) 
     6009                { 
     6010                    mProjectView.ToggleTODOForPhrase(); 
     6011                } 
     6012            } 
    60026013        } 
    60036014 
  • trunk/Obi/Obi/ProjectView/Strip.cs

    r7612 r7614  
    18331833                tempBlock.UpdateLabelsText(); 
    18341834                RemoveEditLabelControlForAddingComment(); 
     1835                mContentView.ToggleTODOForPhrase(); 
    18351836 
    18361837            } 
Note: See TracChangeset for help on using the changeset viewer.