--- nono/wx/wxlogmonitor.h 2026/04/29 17:04:39 1.1.1.3 +++ nono/wx/wxlogmonitor.h 2026/04/29 17:04:53 1.1.1.5 @@ -46,27 +46,26 @@ class WXLogMonitor : public WXVResizeSub void IncLines(); // スクロールバー - wxScrollBar *vscroll = NULL; + wxScrollBar *vscroll {}; - int col = 0; - int row = 0; + int col {}; + int row {}; // 表示開始位置 // パネル最下行に表示する行を、最新行からのオフセットで表す。 // 0 ならパネル最下行は最新行、1 なら一つ手前の行…となる。 - int vpos = 0; + int vpos {}; // 現在のログ行数 - int lines = 0; + int lines {}; // ログ全体の行数(上限) const int backlog = 10000; // ログバッファ - // ここは属性フィールドを持たないテキストによる循環バッファ - std::vector logbuf {}; + TextScreen logbuf {}; - // 今から書き込む行の先頭 (logbuf からのオフセット) + // 今から書き込む行の logbuf でのY座標 int cursor {}; // UTF-8 -> CP932 変換