--- nono/wx/wxmpumonitor.h 2026/04/29 17:04:45 1.1.1.4 +++ nono/wx/wxmpumonitor.h 2026/04/29 17:04:56 1.1.1.5 @@ -6,56 +6,20 @@ #pragma once -#include "wxsubwindow.h" -#include "wxtextscreen.h" - -class m88200; -class WXCacheWindow; - -// -// CMMU キャッシュウィンドウ用のパネル -// -class WXCacheTextScreen : public WXTextScreen -{ - using inherited = WXTextScreen; - public: - WXCacheTextScreen(wxWindow *, IMonitor&); - virtual ~WXCacheTextScreen() override; - - private: - // マウスイベント - void OnLeftDown(wxMouseEvent& event); - - // 親クラス - WXCacheWindow *parentwindow; - - // イベントテーブル - wxDECLARE_EVENT_TABLE(); -}; +#include "wxmonitor.h" +#include "monitor.h" // // CMMU キャッシュウィンドウ // -class WXCacheWindow : public WXSubWindow, public IMonitor +class WXCacheWindow : public WXMonitorWindow { - using inherited = WXSubWindow; + using inherited = WXMonitorWindow; public: - WXCacheWindow(wxWindow *, wxWindowID, const wxString& name, m88200 *cmmu); + WXCacheWindow(wxWindow *, const wxString& name, Monitor& monitor_); virtual ~WXCacheWindow() override; - // 右クリック処理 - void DoLeftDown(int x, int y); - - nnSize GetMonitorSize() override; - void MonitorUpdate(TextScreen& ts) override; - private: - // テキストスクリーンコントロール - WXCacheTextScreen *screen {}; - - // 現在表示中のセット - uint setidx {}; - - // CMMU - m88200 *cmmu {}; + // マウスイベント + void OnLeftDown(wxMouseEvent& event); };