RelayFile/UserInterface/TaskControl.cxx

30 lines
650 B
C++
Raw Normal View History

2025-05-08 21:13:36 +08:00
#include "TaskControl.h"
2025-05-08 21:44:16 +08:00
TaskControl::TaskControl(wxWindow* parent) : wxPanel(parent)
2025-05-08 21:13:36 +08:00
{
2025-05-09 22:31:51 +08:00
Init();
SetGrid();
2025-05-08 21:13:36 +08:00
}
TaskControl::~TaskControl()
{
}
2025-05-09 22:31:51 +08:00
void TaskControl::Init()
{
grid_ = new wxGrid(this, wxID_ANY);
auto* topSizer = new wxBoxSizer(wxVERTICAL);
topSizer->Add(grid_, 1, wxEXPAND);
SetSizer(topSizer);
Layout();
}
void TaskControl::SetGrid()
{
grid_->CreateGrid(10, 5);
grid_->SetColLabelValue(0, _("id"));
grid_->SetColLabelValue(1, _("LocalPurpose"));
grid_->SetColLabelValue(2, _("LocalType"));
grid_->SetColLabelValue(3, _("RemtoePurpose"));
grid_->SetColLabelValue(4, _("RemtoeType"));
}