Example #1
0
void TupCanvas::oneFrameBack()
{
    if (k->frameIndex > 0) {
        k->frameIndex--;
        // k->frame->setText(tr("F: ") + QString::number(k->frameIndex));
        emit callAction(TupToolPlugin::Arrows, TupToolPlugin::FrameBack);
    }
}
Example #2
0
// 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");
}
Example #3
0
void TupCanvas::wakeUpHand()
{
    emit callAction(TupToolPlugin::ZoomMenu, TupToolPlugin::HandTool);
}
Example #4
0
void TupCanvas::wakeUpZoomOut()
{
    emit callAction(TupToolPlugin::ZoomMenu, TupToolPlugin::ZoomOutTool);
}
Example #5
0
void TupCanvas::wakeUpDeleteSelection()
{
    emit callAction(TupToolPlugin::SelectionMenu, TupToolPlugin::Delete);
}
Example #6
0
void TupCanvas::wakeUpNodeSelection()
{
    emit callAction(TupToolPlugin::SelectionMenu, TupToolPlugin::NodesTool);
}
Example #7
0
void TupCanvas::wakeUpObjectSelection()
{
    emit callAction(TupToolPlugin::SelectionMenu, TupToolPlugin::ObjectsTool);
}
Example #8
0
void TupCanvas::wakeUpRectangle()
{
    emit callAction(TupToolPlugin::BrushesMenu, TupToolPlugin::RectangleTool);
}
Example #9
0
void TupCanvas::wakeUpEllipse()
{
    emit callAction(TupToolPlugin::BrushesMenu, TupToolPlugin::EllipseTool);
}
Example #10
0
void TupCanvas::wakeUpInk()
{
    emit callAction(TupToolPlugin::BrushesMenu, TupToolPlugin::InkTool);
}
Example #11
0
void TupCanvas::wakeUpPencil()
{
    emit callAction(TupToolPlugin::BrushesMenu, TupToolPlugin::PencilTool);
}
Example #12
0
void TupCanvas::oneFrameForward()
{
    k->frameIndex++;
    emit callAction(TupToolPlugin::Arrows, TupToolPlugin::FrameForward);
}
Example #13
0
// Query for a port mapping entry
void WanConnectionService::queryPortMappingEntry(int index)
{
	QMap<QString,QString> arguments;
	arguments["NewPortMappingIndex"] = QString::number(index);
	callAction("GetGenericPortMappingEntry", arguments, "m");
}
Example #14
0
// Query for the Nat status
void WanConnectionService::queryNatEnabled()
{
	callAction("GetNATRSIPStatus", "u");
}
Example #15
0
// Query for the external IP address
void WanConnectionService::queryExternalIpAddress()
{
	callAction("GetExternalIPAddress", "u");
}
Example #16
0
void TupCanvas::oneFrameForward()
{
    k->frameIndex++;
    // k->frame->setText(tr("F: ") + QString::number(k->frameIndex));
    emit callAction(TupToolPlugin::Arrows, TupToolPlugin::FrameForward);
}