1#ifndef LAYEROPACITYDIALOG_H
2#define LAYEROPACITYDIALOG_H
16enum class OpacityFadeType {
29 void setCore(
Editor* editor);
34 void opacitySliderChanged(
int value);
35 void opacitySpinboxChanged(
double value);
37 void fadeOutPressed();
39 void onObjectLoaded();
40 void onCurrentLayerChanged(
int index);
41 void onCurrentFrameChanged(
int frame);
42 void onSelectedFramesChanged();
43 void onPlayStateChanged(
bool isPlaying);
44 void opacityValueChanged();
48 void setCanAdjust(
bool opacity,
bool fade);
49 void fade(OpacityFadeType fadeType);
50 qreal getOpacityForKeyFrame(
Layer* layer,
const KeyFrame* keyframe)
const;
51 void setOpacityForKeyFrame(
Layer* layer,
KeyFrame* keyframe, qreal opacity);
53 void updateValues(qreal opacity);
54 void setOpacityForCurrentKeyframe();
55 void setOpacityForSelectedKeyframes();
56 void setOpacityForLayer();
58 void updateSelectedFramesUI();
60 Ui::LayerOpacityDialog *ui;
66 bool mPlayerIsPlaying =
false;
68 qreal mMultiplier = 500.0;
69 qreal mSpinBoxMultiplier = 0.2;
70 int mMinSelectedFrames = 3;
QObject * parent() const const