static int Command(Context_t *context, ContainerCmd_t command, void *argument) { int ret = 0; container_printf(10, "%s::%s\n", FILENAME, __FUNCTION__); switch (command) { case CONTAINER_ADD: { ret = selectContainer(context, (char *) argument); break; } case CONTAINER_CAPABILITIES: { printContainerCapabilities(); break; } case CONTAINER_DEL: { context->container->selectedContainer = NULL; break; } default: container_err("%s::%s ContainerCmd %d not supported!\n", FILENAME, __FUNCTION__, command); break; } return ret; }
int MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QMainWindow::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: setIso(); break; case 1: launchApp(); break; case 2: updateForces(); break; case 3: deleteCells(); break; case 4: clearQGview(); break; case 5: redrawQGview(); break; case 6: selectContainer((*reinterpret_cast< int(*)>(_a[1]))); break; default: ; } _id -= 7; } return _id; }