diff options
Diffstat (limited to 'src/osd/modules/debugger/win/debugwininfo.h')
-rw-r--r-- | src/osd/modules/debugger/win/debugwininfo.h | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/src/osd/modules/debugger/win/debugwininfo.h b/src/osd/modules/debugger/win/debugwininfo.h index 20cea0d477d..f6f37c86955 100644 --- a/src/osd/modules/debugger/win/debugwininfo.h +++ b/src/osd/modules/debugger/win/debugwininfo.h @@ -15,10 +15,11 @@ #include "debugbaseinfo.h" +namespace osd::debugger::win { + class debugwin_info : protected debugbase_info { public: - debugwin_info(debugger_windows_interface &debugger, bool is_main_console, LPCSTR title, WNDPROC handler); virtual ~debugwin_info(); bool is_valid() const { return m_wnd != nullptr; } @@ -40,6 +41,7 @@ public: void show() const { smart_show_window(m_wnd, true); } void hide() const { smart_show_window(m_wnd, false); } void set_foreground() const { SetForegroundWindow(m_wnd); } + void redraw(); void destroy(); virtual bool set_default_focus(); @@ -49,6 +51,9 @@ public: virtual bool handle_key(WPARAM wparam, LPARAM lparam); + void save_configuration(util::xml::data_node &parentnode); + virtual void restore_configuration_from_node(util::xml::data_node const &node); + protected: static DWORD const DEBUG_WINDOW_STYLE = (WS_OVERLAPPEDWINDOW | WS_CLIPCHILDREN) & (~WS_MINIMIZEBOX & ~WS_MAXIMIZEBOX); static DWORD const DEBUG_WINDOW_STYLE_EX = 0; @@ -108,9 +113,15 @@ protected: ID_CLEAR_LOG, + ID_SAVE_WINDOWS, + ID_LIGHT_BACKGROUND, + ID_DARK_BACKGROUND, + ID_DEVICE_OPTIONS // always keep this at the end }; + debugwin_info(debugger_windows_interface &debugger, bool is_main_console, LPCSTR title, WNDPROC handler); + bool is_main_console() const { return m_is_main_console; } HWND window() const { return m_wnd; } uint32_t minwidth() const { return m_minwidth; } @@ -125,6 +136,8 @@ protected: void draw_border(HDC dc, RECT &bounds); void draw_border(HDC dc, HWND child); + virtual void save_configuration_to_node(util::xml::data_node &node); + std::unique_ptr<debugview_info> m_views[MAX_VIEWS]; private: @@ -141,12 +154,14 @@ private: HWND m_wnd; WNDPROC const m_handler; - uint32_t m_minwidth, m_maxwidth; - uint32_t m_minheight, m_maxheight; + uint32_t m_minwidth, m_maxwidth; + uint32_t m_minheight, m_maxheight; - uint16_t m_ignore_char_lparam; + uint16_t m_ignore_char_lparam; static bool s_window_class_registered; }; -#endif +} // namespace osd::debugger::win + +#endif // MAME_DEBUGGER_WIN_DEBUGWININFO_H |