|
From: Markus R. <rol...@us...> - 2007-04-15 10:50:23
|
Update of /cvsroot/simspark/simspark/contrib/rsgedit In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv14824 Modified Files: sparkcontext.cpp sparkcontext.h Log Message: - change type of selection pointer to zeitgeist::Leaf Index: sparkcontext.h =================================================================== RCS file: /cvsroot/simspark/simspark/contrib/rsgedit/sparkcontext.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** sparkcontext.h 15 Apr 2007 10:31:11 -0000 1.1 --- sparkcontext.h 15 Apr 2007 10:50:12 -0000 1.2 *************** *** 24,30 **** #include <boost/weak_ptr.hpp> ! namespace oxygen { ! class BaseNode; } --- 24,30 ---- #include <boost/weak_ptr.hpp> ! namespace zeitgeist { ! class Leaf; } *************** *** 35,40 **** ~SparkContext(); ! void SetSelection(boost::weak_ptr<oxygen::BaseNode> node); ! boost::weak_ptr<oxygen::BaseNode> GetSelection() const; void ResetSelection(); --- 35,40 ---- ~SparkContext(); ! void SetSelection(boost::weak_ptr<zeitgeist::Leaf> node); ! boost::weak_ptr<zeitgeist::Leaf> GetSelection() const; void ResetSelection(); *************** *** 43,47 **** protected: ! boost::weak_ptr<oxygen::BaseNode> mSelectedNode; }; --- 43,47 ---- protected: ! boost::weak_ptr<zeitgeist::Leaf> mSelectedNode; }; Index: sparkcontext.cpp =================================================================== RCS file: /cvsroot/simspark/simspark/contrib/rsgedit/sparkcontext.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** sparkcontext.cpp 15 Apr 2007 10:31:09 -0000 1.1 --- sparkcontext.cpp 15 Apr 2007 10:50:12 -0000 1.2 *************** *** 20,24 **** #include "sparkcontext.h" ! using namespace oxygen; using namespace boost; --- 20,24 ---- #include "sparkcontext.h" ! using namespace zeitgeist; using namespace boost; *************** *** 37,46 **** } ! void SparkContext::SetSelection(weak_ptr<BaseNode> node) { mSelectedNode = node; } ! boost::weak_ptr<BaseNode> SparkContext::GetSelection() const { return mSelectedNode; --- 37,46 ---- } ! void SparkContext::SetSelection(weak_ptr<Leaf> node) { mSelectedNode = node; } ! boost::weak_ptr<Leaf> SparkContext::GetSelection() const { return mSelectedNode; |