| 1161 | } |
| 1162 | |
| 1163 | std::string |
| 1164 | NodeGroup::getInputLabel(int inputNb) const |
| 1165 | { |
| 1166 | NodePtr input; |
| 1167 | { |
| 1168 | QMutexLocker k(&_imp->nodesLock); |
| 1169 | if ( ( inputNb >= (int)_imp->inputs.size() ) || (inputNb < 0) ) { |
| 1170 | return std::string(); |
| 1171 | } |
| 1172 | |
| 1173 | ///If the input name starts with "input" remove it, otherwise keep the full name |
| 1174 | |
| 1175 | input = _imp->inputs[inputNb].lock(); |
| 1176 | if (!input || !input->isActivated()) { |
| 1177 | return std::string(); |
| 1178 | } |
| 1179 | } |
| 1180 | QString inputName = QString::fromUtf8( input->getLabel_mt_safe().c_str() ); |
| 1181 | |
| 1182 | if ( inputName.startsWith(QString::fromUtf8("input"), Qt::CaseInsensitive) ) { |
| 1183 | inputName.remove(0, 5); |
| 1184 | } |
| 1185 | |
| 1186 | return inputName.toStdString(); |
| 1187 | } |
| 1188 | |
| 1189 | KnobButtonPtr |
| 1190 | NodeGroup::getExportAsPyPlugButton() const |
nothing calls this directly
no test coverage detected