From: Markus R. <rol...@us...> - 2007-06-23 13:11:37
|
Update of /cvsroot/simspark/simspark/contrib/rsgedit In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv20207 Modified Files: Tag: RSGEDIT_SCINTILLA sparkedit.cpp sparkedit.h Log Message: - refactor method GetStartScriptFile - added method GetFile Index: sparkedit.cpp =================================================================== RCS file: /cvsroot/simspark/simspark/contrib/rsgedit/Attic/sparkedit.cpp,v retrieving revision 1.1.2.11 retrieving revision 1.1.2.12 diff -C2 -d -r1.1.2.11 -r1.1.2.12 *** sparkedit.cpp 23 Jun 2007 11:09:45 -0000 1.1.2.11 --- sparkedit.cpp 23 Jun 2007 13:11:34 -0000 1.1.2.12 *************** *** 397,403 **** } ! wxString SparkEdit::GetStartScriptFile() { ! TEditMap::iterator iter = mEditMap.find(mStartScript); if (iter == mEditMap.end()) { --- 397,409 ---- } ! wxString SparkEdit::GetFile(wxScintilla* edit) { ! if (edit == 0) ! { ! assert(false); ! return wxString(); ! } ! ! TEditMap::iterator iter = mEditMap.find(edit); if (iter == mEditMap.end()) { *************** *** 409,412 **** --- 415,423 ---- } + wxString SparkEdit::GetStartScriptFile() + { + return GetFile(mStartScript); + } + SparkEdit::EEditType SparkEdit::GetFileType(wxScintilla* edit) { Index: sparkedit.h =================================================================== RCS file: /cvsroot/simspark/simspark/contrib/rsgedit/Attic/sparkedit.h,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.h 23 Jun 2007 11:09:45 -0000 1.1.2.8 --- sparkedit.h 23 Jun 2007 13:11:34 -0000 1.1.2.9 *************** *** 75,78 **** --- 75,79 ---- static wxScintilla* GetStartScript(); static EEditType GetFileType(wxScintilla* edit); + static wxString GetFile(wxScintilla* edit); static wxString GetStartScriptFile(); static void PrepareImageList(wxFlatNotebook* notebook); |