Add tables to eeItem test.

This commit is contained in:
Jeff Young 2024-02-25 21:08:23 +00:00
parent 96ea1f6f89
commit 532645c9b0
1 changed files with 14 additions and 0 deletions

View File

@ -38,6 +38,8 @@
#include <sch_bitmap.h>
#include <sch_text.h>
#include <sch_textbox.h>
#include <sch_table.h>
#include <sch_tablecell.h>
#include <sch_field.h>
#include <sch_symbol.h>
#include <sch_sheet_pin.h>
@ -88,6 +90,18 @@ public:
case SCH_BITMAP_T: return new SCH_BITMAP();
case SCH_TEXT_T: return new SCH_TEXT( VECTOR2I( 0, 0 ), "test text" );
case SCH_TEXTBOX_T: return new SCH_TEXTBOX( 0, FILL_T::NO_FILL, "test textbox" );
case SCH_TABLECELL_T: return new SCH_TABLECELL();
case SCH_TABLE_T:
{
SCH_TABLE* table = new SCH_TABLE( schIUScale.mmToIU( 0.1 ) );
table->SetColCount( 2 );
for( int ii = 0; ii < 4; ++ii )
table->InsertCell( ii, new SCH_TABLECELL() );
return table;
}
case SCH_LABEL_T: return new SCH_LABEL( VECTOR2I( 0, 0 ), "test label" );
case SCH_DIRECTIVE_LABEL_T: return new SCH_DIRECTIVE_LABEL( VECTOR2I( 0, 0 ) );
case SCH_GLOBAL_LABEL_T: return new SCH_GLOBALLABEL();