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

void CAMainWin::updateUndoRedoButtons (  )  [private]

Enables or Disabled undo/redo buttons if there are undo/redo commands on the undo stack.

See also:
CACanorus::undoStack()

Definition at line 1177 of file mainwin.cpp.

Referenced by updateToolBars().

                                      {
      if ( CACanorus::undo()->canUndo( document() ) )
            uiUndo->defaultAction()->setEnabled(true);
      else
            uiUndo->defaultAction()->setEnabled(false);

      if ( CACanorus::undo()->canRedo( document() ) )
            uiRedo->defaultAction()->setEnabled(true);
      else
            uiRedo->defaultAction()->setEnabled(false);
}


Generated by  Doxygen 1.6.0   Back to index