| 1151 | } |
| 1152 | |
| 1153 | std::string |
| 1154 | NodeGroup::getInputLabel(int inputNb) const |
| 1155 | { |
| 1156 | NodePtr input; |
| 1157 | { |
| 1158 | QMutexLocker k(&_imp->nodesLock); |
| 1159 | if ( ( inputNb >= (int)_imp->inputs.size() ) || (inputNb < 0) ) { |
| 1160 | return std::string(); |
| 1161 | } |
| 1162 | |
| 1163 | ///If the input name starts with "input" remove it, otherwise keep the full name |
| 1164 | |
| 1165 | input = _imp->inputs[inputNb].lock(); |
| 1166 | if (!input) { |
| 1167 | return std::string(); |
| 1168 | } |
| 1169 | } |
| 1170 | QString inputName = QString::fromUtf8( input->getLabel_mt_safe().c_str() ); |
| 1171 | |
| 1172 | if ( inputName.startsWith(QString::fromUtf8("input"), Qt::CaseInsensitive) ) { |
| 1173 | inputName.remove(0, 5); |
| 1174 | } |
| 1175 | |
| 1176 | return inputName.toStdString(); |
| 1177 | } |
| 1178 | |
| 1179 | boost::shared_ptr<KnobButton> |
| 1180 | NodeGroup::getExportAsPyPlugButton() const |
nothing calls this directly
no test coverage detected