#ifndef LOGCONTROL_H #define LOGCONTROL_H #include "InterfaceDefine.hpp" #include class LogControl : public wxPanel { public: LogControl(wxWindow* parent); ~LogControl() override; private: void Init(); public: void AddLog(const wxString& msg); template void AddLog(const wxString& format, Args&&... args) { wxString msg = wxString::Format(format, std::forward(args)...); AddLog(msg); } public: wxListBox* listBox_; std::mutex mutex_; }; #endif // LOGCONTROL_H