Plasma Engine  2.0
Loading...
Searching...
No Matches
VarianceWidget.moc.h
1#pragma once
2
3#include <Foundation/Basics.h>
4#include <Foundation/Types/VarianceTypes.h>
5#include <GuiFoundation/PropertyGrid/PropertyBaseWidget.moc.h>
6#include <GuiFoundation/Widgets/DoubleSpinBox.moc.h>
7
8class QSlider;
9
11{
12 Q_OBJECT
13
14public:
16
17 virtual void SetSelection(const plHybridArray<plPropertySelection, 8>& items) override;
18
19private Q_SLOTS:
20 void onBeginTemporary();
21 void onEndTemporary();
22 void SlotValueChanged();
23 void SlotVarianceChanged();
24
25protected:
26 virtual void OnInit() override;
27 virtual void InternalSetValue(const plVariant& value) override;
28
29 bool m_bTemporaryCommand = false;
30 QHBoxLayout* m_pLayout = nullptr;
31 plQtDoubleSpinBox* m_pValueWidget = nullptr;
32 QSlider* m_pVarianceWidget = nullptr;
33 const plAbstractMemberProperty* m_pValueProp = nullptr;
34 const plAbstractMemberProperty* m_pVarianceProp = nullptr;
35};
36
This is the base class for all properties that are members of a class. It provides more information a...
Definition AbstractProperty.h:237
A hybrid array uses in-place storage to handle the first few elements without any allocation....
Definition HybridArray.h:12
Definition DoubleSpinBox.moc.h:8
Base class for most 'simple' property type widgets. Implements some of the standard functionality.
Definition PropertyBaseWidget.moc.h:118
Definition VarianceWidget.moc.h:11
virtual void SetSelection(const plHybridArray< plPropertySelection, 8 > &items) override
This is called whenever the selection in the editor changes and thus the widget may need to display a...
Definition VarianceWidget.cpp:42
plVariant is a class that can store different types of variables, which is useful in situations where...
Definition Variant.h:44