-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathrundialog.h
More file actions
70 lines (57 loc) · 1.46 KB
/
rundialog.h
File metadata and controls
70 lines (57 loc) · 1.46 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#ifndef RUNDIALOG_H
#define RUNDIALOG_H
#include <QDialog>
#include <QGridLayout>
#include <QLabel>
#include <QLineEdit>
#include <QComboBox>
#include <QSpinBox>
#include <QCheckBox>
#include <QPushButton>
#include <addchannels.h>
#include <globalheader.h>
#include <QDebug>
#include "rundialogstorage.h"
//#include "SimplePlayer.h"
using namespace std;
namespace Ui {
class runDialog;
}
//class PeerThread;
class runDialog : public QDialog
{
Q_OBJECT
public:
explicit runDialog(QWidget *parent = 0);
~runDialog();
private slots:
void runClicked();
void receiveChannels(vector<addChannels> channels);
signals:
void runPeer(runDialogStorage runParameters);
private:
//For Storing Channels - used to get Splitter Port and Address
vector<addChannels> runDialogChannels;
//For UI Creation
void buildUi();
void clearUiElements();
int labelPos;
QComboBox *channelsComboBox;
QLabel *playerPortLabel;
QLineEdit *playerPortLineEdit;
QLabel *channelsLabel;
QLabel *maxChunkLabel;
QLineEdit *maxChunkLineEdit;
QLabel *teamPortLabel;
QSpinBox *teamPortSpinBox;
QLabel *localHostLabel;
QCheckBox *localHostCheckBox;
QLabel *sourcePortStepLabel;
QLineEdit *sourcePortLineEdit;
QPushButton *runPushButton;
QPushButton *cancelPushButton;
QGridLayout *glayout;
// PeerThread *peerthreadobj; //used for calling the run method of peerThread
Ui::runDialog *ui;
};
#endif // RUNDIALOG_H