Exemplo n.º 1
0
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;
    }
}
Exemplo n.º 2
0
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;
    }
}
Exemplo n.º 3
0
static
qone_palette()
{
if (yes_no_box(op_lines))
	one_palette();
}