36 lines
806 B
C++
36 lines
806 B
C++
#include "TaskControl.h"
|
|
|
|
TaskControl::TaskControl(wxWindow* parent) : wxPanel(parent)
|
|
{
|
|
Init();
|
|
SetGrid();
|
|
}
|
|
|
|
TaskControl::~TaskControl()
|
|
{
|
|
}
|
|
|
|
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"));
|
|
|
|
grid_->SetColSize(0, 100);
|
|
grid_->SetColSize(1, 200);
|
|
grid_->SetColSize(2, 100);
|
|
grid_->SetColSize(3, 200);
|
|
grid_->SetColSize(4, 100);
|
|
} |