git-svn-id: svn://db.shs.com.ru/libs@107 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -280,14 +280,14 @@ void CD_Pult::on_buttonHideAll_clicked() {
|
||||
|
||||
void CD_Pult::on_buttonRead_clicked() {
|
||||
K.readFile();
|
||||
addToList(trUtf8("Readed K file \"%1\": %2 coeffs, %3 bytes").arg(PI2QString(K.file())).arg(K.count()).arg(K.fileSize()), Qt::darkMagenta);
|
||||
addToList(trUtf8("Read K file \"%1\": %2 coeffs, %3 bytes").arg(PI2QString(K.file())).arg(K.count()).arg(K.fileSize()), Qt::darkMagenta);
|
||||
updateTree();
|
||||
}
|
||||
|
||||
|
||||
void CD_Pult::on_buttonWrite_clicked() {
|
||||
K.writeFile();
|
||||
addToList(trUtf8("Written K file \"%1\": %2 coeffs, %3 bytes").arg(PI2QString(K.file())).arg(K.count()).arg(K.fileSize()), Qt::darkMagenta);
|
||||
addToList(trUtf8("Write K file \"%1\": %2 coeffs, %3 bytes").arg(PI2QString(K.file())).arg(K.count()).arg(K.fileSize()), Qt::darkMagenta);
|
||||
}
|
||||
|
||||
|
||||
@@ -389,15 +389,9 @@ void CD_Pult::updateDiag() {
|
||||
|
||||
|
||||
void CD_Pult::updateKDesc(bool ask_move) {
|
||||
/*int cind = parseHeader(kdesc_file, kdesc);
|
||||
if (K.size_s() < cind) {
|
||||
ui->spinSize->setValue(cind);
|
||||
ui->spinSize->setStyleSheet("background-color: rgb(220, 220, 255);");
|
||||
}
|
||||
bool move = false;
|
||||
if (ask_move)
|
||||
move = (QMessageBox::question(this, "KX Pult", "Save values at associated names?", QMessageBox::Yes | QMessageBox::No, QMessageBox::Yes) == QMessageBox::Yes);
|
||||
*/
|
||||
addToList(trUtf8("Update K description file \"%1\"").arg(PI2QString(kdesc_file)), Qt::darkMagenta);
|
||||
PIFile f(kdesc_file, PIIODevice::ReadOnly);
|
||||
K.update(&f);
|
||||
updateTree(ask_move);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user