From: Markus R. <rol...@us...> - 2007-06-23 14:04:26
|
Update of /cvsroot/simspark/simspark/contrib/rsgedit In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv8516 Modified Files: sparkcontext.cpp sparkcontext.h Log Message: - added method HasSelection() Index: sparkcontext.h =================================================================== RCS file: /cvsroot/simspark/simspark/contrib/rsgedit/sparkcontext.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** sparkcontext.h 17 May 2007 17:49:23 -0000 1.4 --- sparkcontext.h 23 Jun 2007 14:04:23 -0000 1.5 *************** *** 41,44 **** --- 41,45 ---- boost::weak_ptr<zeitgeist::Leaf> GetSelection() const; void ResetSelection(); + bool HasSelection(); void SetEventHandler(wxEvtHandler* handler, int id); Index: sparkcontext.cpp =================================================================== RCS file: /cvsroot/simspark/simspark/contrib/rsgedit/sparkcontext.cpp,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** sparkcontext.cpp 17 May 2007 17:49:23 -0000 1.4 --- sparkcontext.cpp 23 Jun 2007 14:04:23 -0000 1.5 *************** *** 67,70 **** --- 67,75 ---- } + bool SparkContext::HasSelection() + { + return (! mSelectedNode.expired()); + } + void SparkContext::SetEventHandler(wxEvtHandler* handler, int id) { |