void TupCanvas::oneFrameBack() { if (k->frameIndex > 0) { k->frameIndex--; // k->frame->setText(tr("F: ") + QString::number(k->frameIndex)); emit callAction(TupToolPlugin::Arrows, TupToolPlugin::FrameBack); } }
// Add a port mapping void WanConnectionService::addPortMapping(const QString &protocol, const QString &remoteHost, int externalPort, const QString &internalClient, int internalPort, const QString &description, bool enabled, int leaseDuration) { QMap<QString,QString> arguments; arguments["NewProtocol"] = protocol; arguments["NewRemoteHost"] = remoteHost; arguments["NewExternalPort"] = QString::number(externalPort); arguments["NewInternalClient"] = internalClient; arguments["NewInternalPort"] = QString::number(internalPort); arguments["NewPortMappingDescription"] = description; arguments["NewEnabled"] = QString::number(enabled ? 1 : 0); arguments["NewLeaseDuration"] = QString::number(leaseDuration); callAction("AddPortMapping", arguments, "m"); }
void TupCanvas::wakeUpHand() { emit callAction(TupToolPlugin::ZoomMenu, TupToolPlugin::HandTool); }
void TupCanvas::wakeUpZoomOut() { emit callAction(TupToolPlugin::ZoomMenu, TupToolPlugin::ZoomOutTool); }
void TupCanvas::wakeUpDeleteSelection() { emit callAction(TupToolPlugin::SelectionMenu, TupToolPlugin::Delete); }
void TupCanvas::wakeUpNodeSelection() { emit callAction(TupToolPlugin::SelectionMenu, TupToolPlugin::NodesTool); }
void TupCanvas::wakeUpObjectSelection() { emit callAction(TupToolPlugin::SelectionMenu, TupToolPlugin::ObjectsTool); }
void TupCanvas::wakeUpRectangle() { emit callAction(TupToolPlugin::BrushesMenu, TupToolPlugin::RectangleTool); }
void TupCanvas::wakeUpEllipse() { emit callAction(TupToolPlugin::BrushesMenu, TupToolPlugin::EllipseTool); }
void TupCanvas::wakeUpInk() { emit callAction(TupToolPlugin::BrushesMenu, TupToolPlugin::InkTool); }
void TupCanvas::wakeUpPencil() { emit callAction(TupToolPlugin::BrushesMenu, TupToolPlugin::PencilTool); }
void TupCanvas::oneFrameForward() { k->frameIndex++; emit callAction(TupToolPlugin::Arrows, TupToolPlugin::FrameForward); }
// Query for a port mapping entry void WanConnectionService::queryPortMappingEntry(int index) { QMap<QString,QString> arguments; arguments["NewPortMappingIndex"] = QString::number(index); callAction("GetGenericPortMappingEntry", arguments, "m"); }
// Query for the Nat status void WanConnectionService::queryNatEnabled() { callAction("GetNATRSIPStatus", "u"); }
// Query for the external IP address void WanConnectionService::queryExternalIpAddress() { callAction("GetExternalIPAddress", "u"); }
void TupCanvas::oneFrameForward() { k->frameIndex++; // k->frame->setText(tr("F: ") + QString::number(k->frameIndex)); emit callAction(TupToolPlugin::Arrows, TupToolPlugin::FrameForward); }