Example #1
0
void gpsp4Qt::errorNoteDismissed()
{
    disconnect(m_errorDialog, SIGNAL(notifiedUser()), this, SLOT(errorNoteDismissed()) );
    delete m_errorDialog;
    m_errorDialog = NULL;
    emit(Start());
}
Example #2
0
void EmuSettings::setBios()
	{
    savecurrentSettings();
    QDir dir(gpspsettings.iBios);
    QString bios = QFileDialog::getOpenFileName(this,
                    tr("Bios"),
                    dir.absolutePath(),
                    tr("ROMs (*.bin *.BIN);;"));
    if( bios.isEmpty() )
        {
		return;
        }
    
    fileview->setBiosLabel( bios );
    gpspsettings.iBios = bios;
    
    //check that bios is valid
    if( !isBiosValid( bios.toStdString().c_str() ) )
    	{
		//dispatch error note
		QString error;
		error.append("You have an incorrect BIOS image.                 \n");
		error.append("While many games will work fine, some will not. It\n");
		error.append("is strongly recommended that you obtain the       \n");
		error.append("correct BIOS file. Do NOT report any bugs if you  \n");
		error.append("are seeing this message.                          \n");
		errorDialog = new cuteErrorDialog( error, this );
		connect(errorDialog, SIGNAL(notifiedUser()), this, SLOT(errorNoteDismissed()) );
		errorDialog->show();
		errorDialog->setFocus();
    	}
	}
Example #3
0
void EmuSettings::errorNoteDismissed()
	{
	__DEBUG_IN
	disconnect(errorDialog, SIGNAL(notifiedUser()), this, SLOT(errorNoteDismissed()) );
	delete errorDialog;
	errorDialog = NULL;
	__DEBUG_OUT
	}
Example #4
0
void gpsp4Qt::showErrorNote( QString message )
{
    __DEBUG_IN
    emit(Stop());
    m_errorDialog = new cuteErrorDialog( message, this );
    connect(m_errorDialog, SIGNAL(notifiedUser()), this, SLOT(errorNoteDismissed()) );
    m_errorDialog->show();
    m_errorDialog->setFocus();
    __DEBUG_OUT
}