This repository has been archived on 2025-06-17. You can view files and clone it, but cannot push or open issues or pull requests.
RelayFile/UserInterface/LogControl.h

29 lines
552 B
C
Raw Normal View History

2025-05-08 21:13:36 +08:00
#ifndef LOGCONTROL_H
#define LOGCONTROL_H
#include "InterfaceDefine.hpp"
#include <mutex>
2025-05-08 21:13:36 +08:00
class LogControl : public wxPanel
{
public:
LogControl(wxWindow* parent);
~LogControl() override;
private:
void Init();
public:
2025-05-11 23:20:22 +08:00
void AddLog(const wxString& msg);
template <typename... Args> void AddLog(const wxString& format, Args&&... args)
{
wxString msg = wxString::Format(format, std::forward<Args>(args)...);
AddLog(msg);
}
public:
wxListBox* listBox_;
std::mutex mutex_;
2025-05-08 21:13:36 +08:00
};
#endif // LOGCONTROL_H