Annotation of nono/wx/wxlogsetting.h, revision 1.1.1.2

1.1       root        1: //
                      2: // nono
                      3: // Copyright (C) 2022 nono project
                      4: // Licensed under nono-license.txt
                      5: //
                      6: 
                      7: //
                      8: // ログレベル設定ウィンドウ
                      9: //
                     10: 
                     11: #pragma once
                     12: 
                     13: #include "wxtextpanel.h"
                     14: #include "wxsubwindow.h"
                     15: 
1.1.1.2 ! root       16: class WXButton;
        !            17: 
1.1       root       18: class WXLogSettingPanel : public WXTextPanel
                     19: {
                     20:        using inherited = WXTextPanel;
                     21: 
                     22:        static const int Padding = 3;
                     23: 
                     24:  public:
                     25:        WXLogSettingPanel(wxWindow *parent);
                     26:        ~WXLogSettingPanel() override;
                     27: 
1.1.1.2 ! root       28:        bool Layout() override;
        !            29:        void FontChanged() override;
        !            30:        void Draw() override;
1.1       root       31: 
                     32:  private:
                     33:        inline int Col2PX(int col) const;
                     34:        inline int Row2PY(int row) const;
                     35: 
1.1.1.2 ! root       36:        void OnButton(wxCommandEvent&);
1.1       root       37: 
                     38:        std::vector<Object *> objs {};
                     39: 
1.1.1.2 ! root       40:        // ボタン
        !            41:        std::vector<WXButton *> buttons {};
1.1       root       42: 
1.1.1.2 ! root       43:        int maxnamelen {};
1.1       root       44: };
                     45: 
                     46: class WXLogSettingWindow : public WXSubWindow
                     47: {
                     48:        using inherited = WXSubWindow;
                     49: 
                     50:  public:
                     51:        WXLogSettingWindow(wxWindow *);
                     52:        ~WXLogSettingWindow() override;
                     53: 
                     54:  private:
                     55:        WXLogSettingPanel *panel {};
                     56: };

unix.superglobalmegacorp.com

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