gehe zur Dokumentation dieser Datei00001 
00042 
00043 
00044 
00045 
00046 
00047 
00048 
00049 #include "Defs.h"
00050 #include <wx/wxprec.h>
00051 #include "MutDocManager.h"
00052 #ifdef __BORLANDC__
00053     #pragma hdrstop
00054 #endif
00055 
00056 namespace mutabor {
00057 
00058         bool MutDocManager::TryParent(wxEvent& event)
00059         {
00060                 
00061                 
00062 #if 0
00063                 
00064                 if ( wxTheApp && false )
00065                 {
00066                         
00067                         
00068                         
00069                         if ( event.GetEventType() != wxEVT_IDLE )
00070                         {
00071                                 if ( wxTheApp->ProcessEvent(event) )
00072                                         return true;
00073                         }
00074                 }
00075 #endif
00076 
00077                 return false;
00078         }
00079 
00080         
00081         bool MutDocManager::ProcessEvent(wxEvent& event)
00082         {
00083                 if (!wxEvtHandler::ProcessEvent(event))
00084                 {
00085                         wxView* view = GetCurrentView();
00086                         if (view && view->ProcessEvent(event))
00087                                 return true;
00088                         else return false;
00089                 }
00090                 return true;
00091         }
00092 
00093 
00094         
00095         
00096         wxString MutDocManager::MakeFrameTitle(wxDocument* doc)
00097         {
00098                 wxString appName = wxTheApp->GetAppName();
00099                 wxString title;
00100                 if (!doc)
00101                         title = appName;
00102                 else
00103                 {
00104                         wxString docName;
00105                         doc->GetPrintableName(docName);
00106                         title = docName + wxString(_(" - ")) + _T(PACKAGE_NAME);
00107                 }
00108                 return title;
00109         }
00110 
00111 
00112 }