| 52 | } |
| 53 | |
| 54 | void MatrixDock::setMatrices(QList<Matrix*> list) { |
| 55 | CONDITIONAL_LOCK_RETURN; |
| 56 | m_matrixList = list; |
| 57 | m_matrix = list.first(); |
| 58 | setAspects(std::move(list)); |
| 59 | |
| 60 | // show the properties of the first Matrix in the list, if there are >1 matrixs |
| 61 | this->load(); |
| 62 | |
| 63 | // undo functions |
| 64 | connect(m_matrix, &Matrix::rowCountChanged, this, &MatrixDock::matrixRowCountChanged); |
| 65 | connect(m_matrix, &Matrix::columnCountChanged, this, &MatrixDock::matrixColumnCountChanged); |
| 66 | |
| 67 | connect(m_matrix, &Matrix::xStartChanged, this, &MatrixDock::matrixXStartChanged); |
| 68 | connect(m_matrix, &Matrix::xEndChanged, this, &MatrixDock::matrixXEndChanged); |
| 69 | connect(m_matrix, &Matrix::yStartChanged, this, &MatrixDock::matrixYStartChanged); |
| 70 | connect(m_matrix, &Matrix::yEndChanged, this, &MatrixDock::matrixYEndChanged); |
| 71 | |
| 72 | connect(m_matrix, &Matrix::numericFormatChanged, this, &MatrixDock::matrixNumericFormatChanged); |
| 73 | connect(m_matrix, &Matrix::precisionChanged, this, &MatrixDock::matrixPrecisionChanged); |
| 74 | connect(m_matrix, &Matrix::headerFormatChanged, this, &MatrixDock::matrixHeaderFormatChanged); |
| 75 | } |
| 76 | |
| 77 | void MatrixDock::retranslateUi() { |
| 78 | CONDITIONAL_LOCK_RETURN; |
no test coverage detected