]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsKernelEditorGraphic/Observable.cxx
Stable version ... The connection is correctly painted :)
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsKernelEditorGraphic / Observable.cxx
index cf21b32e9990b87f06c58d19d23c45c006d67203..a70219e52422dc8f71d51feb369fb87977194f8b 100644 (file)
@@ -43,42 +43,26 @@ namespace bbtk
        //=========================================================================
        Observable::Observable()
        {
-               _changed=false;
        }
 
        //=========================================================================
+
        Observable::~Observable()
        {
        }
-       //=========================================================================
-       
-       bool Observable::hasChanged()
-       {
-               return _changed;
-       }
 
        //=========================================================================
        
-       void Observable::notifyObservers(int idController,int command)
+       void Observable::notifyObservers(int idCaller,int command)
        {
-               if(_changed)
+               
+               int i;
+               for(i=0;i<_observers.size();i++)
                {
-                       int i;
-                       for(i=0;i<_observers.size();i++)
-                       {
-                               _observers[i]->update(idController,command);
-                       }
-                       _changed=false;
+                       _observers[i]->update(idCaller,command);
                }
        }
 
-    //=========================================================================                
-       
-       void Observable::setChanged()
-       {
-               _changed=true;
-       }
-
        //=========================================================================
 
        void Observable::addObserver(Observer *observer)