RelayFile/UserInterface/RemoteControl.cxx

37 lines
822 B
C++
Raw Normal View History

2025-05-08 21:13:36 +08:00
#include "RemoteControl.h"
2025-05-08 21:44:16 +08:00
RemoteControl::RemoteControl(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
}
RemoteControl::~RemoteControl()
{
}
2025-05-09 22:31:51 +08:00
void RemoteControl::Init()
{
grid_ = new wxGrid(this, wxID_ANY);
auto* topSizer = new wxBoxSizer(wxVERTICAL);
topSizer->Add(grid_, 1, wxEXPAND);
SetSizer(topSizer);
Layout();
}
void RemoteControl::SetGrid()
{
grid_->CreateGrid(10, 5);
grid_->SetColLabelValue(0, _("FullPath"));
grid_->SetColLabelValue(1, _("FileSize"));
grid_->SetColLabelValue(2, _("FileType"));
grid_->SetColLabelValue(3, _("LastModified"));
grid_->SetColLabelValue(4, _("Permissions"));
grid_->SetColSize(0, 200);
grid_->SetColSize(1, 100);
grid_->SetColSize(2, 100);
grid_->SetColSize(3, 150);
grid_->SetColSize(4, 100);
}