|
|
1.1 ! root 1: // ! 2: // nono ! 3: // Copyright (C) 2018 [email protected] ! 4: // ! 5: ! 6: #pragma once ! 7: ! 8: #include "header.h" ! 9: #include "object.h" ! 10: ! 11: #if defined(__clang__) ! 12: // wx のシステムヘッダ内で警告出られてもどうしようもないのでワーニング抑制 ! 13: #pragma clang diagnostic push ! 14: #pragma clang diagnostic ignored "-Wshadow" ! 15: #pragma clang diagnostic ignored "-Wpotentially-evaluated-expression" ! 16: #endif ! 17: ! 18: #include <wx/wxprec.h> ! 19: #ifndef WX_PRECOMP ! 20: #include <wx/wx.h> ! 21: #endif ! 22: ! 23: #if defined(__clang__) ! 24: // ワーニング抑制ここまで ! 25: #pragma clang diagnostic pop ! 26: #endif ! 27: ! 28: // 独自のイベントタイプ ! 29: DECLARE_EVENT_TYPE(WXW_EVT_CREATE, -1); ! 30: DECLARE_EVENT_TYPE(WXW_EVT_MONITOR_UPDATE, -2); ! 31: ! 32: // OnCreate イベントがあるかのように扱う ! 33: // イベント登録 ! 34: #define EVT_CREATE(func) EVT_COMMAND(wxID_ANY, WXW_EVT_CREATE, func) ! 35: // OnCreate イベントを使う場合コンストラクタでコールしておく ! 36: #define POST_CREATE() do { \ ! 37: wxCommandEvent *event = new wxCommandEvent(WXW_EVT_CREATE); \ ! 38: QueueEvent(event); \ ! 39: } while (0) ! 40: ! 41: // フォント種別というかフォントサイズ。 ! 42: // ここでのフォントは大きさだけにフォーカスを当てているので ! 43: // 6x12 と 6x10 のような微小な違いや、フェイスの違いは持ち込まない。 ! 44: enum fontsize_t { ! 45: FONT_6x12 = 0, ! 46: FONT_8x16, ! 47: FONT_12x24, ! 48: FONT_MAX, ! 49: FONT_NONE = -1, ! 50: }; ! 51: ! 52: class WXMainFrame; ! 53: class WXMainView; ! 54: class WXTextScreen;
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.