OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
GraphicsItemPreviewDrag.h
Go to the documentation of this file.
1
4// ###########################################################################################################################################################################################################################################################################################################################
5
6#pragma once
7
8// OpenTwin header
12
13// Qt header
14#include <QtCore/qobject.h>
15
16#define OT_GRAPHICSITEMPREVIEWDRAG_MIMETYPE_ItemName "GraphicsItem.Name"
17#define OT_GRAPHICSITEMPREVIEWDRAG_MIMETYPE_Owner "GraphicsItem.Owner"
18
19class QWidget;
20
21namespace ot {
22
24 Q_OBJECT
27 public:
28 GraphicsItemPreviewDrag(const std::string& _itemName, const BasicServiceInformation& _owner);
30
31 void queue(QWidget* _widget);
32
33 private Q_SLOTS:
34 void slotQueue(void);
35
36 private:
37 QWidget* m_widget;
38 int m_queueCount;
39 std::string m_itemName;
41 };
42
43}
This file contains defines that may be used simplyfy class creation.
#define OT_DECL_NODEFAULT(___class)
Removes the default copy constructor and assignment operator.
Definition OTClassHelper.h:22
#define OT_DECL_NOCOPY(___class)
Removes the default copy constructor and assignment operator.
Definition OTClassHelper.h:14
#define OT_WIDGETS_API_EXPORT
Definition OTWidgetsAPIExport.h:12
The BasicServiceInformation class is used to hold a service name and type. The BasicServiceInformatio...
Definition BasicServiceInformation.h:21
Definition GraphicsItemPreviewDrag.h:23
Definition Connector.h:8