| 
									
										
										
										
											2012-10-02 09:12:39 +02:00
										 |  |  | /****************************************************************************
 | 
					
						
							| 
									
										
										
										
											2011-02-22 12:08:19 +01:00
										 |  |  | ** | 
					
						
							| 
									
										
										
										
											2016-01-15 14:59:14 +01:00
										 |  |  | ** Copyright (C) 2016 The Qt Company Ltd. | 
					
						
							|  |  |  | ** Contact: https://www.qt.io/licensing/
 | 
					
						
							| 
									
										
										
										
											2011-02-22 12:08:19 +01:00
										 |  |  | ** | 
					
						
							| 
									
										
										
										
											2012-10-02 09:12:39 +02:00
										 |  |  | ** This file is part of Qt Creator. | 
					
						
							| 
									
										
										
										
											2011-02-22 12:08:19 +01:00
										 |  |  | ** | 
					
						
							| 
									
										
										
										
											2012-10-02 09:12:39 +02:00
										 |  |  | ** 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 | 
					
						
							| 
									
										
										
										
											2016-01-15 14:59:14 +01:00
										 |  |  | ** 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.
 | 
					
						
							| 
									
										
										
										
											2011-02-22 12:08:19 +01:00
										 |  |  | ** | 
					
						
							| 
									
										
										
										
											2015-09-18 11:34:48 +02:00
										 |  |  | ** GNU General Public License Usage | 
					
						
							|  |  |  | ** Alternatively, this file may be used under the terms of the GNU | 
					
						
							| 
									
										
										
										
											2016-01-15 14:59:14 +01:00
										 |  |  | ** 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.
 | 
					
						
							| 
									
										
										
										
											2011-02-22 12:08:19 +01:00
										 |  |  | ** | 
					
						
							| 
									
										
										
										
											2012-10-02 09:12:39 +02:00
										 |  |  | ****************************************************************************/ | 
					
						
							| 
									
										
										
										
											2011-02-22 12:08:19 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-03-18 07:55:01 +01:00
										 |  |  | #pragma once
 | 
					
						
							| 
									
										
										
										
											2010-11-24 14:52:06 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | #include <QObject>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | namespace QmlDesigner { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class PropertyAbstractContainer; | 
					
						
							|  |  |  | class PropertyBindingContainer; | 
					
						
							|  |  |  | class PropertyValueContainer; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-12-11 21:29:10 +02:00
										 |  |  | class Update3dViewStateCommand; | 
					
						
							| 
									
										
										
										
											2010-11-24 14:52:06 +01:00
										 |  |  | class ChangeFileUrlCommand; | 
					
						
							|  |  |  | class ChangeValuesCommand; | 
					
						
							|  |  |  | class ChangeBindingsCommand; | 
					
						
							| 
									
										
										
										
											2011-06-08 17:02:03 +02:00
										 |  |  | class ChangeAuxiliaryCommand; | 
					
						
							| 
									
										
										
										
											2010-11-24 14:52:06 +01:00
										 |  |  | class CreateSceneCommand; | 
					
						
							|  |  |  | class CreateInstancesCommand; | 
					
						
							|  |  |  | class ClearSceneCommand; | 
					
						
							|  |  |  | class ReparentInstancesCommand; | 
					
						
							|  |  |  | class ChangeIdsCommand; | 
					
						
							|  |  |  | class RemoveInstancesCommand; | 
					
						
							|  |  |  | class RemovePropertiesCommand; | 
					
						
							|  |  |  | class ChangeStateCommand; | 
					
						
							| 
									
										
										
										
											2010-12-09 16:09:37 +01:00
										 |  |  | class CompleteComponentCommand; | 
					
						
							| 
									
										
										
										
											2011-06-08 17:02:03 +02:00
										 |  |  | class ChangeNodeSourceCommand; | 
					
						
							| 
									
										
										
										
											2011-07-06 15:48:21 +02:00
										 |  |  | class TokenCommand; | 
					
						
							| 
									
										
										
										
											2012-09-11 15:11:34 +02:00
										 |  |  | class RemoveSharedMemoryCommand; | 
					
						
							| 
									
										
										
										
											2019-10-17 13:51:57 +02:00
										 |  |  | class ChangeSelectionCommand; | 
					
						
							| 
									
										
										
										
											2020-02-11 11:33:25 +02:00
										 |  |  | class InputEventCommand; | 
					
						
							|  |  |  | class View3DActionCommand; | 
					
						
							| 
									
										
										
										
											2020-09-10 16:02:31 +03:00
										 |  |  | class RequestModelNodePreviewImageCommand; | 
					
						
							| 
									
										
										
										
											2020-04-28 11:21:03 +02:00
										 |  |  | class ChangeLanguageCommand; | 
					
						
							| 
									
										
										
										
											2020-05-07 14:13:21 +02:00
										 |  |  | class ChangePreviewImageSizeCommand; | 
					
						
							| 
									
										
										
										
											2010-11-24 14:52:06 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | class NodeInstanceServerInterface : public QObject | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     Q_OBJECT | 
					
						
							|  |  |  | public: | 
					
						
							| 
									
										
										
										
											2018-07-24 23:56:45 +02:00
										 |  |  |     explicit NodeInstanceServerInterface(QObject *parent = nullptr); | 
					
						
							| 
									
										
										
										
											2010-11-24 14:52:06 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |     virtual void createInstances(const CreateInstancesCommand &command) = 0; | 
					
						
							|  |  |  |     virtual void changeFileUrl(const ChangeFileUrlCommand &command) = 0; | 
					
						
							|  |  |  |     virtual void createScene(const CreateSceneCommand &command) = 0; | 
					
						
							|  |  |  |     virtual void clearScene(const ClearSceneCommand &command) = 0; | 
					
						
							| 
									
										
										
										
											2019-12-11 21:29:10 +02:00
										 |  |  |     virtual void update3DViewState(const Update3dViewStateCommand &command) = 0; | 
					
						
							| 
									
										
										
										
											2010-11-24 14:52:06 +01:00
										 |  |  |     virtual void removeInstances(const RemoveInstancesCommand &command) = 0; | 
					
						
							|  |  |  |     virtual void removeProperties(const RemovePropertiesCommand &command) = 0; | 
					
						
							|  |  |  |     virtual void changePropertyBindings(const ChangeBindingsCommand &command) = 0; | 
					
						
							|  |  |  |     virtual void changePropertyValues(const ChangeValuesCommand &command) = 0; | 
					
						
							| 
									
										
										
										
											2011-06-08 17:02:03 +02:00
										 |  |  |     virtual void changeAuxiliaryValues(const ChangeAuxiliaryCommand &command) = 0; | 
					
						
							| 
									
										
										
										
											2010-11-24 14:52:06 +01:00
										 |  |  |     virtual void reparentInstances(const ReparentInstancesCommand &command) = 0; | 
					
						
							|  |  |  |     virtual void changeIds(const ChangeIdsCommand &command) = 0; | 
					
						
							|  |  |  |     virtual void changeState(const ChangeStateCommand &command) = 0; | 
					
						
							| 
									
										
										
										
											2010-12-09 16:09:37 +01:00
										 |  |  |     virtual void completeComponent(const CompleteComponentCommand &command) = 0; | 
					
						
							| 
									
										
										
										
											2011-06-08 17:02:03 +02:00
										 |  |  |     virtual void changeNodeSource(const ChangeNodeSourceCommand &command) = 0; | 
					
						
							| 
									
										
										
										
											2011-07-06 15:48:21 +02:00
										 |  |  |     virtual void token(const TokenCommand &command) = 0; | 
					
						
							| 
									
										
										
										
											2012-09-11 15:11:34 +02:00
										 |  |  |     virtual void removeSharedMemory(const RemoveSharedMemoryCommand &command) = 0; | 
					
						
							| 
									
										
										
										
											2019-10-17 13:51:57 +02:00
										 |  |  |     virtual void changeSelection(const ChangeSelectionCommand &command) = 0; | 
					
						
							| 
									
										
										
										
											2020-02-11 11:33:25 +02:00
										 |  |  |     virtual void inputEvent(const InputEventCommand &command) = 0; | 
					
						
							|  |  |  |     virtual void view3DAction(const View3DActionCommand &command) = 0; | 
					
						
							| 
									
										
										
										
											2020-09-10 16:02:31 +03:00
										 |  |  |     virtual void requestModelNodePreviewImage(const RequestModelNodePreviewImageCommand &command) = 0; | 
					
						
							| 
									
										
										
										
											2020-04-28 11:21:03 +02:00
										 |  |  |     virtual void changeLanguage(const ChangeLanguageCommand &command) = 0; | 
					
						
							| 
									
										
										
										
											2020-05-07 14:13:21 +02:00
										 |  |  |     virtual void changePreviewImageSize(const ChangePreviewImageSizeCommand &command) = 0; | 
					
						
							| 
									
										
										
										
											2010-11-24 14:52:06 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-04-28 11:21:03 +02:00
										 |  |  |     virtual void benchmark(const QString &) {} | 
					
						
							| 
									
										
										
										
											2017-03-01 15:11:46 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-11-24 14:52:06 +01:00
										 |  |  |     static void registerCommands(); | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | } |