diff -b -c -r H:\original_ParaGUI\src\core\pgapplication.cpp H:\modified_ParaGUI\src\core\pgapplication.cpp *** H:\original_ParaGUI\src\core\pgapplication.cpp Fri Nov 22 19:58:42 2002 --- H:\modified_ParaGUI\src\core\pgapplication.cpp Sun Mar 30 13:31:31 2003 *************** *** 179,184 **** --- 179,189 ---- enableAppIdleCalls = enable; } + bool PG_Application::GetAppIdleCallsEnabled() + { + return enableAppIdleCalls; + } + /** Event processing loop */ int PG_Application::RunEventLoop(void* data) { --- diff -b -c -r H:\original_ParaGUI\src\core\pgfilearchive.cpp H:\modified_ParaGUI\src\core\pgfilearchive.cpp *** H:\original_ParaGUI\src\core\pgfilearchive.cpp Fri Nov 01 12:41:42 2002 --- H:\modified_ParaGUI\src\core\pgfilearchive.cpp Sun Mar 30 15:25:35 2003 *************** *** 309,318 **** } // add the loaded surface to the cache ! my_cache.AddSurface(fn, surface); // return the pointer to the surface ! return surface; } bool PG_FileArchive::UnloadSurface(SDL_Surface* surface, bool bDeleteIfNotExists) { --- 309,318 ---- } // add the loaded surface to the cache ! return my_cache.AddSurface(fn, surface); // return the pointer to the surface ! //return surface; } bool PG_FileArchive::UnloadSurface(SDL_Surface* surface, bool bDeleteIfNotExists) { --- diff -b -c -r H:\original_ParaGUI\src\core\pglog.cpp H:\modified_ParaGUI\src\core\pglog.cpp *** H:\original_ParaGUI\src\core\pglog.cpp Fri Nov 22 19:58:42 2002 --- H:\modified_ParaGUI\src\core\pglog.cpp Sun Mar 30 14:03:40 2003 *************** *** 65,70 **** --- 65,71 ---- static std::list PG_LogMessages; static PG_Window* PG_LogWindow = NULL; static PG_RichEdit* PG_LogWindowData = NULL; + static std::string my_title = "ParaGUI Log Console"; void PG_LogConsole::SetLogLevel(PG_LOG_LEVEL newlevel) { PG_LogLevel = newlevel; *************** *** 178,184 **** //If LogWindow is not initialized and it is possible, do it ... if (PG_LogWindow == NULL) { PG_Rect r(25,100,PG_Application::GetScreenWidth()-50,300); ! PG_LogWindow = new PG_Window(NULL, r, "ParaGUI Log Console", WF_SHOW_CLOSE, "Window", 25); PG_LogWindowData = new PG_RichEdit(PG_LogWindow, PG_Rect(1,26,r.w-2,r.h-27)); } --- 179,185 ---- //If LogWindow is not initialized and it is possible, do it ... if (PG_LogWindow == NULL) { PG_Rect r(25,100,PG_Application::GetScreenWidth()-50,300); ! PG_LogWindow = new PG_Window(NULL, r, my_title.c_str(), WF_SHOW_CLOSE, "Window", 25); PG_LogWindowData = new PG_RichEdit(PG_LogWindow, PG_Rect(1,26,r.w-2,r.h-27)); } *************** *** 215,220 **** --- 216,229 ---- buffer += "\n"; } PG_LogWindowData->SetText(buffer); + } + + void PG_LogConsole::SetTitle(const char* title, int alignment) { + my_title = title; + + if (PG_LogWindow) { + PG_LogWindow->SetTitle(title, alignment); + } } void PG_LogConsole::Show() { --- diff -b -c -r H:\original_ParaGUI\src\widgets\pgwidget.cpp H:\modified_ParaGUI\src\widgets\pgwidget.cpp *** H:\original_ParaGUI\src\widgets\pgwidget.cpp Fri Nov 01 17:00:58 2002 --- H:\modified_ParaGUI\src\widgets\pgwidget.cpp Sun Mar 30 13:40:00 2003 *************** *** 1495,1500 **** --- 1495,1505 ---- SendMessage(this, MSG_MODALQUIT, 0, 0); } + bool PG_Widget::WillQuitModal() + { + return my_internaldata->quitModalLoop; + } + int PG_Widget::RunModal() { SDL_Event event; my_internaldata->quitModalLoop = false;