Annotation of nono/wx/wxmonitor.cpp, revision 1.1.1.3

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: #include "wxmonitor.h"
                      8: #include "wxtextscreen.h"
                      9: 
                     10: //
                     11: // モニターウィンドウ
                     12: //
                     13: 
                     14: // コンストラクタ
                     15: WXMonitorWindow::WXMonitorWindow(wxWindow *parent, wxWindowID id,
1.1.1.3 ! root       16:        const wxString& name, IMonitor& monitor_)
1.1       root       17:        : inherited(parent, id, name)
                     18: {
1.1.1.3 ! root       19:        // ↓+------------------+
        !            20:        //   |     上余白       |
        !            21:        //   |左+------------+右|
        !            22:        //   |余| TextScreen |余|
        !            23:        //   |白+------------+白|
        !            24:        //   |     下余白       |
        !            25:        //   +------------------+
1.1       root       26: 
1.1.1.2   root       27:        wxBoxSizer *topsizer = new wxBoxSizer(wxVERTICAL);
                     28: 
1.1       root       29:        // テキストスクリーン
1.1.1.3 ! root       30:        screen = new WXTextScreen(this, monitor_);
        !            31:        topsizer->Add(screen, 0, wxEXPAND | wxALL, DefaultPadding);
1.1.1.2   root       32: 
                     33:        SetSizer(topsizer);
1.1       root       34: 
                     35:        // 大きさをそれに固定
                     36:        Layout();
                     37:        Fit();
                     38: }
                     39: 
                     40: // デストラクタ
                     41: WXMonitorWindow::~WXMonitorWindow()
                     42: {
                     43: }

unix.superglobalmegacorp.com

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