Plasma Engine  2.0
Loading...
Searching...
No Matches
Curve1DAssetWindow.moc.h
1#pragma once
2
3#include <Foundation/Basics.h>
4#include <GuiFoundation/DocumentWindow/DocumentWindow.moc.h>
5#include <ToolsFoundation/Object/DocumentObjectManager.h>
6
8
10{
11 Q_OBJECT
12
13public:
16
17 virtual const char* GetWindowLayoutGroupName() const override { return "Curve1DAsset"; }
18
19private Q_SLOTS:
20 void onInsertCpAt(plUInt32 uiCurveIdx, plInt64 tickX, double newPosY);
21 void onCurveCpMoved(plUInt32 curveIdx, plUInt32 cpIdx, plInt64 iTickX, double newPosY);
22 void onCurveCpDeleted(plUInt32 curveIdx, plUInt32 cpIdx);
23 void onCurveTangentMoved(plUInt32 curveIdx, plUInt32 cpIdx, float newPosX, float newPosY, bool rightTangent);
24 void onLinkCurveTangents(plUInt32 curveIdx, plUInt32 cpIdx, bool bLink);
25 void onCurveTangentModeChanged(plUInt32 curveIdx, plUInt32 cpIdx, bool rightTangent, int mode);
26
27 void onCurveBeginOperation(QString name);
28 void onCurveEndOperation(bool commit);
29 void onCurveBeginCpChanges(QString name);
30 void onCurveEndCpChanges();
31
32private:
33 void UpdatePreview();
34
35 void SendLiveResourcePreview();
36 void RestoreResource();
37
38 void PropertyEventHandler(const plDocumentObjectPropertyEvent& e);
39 void StructureEventHandler(const plDocumentObjectStructureEvent& e);
40
41 plQtCurve1DEditorWidget* m_pCurveEditor = nullptr;
42};
43
Definition Document.h:57
Definition Curve1DAssetWindow.moc.h:10
virtual const char * GetWindowLayoutGroupName() const override
The 'GroupName' is used for serializing window layouts. It should be unique among different window ty...
Definition Curve1DAssetWindow.moc.h:17
Definition Curve1DEditorWidget.moc.h:11
Base class for all document windows. Handles the most basic document window management.
Definition DocumentWindow.moc.h:34
Used by plDocumentObjectManager::m_PropertyEvents.
Definition DocumentObjectManager.h:77
Used by plDocumentObjectManager::m_StructureEvents.
Definition DocumentObjectManager.h:45