This adds streaming and recording timers to the frontend tools. Closes jp9000/obs-studio#625
32 lines
602 B
C++
32 lines
602 B
C++
#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;
|
|
|
|
public slots:
|
|
void StreamingTimerButton();
|
|
void RecordingTimerButton();
|
|
void StreamTimerStart();
|
|
void RecordTimerStart();
|
|
void StreamTimerStop();
|
|
void RecordTimerStop();
|
|
void UpdateStreamTimerDisplay();
|
|
void UpdateRecordTimerDisplay();
|
|
void ShowHideDialog();
|
|
void EventStopStreaming();
|
|
void EventStopRecording();
|
|
};
|