2020-08-30 22:03:41 +02:00
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
|
|
#include <unistd.h>
|
|
|
|
|
#include <QtWidgets/QApplication>
|
2020-09-13 14:44:45 +02:00
|
|
|
#include "appwindow.h"
|
2020-08-30 22:03:41 +02:00
|
|
|
|
|
|
|
|
#include "Calibration/calkit.h"
|
|
|
|
|
#include "touchstone.h"
|
|
|
|
|
|
2021-04-11 00:10:22 +02:00
|
|
|
#include <signal.h>
|
|
|
|
|
|
2020-08-30 22:03:41 +02:00
|
|
|
#include <complex>
|
2021-04-11 00:10:22 +02:00
|
|
|
|
|
|
|
|
static QApplication *app;
|
|
|
|
|
static AppWindow *window;
|
|
|
|
|
|
|
|
|
|
void sig_handler(int s) {
|
|
|
|
|
Q_UNUSED(s)
|
|
|
|
|
window->close();
|
|
|
|
|
}
|
|
|
|
|
|
2020-08-30 22:03:41 +02:00
|
|
|
int main(int argc, char *argv[]) {
|
2021-04-11 00:10:22 +02:00
|
|
|
app = new QApplication(argc, argv);
|
|
|
|
|
window = new AppWindow;
|
|
|
|
|
signal(SIGINT, sig_handler);
|
|
|
|
|
app->exec();
|
2020-11-19 17:10:47 +01:00
|
|
|
return 0;
|
2020-08-30 22:03:41 +02:00
|
|
|
}
|