void QuickEntryRack::shuffle() { Quackle::Rack rack(QuackleIO::Util::makeRack(m_lineEdit->text())); rack.shuffle(); emit setRack(rack); }
void QuickEntryRack::processRack(const QString &rack) { if (rack.isEmpty()) { emit statusMessage(tr("Useless rack.")); return; } emit setRack(QuackleIO::Util::makeRack(rack)); }
int View::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = BaseView::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: setCandidateMove((*reinterpret_cast< const Quackle::Move(*)>(_a[1]))); break; case 1: removeCandidateMoves((*reinterpret_cast< const Quackle::MoveList(*)>(_a[1]))); break; case 2: commit(); break; case 3: setRack((*reinterpret_cast< const Quackle::Rack(*)>(_a[1]))); break; case 4: setNote((*reinterpret_cast< const UVString(*)>(_a[1]))); break; case 5: positionChanged((*reinterpret_cast< const Quackle::GamePosition(*)>(_a[1]))); break; case 6: movesChanged((*reinterpret_cast< const Quackle::MoveList(*)>(_a[1]))); break; case 7: grabFocus(); break; } _id -= 8; } return _id; }
bool TankEngine::storeTSRS ( const TSRSExt& pTsrs ) { if(testTankCID ( pTsrs )&& testFillOrderAndSection ( pTsrs )&& testRack(pTsrs ) && testSlot(pTsrs)) { sli.initialize(); if( setTankExt(pTsrs ) ) { // if( setFillOrderAndSection( pTsrs.fillOrder, pTsrs.section )) if( setFillOrderAndSection( pTsrs )) { if( setRack(pTsrs.rack )) { if( setSlot(pTsrs.slot)) { selectSlot(pTsrs ); return true; }else { sli.initialize(); return false; } }else { sli.initialize(); return false; } }else { sli.initialize(); return false; } }else { sli.initialize(); return false; } } return false; }