Update of /cvsroot/simspark/simspark/contrib/rsgedit
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv12011
Modified Files:
sparkedit.cpp sparkedit.h
Log Message:
- added method GetCurrentPage(); refactored from mainframe
Index: sparkedit.cpp
===================================================================
RCS file: /cvsroot/simspark/simspark/contrib/rsgedit/sparkedit.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** sparkedit.cpp 8 Jul 2007 13:58:28 -0000 1.4
--- sparkedit.cpp 10 Jul 2007 15:15:26 -0000 1.5
***************
*** 418,421 ****
--- 418,432 ----
}
+ wxScintilla* SparkEdit::GetCurrentPage(wxFlatNotebook* notebook)
+ {
+ if (notebook == 0)
+ {
+ assert(false);
+ return 0;
+ }
+
+ return dynamic_cast<wxScintilla*>(notebook->GetCurrentPage());
+ }
+
wxString SparkEdit::GetFile(wxScintilla* edit)
{
Index: sparkedit.h
===================================================================
RCS file: /cvsroot/simspark/simspark/contrib/rsgedit/sparkedit.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** sparkedit.h 10 Jul 2007 15:07:50 -0000 1.5
--- sparkedit.h 10 Jul 2007 15:15:26 -0000 1.6
***************
*** 85,88 ****
--- 85,90 ----
void SelectEdit(wxFlatNotebook* notebook, wxScintilla* edit);
+ static wxScintilla* GetCurrentPage(wxFlatNotebook* notebook);
+
protected:
wxScintilla* Create(wxWindow* parent);
|