--- nono/wx/wxmonitor.h 2026/04/29 17:04:28 1.1 +++ nono/wx/wxmonitor.h 2026/04/29 17:05:08 1.1.1.7 @@ -1,40 +1,27 @@ // // nono -// Copyright (C) 2018 isaki@NetBSD.org +// Copyright (C) 2020 nono project +// Licensed under nono-license.txt +// + +// +// モニターウィンドウ // #pragma once -#include "object.h" #include "wxsubwindow.h" +#include "monitor.h" -// -// モニターウィンドウ -// class WXMonitorWindow : public WXSubWindow { - typedef WXSubWindow inherited; + 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 {}; };