mirror of
https://github.com/KLayout/klayout.git
synced 2026-08-30 01:39:30 +02:00
WIP: consistent naming of some predicates in Ruby with ?, unit tests for reader option bindings.
This commit is contained in:
@@ -415,7 +415,7 @@ gsi::ClassExt<db::LoadLayoutOptions> dxf_reader_options (
|
||||
"@args value\n"
|
||||
"\nThis property has been added in version 0.21.15.\n"
|
||||
) +
|
||||
gsi::method_ext ("dxf_render_texts_as_polygons", &get_dxf_render_texts_as_polygons,
|
||||
gsi::method_ext ("dxf_render_texts_as_polygons?|#dxf_render_texts_as_polygons", &get_dxf_render_texts_as_polygons,
|
||||
"@brief If this option is true, text objects are rendered as polygons\n"
|
||||
"\nThis property has been added in version 0.21.15.\n"
|
||||
) +
|
||||
@@ -442,7 +442,7 @@ gsi::ClassExt<db::LoadLayoutOptions> dxf_reader_options (
|
||||
"@args value\n"
|
||||
"\nThis property has been added in version 0.21.15.\n"
|
||||
) +
|
||||
gsi::method_ext ("dxf_keep_other_cells", &get_dxf_keep_other_cells,
|
||||
gsi::method_ext ("dxf_keep_other_cells?|#dxf_keep_other_cells", &get_dxf_keep_other_cells,
|
||||
"@brief If this option is true, all cells are kept, not only the top cell and it's children\n"
|
||||
"\nThis property has been added in version 0.21.15.\n"
|
||||
) +
|
||||
|
||||
@@ -166,7 +166,7 @@ gsi::ClassExt<db::LoadLayoutOptions> gds2_reader_options (
|
||||
"For strict compatibility with the standard, this property should be set to false. The default is true.\n"
|
||||
"\nThis property has been added in version 0.18.\n"
|
||||
) +
|
||||
gsi::method_ext ("gds2_allow_multi_xy_records", &get_gds2_allow_multi_xy_records,
|
||||
gsi::method_ext ("gds2_allow_multi_xy_records?|#gds2_allow_multi_xy_records", &get_gds2_allow_multi_xy_records,
|
||||
"@brief Gets a value specifying whether to allow big polygons with multiple XY records.\n"
|
||||
"See \\gds2_allow_multi_xy_records= method for a description of this property."
|
||||
"\nThis property has been added in version 0.18.\n"
|
||||
@@ -179,7 +179,7 @@ gsi::ClassExt<db::LoadLayoutOptions> gds2_reader_options (
|
||||
"For strict compatibility with the standard, this property should be set to false. The default is true.\n"
|
||||
"\nThis property has been added in version 0.18.\n"
|
||||
) +
|
||||
gsi::method_ext ("gds2_allow_big_records", &get_gds2_allow_big_records,
|
||||
gsi::method_ext ("gds2_allow_big_records?|#gds2_allow_big_records", &get_gds2_allow_big_records,
|
||||
"@brief Gets a value specifying whether to allow big records with a length of 32768 to 65535 bytes.\n"
|
||||
"See \\gds2_allow_big_records= method for a description of this property."
|
||||
"\nThis property has been added in version 0.18.\n"
|
||||
|
||||
@@ -1363,6 +1363,7 @@ LayerPropertiesList::append (const LayerPropertiesList &other)
|
||||
std::map <unsigned int, unsigned int> index_map;
|
||||
dp.merge (dither_pattern (), index_map);
|
||||
|
||||
// remap the dither pattern index
|
||||
for (lay::LayerPropertiesIterator l = begin_recursive (); l != end_recursive (); ++l) {
|
||||
int dpi = l->dither_pattern (false /*local*/);
|
||||
std::map <unsigned int, unsigned int>::iterator m = index_map.find ((unsigned int) dpi);
|
||||
@@ -1380,7 +1381,7 @@ LayerPropertiesList::append (const LayerPropertiesList &other)
|
||||
std::map <unsigned int, unsigned int> index_map;
|
||||
ls.merge (line_styles (), index_map);
|
||||
|
||||
// remap the dither pattern index
|
||||
// remap the line style index
|
||||
for (lay::LayerPropertiesIterator l = begin_recursive (); l != end_recursive (); ++l) {
|
||||
int lsi = l->line_style (false /*local*/);
|
||||
std::map <unsigned int, unsigned int>::iterator m = index_map.find ((unsigned int) lsi);
|
||||
|
||||
Reference in New Issue
Block a user