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

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

unix.superglobalmegacorp.com

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