예제 #1
0
void accidSettings::changed() {
  blockSignals(true);
  if (wLevel()->canBeScore())
			enableKeys(true);
  else
			enableKeys(false);
  if ((wLevel()->answerIsNote() || wLevel()->answerIsName()) &&
				(wLevel()->withDblAcc || wLevel()->withFlats || wLevel()->withSharps))
			m_forceAccChB->setDisabled(false);
	else
			m_forceAccChB->setDisabled(true);
  m_keyInAnswerChB->setDisabled(!wLevel()->answerIsNote()); // disable manual key check box if no score as an answer
	blockSignals(false);
}
예제 #2
0
void MPSimpleBoard::pauseFlag()
{
	Q_ASSERT( state==BS_Play || state==BS_Pause );
	bool p = ( state==BS_Pause );
	state  = (p ? BS_Play : BS_Pause);
	emit enableKeys(p);
	_pauseFlag(!p);
}
예제 #3
0
//--------------------------------------------------------------
void ofxGLWarper::toogleKeys(){
    enableKeys(!bUseKeys);
}
예제 #4
0
void MPSimpleBoard::_stop(bool gameover)
{
	if ( state==BS_Pause ) _pauseFlag(FALSE);
	emit enableKeys(false);
	_stopFlag(gameover);
}
예제 #5
0
void MPSimpleBoard::initFlag(QDataStream &s)
{
	state = BS_Play;
	emit enableKeys(true);
	_initFlag(s);
}