From: Markus R. <rol...@us...> - 2007-06-23 09:22:33
|
Update of /cvsroot/simspark/simspark/contrib/rsgedit In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv25478 Modified Files: Tag: RSGEDIT_SCINTILLA sparkedit.cpp sparkedit.h Log Message: - added method GetStartScript() to get the current start script edit control - added method GetStartScriptFile() to get the file name of the current start script Index: sparkedit.cpp =================================================================== RCS file: /cvsroot/simspark/simspark/contrib/rsgedit/Attic/sparkedit.cpp,v retrieving revision 1.1.2.8 retrieving revision 1.1.2.9 diff -C2 -d -r1.1.2.8 -r1.1.2.9 *** sparkedit.cpp 23 Jun 2007 09:11:36 -0000 1.1.2.8 --- sparkedit.cpp 23 Jun 2007 09:22:27 -0000 1.1.2.9 *************** *** 347,348 **** --- 347,366 ---- UpdateIcons(notebook); } + + wxScintilla* SparkEdit::GetStartScript() + { + return mStartScript; + } + + wxString SparkEdit::GetStartScriptFile() + { + TEditMap::iterator iter = mEditMap.find(mStartScript); + if (iter == mEditMap.end()) + { + return wxString(); + } + + const EditEntry& entry = (*iter).second; + return entry.fname; + } + Index: sparkedit.h =================================================================== RCS file: /cvsroot/simspark/simspark/contrib/rsgedit/Attic/sparkedit.h,v retrieving revision 1.1.2.5 retrieving revision 1.1.2.6 diff -C2 -d -r1.1.2.5 -r1.1.2.6 *** sparkedit.h 23 Jun 2007 09:11:36 -0000 1.1.2.5 --- sparkedit.h 23 Jun 2007 09:22:27 -0000 1.1.2.6 *************** *** 70,73 **** --- 70,75 ---- static void SaveFile(wxScintilla* edit); static void SetStartScript(wxFlatNotebook* notebook, wxScintilla* edit); + static wxScintilla* GetStartScript(); + static wxString GetStartScriptFile(); static void PrepareImageList(wxFlatNotebook* notebook); |