tahoma2d/toonz/sources/stopmotion/stopmotionlight.h

73 lines
2.1 KiB
C
Raw Normal View History

2020-04-27 16:15:39 +12:00
#pragma once
#ifndef STOPMOTIONLIGHT_H
#define STOPMOTIONLIGHT_H
#include <QObject>
#include <QPixmap>
2020-04-27 16:15:39 +12:00
#include "traster.h"
class QDialog;
class QLabel;
class QHBoxLayout;
2020-04-27 16:15:39 +12:00
//=============================================================================
// StopMotionLight
//-----------------------------------------------------------------------------
class StopMotionLight : public QObject {
2020-04-27 16:19:06 +12:00
Q_OBJECT
2020-04-27 16:15:39 +12:00
public:
2020-04-27 16:19:06 +12:00
StopMotionLight();
~StopMotionLight();
QDialog *m_fullScreen1, *m_fullScreen2, *m_fullScreen3;
QLabel *m_label1, *m_label2, *m_label3;
QHBoxLayout *m_layout1, *m_layout2, *m_layout3;
2020-04-27 16:19:06 +12:00
bool m_useScreen1Overlay = false;
bool m_useScreen2Overlay = false;
bool m_useScreen3Overlay = false;
bool m_showSceneOn1 = false;
bool m_showSceneOn2 = false;
bool m_showSceneOn3 = false;
2020-04-27 16:19:06 +12:00
bool m_blackCapture = true;
2020-05-01 15:07:56 +12:00
bool m_overlaysReady = false;
2020-05-20 17:43:46 +12:00
bool m_shown = false;
2020-04-27 16:19:06 +12:00
int m_screenCount = 1;
bool m_screensSameSizes = true;
2020-04-27 16:19:06 +12:00
TPixel32 m_screen1Color, m_screen2Color,
m_screen3Color = TPixel32(0, 0, 0, 255);
std::vector<TDimension> m_screenSizes;
QPixmap m_scenePixmap;
int m_pixmapFrame = -1;
2020-04-27 16:19:06 +12:00
void setBlackCapture(bool on);
bool getBlackCapture() { return m_blackCapture; }
void setScreen1Color(TPixel32 color);
void setScreen2Color(TPixel32 color);
void setScreen3Color(TPixel32 color);
void setScreen1UseOverlay(bool on);
void setScreen2UseOverlay(bool on);
void setScreen3UseOverlay(bool on);
void setShowSceneOn1(bool on);
void setShowSceneOn2(bool on);
void setShowSceneOn3(bool on);
2020-04-27 16:19:06 +12:00
void showOverlays();
void hideOverlays();
2020-05-01 15:07:56 +12:00
bool useOverlays();
QPixmap getSceneImage(TDimension size);
2020-04-27 16:15:39 +12:00
signals:
2020-04-27 16:19:06 +12:00
void blackCaptureSignal(bool);
void screen1ColorChanged(TPixel32);
void screen2ColorChanged(TPixel32);
void screen3ColorChanged(TPixel32);
void screen1OverlayChanged(bool);
void screen2OverlayChanged(bool);
void screen3OverlayChanged(bool);
void showSceneOn1Changed(bool);
void showSceneOn2Changed(bool);
void showSceneOn3Changed(bool);
2020-04-27 16:15:39 +12:00
};
#endif // STOPMOTIONLIGHT_H