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

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: // コンストラクタ
1.1.1.5 ! root       15: WXMonitorWindow::WXMonitorWindow(wxWindow *parent, const wxString& name,
        !            16:        Monitor& monitor_)
        !            17:        : inherited(parent, wxID_ANY, name)
1.1       root       18: {
1.1.1.4   root       19:        // top
                     20:        // | +----------------------------+
                     21:        // v |           上余白           |
                     22:        //   |+------+------------+------+|
                     23:        //   ||左余白| TextScreen |右余白||
                     24:        //   |+------+------------+------+|
                     25:        //   |           下余白           |
                     26:        //   +----------------------------+
1.1       root       27: 
1.1.1.2   root       28:        wxBoxSizer *topsizer = new wxBoxSizer(wxVERTICAL);
                     29: 
1.1.1.4   root       30:        // 上余白
                     31:        topsizer->Add(new WXPaddingPanel(this), 0, wxEXPAND);
                     32: 
                     33:        // 中段(横sizer)
                     34:        wxBoxSizer *hbox = new wxBoxSizer(wxHORIZONTAL);
                     35:        topsizer->Add(hbox, 0, wxEXPAND);
                     36: 
                     37:        // 左余白
                     38:        hbox->Add(new WXPaddingPanel(this), 0, wxEXPAND);
                     39: 
1.1       root       40:        // テキストスクリーン
1.1.1.3   root       41:        screen = new WXTextScreen(this, monitor_);
1.1.1.4   root       42:        hbox->Add(screen, 0, wxEXPAND);
                     43: 
                     44:        // 右余白
                     45:        hbox->Add(new WXPaddingPanel(this), 0, wxEXPAND);
                     46: 
                     47:        // 下余白
                     48:        topsizer->Add(new WXPaddingPanel(this), 0, wxEXPAND);
1.1.1.2   root       49: 
                     50:        SetSizer(topsizer);
1.1       root       51: 
                     52:        // 大きさをそれに固定
                     53:        Fit();
                     54: }
                     55: 
                     56: // デストラクタ
                     57: WXMonitorWindow::~WXMonitorWindow()
                     58: {
                     59: }

unix.superglobalmegacorp.com

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