main.cpp
881 Bytes
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
#include "mainwindow.h"
#include "oven.h"
#include "ovencontroller.h"
#include "udphandler.h"
#include "ovenstatics.h"
#include "config.h"
#include "inputoverwatcher.h"
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
//a.setFont(QFont("Noto Sans CJK SC"));
Oven *oven = Oven::getInstance();
OvenController *interface = new OvenController(oven, oven);
oven->setInterface(interface);
UdpHandler *udp = UdpHandler::getInstance();
interface->setUdpHandler(udp);
oven->setDefault(Define::CombiMode);
Config::getInstance(oven);
OvenStatistics::getInstance(oven);
// QTranslator* trans = new QTranslator();
// qDebug() << trans->load(":/lang_en.qm");
// QApplication::installTranslator(trans);
MainWindow w;
w.showFullScreen();
udp->turnOn(TG_SYSTEM);
return a.exec();
}