Annotation of nono/wx/wxmpumonitor.h, revision 1.1

1.1     ! root        1: //
        !             2: // nono
        !             3: // Copyright (C) 2020 nono project
        !             4: // Licensed under nono-license.txt
        !             5: //
        !             6: 
        !             7: #pragma once
        !             8: 
        !             9: #include "wxsubwindow.h"
        !            10: #include "wxtextscreen.h"
        !            11: 
        !            12: class m88200;
        !            13: class WXCacheWindow;
        !            14: 
        !            15: //
        !            16: // CMMU キャッシュウィンドウ用のパネル
        !            17: //
        !            18: class WXCacheTextScreen : public WXTextScreen
        !            19: {
        !            20:        using inherited = WXTextScreen;
        !            21:  public:
        !            22:        WXCacheTextScreen(wxWindow *, int col, int row, const uint16 *textbuf);
        !            23:        virtual ~WXCacheTextScreen();
        !            24: 
        !            25:  private:
        !            26:        // 親クラス
        !            27:        WXCacheWindow *parentwindow;
        !            28: 
        !            29:        // マウスイベント
        !            30:        void OnLeftDown(wxMouseEvent& event);
        !            31: 
        !            32:        // イベントテーブル
        !            33:        wxDECLARE_EVENT_TABLE();
        !            34: };
        !            35: 
        !            36: //
        !            37: // CMMU キャッシュウィンドウ
        !            38: //
        !            39: class WXCacheWindow : public WXSubWindow
        !            40: {
        !            41:        using inherited = WXSubWindow;
        !            42:  public:
        !            43:        WXCacheWindow(wxWindow *, wxWindowID, const wxString& name, m88200 *cmmu);
        !            44:        virtual ~WXCacheWindow();
        !            45: 
        !            46:        // フォントサイズ変更
        !            47:        virtual void SetFontSize(fontsize_t fontsize);
        !            48: 
        !            49:        // 右クリック処理
        !            50:        void DoLeftDown(int x, int y);
        !            51: 
        !            52:  private:
        !            53:        // タイマーイベント
        !            54:        void OnTimer(wxTimerEvent& event);
        !            55: 
        !            56:        // テキストスクリーン
        !            57:        int col = 0;
        !            58:        int row = 0;
        !            59:        TextScreen monitor;
        !            60:        // テキストスクリーンコントロール
        !            61:        WXCacheTextScreen *screen = NULL;
        !            62: 
        !            63:        // 現在表示中のセット
        !            64:        uint setidx {};
        !            65: 
        !            66:        // CMMU
        !            67:        m88200 *cmmu {};
        !            68: 
        !            69:        // タイマー
        !            70:        wxTimer timer {};
        !            71: 
        !            72:        // イベントテーブル
        !            73:        wxDECLARE_EVENT_TABLE();
        !            74: };

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.