-
Notifications
You must be signed in to change notification settings - Fork 0
/
NetworkStreamInputDialog.h
54 lines (40 loc) · 1.47 KB
/
NetworkStreamInputDialog.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#ifndef NETWORKSTREAMINPUTDIALOG_H
#define NETWORKSTREAMINPUTDIALOG_H
#include <QDialog>
#include <QGridLayout>
#include <QLabel>
#include "CustomButton.h"
#include "CustomTextInput.h"
#include "CustomComboBox.h"
// add per url http://192.168.2.29/video.cgi?resolution=640x480&req_fps=10&.mjpg
class NetworkStreamInputDialog : public QDialog{
Q_OBJECT
private:
QGridLayout* _layout = new QGridLayout(this);
QWidget* _firstLine = new QWidget();
QHBoxLayout* _firstLineLayout = new QHBoxLayout(this->_firstLine);
CustomComboBox* _protocol = new CustomComboBox();
QLabel* _sep0 = new QLabel("://");
CustomTextInput* _hostname = new CustomTextInput();
QLabel* _sep1 = new QLabel(":");
CustomTextInput* _port = new CustomTextInput();
QLabel* _sep2 = new QLabel("/");
CustomTextInput* _ressource = new CustomTextInput();
QLabel* _resolutionLabel = new QLabel("Résolution");
CustomComboBox* _resolution = new CustomComboBox();
QLabel* _fpsLabel = new QLabel("Fps");
CustomComboBox* _fps = new CustomComboBox();
QLabel* _formatLabel = new QLabel("Format");
CustomComboBox* _format = new CustomComboBox();
CustomButton* _confirmButton = new CustomButton("Se connecter");
CustomButton* _cancelButton = new CustomButton("Annuler");
QString _result;
virtual QString generateUrl();
public:
explicit NetworkStreamInputDialog(QWidget *parent = 0);
virtual QString getResult();
virtual void accept();
signals:
public slots:
};
#endif // NETWORKSTREAMINPUTDIALOG_H