// Copyright (C) 2016 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 #include "nodeinstanceserverinterface.h" #include #include "addimportcontainer.h" #include "captureddatacommand.h" #include "changeauxiliarycommand.h" #include "changebindingscommand.h" #include "changefileurlcommand.h" #include "changeidscommand.h" #include "changelanguagecommand.h" #include "changenodesourcecommand.h" #include "changepreviewimagesizecommand.h" #include "changeselectioncommand.h" #include "changestatecommand.h" #include "changevaluescommand.h" #include "childrenchangedcommand.h" #include "clearscenecommand.h" #include "completecomponentcommand.h" #include "componentcompletedcommand.h" #include "createinstancescommand.h" #include "createscenecommand.h" #include "debugoutputcommand.h" #include "endpuppetcommand.h" #include "imagecontainer.h" #include "informationchangedcommand.h" #include "inputeventcommand.h" #include "instancecontainer.h" #include "nanotracecommand.h" #include "pixmapchangedcommand.h" #include "propertyabstractcontainer.h" #include "propertybindingcontainer.h" #include "propertyvaluecontainer.h" #include "puppetalivecommand.h" #include "puppettocreatorcommand.h" #include "removeinstancescommand.h" #include "removepropertiescommand.h" #include "removesharedmemorycommand.h" #include "reparentinstancescommand.h" #include "scenecreatedcommand.h" #include "statepreviewimagechangedcommand.h" #include "synchronizecommand.h" #include "tokencommand.h" #include "update3dviewstatecommand.h" #include "valueschangedcommand.h" #include "view3dactioncommand.h" #include "requestmodelnodepreviewimagecommand.h" #include namespace QmlDesigner { static bool isRegistered = false; NodeInstanceServerInterface::NodeInstanceServerInterface(QObject *parent) : QObject(parent) { registerCommands(); } template inline void registerCommand(const char *typeName) { qRegisterMetaType(typeName); #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) qRegisterMetaTypeStreamOperators(typeName); #endif } void NodeInstanceServerInterface::registerCommands() { if (isRegistered) return; isRegistered = true; registerCommand("CreateInstancesCommand"); registerCommand("ClearSceneCommand"); registerCommand("CreateSceneCommand"); registerCommand("Update3dViewStateCommand"); registerCommand("ChangeBindingsCommand"); registerCommand("ChangeValuesCommand"); registerCommand("ChangeFileUrlCommand"); registerCommand("ChangeStateCommand"); registerCommand("RemoveInstancesCommand"); registerCommand("ChangeSelectionCommand"); registerCommand("RemovePropertiesCommand"); registerCommand("ReparentInstancesCommand"); registerCommand("ChangeIdsCommand"); registerCommand("PropertyAbstractContainer"); registerCommand("InformationChangedCommand"); registerCommand("ValuesChangedCommand"); registerCommand("ValuesModifiedCommand"); registerCommand("PixmapChangedCommand"); registerCommand("InformationContainer"); registerCommand("PropertyValueContainer"); registerCommand("PropertyBindingContainer"); registerCommand("PropertyAbstractContainer"); registerCommand("InstanceContainer"); registerCommand("IdContainer"); registerCommand("ChildrenChangedCommand"); registerCommand("ImageContainer"); registerCommand("StatePreviewImageChangedCommand"); registerCommand("CompleteComponentCommand"); registerCommand("ComponentCompletedCommand"); registerCommand("AddImportContainer"); registerCommand("SynchronizeCommand"); registerCommand("ChangeNodeSourceCommand"); registerCommand("ChangeAuxiliaryCommand"); registerCommand("TokenCommand"); registerCommand("RemoveSharedMemoryCommand"); registerCommand("EndPuppetCommand"); registerCommand("DebugOutputCommand"); registerCommand("Enumeration"); registerCommand("PuppetAliveCommand"); registerCommand("PuppetToCreatorCommand"); registerCommand("InputEventCommand"); registerCommand("View3DActionCommand"); registerCommand("RequestModelNodePreviewImageCommand"); registerCommand>("QPairIntInt"); registerCommand>("QColorList"); registerCommand("ChangeLanguageCommand"); registerCommand("ChangePreviewImageSizeCommand"); registerCommand("CapturedDataCommand"); registerCommand("SceneCreatedCommand"); registerCommand("StartNanotraceCommand"); registerCommand("EndNanotraceCommand"); registerCommand("SyncNanotraceCommand"); } }