Kill AegisubApp::OnMouseWheel. It breaks the mouse wheel in dialogs, and it didn't actually work at the moment and isn't really the right way to handle mouse wheel forwarding in the first place

Originally committed to SVN as r5771.
This commit is contained in:
Thomas Goyne 2011-10-24 20:18:16 +00:00
parent 5e01f09b30
commit 10464e4617
2 changed files with 0 additions and 32 deletions

View File

@ -566,28 +566,3 @@ void AegisubApp::MacOpenFile(const wxString &filename) {
} }
} }
#endif #endif
///////////////
// Event table
BEGIN_EVENT_TABLE(AegisubApp,wxApp)
EVT_MOUSEWHEEL(AegisubApp::OnMouseWheel)
END_EVENT_TABLE()
/// @brief Mouse wheel moved
/// @param event
///
void AegisubApp::OnMouseWheel(wxMouseEvent &event) {
if (event.WasProcessed()) return;
wxPoint pt;
wxWindow *target = wxFindWindowAtPointer(pt);
/*if (frame && (target == frame->audioBox->audioDisplay || target == frame->SubsGrid)) {
if (target->IsShownOnScreen()) target->GetEventHandler()->ProcessEvent(event);
else event.Skip();
}
else event.Skip();*/
}

View File

@ -96,13 +96,9 @@ namespace Automation4 { class AutoloadScriptManager; }
/// ///
/// DOCME /// DOCME
class AegisubApp: public wxApp { class AegisubApp: public wxApp {
private:
/// DOCME /// DOCME
PluginManager *plugins; PluginManager *plugins;
void OnMouseWheel(wxMouseEvent &event);
#ifdef _DEBUG #ifdef _DEBUG
/// stdout log emitter /// stdout log emitter
agi::log::EmitSTDOUT *emit_stdout; agi::log::EmitSTDOUT *emit_stdout;
@ -149,9 +145,6 @@ public:
#else #else
# error wxWidgets is compiled without exceptions support, Aegisub requires exceptions support in wxWidgets to run safely # error wxWidgets is compiled without exceptions support, Aegisub requires exceptions support in wxWidgets to run safely
#endif #endif
//int OnRun();
DECLARE_EVENT_TABLE()
}; };
DECLARE_APP(AegisubApp) DECLARE_APP(AegisubApp)