-
Notifications
You must be signed in to change notification settings - Fork 0
/
vorowindow.h
51 lines (41 loc) · 898 Bytes
/
vorowindow.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
#ifndef VOROWINDOW_H
#define VOROWINDOW_H
#include <set>
#include <QMainWindow>
#include <QtGui>
#include <QGraphicsItem>
#include "server.h"
#include "client.h"
#include "voronoidisplayer.h"
namespace Ui {
class VoroWindow;
}
class VoroWindow : public QMainWindow
{
Q_OBJECT
public:
explicit VoroWindow(QWidget *parent = 0);
~VoroWindow();
void paintEvent(QPaintEvent*);
QPoint pointToQp(Point p);
void setup();
public slots:
void clientUpdate();
void addClient();
void checkLoad();
private slots:
void on_pushButton_clicked();
void on_addClients_clicked();
void on_pushButton_2_clicked();
private:
Ui::VoroWindow *ui;
std::vector<Server*> servers;
int sCount;
QColor* c[10];
QTimer* updateTimer;
QTimer* loadTimer;
// Diagrams
VoronoiDisplayer* tellies [100];
int tCount;
};
#endif // VOROWINDOW_H