From: Markus R. <rol...@us...> - 2007-04-25 20:34:31
|
Update of /cvsroot/simspark/simspark/contrib/rsgedit In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv13941 Modified Files: Tag: RSGEDIT_FILEREF property.cpp Log Message: - show associated ruby file and line number in property window of a node Index: property.cpp =================================================================== RCS file: /cvsroot/simspark/simspark/contrib/rsgedit/property.cpp,v retrieving revision 1.8 retrieving revision 1.8.4.1 diff -C2 -d -r1.8 -r1.8.4.1 *** property.cpp 19 Feb 2006 15:45:37 -0000 1.8 --- property.cpp 25 Apr 2007 20:34:27 -0000 1.8.4.1 *************** *** 33,36 **** --- 33,37 ---- #include <oxygen/sceneserver/basenode.h> #include <oxygen/sceneserver/transform.h> + #include <oxygen/sceneserver/scenedict.h> #include <oxygen/physicsserver/body.h> #include <oxygen/physicsserver/joint.h> *************** *** 117,120 **** --- 118,133 ---- { entries.push_back(Entry(_T("GetFullPath"), wxString(leaf->GetFullPath().c_str(), wxConvUTF8))); + + const SceneDict::FileRef* ref + = SceneDict::GetInstance().Loookup(leaf); + + if (ref == 0) + { + return; + } + + wxString strRef = wxString(ref->fname.c_str(), wxConvUTF8) + + wxString::Format(":%d",ref->line); + entries.push_back(Entry(_T("rsg file"), strRef)); } |