示例#1
0
void KstViewMatricesDialog::showViewMatricesDialog(const QString &matrixName) {
  KstMatrixPtr matrix;

  updateViewMatricesDialog();

  KST::matrixList.lock().readLock();
  matrix = *KST::matrixList.findTag(matrixName);
  KST::matrixList.lock().unlock();
  if (matrix) {
    matrixSelector->setSelection(matrix);
    updateViewMatricesDialog();
    show();
    raise();
  }
}
示例#2
0
void KstViewMatricesDialog::updateViewMatricesDialog() {
  QString matrix;

  matrixSelector->update();
  matrix = matrixSelector->selectedMatrix();
  _tableMatrices->setMatrix(matrix);
  updateViewMatricesDialog(matrix);
}
示例#3
0
void KstViewMatricesDialog::matrixChanged(const QString& matrix) {
  updateViewMatricesDialog(matrix);
  _tableMatrices->setMatrix(matrix);

  //
  // following two lines appear to be necessary to ensure a full update...
  //

  _tableMatrices->hide();
  _tableMatrices->show();

  _tableMatrices->update();
}
示例#4
0
void KstViewMatricesDialogI::matrixChanged(const QString& matrix) {
  updateViewMatricesDialog(matrix);
  _tableMatrices->setMatrix(matrix);
  _tableMatrices->update();
}
示例#5
0
void KstViewMatricesDialogI::showViewMatricesDialog() {
  updateViewMatricesDialog();
  updateDefaults(0);
  show();
  raise();
}