RelayFile/UserInterface/UserInterface.cxx

31 lines
658 B
C++
Raw Normal View History

2025-05-05 23:22:43 +08:00
#include "UserInterface.h"
2025-05-08 21:13:36 +08:00
UserInterface::UserInterface(const wxString& title) : wxFrame(nullptr, wxID_ANY, title, wxDefaultPosition, wxSize(800, 600))
{
2025-05-08 21:44:16 +08:00
mgr_.SetManagedWindow(this);
InitUI();
InitData();
2025-05-08 21:13:36 +08:00
}
2025-05-05 23:22:43 +08:00
UserInterface::~UserInterface()
{
2025-05-08 21:44:16 +08:00
mgr_.UnInit();
2025-05-08 21:13:36 +08:00
}
void UserInterface::InitUI()
{
2025-05-08 21:44:16 +08:00
// Add Panel
controlMgr_ = std::make_shared<ControlManager>(this);
controlMgr_->Init();
2025-05-08 21:13:36 +08:00
2025-05-08 21:44:16 +08:00
mgr_.AddPane(controlMgr_->header_, wxAuiPaneInfo().Name("header").Caption("header"));
mgr_.AddPane(controlMgr_->local_, wxAuiPaneInfo().Name("local").Caption("local"));
// update
mgr_.Update();
2025-05-08 21:13:36 +08:00
}
void UserInterface::InitData()
{
}