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); }
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); }
//-------------------------------------------------------------- void ofxGLWarper::toogleKeys(){ enableKeys(!bUseKeys); }
void MPSimpleBoard::_stop(bool gameover) { if ( state==BS_Pause ) _pauseFlag(FALSE); emit enableKeys(false); _stopFlag(gameover); }
void MPSimpleBoard::initFlag(QDataStream &s) { state = BS_Play; emit enableKeys(true); _initFlag(s); }