void ImageViewer::on_actionSave_as_triggered() { while(true == true) { QString fileName = QFileDialog::getSaveFileName(this,tr("Save File As"), QDir::currentPath(), tr("Images (*.png *.xpm *.jpg)") ); if(fileName.isEmpty()) return; if(!imageLabel->pixmap()->save(fileName)) { if(yes_no_box(fileName)) break; } else break; } }
bool8 ScrCmd_yesnobox(struct ScriptContext *ctx) { u8 v1 = ScriptReadByte(ctx); u8 v2 = ScriptReadByte(ctx); if (yes_no_box(v1, v2) == 1) { ScriptContext1_Stop(); return TRUE; } else { return FALSE; } }
static qone_palette() { if (yes_no_box(op_lines)) one_palette(); }