Annotation of nono/wx/wxhistmonitor.h, revision 1.1.1.3

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: //
                     13: // 履歴モニタ (共通部分)
                     14: //
                     15: class WXHistoryMonitor : public WXVResizeSubWindow
                     16: {
                     17:        using inherited = WXVResizeSubWindow;
                     18:  public:
                     19:        WXHistoryMonitor(wxWindow *parent, wxWindowID id,
                     20:                const wxString& name, IMonitor& monitor);
                     21:        virtual ~WXHistoryMonitor() override;
                     22: 
                     23:  protected:
                     24:        // 例外履歴かどうかのフラグ
                     25:        uint64 exflag {};
                     26: 
                     27:  private:
                     28:        // ウィンドウサイズ再計算
                     29:        void DoSize() override;
                     30: 
                     31:        // サイズ変更イベント
                     32:        void OnSize(wxSizeEvent& event);
                     33: 
                     34:        // マウスホイールイベント
                     35:        void OnMouseWheel(wxMouseEvent&);
                     36: 
                     37:        // スクロールイベント
                     38:        void OnScroll(wxScrollEvent& event);
                     39: 
                     40:        // スクロール処理
                     41:        void DoScroll(int pos);
                     42: 
                     43:        // スクロールバー
1.1.1.2   root       44:        wxScrollBar *vscroll {};
1.1       root       45: 
                     46:        // イベントテーブル
                     47:        wxDECLARE_EVENT_TABLE();
                     48: };
                     49: 
                     50: //
                     51: // ブランチ履歴モニタ
                     52: //
                     53: class WXBranchHistoryMonitor : public WXHistoryMonitor
                     54: {
                     55:        using inherited = WXHistoryMonitor;
                     56:  public:
                     57:        WXBranchHistoryMonitor(wxWindow *parent, wxWindowID id,
                     58:                IMonitor& monitor);
1.1.1.3 ! root       59:        virtual ~WXBranchHistoryMonitor() override;
1.1       root       60: };
                     61: 
                     62: //
                     63: // 例外履歴モニタ
                     64: //
                     65: class WXExceptionHistoryMonitor : public WXHistoryMonitor
                     66: {
                     67:        using inherited = WXHistoryMonitor;
                     68:  public:
                     69:        WXExceptionHistoryMonitor(wxWindow *parent, wxWindowID id,
                     70:                IMonitor& monitor);
1.1.1.3 ! root       71:        virtual ~WXExceptionHistoryMonitor() override;
1.1       root       72: };

unix.superglobalmegacorp.com

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