Vertically center combo cells in symbol fields grid.
This commit is contained in:
parent
1decd31baf
commit
6b68d2c946
|
@ -249,7 +249,7 @@ void FIELDS_GRID_TABLE<T>::initGrid( WX_GRID* aGrid )
|
||||||
vAlignNames.Add( _( "Bottom" ) );
|
vAlignNames.Add( _( "Bottom" ) );
|
||||||
m_vAlignAttr = new wxGridCellAttr;
|
m_vAlignAttr = new wxGridCellAttr;
|
||||||
m_vAlignAttr->SetEditor( new wxGridCellChoiceEditor( vAlignNames ) );
|
m_vAlignAttr->SetEditor( new wxGridCellChoiceEditor( vAlignNames ) );
|
||||||
m_vAlignAttr->SetAlignment( wxALIGN_CENTER, wxALIGN_BOTTOM );
|
m_vAlignAttr->SetAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
|
||||||
|
|
||||||
wxArrayString hAlignNames;
|
wxArrayString hAlignNames;
|
||||||
hAlignNames.Add( _( "Left" ) );
|
hAlignNames.Add( _( "Left" ) );
|
||||||
|
@ -257,14 +257,14 @@ void FIELDS_GRID_TABLE<T>::initGrid( WX_GRID* aGrid )
|
||||||
hAlignNames.Add(_( "Right" ) );
|
hAlignNames.Add(_( "Right" ) );
|
||||||
m_hAlignAttr = new wxGridCellAttr;
|
m_hAlignAttr = new wxGridCellAttr;
|
||||||
m_hAlignAttr->SetEditor( new wxGridCellChoiceEditor( hAlignNames ) );
|
m_hAlignAttr->SetEditor( new wxGridCellChoiceEditor( hAlignNames ) );
|
||||||
m_hAlignAttr->SetAlignment( wxALIGN_CENTER, wxALIGN_BOTTOM );
|
m_hAlignAttr->SetAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
|
||||||
|
|
||||||
wxArrayString orientationNames;
|
wxArrayString orientationNames;
|
||||||
orientationNames.Add( _( "Horizontal" ) );
|
orientationNames.Add( _( "Horizontal" ) );
|
||||||
orientationNames.Add(_( "Vertical" ) );
|
orientationNames.Add(_( "Vertical" ) );
|
||||||
m_orientationAttr = new wxGridCellAttr;
|
m_orientationAttr = new wxGridCellAttr;
|
||||||
m_orientationAttr->SetEditor( new wxGridCellChoiceEditor( orientationNames ) );
|
m_orientationAttr->SetEditor( new wxGridCellChoiceEditor( orientationNames ) );
|
||||||
m_orientationAttr->SetAlignment( wxALIGN_CENTER, wxALIGN_BOTTOM );
|
m_orientationAttr->SetAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
|
||||||
|
|
||||||
SCH_EDIT_FRAME* editFrame = dynamic_cast<SCH_EDIT_FRAME*>( m_frame );
|
SCH_EDIT_FRAME* editFrame = dynamic_cast<SCH_EDIT_FRAME*>( m_frame );
|
||||||
wxArrayString existingNetclasses;
|
wxArrayString existingNetclasses;
|
||||||
|
|
Loading…
Reference in New Issue