--- nono/wx/wxversion.h 2026/04/29 17:04:45 1.1.1.3 +++ nono/wx/wxversion.h 2026/04/29 17:05:08 1.1.1.5 @@ -4,9 +4,14 @@ // Licensed under nono-license.txt // +// +// バージョンダイアログ +// + #pragma once -#include "wxheader.h" +#include "wxnono.h" +#include "monitor.h" // バージョンダイアログ class WXVersionDlg : public wxDialog @@ -18,20 +23,23 @@ class WXVersionDlg : public wxDialog }; // ホスト情報モニタ -class HostInfoMonitor : public IMonitor +class HostInfoMonitor : public Object { + using inherited = Object; public: HostInfoMonitor(); virtual ~HostInfoMonitor() override; + operator bool() const { return aut; } - nnSize GetMonitorSize() override; - void MonitorUpdate(TextScreen& monitor) override; + Monitor monitor { this }; private: - int width {}; + DECLARE_MONITOR_CALLBACK(MonitorUpdate); + wxString osname {}; wxString machinename {}; wxString wxname {}; + uint32 aut; }; -extern std::unique_ptr gHostInfo; +extern HostInfoMonitor *gHostInfo;