#include <QMessageBox>\r
#include "AbstractInterface.h"\r
#include "BlockParameter.h"\r
+#include "Parameters.h"\r
#include "GroupBlock.h"\r
#include "ConnectedInterface.h"\r
\r
+\r
AbstractBlock::AbstractBlock() {\r
name = "";\r
parent = NULL;\r
\r
/*\r
AbstractBlock::AbstractBlock(const QString& _name) {\r
- name = normalizeName(_name);\r
+ name = Parameters::normalizeName(_name);\r
parent = NULL;\r
}\r
*/\r
}\r
\r
void AbstractBlock::setName(const QString& str) {\r
- name = normalizeName(str);\r
+ name = Parameters::normalizeName(str);\r
}\r
\r
void AbstractBlock::setParent(AbstractBlock* _parent) {\r
return lst;\r
}\r
\r
-QString AbstractBlock::normalizeName(const QString &name) {\r
- QString s = name;\r
- s.replace(QRegularExpression("[^a-zA-Z0-9_]"),"_");\r
- s.replace(QRegularExpression("[_]+"),"_");\r
- return s;\r
-}\r
+\r
\r
void AbstractBlock::connectClkReset() throw(Exception) {\r
\r