|
|
1.1 root 1: //
2: // nono
1.1.1.2 root 3: // Copyright (C) 2020 nono project
4: // Licensed under nono-license.txt
1.1 root 5: //
6:
7: #pragma once
8:
9: #include "wxsubwindow.h"
10:
11: //
12: // メモリダンプウィンドウ
13: //
1.1.1.3 root 14: class WXMemdumpWindow : public WXVResizeSubWindow, public IMonitor
1.1 root 15: {
1.1.1.3 root 16: using inherited = WXVResizeSubWindow;
1.1 root 17: public:
18: WXMemdumpWindow(wxWindow *parent, wxWindowID id);
1.1.1.3 root 19: virtual ~WXMemdumpWindow() override;
20:
21: nnSize GetMonitorSize() override;
22: void MonitorUpdate(TextScreen& ts) override;
1.1 root 23:
24: private:
1.1.1.3 root 25: // ウィンドウサイズ再計算
26: void DoSize() override;
27:
1.1 root 28: // テキスト入力イベント
29: void OnTextEnter(wxCommandEvent& event);
30:
31: // ページアップダウンイベント
32: void OnPrev(wxCommandEvent& event);
33: void OnNext(wxCommandEvent& event);
34:
35: // アドレス
1.1.1.4 ! root 36: wxTextCtrl *addrctrl {};
1.1 root 37: // 入力された開始アドレス
1.1.1.4 ! root 38: uint32 input_addr {};
1.1 root 39: // 前回表示時の開始アドレス
1.1.1.4 ! root 40: uint32 last_addr {};
1.1 root 41:
1.1.1.4 ! root 42: wxButton *prev_btn {};
! 43: wxButton *next_btn {};
1.1 root 44:
1.1.1.3 root 45: // コントロールパネルを格納する sizer
46: wxBoxSizer *ctrlbox {};
47:
1.1 root 48: // 論理アドレス表示か
1.1.1.4 ! root 49: bool is_logical {};
1.1 root 50:
51: // イベントテーブル
52: wxDECLARE_EVENT_TABLE();
53: };
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.