Notification of changes to diagram

Help
2012-01-30
2013-04-08
  • Brian Martin
    Brian Martin
    2012-01-30

    Hi
    Is there a way to know when any changes are made to the diagram?
    I want to know this so I can prompt the user if he/she attempts to exit the application without saving if the diagram has been altered so work is not accidentally lost.

    I'm a bit new to the framework and have been looking through the docs and source but have not yet found a way of doing this.

    Regards
    Brian

     
  • Brian Martin
    Brian Martin
    2012-02-07

    Hi
    May have solved this by emitting events from shapes.

    Now a new problem - the mere creation of shapes seems to take ages. Removing sfUNDOREDO speeds things up. Might be me - the demos don't seem to suffer from this even those that support undo/redo.

    regards