Erster Commit
This commit is contained in:
33
src/DeviceDialog.h
Normal file
33
src/DeviceDialog.h
Normal file
@@ -0,0 +1,33 @@
|
||||
#pragma once
|
||||
|
||||
#include <QDialog>
|
||||
#include <QString>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
class QComboBox;
|
||||
QT_END_NAMESPACE
|
||||
|
||||
class DeviceDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit DeviceDialog(QWidget* parent = nullptr);
|
||||
|
||||
QString selectedVideoDevice() const;
|
||||
QString selectedAudioDevice() const;
|
||||
int selectedFps() const;
|
||||
|
||||
void setPreselectedVideo(const QString& device);
|
||||
void setPreselectedAudio(const QString& device);
|
||||
void setPreselectedFps(int fps);
|
||||
|
||||
private:
|
||||
void populateVideoDevices();
|
||||
void populateAudioDevices();
|
||||
void selectByData(QComboBox* combo, const QString& data);
|
||||
|
||||
QComboBox* m_videoCombo = nullptr;
|
||||
QComboBox* m_audioCombo = nullptr;
|
||||
QComboBox* m_fpsCombo = nullptr;
|
||||
};
|
||||
Reference in New Issue
Block a user