Logo Search packages:      
Sourcecode: rosegarden version File versions  Download package

void Rosegarden::CommandHistory::addCommand ( Command *  command  ) 

Add a command to the command history.

The command will normally be executed before being added; but if a compound operation is in use (see startCompoundOperation below), the execute status of the compound operation will determine whether the command is executed or not.

Definition at line 126 of file CommandHistory.cpp.

Referenced by addCommandAndExecute(), addExecutedCommand(), and endCompoundOperation().

    if (!command) return;

    if (m_currentCompound) {
      addToCompound(command, m_executeCompound);

    addCommand(command, true);

Generated by  Doxygen 1.6.0   Back to index