Add tables to eeItem test.
This commit is contained in:
parent
96ea1f6f89
commit
532645c9b0
|
@ -38,6 +38,8 @@
|
||||||
#include <sch_bitmap.h>
|
#include <sch_bitmap.h>
|
||||||
#include <sch_text.h>
|
#include <sch_text.h>
|
||||||
#include <sch_textbox.h>
|
#include <sch_textbox.h>
|
||||||
|
#include <sch_table.h>
|
||||||
|
#include <sch_tablecell.h>
|
||||||
#include <sch_field.h>
|
#include <sch_field.h>
|
||||||
#include <sch_symbol.h>
|
#include <sch_symbol.h>
|
||||||
#include <sch_sheet_pin.h>
|
#include <sch_sheet_pin.h>
|
||||||
|
@ -88,6 +90,18 @@ public:
|
||||||
case SCH_BITMAP_T: return new SCH_BITMAP();
|
case SCH_BITMAP_T: return new SCH_BITMAP();
|
||||||
case SCH_TEXT_T: return new SCH_TEXT( VECTOR2I( 0, 0 ), "test text" );
|
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_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_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_DIRECTIVE_LABEL_T: return new SCH_DIRECTIVE_LABEL( VECTOR2I( 0, 0 ) );
|
||||||
case SCH_GLOBAL_LABEL_T: return new SCH_GLOBALLABEL();
|
case SCH_GLOBAL_LABEL_T: return new SCH_GLOBALLABEL();
|
||||||
|
|
Loading…
Reference in New Issue