Tulip
5.0.0
Large graphs analysis and drawing
|
#include <GraphNeedsSavingObserver.h>
Signals | |
void | savingNeeded () |
Public Member Functions | |
GraphNeedsSavingObserver (Graph *graph, QMainWindow *mainWindow=NULL) | |
void | forceToSave () |
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 44 of file GraphNeedsSavingObserver.h.
tlp::GraphNeedsSavingObserver::GraphNeedsSavingObserver | ( | Graph * | graph, |
QMainWindow * | mainWindow = NULL |
||
) |
GraphNeedsSavingObserver Class constructor.
graph | The graph which needs to be observed for modifications |
mainWindow | The Qt QMainWindow object behin the perspective |
void tlp::GraphNeedsSavingObserver::forceToSave | ( | ) |
forceToSave Even if there is no modification on the graph, this method can be used to force to save the graph.
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.