|
|
1.1 ! root 1: // ! 2: // nono ! 3: // Copyright (C) 2018 [email protected] ! 4: // ! 5: ! 6: #pragma once ! 7: ! 8: #include "wxsubwindow.h" ! 9: #include "wxtextscreen.h" ! 10: ! 11: class WXLogMonitor : public WXSubWindow ! 12: { ! 13: typedef WXSubWindow inherited; ! 14: ! 15: public: ! 16: WXLogMonitor(wxWindow *, wxWindowID); ! 17: virtual ~WXLogMonitor(); ! 18: ! 19: virtual void SetFontSize(fontsize_t fontsize); ! 20: ! 21: private: ! 22: void OnTimer(wxTimerEvent& event); ! 23: ! 24: void Append(const char *); ! 25: ! 26: // テキストスクリーンコントロール ! 27: WXTextScreen *screen = NULL; ! 28: ! 29: // テキストスクリーン ! 30: TextScreen text; ! 31: ! 32: int col = 0; ! 33: int row = 0; ! 34: ! 35: // ログバッファ ! 36: // ここは属性フィールドを持たないテキストによる循環バッファ ! 37: uint8 *logbuf = NULL; ! 38: ! 39: // 書き込み位置 ! 40: int target = 0; ! 41: ! 42: // UTF-8 -> CP932 変換 ! 43: wxCSConv conv { "CP932" }; ! 44: ! 45: wxTimer timer; ! 46: ! 47: // イベントテーブル ! 48: wxDECLARE_EVENT_TABLE(); ! 49: };
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.