32 default:
return wxT(
"unknown column" );
60 return wxT(
"bad wxWidgets!" );
77 wxFAIL_MSG( wxString::Format( wxT(
"column %d doesn't hold a bool value" ), aCol ) );
96 rowData.
label = aValue;
100 wxFAIL_MSG( wxString::Format( wxT(
"column %d doesn't hold a string value" ), aCol ) );
103 GetView()->Refresh();
119 wxFAIL_MSG( wxString::Format( wxT(
"column %d doesn't hold a bool value" ), aCol ) );
125 bool aShow,
bool aGroupBy )
129 if( wxGrid*
grid = GetView() )
131 wxGridTableMessage msg(
this, wxGRIDTABLE_NOTIFY_ROWS_APPENDED, 1 );
132 grid->ProcessTableMessage( msg );
143 if( wxGrid*
grid = GetView() )
145 wxGridTableMessage msg(
this, wxGRIDTABLE_NOTIFY_ROWS_DELETED, aRow, 1 );
146 grid->ProcessTableMessage( msg );
153 wxCHECK( aRow >= 0 && aRow <
GetNumberRows(), wxEmptyString );
167 rowData.
name = aName;
void SetValueAsBool(int aRow, int aCol, bool aValue) override
wxString GetCanonicalFieldName(int aRow)
wxString GetColLabelValue(int aCol) override
std::vector< BOM_FIELD > m_fields
void SetValue(int aRow, int aCol, const wxString &aValue) override
int GetNumberRows() override
void AppendRow(const wxString &aFieldName, const wxString &aBOMName, bool aShow, bool aGroupBy)
bool GetValueAsBool(int aRow, int aCol) override
void SetCanonicalFieldName(int aRow, const wxString &aName)
wxString GetValue(int aRow, int aCol) override
#define DISPLAY_NAME_COLUMN
#define SHOW_FIELD_COLUMN
wxString GetDefaultFieldName(FIELD_T aFieldId, bool aTranslateForHI)
Return a default symbol field name for a mandatory field type.
FIELD_T
The set of all field indices assuming an array like sequence that a SCH_COMPONENT or LIB_PART can hol...