yolobs-studio/UI/frontend-plugins/frontend-tools/output-timer.hpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
888 B
C++
Raw Normal View History

2017-04-19 19:54:15 +00:00
#pragma once
#include <QDialog>
#include <memory>
#include "ui_output-timer.h"
class QCloseEvent;
class OutputTimer : public QDialog {
Q_OBJECT
public:
std::unique_ptr<Ui_OutputTimer> ui;
OutputTimer(QWidget *parent);
void closeEvent(QCloseEvent *event) override;
2019-09-22 21:19:10 +00:00
void PauseRecordingTimer();
void UnpauseRecordingTimer();
2017-04-19 19:54:15 +00:00
public slots:
void StreamingTimerButton();
void RecordingTimerButton();
void StreamTimerStart();
void RecordTimerStart();
void StreamTimerStop();
void RecordTimerStop();
void UpdateStreamTimerDisplay();
void UpdateRecordTimerDisplay();
void ShowHideDialog();
void EventStopStreaming();
void EventStopRecording();
private:
bool streamingAlreadyActive = false;
bool recordingAlreadyActive = false;
QTimer *streamingTimer;
QTimer *recordingTimer;
QTimer *streamingTimerDisplay;
QTimer *recordingTimerDisplay;
2019-09-22 21:19:10 +00:00
int recordingTimeLeft;
2017-04-19 19:54:15 +00:00
};