-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwidget.h
More file actions
69 lines (65 loc) · 1.58 KB
/
Copy pathwidget.h
File metadata and controls
69 lines (65 loc) · 1.58 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
#ifndef WIDGET_H
#define WIDGET_H
#include "mancala.h"
#include <QWidget>
#include <QPushButton>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QUdpSocket>
#include <QNetworkInterface>
#include <QLabel>
#include <QInputDialog>
#include <QTimer>
#include <QEventLoop>
#include <QVector>
#include <QStandardPaths>
#include <QFile>
#include <QDir>
#include <QHostInfo>
#include <QDesktopServices>
class Widget : public QWidget
{
Q_OBJECT
QStringList fila = QStandardPaths::standardLocations(QStandardPaths::AppConfigLocation);
QString setpath;
QString myname;
int wins, winsfren;
QPushButton changename, rules, sinb, mulb, host, conn;
QLabel name, usern, ipwait;
QVBoxLayout mainpage;
QHBoxLayout mainh, mulh;
QUdpSocket socket, socket2;
QHostAddress frenaddress;
QString frenname;
mancala mancl;
QVBoxLayout mancccc;
QHBoxLayout mancaladis, nameese;
QVBoxLayout left, right;
bool mmmm, nono = false, sinn = false;
public:
QVector<QPushButton *> aas, bss;
QVector<QLabel *> bbs;
QPushButton a0, a1, a2, a3, a4, a5;
QPushButton bs0, bs1, bs2, bs3, bs4, bs5;
QLabel b0, b1, b2, b3, b4, b5;
QLabel mn, fn, abowl, bbowl, tirn;
Widget(QWidget *parent = nullptr);
void send();
void receive();
void hostgame();
void host2();
void hostsend(int);
void conngame();
void conn2();
void connsend(int);
void timer(int);
void playthedamngame();
void enbu();
void dibu();
void changen();
void win();
void nowin();
void bothwin();
~Widget();
};
#endif // WIDGET_H