void Immigrant::visit(std::shared_ptr<Courthouse> c) { courthouse = c; if (enter()) { checkIn(); sitDown(); swear(); getCertificate(); leave(); } }
QMenu* BHToolBar::createUserMenu() const { QMenu* menu = new QMenu(tr("B-Human")); QAction* standAct = new QAction(QIcon(":/Icons/stand.png"), tr("&MotionRequest stand"), menu); QAction* sitDownAct = new QAction(QIcon(":/Icons/sitDown.png"), tr("&MotionRequest sitDown"), menu); QAction* headAngleAct = new QAction(QIcon(":/Icons/headAngle.png"), tr("Move Head &Freely"), menu); headAngleAct->setCheckable(true); headAngleAct->setChecked(false); QAction* pressChestButtonAct = new QAction(QIcon(":/Icons/chestButton.png"), tr("&Press and Release Chest Button"), menu); connect(standAct, SIGNAL(triggered()), this, SLOT(stand())); connect(sitDownAct, SIGNAL(triggered()), this, SLOT(sitDown())); connect(headAngleAct, SIGNAL(toggled(bool)), this, SLOT(headAngle(bool))); connect(pressChestButtonAct, SIGNAL(triggered()), this, SLOT(pressChestButton())); menu->addAction(standAct); menu->addAction(sitDownAct); menu->addSeparator(); menu->addAction(headAngleAct); menu->addAction(pressChestButtonAct); return menu; }