#ifndef __EXCEPTIONSVIEW_H__ #define __EXCEPTIONSVIEW_H__ #include "WindowsSupport/WindowsSupport.pkg" #include "DeviceInterface/DeviceInterface.pkg" #include "ExceptionsViewPresenter.h" #include "M68000/IM68000.h" #include class ExceptionsView :public ViewBase { public: // Constructors ExceptionsView(IUIManager& uiManager, ExceptionsViewPresenter& presenter, IM68000& model); protected: // Member window procedure virtual INT_PTR WndProcDialog(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam); private: // Event handlers INT_PTR msgWM_INITDIALOG(HWND hwnd, WPARAM wParam, LPARAM lParam); INT_PTR msgWM_DESTROY(HWND hwnd, WPARAM wParam, LPARAM lParam); INT_PTR msgWM_TIMER(HWND hwnd, WPARAM wParam, LPARAM lParam); INT_PTR msgWM_COMMAND(HWND hwnd, WPARAM wParam, LPARAM lParam); // Exception functions void UpdateExceptionEntry(HWND hwnd, const IM68000::ExceptionDebuggingEntry& targetExceptionEntry); std::wstring BuildExceptionName(IM68000::Exceptions vectorNumber) const; private: ExceptionsViewPresenter& _presenter; IM68000& _model; bool _initializedDialog; std::wstring _previousText; unsigned int _currentControlFocus; unsigned int _addressBusCharWidth; int _exceptionListIndex; IM68000::ExceptionDebuggingEntry _exceptionEntry; std::list _cachedExceptionList; }; #endif