mirror of
https://github.com/KLayout/klayout.git
synced 2026-08-22 05:57:41 +02:00
A little more backward compatibility plus macro name issue fixed
* Some removed methods have been restored (and are deprecated). * Macro names like "0.25.lym" don't render error messages during loading now
This commit is contained in:
@@ -412,7 +412,7 @@ struct simple_polygon_defs
|
|||||||
"\n"
|
"\n"
|
||||||
"@return The transformed simple polygon.\n"
|
"@return The transformed simple polygon.\n"
|
||||||
) +
|
) +
|
||||||
method_ext ("transformed", &transformed_cplx,
|
method_ext ("transformed|#transformed_cplx", &transformed_cplx,
|
||||||
"@brief Transforms the simple polygon.\n"
|
"@brief Transforms the simple polygon.\n"
|
||||||
"@args t\n"
|
"@args t\n"
|
||||||
"\n"
|
"\n"
|
||||||
@@ -422,6 +422,9 @@ struct simple_polygon_defs
|
|||||||
"@param t The transformation to apply.\n"
|
"@param t The transformation to apply.\n"
|
||||||
"\n"
|
"\n"
|
||||||
"@return The transformed simple polygon.\n"
|
"@return The transformed simple polygon.\n"
|
||||||
|
"\n"
|
||||||
|
"With version 0.25, the original 'transformed_cplx' method is deprecated and "
|
||||||
|
"'transformed' takes both simple and complex transformations."
|
||||||
) +
|
) +
|
||||||
constructor ("from_s", &from_string,
|
constructor ("from_s", &from_string,
|
||||||
"@brief Creates an object from a string\n"
|
"@brief Creates an object from a string\n"
|
||||||
@@ -1355,7 +1358,7 @@ struct polygon_defs
|
|||||||
"\n"
|
"\n"
|
||||||
"@return The transformed polygon.\n"
|
"@return The transformed polygon.\n"
|
||||||
) +
|
) +
|
||||||
method_ext ("transformed", &transformed_cplx,
|
method_ext ("transformed|#transformed_cplx", &transformed_cplx,
|
||||||
"@brief Transforms the polygon with a complex transformation\n"
|
"@brief Transforms the polygon with a complex transformation\n"
|
||||||
"@args t\n"
|
"@args t\n"
|
||||||
"\n"
|
"\n"
|
||||||
@@ -1365,6 +1368,9 @@ struct polygon_defs
|
|||||||
"@param t The transformation to apply.\n"
|
"@param t The transformation to apply.\n"
|
||||||
"\n"
|
"\n"
|
||||||
"@return The transformed polygon.\n"
|
"@return The transformed polygon.\n"
|
||||||
|
"\n"
|
||||||
|
"With version 0.25, the original 'transformed_cplx' method is deprecated and "
|
||||||
|
"'transformed' takes both simple and complex transformations."
|
||||||
) +
|
) +
|
||||||
constructor ("from_s", &from_string,
|
constructor ("from_s", &from_string,
|
||||||
"@brief Creates an object from a string\n"
|
"@brief Creates an object from a string\n"
|
||||||
|
|||||||
@@ -406,14 +406,14 @@ Class<db::RecursiveShapeIterator> decl_RecursiveShapeIterator ("RecursiveShapeIt
|
|||||||
"The flags must be specified before the shapes are being retrieved.\n"
|
"The flags must be specified before the shapes are being retrieved.\n"
|
||||||
"Settings the shapes flags will reset the iterator.\n"
|
"Settings the shapes flags will reset the iterator.\n"
|
||||||
) +
|
) +
|
||||||
gsi::method ("trans", &db::RecursiveShapeIterator::trans,
|
gsi::method ("trans|#itrans", &db::RecursiveShapeIterator::trans,
|
||||||
"@brief Gets the current transformation by which the shapes must be transformed into the initial cell\n"
|
"@brief Gets the current transformation by which the shapes must be transformed into the initial cell\n"
|
||||||
"\n"
|
"\n"
|
||||||
"The shapes delivered are not transformed. Instead, this transformation must be applied to \n"
|
"The shapes delivered are not transformed. Instead, this transformation must be applied to \n"
|
||||||
"get the shape in the coordinate system of the top cell.\n"
|
"get the shape in the coordinate system of the top cell.\n"
|
||||||
"\n"
|
"\n"
|
||||||
"Starting with version 0.25, this transformation is a int-to-int transformation and there "
|
"Starting with version 0.25, this transformation is a int-to-int transformation the 'itrans' method "
|
||||||
"no longer is a 'itrans' method."
|
"which was providing this transformation before is deprecated."
|
||||||
) +
|
) +
|
||||||
gsi::method ("shape", &db::RecursiveShapeIterator::shape,
|
gsi::method ("shape", &db::RecursiveShapeIterator::shape,
|
||||||
"@brief Gets the current shape\n"
|
"@brief Gets the current shape\n"
|
||||||
|
|||||||
@@ -1375,7 +1375,7 @@ void MacroCollection::scan (const std::string &path)
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
std::string n = tl::to_string (QFileInfo (*f).baseName ());
|
std::string n = tl::to_string (QFileInfo (*f).completeBaseName ());
|
||||||
|
|
||||||
Macro::Format format = Macro::NoFormat;
|
Macro::Format format = Macro::NoFormat;
|
||||||
Macro::Interpreter interpreter = Macro::None;
|
Macro::Interpreter interpreter = Macro::None;
|
||||||
|
|||||||
Reference in New Issue
Block a user