Commit d4954c3f authored by Denis Khachko's avatar Denis Khachko

Bug Fixes.

parent 91a51442
......@@ -21,8 +21,22 @@
"name": {"ascii": "task complited", "ru_RU": "@решено"},
"async": false,
"returnType": "bool"
}
},
{
"name": {"ascii": "size A", "ru_RU": "размер A"},
"async": false,
"returnType": "int"
},
{
"name": {"ascii": "size B", "ru_RU": "размер B"},
"async": false,
"returnType": "int"
},
{
"name": {"ascii": "size C", "ru_RU": "размер C"},
"async": false,
"returnType": "int"
}
],
"gui": {
"windows": [
......
......@@ -253,6 +253,18 @@ private:
return MainWindow->ready();
}
int VodoleyModule::runSizeA()
{
return MainWindow->Asize();
};
int VodoleyModule::runSizeB()
{
return MainWindow->Bsize();
};
int VodoleyModule::runSizeC()
{
return MainWindow->Csize();
};
void VodoleyModule::openRecent()
{
......
......@@ -51,6 +51,9 @@ public slots:
void runFromBToC();
void runFromCToB();
void runFromCToA();
int runSizeA();
int runSizeB();
int runSizeC();
bool runTaskComplited();
void openRecent();
void updateLastFiles(const QString newFile );
......
......@@ -677,14 +677,14 @@ void MainWindowTask::saveCourse()
// //curDir=fi.absolutePath ();
// qDebug()<<"curDir"<<curDir;
// QString fileName=dialog.selectedFiles().first();
const QString fileName = QFileDialog::getSaveFileName(
QString fileName = QFileDialog::getSaveFileName(
this,
trUtf8("Сохранить изменения"),
curDir,
tr("Work files(*.work.xml);;All files (*)")
);
// QString type=fileName.right(9);
// if(type!=".work.xml")fileName+=".work.xml";
QString type=fileName.right(9);
if(type!=".work.xml")fileName+=".work.xml";
cursWorkFile.setFileName(fileName);
updateLastFiles(fileName);
saveCourseFile();
......@@ -834,7 +834,7 @@ void MainWindowTask::closeEvent(QCloseEvent *event)
{
QMessageBox::StandardButton ans;
ans = QMessageBox::question(this, trUtf8("Курсы"), trUtf8("Вы хотите сохранить работу?"),
QMessageBox::Yes | QMessageBox::No | QMessageBox::Cancel, QMessageBox::Yes);
QMessageBox::Yes | QMessageBox::No , QMessageBox::Yes);
if (ans == QMessageBox::No)
{
......
......@@ -56,7 +56,7 @@ void logLine::moveDown()
void pultLogger::appendText(QString kumCommand, QString text, QString replay)
{
while(pos>H-68)downBtnPressed();
lines.append(logLine(kumCommand,text,replay,dummyFrame,respFrame,pos));
lines.append(logLine(kumCommand+'\n',text,replay,dummyFrame,respFrame,pos));
pos=pos+TEXT_STEP;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment