42 m_dataGrid->SetColLabelValue( 0,
_(
"Rule type" ) );
43 m_dataGrid->SetColLabelValue( 1,
_(
"Rule name" ) );
48 for(
size_t i = 0; i <
m_rows.size(); ++i )
50 m_dataGrid->SetCellValue( i, 0, m_rows[i].m_ruleType );
51 m_dataGrid->SetCellValue( i, 1, m_rows[i].m_ruleName );
52 m_dataGrid->SetCellValue( i, 2, m_rows[i].m_comment );
78 wxSize clientSize = GetClientSize();
79 int availableWidth = clientSize.GetWidth() - wxSystemSettings::GetMetric( wxSYS_VSCROLL_X );
80 int availableHeight = clientSize.GetHeight() - wxSystemSettings::GetMetric( wxSYS_HSCROLL_Y );
82 m_dataGrid->SetSize( wxSize( availableWidth, availableHeight ) );
84 double col0_width_ratio =
m_dataGrid->GetColSize( 0 ) / total_column_width;
85 double col1_width_ratio =
m_dataGrid->GetColSize( 1 ) / total_column_width;
86 int col0_size =
static_cast<int>( availableWidth * col0_width_ratio );
87 int col1_size =
static_cast<int>( availableWidth * col1_width_ratio );
88 int col2_size = availableWidth - col0_size - col1_size;