|
|
1.1 root 1: //
2: // nono
3: // Copyright (C) 2020 nono project
4: // Licensed under nono-license.txt
5: //
6:
1.1.1.5 ! root 7: //
! 8: // 履歴モニタ
! 9: //
! 10:
1.1 root 11: #pragma once
12:
13: #include "wxsubwindow.h"
1.1.1.5 ! root 14: #include "wxscrollbar.h"
! 15: #include "monitor.h"
1.1 root 16:
1.1.1.5 ! root 17: // 履歴モニタ (共通部)
1.1 root 18: class WXHistoryMonitor : public WXVResizeSubWindow
19: {
20: using inherited = WXVResizeSubWindow;
21: public:
1.1.1.4 root 22: WXHistoryMonitor(wxWindow *parent, const wxString& name, Monitor& monitor);
1.1 root 23: virtual ~WXHistoryMonitor() override;
24:
25: private:
26: // サイズ変更イベント
27: void OnSize(wxSizeEvent& event);
28:
29: // マウスホイールイベント
30: void OnMouseWheel(wxMouseEvent&);
31:
32: // スクロールイベント
33: void OnScroll(wxScrollEvent& event);
34:
35: // スクロール処理
36: void DoScroll(int pos);
37:
38: // スクロールバー
1.1.1.5 ! root 39: WXScrollBar *vscroll {};
1.1 root 40:
41: // イベントテーブル
42: wxDECLARE_EVENT_TABLE();
43: };
44:
45: // ブランチ履歴モニタ
46: class WXBranchHistoryMonitor : public WXHistoryMonitor
47: {
48: using inherited = WXHistoryMonitor;
49: public:
1.1.1.4 root 50: WXBranchHistoryMonitor(wxWindow *parent, Monitor& monitor);
1.1.1.3 root 51: virtual ~WXBranchHistoryMonitor() override;
1.1 root 52: };
53:
54: // 例外履歴モニタ
55: class WXExceptionHistoryMonitor : public WXHistoryMonitor
56: {
57: using inherited = WXHistoryMonitor;
58: public:
1.1.1.4 root 59: WXExceptionHistoryMonitor(wxWindow *parent, Monitor& monitor);
1.1.1.3 root 60: virtual ~WXExceptionHistoryMonitor() override;
1.1 root 61: };
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.