main.cpp
792 Bytes
#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);
Oven *oven = Oven::getInstance();
OvenController *interface = new OvenController(oven, oven);
oven->setInterface(interface);
UdpHandler *udp = UdpHandler::getInstance();
interface->setUdpHandler(udp);
OvenStatistics::getInstance(oven);
Config::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();
}