Changeset 2225


Ignore:
Timestamp:
11/12/08 15:12:12 (11 years ago)
Author:
avneesh-singh
Message:

fixed #268
After assigning silent phrase as a plain phrase its status should changed to be as used.

Location:
trunk/Obi/Obi
Files:
2 edited

Legend:

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

    r2224 r2225  
    20132013        private void mPhrases_ClearRoleMenuItem_Click(object sender, EventArgs e) 
    20142014        { 
    2015             mProjectView.SetRoleForSelectedBlock(EmptyNode.Role.Plain, null); 
     2015        mProjectView.ClearRoleOfSelectedPhrase (); 
    20162016        } 
    20172017    } 
  • trunk/Obi/Obi/ProjectView/ProjectView.cs

    r2221 r2225  
    12961296        } 
    12971297 
     1298        public void ClearRoleOfSelectedPhrase () 
     1299            { 
     1300            PhraseNode node = SelectedNodeAs<PhraseNode>(); 
     1301            if (node != null) 
     1302                { 
     1303                if (node.Role_ != EmptyNode.Role.Silence) 
     1304                    { 
     1305                    SetRoleForSelectedBlock ( EmptyNode.Role.Plain, null ); 
     1306                    } 
     1307                else 
     1308                    { 
     1309                    CompositeCommand command = Presentation.getCommandFactory ().createCompositeCommand (); 
     1310                    Commands.Node.AssignRole ClearRoleCmd = new Commands.Node.AssignRole ( this, node, EmptyNode.Role.Plain ); 
     1311                    command.append ( ClearRoleCmd ); 
     1312                    command.setShortDescription ( ClearRoleCmd.getShortDescription () ); 
     1313                    if (!node.Used) command.append ( new Commands.Node.ToggleNodeUsed ( this, node ) ); 
     1314                    Presentation.Do ( command ); 
     1315                    } 
     1316 
     1317                } 
     1318            } 
     1319 
    12981320        /// <summary> 
    12991321        /// Split a phrase at the playback cursor time (when playback is going on), 
Note: See TracChangeset for help on using the changeset viewer.