--- nono/wx/wxstatuspanel.h 2026/04/29 17:04:53 1.1 +++ nono/wx/wxstatuspanel.h 2026/04/29 17:04:56 1.1.1.2 @@ -6,8 +6,8 @@ #pragma once -#include "wxheader.h" -#include "wxbmp.h" +#include "wxnono.h" +#include "wxbitmapbuf.h" #include "wxtextpanel.h" #include "scsibus.h" @@ -60,7 +60,6 @@ class WXStatusPanel : public WXTextPanel void SetFontSize(FontId) override; private: - void OnCreate(wxCommandEvent&); void OnClose(wxCloseEvent&); void OnShow(wxShowEvent&); void OnSize(wxSizeEvent&); @@ -80,28 +79,29 @@ class WXStatusPanel : public WXTextPanel void DrawTextLED(wxDC&, const Indicator&, const wxColour& fg, const wxColour& bg); void DClickPerf(const Indicator&); - void UpdateFFMark(); // コントロール全域のビットマップ - WXBitmap bitmap {}; - - // 高速モードアイコン - std::unique_ptr ffmark {}; + WXBitmapBuf bitmap {}; // インジケータ情報 std::vector indicators {}; // インジケータ表示用 bool ispower {}; - bool last_ispower {}; int perf_mode {}; - int last_perf_mode {}; int perf_rate {}; - int last_perf_rate {}; std::shared_ptr scsibus {}; uint8 scsi_bsy {}; - uint8 last_scsi_bsy {}; - bool net_ok {}; + bool scsi_out {}; + enum { + NOT_AVAILABLE = -1, // 存在しない (Nereid なし X68k とか) + DISABLE = 0, // 存在してホスト側が無効 (driver = none) + ENABLE = 1, // 存在してホスト側が有効 + } net_ok {}; + uint64 net_tx_pkts {}; + uint64 net_rx_pkts {}; + bool net_tx_active {}; + bool net_rx_active {}; // タイマー wxTimer timer {};