mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Added a panel showing profiler timings
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1523 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -48,6 +48,8 @@ class MSE : public wxApp {
|
||||
int OnExit();
|
||||
/// On exception: display error message
|
||||
void HandleEvent(wxEvtHandler *handler, wxEventFunction func, wxEvent& event) const;
|
||||
/// Hack around some wxWidget idiocies
|
||||
int FilterEvent(wxEvent& ev);
|
||||
/// Fancier assert
|
||||
#if defined(_MSC_VER) && defined(_DEBUG)
|
||||
void OnAssert(const wxChar *file, int line, const wxChar *cond, const wxChar *msg);
|
||||
@@ -286,3 +288,13 @@ void MSE::HandleEvent(wxEvtHandler *handler, wxEventFunction func, wxEvent& even
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
// ----------------------------------------------------------------------------- : Events
|
||||
|
||||
int MSE::FilterEvent(wxEvent& ev) {
|
||||
if (ev.GetEventType() == wxEVT_MOUSE_CAPTURE_LOST) {
|
||||
return 1;
|
||||
} else {
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user