Tulip
4.7.0
Better Visualization Through Research
|
#include <GraphNeedsSavingObserver.h>
Signals | |
void | savingNeeded () |
Public Member Functions | |
GraphNeedsSavingObserver (Graph *graph) | |
bool | needsSaving () const |
void | saved () |
Protected Member Functions | |
virtual void | treatEvents (const std::vector< Event > &) |
The GraphNeedsSavingObserver class will observe a graph and tells if it has been modified.
Definition at line 42 of file GraphNeedsSavingObserver.h.
tlp::GraphNeedsSavingObserver::GraphNeedsSavingObserver | ( | Graph * | graph | ) |
GraphNeedsSavingObserver Class constructor.
graph | the graph which needs to be observed for modifications |
bool tlp::GraphNeedsSavingObserver::needsSaving | ( | ) | const |
needsSaving Indicates if the graph has been modified, and thus needs to be saved.
void tlp::GraphNeedsSavingObserver::saved | ( | ) |
saved If the graph has been saved, one has to call this method to reset the status of the graph (it does not need to be saved). to indicate that the graph does not need to be saved until a new modification.
|
signal |
savingNeeded This signal is sent when the graph needs to be saved (it has been modified).
|
protectedvirtual |
treatEvents This function is called when events are sent to Observers, and Observers only.
events | The events that happened since the last unHoldObservers(). |
Reimplemented from tlp::Observable.