Tulip
4.4.0
Better Visualization Through Research
|
#include <GraphNeedsSavingObserver.h>
Inherits QObject, and tlp::Observable.
Signals | |
void | savingNeeded () |
Public Member Functions | |
GraphNeedsSavingObserver (Graph *graph) | |
bool | needsSaving () const |
void | saved () |
Protected Member Functions | |
virtual void | treatEvents (const std::vector< Event > &) |
Additional Inherited Members | |
Private Member Functions inherited from tlp::Observable | |
void | addListener (Observable *const listener) const |
void | addObserver (Observable *const observer) const |
unsigned int | countListeners () const |
unsigned int | countObservers () const |
unsigned int | getReceived () const |
unsigned int | getSent () const |
void | removeListener (Observable *const listener) const |
void | removeObserver (Observable *const observerver) const |
Observable (const Observable &) | |
tlp::Iterator< tlp::Observable * > * | getObservables () const |
bool | hasOnlookers () const |
void | notifyObservers () |
void | observableDeleted () |
Observable & | operator= (const Observable &) |
void | sendEvent (const Event &message) |
virtual void | treatEvent (const Event &message) |
Static Private Member Functions inherited from tlp::Observable | |
static Observable * | getObject (tlp::node n) |
static const tlp::VectorGraph & | getObservableGraph () |
static void | holdObservers () |
static bool | isAlive (tlp::node n) |
static unsigned int | observersHoldCounter () |
static void | unholdObservers () |
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.