Öffentliche Methoden | Geschützte Methoden
mutabor::MutDocManager Klassenreferenz

#include <MutDocManager.h>

Aufstellung aller Elemente

Ö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.

Ausführliche Beschreibung

Definiert in Zeile 60 der Datei MutDocManager.h.


Dokumentation der Elementfunktionen

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;
        }

Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Dateien:

Erzeugt am Sun Aug 21 2011 10:52:09 für Mutabor von doxygen 1.7.4