31 lines
658 B
C++
31 lines
658 B
C++
#include "UserInterface.h"
|
|
|
|
UserInterface::UserInterface(const wxString& title) : wxFrame(nullptr, wxID_ANY, title, wxDefaultPosition, wxSize(800, 600))
|
|
{
|
|
mgr_.SetManagedWindow(this);
|
|
InitUI();
|
|
InitData();
|
|
}
|
|
|
|
UserInterface::~UserInterface()
|
|
{
|
|
mgr_.UnInit();
|
|
}
|
|
|
|
void UserInterface::InitUI()
|
|
{
|
|
// Add Panel
|
|
controlMgr_ = std::make_shared<ControlManager>(this);
|
|
controlMgr_->Init();
|
|
|
|
mgr_.AddPane(controlMgr_->header_, wxAuiPaneInfo().Name("header").Caption("header"));
|
|
mgr_.AddPane(controlMgr_->local_, wxAuiPaneInfo().Name("local").Caption("local"));
|
|
|
|
// update
|
|
mgr_.Update();
|
|
}
|
|
|
|
void UserInterface::InitData()
|
|
{
|
|
}
|