/**************************************************************************** ** ** Copyright (C) 2016 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of Qt Creator. ** ** Commercial License Usage ** Licensees holding valid commercial Qt licenses may use this file in ** accordance with the commercial license agreement provided with the ** Software or, alternatively, in accordance with the terms contained in ** a written agreement between you and The Qt Company. For licensing terms ** and conditions see https://www.qt.io/terms-conditions. For further ** information use the contact form at https://www.qt.io/contact-us. ** ** GNU General Public License Usage ** Alternatively, this file may be used under the terms of the GNU ** General Public License version 3 as published by the Free Software ** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT ** included in the packaging of this file. Please review the following ** information to ensure the GNU General Public License requirements will ** be met: https://www.gnu.org/licenses/gpl-3.0.html. ** ****************************************************************************/ #include "nodeinstanceserverinterface.h" #include #include "propertyabstractcontainer.h" #include "propertyvaluecontainer.h" #include "propertybindingcontainer.h" #include "instancecontainer.h" #include "createinstancescommand.h" #include "createscenecommand.h" #include "change3dviewcommand.h" #include "changevaluescommand.h" #include "changebindingscommand.h" #include "changeauxiliarycommand.h" #include "changefileurlcommand.h" #include "removeinstancescommand.h" #include "clearscenecommand.h" #include "removepropertiescommand.h" #include "reparentinstancescommand.h" #include "changeidscommand.h" #include "changestatecommand.h" #include "completecomponentcommand.h" #include "addimportcontainer.h" #include "changenodesourcecommand.h" #include "changeselectioncommand.h" #include "drop3dlibraryitemcommand.h" #include "informationchangedcommand.h" #include "pixmapchangedcommand.h" #include "valueschangedcommand.h" #include "childrenchangedcommand.h" #include "imagecontainer.h" #include "statepreviewimagechangedcommand.h" #include "componentcompletedcommand.h" #include "synchronizecommand.h" #include "tokencommand.h" #include "removesharedmemorycommand.h" #include "endpuppetcommand.h" #include "debugoutputcommand.h" #include "puppetalivecommand.h" #include namespace QmlDesigner { static bool isRegistered=false; NodeInstanceServerInterface::NodeInstanceServerInterface(QObject *parent) : QObject(parent) { registerCommands(); } void NodeInstanceServerInterface::registerCommands() { if (isRegistered) return; isRegistered = true; qRegisterMetaType("CreateInstancesCommand"); qRegisterMetaTypeStreamOperators("CreateInstancesCommand"); qRegisterMetaType("ClearSceneCommand"); qRegisterMetaTypeStreamOperators("ClearSceneCommand"); qRegisterMetaType("CreateSceneCommand"); qRegisterMetaTypeStreamOperators("CreateSceneCommand"); qRegisterMetaType("Change3DViewCommand"); qRegisterMetaTypeStreamOperators("Change3DViewCommand"); qRegisterMetaType("ChangeBindingsCommand"); qRegisterMetaTypeStreamOperators("ChangeBindingsCommand"); qRegisterMetaType("ChangeValuesCommand"); qRegisterMetaTypeStreamOperators("ChangeValuesCommand"); qRegisterMetaType("ChangeFileUrlCommand"); qRegisterMetaTypeStreamOperators("ChangeFileUrlCommand"); qRegisterMetaType("ChangeStateCommand"); qRegisterMetaTypeStreamOperators("ChangeStateCommand"); qRegisterMetaType("RemoveInstancesCommand"); qRegisterMetaTypeStreamOperators("RemoveInstancesCommand"); qRegisterMetaType("ChangeSelectionCommand"); qRegisterMetaTypeStreamOperators("ChangeSelectionCommand"); qRegisterMetaType("Drop3DLibraryItemCommand"); qRegisterMetaTypeStreamOperators("Drop3DLibraryItemCommand"); qRegisterMetaType("RemovePropertiesCommand"); qRegisterMetaTypeStreamOperators("RemovePropertiesCommand"); qRegisterMetaType("ReparentInstancesCommand"); qRegisterMetaTypeStreamOperators("ReparentInstancesCommand"); qRegisterMetaType("ChangeIdsCommand"); qRegisterMetaTypeStreamOperators("ChangeIdsCommand"); qRegisterMetaType("PropertyAbstractContainer"); qRegisterMetaTypeStreamOperators("PropertyAbstractContainer"); qRegisterMetaType("InformationChangedCommand"); qRegisterMetaTypeStreamOperators("InformationChangedCommand"); qRegisterMetaType("ValuesChangedCommand"); qRegisterMetaTypeStreamOperators("ValuesChangedCommand"); qRegisterMetaType("ValuesModifiedCommand"); qRegisterMetaTypeStreamOperators("ValuesModifiedCommand"); qRegisterMetaType("PixmapChangedCommand"); qRegisterMetaTypeStreamOperators("PixmapChangedCommand"); qRegisterMetaType("InformationContainer"); qRegisterMetaTypeStreamOperators("InformationContainer"); qRegisterMetaType("PropertyValueContainer"); qRegisterMetaTypeStreamOperators("PropertyValueContainer"); qRegisterMetaType("PropertyBindingContainer"); qRegisterMetaTypeStreamOperators("PropertyBindingContainer"); qRegisterMetaType("PropertyAbstractContainer"); qRegisterMetaTypeStreamOperators("PropertyAbstractContainer"); qRegisterMetaType("InstanceContainer"); qRegisterMetaTypeStreamOperators("InstanceContainer"); qRegisterMetaType("IdContainer"); qRegisterMetaTypeStreamOperators("IdContainer"); qRegisterMetaType("ChildrenChangedCommand"); qRegisterMetaTypeStreamOperators("ChildrenChangedCommand"); qRegisterMetaType("ImageContainer"); qRegisterMetaTypeStreamOperators("ImageContainer"); qRegisterMetaType("StatePreviewImageChangedCommand"); qRegisterMetaTypeStreamOperators("StatePreviewImageChangedCommand"); qRegisterMetaType("CompleteComponentCommand"); qRegisterMetaTypeStreamOperators("CompleteComponentCommand"); qRegisterMetaType("ComponentCompletedCommand"); qRegisterMetaTypeStreamOperators("ComponentCompletedCommand"); qRegisterMetaType("AddImportContainer"); qRegisterMetaTypeStreamOperators("AddImportContainer"); qRegisterMetaType("SynchronizeCommand"); qRegisterMetaTypeStreamOperators("SynchronizeCommand"); qRegisterMetaType("ChangeNodeSourceCommand"); qRegisterMetaTypeStreamOperators("ChangeNodeSourceCommand"); qRegisterMetaType("ChangeAuxiliaryCommand"); qRegisterMetaTypeStreamOperators("ChangeAuxiliaryCommand"); qRegisterMetaType("TokenCommand"); qRegisterMetaTypeStreamOperators("TokenCommand"); qRegisterMetaType("RemoveSharedMemoryCommand"); qRegisterMetaTypeStreamOperators("RemoveSharedMemoryCommand"); qRegisterMetaType("EndPuppetCommand"); qRegisterMetaTypeStreamOperators("EndPuppetCommand"); qRegisterMetaType("DebugOutputCommand"); qRegisterMetaTypeStreamOperators("DebugOutputCommand"); qRegisterMetaType("Enumeration"); qRegisterMetaTypeStreamOperators("Enumeration"); qRegisterMetaType("PuppetAliveCommand"); qRegisterMetaTypeStreamOperators("PuppetAliveCommand"); } }