Plasma Engine  2.0
Loading...
Searching...
No Matches
GameObjectReferencePropertyWidget.moc.h
1#pragma once
2
3#include <EditorFramework/EditorFrameworkDLL.h>
4
5#include <GuiFoundation/PropertyGrid/Implementation/PropertyWidget.moc.h>
6#include <QLineEdit>
7#include <QModelIndex>
8
11
13{
14 Q_OBJECT
15
16public:
18
19private Q_SLOTS:
20 void on_PickObject_clicked();
21
22protected slots:
23 void on_customContextMenuRequested(const QPoint& pt);
24 void OnSelectReferencedObject();
25 void OnCopyReference();
26 void OnClearReference();
27 void OnPasteReference();
28
29protected:
30 virtual void OnInit() override;
31 virtual void InternalSetValue(const plVariant& value) override;
32 void FillContextMenu(QMenu& menu);
33 void PickObjectOverride(const plDocumentObject* pObject);
34 void SetValue(const QString& sText);
35 void ClearPicking();
36 void SelectionManagerEventHandler(const plSelectionManagerEvent& e);
37 virtual void showEvent(QShowEvent* event) override;
38
39protected:
40 QPalette m_Pal;
41 QHBoxLayout* m_pLayout = nullptr;
42 QLabel* m_pWidget = nullptr;
43 QString m_sInternalValue;
44 QToolButton* m_pButton = nullptr;
45 plHybridArray<plSelectionContext*, 8> m_SelectionContextsToUnsubscribe;
46};
47
Definition DocumentObjectBase.h:11
A hybrid array uses in-place storage to handle the first few elements without any allocation....
Definition HybridArray.h:12
Definition GameObjectReferencePropertyWidget.moc.h:13
Base class for most 'simple' property type widgets. Implements some of the standard functionality.
Definition PropertyBaseWidget.moc.h:118
Definition SelectionContext.h:12
plVariant is a class that can store different types of variables, which is useful in situations where...
Definition Variant.h:44
Definition SelectionManager.h:10