#include <MutDocManager.h>
Öffentliche Methoden | |
bool | ProcessEvent (wxEvent &event) |
Extend event processing to search the view's event table. | |
virtual wxString | MakeFrameTitle (wxDocument *doc) |
calculate the frame title | |
Geschützte Methoden | |
virtual bool | TryParent (wxEvent &event) |
Pass certain events to the Application. |
Definiert in Zeile 60 der Datei MutDocManager.h.
wxString mutabor::MutDocManager::MakeFrameTitle | ( | wxDocument * | doc | ) | [virtual] |
calculate the frame title
Definiert in Zeile 96 der Datei MutDocManager.cpp.
Benutzt _() und PACKAGE_NAME.
{ wxString appName = wxTheApp->GetAppName(); wxString title; if (!doc) title = appName; else { wxString docName; doc->GetPrintableName(docName); title = docName + wxString(_(" - ")) + _T(PACKAGE_NAME); } return title; }
bool mutabor::MutDocManager::ProcessEvent | ( | wxEvent & | event | ) |
Extend event processing to search the view's event table.
Definiert in Zeile 81 der Datei MutDocManager.cpp.
{ if (!wxEvtHandler::ProcessEvent(event)) { wxView* view = GetCurrentView(); if (view && view->ProcessEvent(event)) return true; else return false; } return true; }
bool mutabor::MutDocManager::TryParent | ( | wxEvent & | event | ) | [protected, virtual] |
Pass certain events to the Application.
MutDocManager::ProcessEvent is called directly from MutApp event handlers. this leads to endless loops. To prevent these loops, we must be very careful, which kind of events get passed back.
Probably no events should be propagatetd.
Definiert in Zeile 58 der Datei MutDocManager.cpp.
Benutzt wxEVT_IDLE.
{ // if we must pass some events to the Application, // they must be handled here somehow replacing false #if 0 // Implementation in Event.cpp: if ( wxTheApp && false ) { // Special case: don't pass wxEVT_IDLE to wxApp, since it'll always // swallow it. wxEVT_IDLE is sent explicitly to wxApp so it will be // processed appropriately via SearchEventTable. if ( event.GetEventType() != wxEVT_IDLE ) { if ( wxTheApp->ProcessEvent(event) ) return true; } } #endif return false; }