--- nono/wx/wxmonitor.h 2026/04/29 17:04:37 1.1.1.2 +++ nono/wx/wxmonitor.h 2026/04/29 17:04:56 1.1.1.6 @@ -7,7 +7,7 @@ #pragma once #include "wxsubwindow.h" -#include "object.h" +#include "monitor.h" // // モニターウィンドウ @@ -16,26 +16,11 @@ class WXMonitorWindow : public WXSubWind { using inherited = WXSubWindow; public: - WXMonitorWindow(wxWindow *parent, wxWindowID id, const wxString& name, - Object *obj); - virtual ~WXMonitorWindow(); - - // フォントサイズ変更 - virtual void SetFontSize(fontsize_t fontsize); - - private: - // タイマーイベント - void OnTimer(wxTimerEvent& event); - - // モニター - Object *object = NULL; + WXMonitorWindow(wxWindow *parent, const wxString& name, + Monitor& monitor_); + virtual ~WXMonitorWindow() override; + protected: // テキストスクリーン - WXTextScreen *screen = NULL; - - // タイマー - wxTimer timer; - - // イベントテーブル - wxDECLARE_EVENT_TABLE(); + WXTextScreen *screen {}; };