Annotation of nono/wx/wxlogmonitor.h, revision 1.1.1.12

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: 
1.1.1.7   root        7: //
                      8: // ログモニター
                      9: //
                     10: 
1.1       root       11: #pragma once
                     12: 
                     13: #include "wxsubwindow.h"
1.1.1.7   root       14: #include "wxscrollbar.h"
1.1.1.8   root       15: #include "wxmonitor.h"
1.1       root       16: 
1.1.1.7   root       17: class Logger;
1.1.1.6   root       18: class WXLogMonitor;
                     19: 
                     20: // モニター部分
1.1.1.12! root       21: class LogMonitorPanel : public WXMonitorPanel
1.1.1.6   root       22: {
1.1.1.12! root       23:        using inherited = WXMonitorPanel;
1.1.1.6   root       24:  public:
1.1.1.12! root       25:        LogMonitorPanel(WXLogMonitor *parent_, Monitor *monitor_);
        !            26:        ~LogMonitorPanel() override;
1.1.1.6   root       27: 
1.1.1.12! root       28:        void DoRefresh() override;
1.1.1.6   root       29: 
                     30:  private:
                     31:        WXLogMonitor *parent {};
                     32: };
                     33: 
                     34: // ログウィンドウ
1.1.1.8   root       35: class WXLogMonitor : public WXSubWindow
1.1       root       36: {
1.1.1.8   root       37:        using inherited = WXSubWindow;
1.1.1.6   root       38:        friend class LogMonitor;
1.1       root       39: 
                     40:  public:
1.1.1.9   root       41:        explicit WXLogMonitor(wxWindow *);
                     42:        ~WXLogMonitor() override;
1.1       root       43: 
1.1.1.11  root       44:        void FontChanged() override;
1.1.1.8   root       45:        bool Layout() override;
                     46: 
1.1.1.12! root       47:        // スクロールバー再設定
        !            48:        void SetScroll();
1.1.1.11  root       49: 
1.1.1.12! root       50:  private:
        !            51:        bool GetMySizeHints(wxSize *, wxSize *, wxSize *, wxSize *) override;
1.1       root       52: 
1.1.1.3   root       53:        // マウスホイールイベント
                     54:        void OnMouseWheel(wxMouseEvent&);
                     55: 
                     56:        // スクロールイベント
                     57:        void OnScroll(wxScrollEvent&);
                     58: 
                     59:        // スクロール処理
                     60:        void DoScroll(int pos);
                     61: 
1.1.1.12! root       62:        LogMonitorPanel *screen {};
1.1.1.8   root       63: 
1.1.1.3   root       64:        // スクロールバー
1.1.1.7   root       65:        WXScrollBar *vscroll {};
1.1       root       66: 
1.1.1.12! root       67:        Logger *logger {};
1.1       root       68: };

unix.superglobalmegacorp.com

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