Revision 758340

Go back to digest for 13th January 2008

Optimization in Office

Marijn Kruisselbrink committed changes in /trunk/koffice/plugins/musicshape:

cache the need to display accidentals in the notes and update it when it can change instead of recalculating it on rendering. It is needed when engraving too, so this would be horribly expensive.

This isn't used yet anywhere, but it should be properly calculated now.

File Changes

Modified 19 files
  • /trunk/koffice/plugins/musicshape
  •   /Renderer.cpp
  •   /commands/AddNoteCommand.cpp
  •   /commands/MakeRestCommand.cpp
  •   /commands/RemoveNoteCommand.cpp
  •   /commands/RemoveStaffElementCommand.cpp
  •   /commands/SetAccidentalsCommand.cpp
  •   /commands/SetKeySignatureCommand.cpp
  •   /commands/SetKeySignatureCommand.h
  •   /commands/ToggleTiedNoteCommand.cpp
  •   /core/Chord.cpp
  •   /core/Note.cpp
  •   /core/Note.h
  •   /core/Sheet.cpp
  •   /core/Sheet.h
  •   /core/Staff.cpp
  •   /core/Staff.h
  •   /core/VoiceBar.cpp
  •   /core/VoiceBar.h
  •   /core/tests/CMakeLists.txt
19 files changed in total