Symbol Fields Table: fix Qty column
Really need to refactor these strings out of everything...
This commit is contained in:
parent
106747a03b
commit
bb7d55e5a4
|
@ -341,7 +341,7 @@ void DIALOG_SYMBOL_FIELDS_TABLE::SetupColumnProperties()
|
|||
attr->SetEditor( new GRID_CELL_URL_EDITOR( this, Prj().SchSearchS() ) );
|
||||
m_grid->SetColAttr( col, attr );
|
||||
}
|
||||
else if( m_dataModel->GetColFieldName( col ) == _( "Qty" ) )
|
||||
else if( m_dataModel->GetColFieldName( col ) == _( "Quantity" ) )
|
||||
{
|
||||
attr->SetReadOnly();
|
||||
m_grid->SetColAttr( col, attr );
|
||||
|
@ -540,7 +540,7 @@ void DIALOG_SYMBOL_FIELDS_TABLE::LoadFieldNames()
|
|||
AddField( _( "Value" ), wxT( "Value" ), true, true );
|
||||
AddField( _( "Footprint" ), wxT( "Footprint" ), true, true );
|
||||
AddField( _( "Datasheet" ), wxT( "Datasheet" ), true, false );
|
||||
AddField( _( "Quantity" ), wxT( "Qty" ), true, false );
|
||||
AddField( _( "Quantity" ), wxT( "Qty" ), true, false );
|
||||
|
||||
for( const wxString& fieldName : userFieldNames )
|
||||
AddField( fieldName, fieldName, true, false );
|
||||
|
|
|
@ -492,7 +492,7 @@ void FIELDS_EDITOR_GRID_DATA_MODEL::ApplyData()
|
|||
|
||||
for( const std::pair<wxString, wxString> srcData : fieldStore )
|
||||
{
|
||||
if( srcData.first == _( "Qty" ) )
|
||||
if( srcData.first == _( "Quantity" ) )
|
||||
continue;
|
||||
|
||||
const wxString& srcName = srcData.first;
|
||||
|
|
|
@ -128,7 +128,7 @@ public:
|
|||
bool ColIsQuantity( int aCol )
|
||||
{
|
||||
wxCHECK( aCol >= 0 && aCol < (int) m_cols.size(), false );
|
||||
return m_cols[aCol].m_fieldName == _( "Qty" );
|
||||
return m_cols[aCol].m_fieldName == _( "Quantity" );
|
||||
}
|
||||
|
||||
void SetSorting( int aCol, bool ascending )
|
||||
|
|
Loading…
Reference in New Issue