void InputFilter::flushAll (lua_State *L) { ensureAlive(); // 'down' modified by acceptButton (and also potentially by callbacks). ButtonStatus d = down; for (ButtonStatus::iterator i=d.begin(), i_=d.end() ; i != i_ ; ++i) { acceptButton(L, "-" + i->first); } APP_ASSERT(down.size() == 0); }
void InputFilter::flushSet (lua_State *L, const BindingSet &s) { ensureAlive(); // 'down' modified by acceptButton (and also potentially by callbacks). ButtonStatus d = down; for (ButtonStatus::iterator i=d.begin(), i_=d.end() ; i != i_ ; ++i) { if (masked_by(i->second, s)) acceptButton(L, "-" + i->first); } APP_ASSERT(down.size() == 0); }
int SMEngine::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QObject::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: showMe(); break; case 1: setLabel((*reinterpret_cast< QString(*)>(_a[1]))); break; case 2: setWidget((*reinterpret_cast< QWidget*(*)>(_a[1]))); break; case 3: setLayout((*reinterpret_cast< QLayout*(*)>(_a[1]))); break; case 4: breakIsOver(); break; case 5: yesClicked(); break; case 6: noClicked(); break; case 7: confirnClicked(); break; case 8: skipClicked(); break; case 9: createGuiWithList((*reinterpret_cast< QList<QMap<QString,QString> >*(*)>(_a[1]))); break; case 10: createInputGuiWithDataSet((*reinterpret_cast< QMap<QString,QString>(*)>(_a[1]))); break; case 11: repaintGui(); break; case 12: changeWidget((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); break; case 13: changeWidget((*reinterpret_cast< const QString(*)>(_a[1]))); break; case 14: parseXMLFile((*reinterpret_cast< QString(*)>(_a[1]))); break; case 15: showInfoWidget((*reinterpret_cast< QString(*)>(_a[1])),(*reinterpret_cast< QString(*)>(_a[2]))); break; case 16: showInputWidget(); break; case 17: addLayout(); break; case 18: addWidgetToLayout((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); break; case 19: addWidgetToLayout((*reinterpret_cast< const QString(*)>(_a[1]))); break; case 20: toggleFirstUse((*reinterpret_cast< bool(*)>(_a[1]))); break; case 21: finished(); break; case 22: executeSpec((*reinterpret_cast< QString(*)>(_a[1]))); break; case 23: acceptButton(); break; case 24: saveToDom((*reinterpret_cast< QString(*)>(_a[1])),(*reinterpret_cast< QString(*)>(_a[2]))); break; case 25: timeOut(); break; case 26: emitClickSignal((*reinterpret_cast< int(*)>(_a[1]))); break; default: ; } _id -= 27; } return _id; }